git-svn-id: http://xe-core.googlecode.com/svn/trunk@1353 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-26 08:58:17 +00:00
parent d3d625f09f
commit e8376040db
2 changed files with 28 additions and 28 deletions

View file

@ -14,11 +14,11 @@
<!--@end--> <!--@end-->
{@ $day = ''} {@ $day = ''}
<table border="0" cellspacing="0" cellpadding="0" width="99%" style="table-layout:fixed">
<!--@for($i=0;$i<6;$i++)--> <!--@for($i=0;$i<6;$i++)-->
<div class="week">
<!--@if($day < $plugin_info->last_day)--> <!--@if($day < $plugin_info->last_day)-->
<tr>
<!--@for($j=0;$j<7;$j++)--> <!--@for($j=0;$j<7;$j++)-->
<!--@if($day < $plugin_info->last_day)-->
{@ $num = $i*7 + $j} {@ $num = $i*7 + $j}
<!--@if(!$started && $num >= $plugin_info->start_week)--> <!--@if(!$started && $num >= $plugin_info->start_week)-->
@ -29,6 +29,12 @@
{@ $cur_date = $plugin_info->cur_date.sprintf('%02d',$day) } {@ $cur_date = $plugin_info->cur_date.sprintf('%02d',$day) }
<!--@end--> <!--@end-->
<!--@if($cur_date == date("Ymd"))-->
{@ $today_class = "today"}
<!--@else-->
{@ $today_class = ""}
<!--@end-->
<!--@if($j==0)--> <!--@if($j==0)-->
{@ $cell_class_name = "sunday"} {@ $cell_class_name = "sunday"}
<!--@elseif($j==6)--> <!--@elseif($j==6)-->
@ -45,20 +51,24 @@
{@ $day_link = ''} {@ $day_link = ''}
<!--@end--> <!--@end-->
<div class="item_box"> <td>
<div class="{$cell_class_name} {$item_class_name}"> <div class="item_box {$today_class}">
<!--@if($day_link)--> <div class="{$cell_class_name} {$item_class_name}">
<a href="#" onclick="location.href='{$day_link}'">{$day}</a> <!--@if($day < $plugin_info->last_day)-->
<!--@else--> <!--@if($day_link)-->
{$day} <a href="#" onclick="location.href='{$day_link}'">{$day}</a>
<!--@end--> <!--@else-->
{$day}
<!--@end-->
<!--@end-->
</div>
</div> </div>
</div> </td>
<!--@end-->
<!--@end--> <!--@end-->
</tr>
<!--@end--> <!--@end-->
</div>
<!--@end--> <!--@end-->
</table>
</div> </div>
</div> </div>

View file

@ -20,19 +20,14 @@
.calendar_normal .calendar_box .calendar_box { .calendar_normal .calendar_box .calendar_box {
padding:5px; padding:5px;
clear:both;
border:3px solid #EEEEEE; border:3px solid #EEEEEE;
overflow:hidden; overflow:hidden;
} }
.calendar_normal .calendar_box .week { .calendar_normal .calendar_box .week {
clear:both;
} }
.calendar_normal .calendar_box .item_box { .calendar_normal .calendar_box .item_box {
float:left;
width:20px;
height:20px;
border:1px solid #EEEEEE; border:1px solid #EEEEEE;
margin:1px; margin:1px;
text-align:right; text-align:right;
@ -50,17 +45,22 @@
color:#666666; color:#666666;
} }
.calendar_normal .calendar_box .today {
background-color:yellow;
}
.calendar_normal .calendar_box .unselected_item { .calendar_normal .calendar_box .unselected_item {
} }
.calendar_normal .calendar_box .selected_item { .calendar_normal .calendar_box .selected_item {
font-weight:bold; font-weight:bold;
text-decoration:underline;
} }
.calendar_normal .calendar_box .item_box { .calendar_normal .calendar_box .item_box {
float:left;
margin-right:5px; margin-right:5px;
color:#AAAAAA; color:#AAAAAA;
height:20px;
} }
.calendar_normal .calendar_box .item_box div { .calendar_normal .calendar_box .item_box div {
@ -68,15 +68,5 @@
} }
.calendar_normal .calendar_box .item_box A { .calendar_normal .calendar_box .item_box A {
text-decoration:none;
color:green; color:green;
} }
.calendar_normal .calendar_box .item_box A:hover {
text-decoration:underline;
}
.calendar_normal .calendar_box .item_box A:visited {
text-decoration:none;
}