Changeset 1159 for OpenPNE/branches
- Timestamp:
- Dec 14, 2006, 4:39:12 PM (16 years ago)
- Location:
- OpenPNE/branches/ebihara/prj_dev26_calendar/webapp
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/lib/db/etc.php
r1096 r1159 732 732 } 733 733 734 /** 735 * カレンダーの祝日を取得する 736 */ 737 function db_c_holiday_list4date($m, $d) 738 { 739 $sql = 'SELECT name FROM c_holiday WHERE month = ? AND day = ?'; 740 $params = array(intval($m), intval($d)); 741 return db_get_col($sql, $params); 742 } 734 743 ?> -
OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/modules/pc/page/h_calendar.php
r134 r1159 60 60 'event' => $event_list[$day], 61 61 'schedule' => p_h_calendar_c_schedule_list4date($year, $month, $day, $u), 62 'holiday' => db_c_holiday_list4date($month, $day), 62 63 ); 63 64 $item['day'] = $day; -
OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/modules/pc/page/h_home.php
r881 r1159 156 156 'event' => p_h_home_event4c_member_id($y, $m, $d, $u), 157 157 'schedule' => p_h_calendar_c_schedule_list4date($y, $m, $d, $u), 158 'holiday' => db_c_holiday_list4date($m, $d), 158 159 ); 159 160 if ($w == 0 && $d == date('d')) { -
OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/modules/pc/templates/h_calendar.tpl
r1081 r1159 81 81 ({$item.day}) 82 82 ({/if})<br> 83 83 84 ({if $add_schedule}) 84 85 <a href="({t_url m=pc a=page_h_schedule_add})&year=({$ym.year_disp})&month=({$ym.month_disp})&day=({$item.day})"><img src="({t_img_url_skin filename=icon_schedule})" class="icon"></a><br> 86 ({/if}) 87 88 ({* 祝日 *}) 89 ({if $item.holiday}) 90 ({foreach from=$item.holiday item=item_holiday}) 91 <span class=" c_02">({$item_holiday})</span><br> 92 ({/foreach}) 85 93 ({/if}) 86 94 -
OpenPNE/branches/ebihara/prj_dev26_calendar/webapp/modules/pc/templates/h_home.tpl
r1106 r1159 923 923 <tr> 924 924 ({foreach from=$calendar item=item name=calendar}) 925 <td style="width:({if $smarty.foreach.calendar.last})64({else})60({/if})px;({if !$smarty.foreach.calendar.last})border-right:none;({/if})" align="left" valign="top" class="border_01 bg_0({if $item.now})9({else})2({/if})({if $item.dayofweek == "日" }) c_02({elseif $item.dayofweek == "土"}) c_03({/if}) padding_s">925 <td style="width:({if $smarty.foreach.calendar.last})64({else})60({/if})px;({if !$smarty.foreach.calendar.last})border-right:none;({/if})" align="left" valign="top" class="border_01 bg_0({if $item.now})9({else})2({/if})({if $item.dayofweek == "日" || $item.holiday}) c_02({elseif $item.dayofweek == "土"}) c_03({/if}) padding_s"> 926 926 ({if $item.now})<span class="b_b">({/if}) 927 927 … … 935 935 936 936 <div> 937 ({* 祝日 *}) 938 ({foreach from=$item.holiday item=item_holiday}) 939 ({$item_holiday})<br> 940 ({/foreach}) 941 937 942 ({* 誕生日 *}) 938 943 ({foreach from=$item.birth item=item_birth})
Note: See TracChangeset
for help on using the changeset viewer.