묻고답하기
완전 초보입니다. 도와주세요.
2015.06.10 00:26
<!--%import("css/style.css")-->
<div class="UXF_CALENDER_{$colorset}">
<div class="UXF_CAL_NAVI">
<button type="button" class="prevMonth" onclick="location.href='{getUrl('search_target','regdate','search_keyword',$widget_info->prev_month)}'"><i class="fa fa-angle-left"></i></button>
<button type="button" class="nextMonth" onclick="location.href='{getUrl('search_target','regdate','search_keyword',$widget_info->next_month)}'"><i class="fa fa-angle-right"></i></button>
</div>
<table border="1" cellspacing="0" class="UXF_CAL_TABLE">
<caption>{zdate($widget_info->cur_date,"Y.m")}</caption>
<thead>
<tr>
<th scope="col" class="sun">SUN</th>
<th scope="col">MON</th>
<th scope="col">TUE</th>
<th scope="col">WEN</th>
<th scope="col">THU</th>
<th scope="col">FRI</th>
<th scope="col" class="sat">SAT</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--> <!--@if($j==6)-->sat<!--@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-->
<strong>{$day}</strong>
<!--@end-->
<!--@else-->
<!--@end-->
</td>
<!--@end-->
</tr>
<!--@end-->
<!--@end-->
</tbody>
</table>
</div>
캘린더 소스입니다.
게시판과 연동되어서 게시글을 올린 날짜를 추출해 그 날짜를 캘린더에 표시해주는 방식인데
게시글의 날짜가 아닌 확장변수의 날짜를 표기하고 싶습니다.
그런데 어느 부분을 건드려야 할지 막막해서 이렇게 글을 올립니다.
답변 부탁드립니다.