ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 5955


Ignore:
Timestamp:
Mar 21, 2008, 11:43:36 PM (13 years ago)
Author:
ogawa
Message:

#1943:weeklyCalendarTable(週間カレンダーテーブル)を暫定対処

Location:
OpenPNE/branches/prj/xhtmlcss/OpenPNE-2.11.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/prj/xhtmlcss/OpenPNE-2.11.4/public_html/xhtml_style.php

    r5953 r5955  
    99// include_path の設定
    1010include_once OPENPNE_LIB_DIR . '/include/PHP/Compat/Constant/PATH_SEPARATOR.php';
    11 $include_paths = array(
    12     OPENPNE_LIB_DIR . '/include',
    13     OPENPNE_WEBAPP_DIR . '/lib',
    14     ini_get('include_path')
    15 );
     11$include_paths = array(OPENPNE_LIB_DIR . '/include', OPENPNE_WEBAPP_DIR . '/lib', ini_get('include_path'));
    1612ini_set('include_path', implode(PATH_SEPARATOR, $include_paths));
    1713require_once OPENPNE_WEBAPP_DIR . '/lib/OpenPNE/DB.php';
     
    737733}
    738734#LayoutB #Center .formTable th {
    739     width: 80px;
     735        width: 80px;
    740736}
    741737.formTable table table td {
     
    11441140 * 12. homeInfoBox(ホームインフォメーションボックス)
    11451141 *----------------------------------------------------------------------------*/
    1146 
    11471142#Body .homeInfoBox {
    11481143        margin-left: 5px;
     
    11601155        border-width: 0 0 0 1px;
    11611156}
     1157 
     1158/*==============================================================================
     1159 * 32. weeklyCalendarTable(週間カレンダーテーブル)
     1160 *----------------------------------------------------------------------------*/
     1161.weeklyCalendarTable p.scheduleForm {
     1162    margin: 0 auto;
     1163    padding: 6px 5px;
     1164}
     1165.weeklyCalendarTable table td {
     1166    vertical-align: top;
     1167}
     1168.weeklyCalendarTable table.calendar th {
     1169    padding: 5px;
     1170    text-align: left;
     1171}
     1172.weeklyCalendarTable table.calendar td {
     1173    padding: 5px;
     1174    border-top: none;
     1175    text-align: left;
     1176}
     1177.weeklyCalendarTable table.calendar th.now,
     1178.weeklyCalendarTable table.calendar td.now {
     1179    background: #eeeeee;
     1180}
     1181.weeklyCalendarTable span.holiday {
     1182    color: #d92c49;
     1183}
     1184.weeklyCalendarTable div.moreInfo ul.moreInfo {
     1185        width: 11em;
     1186        margin: 6px 0 6px auto;
     1187}
    11621188
    11631189/*==============================================================================
  • OpenPNE/branches/prj/xhtmlcss/OpenPNE-2.11.4/webapp/modules/pc/templates/h_home.tpl

    r5953 r5955  
    318318({if $calendar})
    319319({* {{{ weeklyCalendarTable *})
    320 ({* #1943 *})({t_form_block m=pc a=do_h_home_insert_c_schedule})
    321 ({* #1943 *})<input type="hidden" name="w" value="({$w})" />
    322 ({* #1943 *})
    323 ({* #1943 *})<table border="0" cellspacing="0" cellpadding="0" style="width:440px;margin:0px auto;" class="border_07">
    324 ({* #1943 *})<tr>
    325 ({* #1943 *})<td style="width:7px;" class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square" /></td>
    326 ({* #1943 *})<td style="width:424px;" class="bg_00"><img src="./skin/dummy.gif" alt="dummy" style="width:424px;height:7px;" class="dummy" /></td>
    327 ({* #1943 *})<td style="width:7px;" class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square" /></td>
    328 ({* #1943 *})</tr>
    329 ({* #1943 *})<tr>
    330 ({* #1943 *})<td class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square" /></td>
    331 ({* #1943 *})<td class="bg_01" style="width:424px;">
    332 ({* #1943 *})({if $msg})
    333 ({* #1943 *})<div class="border_01 bg_02">
    334 ({* #1943 *})<div class="padding_s" align="left">
    335 ({* #1943 *})<span class="caution">({$msg})</span>
    336 ({* #1943 *})</div>
    337 ({* #1943 *})</div>
    338 ({* #1943 *})({/if})
    339 ({* #1943 *})<div class="border_01 bg_02 padding_s" align="left">
    340 ({* #1943 *})
    341 ({* #1943 *})予定 <input type="text" class="text" name="title" value="" size="24" />
    342 ({* #1943 *})<select name="start_date">
    343 ({* #1943 *})({foreach from=$calendar item=item})
    344 ({* #1943 *})<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
    345 ({* #1943 *})({/foreach})
    346 ({* #1943 *})</select>
    347 ({* #1943 *})<input type="submit" class="submit" value="追加" />
    348 ({* #1943 *})
    349 ({* #1943 *})&nbsp;
    350 ({* #1943 *})<a href="({t_url m=pc a=page_h_home})&amp;w=({$w-1})" title="前の週"><</a>
    351 ({* #1943 *})<a href="({t_url m=pc a=page_h_home})" title="今週">■</a>
    352 ({* #1943 *})<a href="({t_url m=pc a=page_h_home})&amp;w=({$w+1})" title="次の週">></a>
    353 ({* #1943 *})
    354 ({* #1943 *})</div>
    355 ({* #1943 *})<table border="0" cellspacing="0" cellpadding="0" style="width:424px;">
    356 ({* #1943 *})<tr>
    357 ({* #1943 *})({foreach from=$calendar item=item name=calendar})
    358 ({* #1943 *})<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">
    359 ({* #1943 *})({if $item.now})<span class="b_b">({/if})
    360 ({* #1943 *})
    361 ({* #1943 *})({if $smarty.foreach.calendar.first || $item.day == 1})
    362 ({* #1943 *})({$item.month})/({/if})
    363 ({* #1943 *})
    364 ({* #1943 *})({$item.day})<br />
    365 ({* #1943 *})(({$item.dayofweek}))<br />
    366 ({* #1943 *})
    367 ({* #1943 *})({if $item.now})</span>({/if})
    368 ({* #1943 *})
    369 ({* #1943 *})<div>
    370 ({* #1943 *})({* 祝日 *})
    371 ({* #1943 *})({foreach from=$item.holiday item=item_holiday})
    372 ({* #1943 *})({$item_holiday})<br />
    373 ({* #1943 *})({/foreach})
    374 ({* #1943 *})
    375 ({* #1943 *})({* 誕生日 *})
    376 ({* #1943 *})({foreach from=$item.birth item=item_birth})
    377 ({* #1943 *})<img src="({t_img_url_skin filename=icon_birthday})" class="icon" /><a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item_birth.c_member_id})">({$item_birth.nickname})さん</a><br />
    378 ({* #1943 *})({/foreach})
    379 ({* #1943 *})
    380 ({* #1943 *})({* イベント *})
    381 ({* #1943 *})({foreach from=$item.event item=item_event})
    382 ({* #1943 *})<img src="({if $item_event.is_join})({t_img_url_skin filename=icon_event_R})({else})({t_img_url_skin filename=icon_event_B})({/if})" class="icon" /><a href="({t_url m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=({$item_event.c_commu_topic_id})">({$item_event.name|t_truncate:20:".."})</a><br />
    383 ({* #1943 *})({/foreach})
    384 ({* #1943 *})
    385 ({* #1943 *})({* スケジュール *})
    386 ({* #1943 *})({foreach from=$item.schedule item=item_schedule})
    387 ({* #1943 *})<img src="({t_img_url_skin filename=icon_pen})" class="icon" /><a href="({t_url m=pc a=page_h_schedule})&amp;target_c_schedule_id=({$item_schedule.c_schedule_id})">({$item_schedule.title})</a><br />
    388 ({* #1943 *})({/foreach})
    389 ({* #1943 *})</div>
    390 ({* #1943 *})
    391 ({* #1943 *})</td>
    392 ({* #1943 *})({/foreach})
    393 ({* #1943 *})</tr>
    394 ({* #1943 *})</table>
    395 ({* #1943 *})
    396 ({* #1943 *})<div style="text-align:right;padding-right:20px;" class="border_01 bg_02 padding_s">
    397 ({* #1943 *})<img src="./skin/dummy.gif" alt="dummy" class="icon arrow_1" />
    398 ({* #1943 *})<a href="({t_url m=pc a=page_h_calendar})">月別カレンダー</a>
    399 ({* #1943 *})</div>
    400 ({* #1943 *})
    401 ({* #1943 *})</td>
    402 ({* #1943 *})<td class="bg_00"><img src="./skin/dummy.gif" alt="dummy" /></td>
    403 ({* #1943 *})</tr>
    404 ({* #1943 *})<tr>
    405 ({* #1943 *})<td class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square" /></td>
    406 ({* #1943 *})<td class="bg_00"><img src="./skin/dummy.gif" alt="dummy" style="width:424px;height:7px;" class="dummy" /></td>
    407 ({* #1943 *})<td class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square" /></td>
    408 ({* #1943 *})</tr>
    409 ({* #1943 *})</table>
    410 ({* #1943 *})({/t_form_block})
     320<div class="dparts weeklyCalendarTable"><div class="parts">
     321({t_form_block m=pc a=do_h_home_insert_c_schedule})
     322<input type="hidden" name="w" value="({$w})" />
     323<p class="scheduleForm">予定 <input type="text" class="input_text" name="title" value="" size="24" />
     324<select name="start_date">
     325({foreach from=$calendar item=item})
     326<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
     327({/foreach})
     328</select>
     329<input type="submit" class="submit" value="追加" />
     330<a href="({t_url m=pc a=page_h_home})&amp;w=({$w-1})" title="前の週"><</a>
     331<a href="({t_url m=pc a=page_h_home})" title="今週">■</a>
     332<a href="({t_url m=pc a=page_h_home})&amp;w=({$w+1})" title="次の週">></a>
     333</p>
     334({/t_form_block})
     335<table class="calendar">
     336<tr>
     337({foreach from=$calendar item=item name=calendar})
     338<th class="day({if $item.dayofweek == "日" || $item.holiday}) sun({elseif $item.dayofweek == "土"}) sat({/if})({if $item.now}) now({/if})">({strip})
     339({capture name=day})
     340({if $smarty.foreach.calendar.first || $item.day == 1})({$item.month})/({/if})({$item.day})<br />
     341(({$item.dayofweek}))
     342({/capture})
     343({if $item.now})<strong>({$smarty.capture.day|smarty:nodefaults})</strong>({else})({$smarty.capture.day|smarty:nodefaults})({/if})
     344({/strip})</th>
     345({/foreach})
     346</tr><tr>
     347({foreach from=$calendar item=item name=calendar})
     348<td class="day({if $item.now}) now({/if})">
     349({strip})
     350({* 祝日 *})
     351({foreach from=$item.holiday item=item_holiday})
     352<span class="holiday">({$item_holiday})</span><br />
     353({/foreach})
     354
     355({* 誕生日 *})
     356({foreach from=$item.birth item=item_birth})
     357<img src="({t_img_url_skin filename=icon_birthday})" alt="誕生日" /><a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item_birth.c_member_id})">({$item_birth.nickname})さん</a><br />
     358({/foreach})
     359
     360({* イベント *})
     361({foreach from=$item.event item=item_event})
     362<img src="({if $item_event.is_join})({t_img_url_skin filename=icon_event_R})({else})({t_img_url_skin filename=icon_event_B})({/if})" alt="イベント" /><a href="({t_url m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=({$item_event.c_commu_topic_id})">({$item_event.name|t_truncate:20:".."})</a><br />
     363({/foreach})
     364
     365({* スケジュール *})
     366({foreach from=$item.schedule item=item_schedule})
     367<img src="({t_img_url_skin filename=icon_pen})" alt="予定" /><a href="({t_url m=pc a=page_h_schedule})&amp;target_c_schedule_id=({$item_schedule.c_schedule_id})">({$item_schedule.title})</a><br />
     368({/foreach})
     369({/strip})
     370</td>
     371({/foreach})
     372</tr>
     373</table>
     374<div class="block moreInfo">
     375<ul class="moreInfo">
     376<li><a href="({t_url m=pc a=page_h_calendar})">月別カレンダー</a></li>
     377</ul>
     378</div>
     379</div></div>
    411380({* }}} *})
    412381({/if})
Note: See TracChangeset for help on using the changeset viewer.