mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1352 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
caf00ee52d
commit
d3d625f09f
3 changed files with 98 additions and 25 deletions
|
|
@ -26,15 +26,18 @@
|
|||
// document 모듈의 model 객체를 받아서 getDailyArchivedList() method를 실행
|
||||
$oDocumentModel = &getModel('document');
|
||||
$output = $oDocumentModel->getDailyArchivedList($obj);
|
||||
print "<xmp>";
|
||||
print_r($output);
|
||||
print "</xmp>";
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
$plugin_info->cur_date = date('Ym');
|
||||
$plugin_info->last_day = date('t');
|
||||
$plugin_info->start_week= date('L');
|
||||
|
||||
if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
|
||||
|
||||
$plugin_info->title = $title;
|
||||
$plugin_info->calendar = $output->data;
|
||||
|
||||
if(count($output->data)) {
|
||||
foreach($output->data as $key => $val) $plugin_info->calendar[$val->month] = $val->count;
|
||||
}
|
||||
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
|
||||
$plugin_info->width = trim($matches[3][0]);
|
||||
|
|
|
|||
|
|
@ -12,12 +12,53 @@
|
|||
<div class="title">{$plugin_info->title}</div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
<div class="archive_box">
|
||||
<!--@foreach($plugin_info->calendar as $val)-->
|
||||
<div class="archive">
|
||||
<a href="{getUrl('mid',$mid,'search_target','regdate','search_keyword',$val->month)}">{zdate($val->month,'Y. m')} ({$val->count})</a>
|
||||
</div>
|
||||
|
||||
{@ $day = ''}
|
||||
<!--@for($i=0;$i<6;$i++)-->
|
||||
<div class="week">
|
||||
<!--@if($day < $plugin_info->last_day)-->
|
||||
<!--@for($j=0;$j<7;$j++)-->
|
||||
<!--@if($day < $plugin_info->last_day)-->
|
||||
|
||||
{@ $num = $i*7 + $j}
|
||||
<!--@if(!$started && $num >= $plugin_info->start_week)-->
|
||||
{@ $started = true}
|
||||
{@ $day = 1}
|
||||
<!--@elseif($started)-->
|
||||
{@ $day++}
|
||||
{@ $cur_date = $plugin_info->cur_date.sprintf('%02d',$day) }
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($j==0)-->
|
||||
{@ $cell_class_name = "sunday"}
|
||||
<!--@elseif($j==6)-->
|
||||
{@ $cell_class_name = "saturday"}
|
||||
<!--@else-->
|
||||
{@ $cell_class_name = "week"}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($plugin_info->calendar[$cur_date])-->
|
||||
{@ $item_class_name = "selected_item"}
|
||||
{@ $day_link = getUrl('','mid',$mid,'search_target','regdate','search_keyword',$cur_date) }
|
||||
<!--@else-->
|
||||
{@ $item_class_name = "unselected_item"}
|
||||
{@ $day_link = ''}
|
||||
<!--@end-->
|
||||
|
||||
<div class="item_box">
|
||||
<div class="{$cell_class_name} {$item_class_name}">
|
||||
<!--@if($day_link)-->
|
||||
<a href="#" onclick="location.href='{$day_link}'">{$day}</a>
|
||||
<!--@else-->
|
||||
{$day}
|
||||
<!--@end-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -18,36 +18,65 @@
|
|||
float:left;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .archive_box {
|
||||
.calendar_normal .calendar_box .calendar_box {
|
||||
padding:5px;
|
||||
clear:both;
|
||||
border:3px solid #EEEEEE;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .archive {
|
||||
.calendar_normal .calendar_box .week {
|
||||
clear:both;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .item_box {
|
||||
float:left;
|
||||
width:20px;
|
||||
height:20px;
|
||||
border:1px solid #EEEEEE;
|
||||
margin:1px;
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .sunday {
|
||||
color:darkred;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .saturday {
|
||||
color:darkblue;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .week {
|
||||
color:#666666;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .unselected_item {
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .selected_item {
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .item_box {
|
||||
float:left;
|
||||
margin-right:5px;
|
||||
color:#AAAAAA;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .archive A {
|
||||
.calendar_normal .calendar_box .item_box div {
|
||||
margin-right:2px;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .item_box A {
|
||||
text-decoration:none;
|
||||
color:#555555;
|
||||
color:green;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .archive A:hover {
|
||||
.calendar_normal .calendar_box .item_box A:hover {
|
||||
text-decoration:underline;
|
||||
color:#000000;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .archive A:visited {
|
||||
color:#AAAAAA;
|
||||
.calendar_normal .calendar_box .item_box A:visited {
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
.calendar_normal .calendar_box .archive .archive A {
|
||||
font-size:7pt;
|
||||
font-family:tahoma;
|
||||
color:#AAAAAA;
|
||||
letter-spacing:-1px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue