mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 21:59:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5830 201d5d3c-b55e-5fd7-737f-ddc643e51545
66 lines
3.6 KiB
HTML
66 lines
3.6 KiB
HTML
<!--@if($colorset == "black" || $colorset == "white")-->
|
|
<!--%import("./css/widget.css")-->
|
|
<!--@end-->
|
|
|
|
<div class="widgetContainer<!--@if($colorset=="black")--> black<!--@end-->">
|
|
<div class="widgetCalendarNavigation">
|
|
<button type="button" class="prevYear" onclick="location.href='{getUrl('search_target','regdate','search_keyword',$widget_info->prev_year)}'"><<</button> <button type="button" class="prevMonth" onclick="location.href='{getUrl('search_target','regdate','search_keyword',$widget_info->prev_month)}'"><</button>
|
|
<button type="button" class="nextMonth" onclick="location.href='{getUrl('search_target','regdate','search_keyword',$widget_info->next_month)}'">></button> <button type="button" class="nextYear" onclick="location.href='{getUrl('search_target','regdate','search_keyword',$widget_info->next_year)}'">>></button>
|
|
</div>
|
|
<table border="1" cellspacing="0" class="widgetCalendar">
|
|
<caption>{zdate($widget_info->cur_date,"Y.m")}</caption>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="sun">{$lang->unit_week['Sunday']}</th>
|
|
<th scope="col">{$lang->unit_week['Monday']}</th>
|
|
<th scope="col">{$lang->unit_week['Tuesday']}</th>
|
|
<th scope="col">{$lang->unit_week['Wednesday']}</th>
|
|
<th scope="col">{$lang->unit_week['Thursday']}</th>
|
|
<th scope="col">{$lang->unit_week['Friday']}</th>
|
|
<th scope="col">{$lang->unit_week['Saturday']}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!--@for($i=0;$i<6;$i++)-->
|
|
<!--@if($day < $widget_info->last_day)-->
|
|
<tr>
|
|
<!--@for($j=0;$j<7;$j++)-->
|
|
|
|
{@ $num = $i*7 + $j}
|
|
<!--@if(!$started && $num >= $widget_info->start_week)-->
|
|
{@ $started = true}
|
|
{@ $day = 1}
|
|
{@ $cur_date = $widget_info->cur_date.sprintf('%02d',$day) }
|
|
<!--@elseif($started)-->
|
|
{@ $day++}
|
|
{@ $cur_date = $widget_info->cur_date.sprintf('%02d',$day) }
|
|
<!--@end-->
|
|
|
|
<!--@if($cur_date == date("Ymd"))-->{@ $today_class = "today"}<!--@else-->{@ $today_class = ""}<!--@end-->
|
|
|
|
<!--@if($widget_info->calendar[$cur_date])-->
|
|
{@ $item_class_name = "posted"}
|
|
{@ $day_link = getSiteUrl($widget_info->domain,'mid',$widget_info->module_info->mid,'search_target','regdate','search_keyword',$cur_date) }
|
|
<!--@else-->
|
|
{@ $item_class_name = ""}
|
|
{@ $day_link = ''}
|
|
<!--@end-->
|
|
|
|
<td class="<!--@if($j==0)-->sun<!--@end-->{$today_class} {$cell_class_name} {$item_class_name}">
|
|
<!--@if($day <= $widget_info->last_day)-->
|
|
<!--@if($day_link)-->
|
|
<a href="{$day_link}"><strong>{$day}</strong></a>
|
|
<!--@else-->
|
|
{$day}
|
|
<!--@end-->
|
|
<!--@else-->
|
|
|
|
<!--@end-->
|
|
</td>
|
|
<!--@end-->
|
|
</tr>
|
|
<!--@end-->
|
|
<!--@end-->
|
|
</tbody>
|
|
</table>
|
|
</div>
|