信呼OA版本v2.3.8
This commit is contained in:
27
webmain/we/ying/yingyong/calendar.html
Normal file
27
webmain/we/ying/yingyong/calendar.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<script type="text/javascript" src="web/res/mode/calendar/jquery-rockcalendar.js"></script>
|
||||
<script type="text/javascript" src="web/res/mode/calendar/jquery-rocklunar.js"></script>
|
||||
<script type="text/javascript">
|
||||
yingyonginit = function(){
|
||||
monthobj = $('#mainbody').rockcalendar({
|
||||
height:yy.getheight(-2),headerbgcolor:'#dddddd',
|
||||
selbgcolor:'#DEF7F2',
|
||||
changemonth:function(y, m){
|
||||
var dt = ''+y+'年'+xy10(m)+'月';
|
||||
setTimeout(function(){
|
||||
yy.settitle(dt);
|
||||
},10);
|
||||
},
|
||||
align:'center',
|
||||
valign:'center',
|
||||
renderer:function(day, s, s1,s2,col1,col2){
|
||||
var s = '<div><font color='+col1+'>'+s1+'</font><br><div style="font-size:11px;height:16px;overflow:hidden;color:'+col2+'">'+s2+'</div></div>';
|
||||
return s;
|
||||
}
|
||||
});
|
||||
}
|
||||
yy.clickevent=function(d){
|
||||
if(d.url=='nowmonth')monthobj.nowmonth();
|
||||
if(d.url=='prevmonth')monthobj.fanmonth(-1);
|
||||
if(d.url=='nextmonth')monthobj.fanmonth(1);
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user