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

Changeset 6635


Ignore:
Timestamp:
Apr 18, 2008, 8:57:02 PM (12 years ago)
Author:
ogawa
Message:

#1943:weeklyCalendarTableを修正

Location:
OpenPNE/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/public_html/xhtml_style.php

    r6615 r6635  
    368368 * カレンダー
    369369 *--------------------------------------------*/
    370 table.calendar th {
    371         text-align: center;
    372 }
    373 table.calendar td {
    374         text-align: right;
    375 }
    376 th.sun {
     370.calendar .sun,
     371.calendar .holiday {
    377372        color: #d92c49;
    378373}
    379 th.sat {
     374.calendar .sat {
    380375        color: #2c65d9;
    381376}
     
    726721.sideNav .calendar th {
    727722        background-color: #<?php echo $colors[7]; ?>;
     723        text-align: center;
    728724}
    729725.sideNav .calendar td {
    730726        padding: 1px 2px;
     727        text-align: right;
    731728}
    732729.sideNav .list {
     
    16231620
    16241621/*==============================================================================
     1622 * 32. weeklyCalendarTable(週間カレンダーテーブル)
     1623 *----------------------------------------------------------------------------*/
     1624#Body .weeklyCalendarTable .parts {
     1625        border-top: none;
     1626}
     1627.weeklyCalendarTable div.block {
     1628        padding: 5px;
     1629}
     1630.weeklyCalendarTable .input_submit {
     1631        margin-right: 8px;
     1632}
     1633.weeklyCalendarTable .calendar td {
     1634        padding: 5px;
     1635        vertical-align: top;
     1636}
     1637.weeklyCalendarTable .calendar .today {
     1638        background: #<?php echo $colors[7]; ?>;
     1639}
     1640.weeklyCalendarTable .calendar .today p.day {
     1641        font-weight: bold;
     1642}
     1643.weeklyCalendarTable ul.moreInfo {
     1644        margin: 0 2px 0 auto;
     1645        width: 9em;
     1646}
     1647
     1648/*==============================================================================
    16251649 *
    16261650 *----------------------------------------------------------------------------*/
     
    17171741}
    17181742
    1719 /*==============================================================
    1720  * 32. weeklyCalendarTable(週間カレンダーテーブル)
    1721  *------------------------------------------------------------*/
    1722 .weeklyCalendarTable p.scheduleForm {
    1723         margin: 0 auto;
    1724         padding: 6px 5px;
    1725 }
    1726 .weeklyCalendarTable table td {
    1727         vertical-align: top;
    1728 }
    1729 .weeklyCalendarTable table.calendar th {
    1730         padding: 5px;
    1731         text-align: left;
    1732 }
    1733 .weeklyCalendarTable table.calendar td {
    1734         padding: 5px;
    1735         border-top: none;
    1736         text-align: left;
    1737 }
    1738 .weeklyCalendarTable table.calendar th.now,
    1739 .weeklyCalendarTable table.calendar td.now {
    1740         background: #<?php echo $colors[7]; ?>;
    1741 }
    1742 .weeklyCalendarTable span.holiday {
    1743         color: #d92c49;
    1744 }
    1745 .weeklyCalendarTable div.moreInfo ul.moreInfo {
    1746         width: 11em;
    1747         margin: 6px 0 6px auto;
    1748 }
    1749 
    17501743/*==============================================================================
    17511744 *
  • OpenPNE/trunk/webapp/modules/pc/templates/h_home.tpl

    r6620 r6635  
    312312({* {{{ weeklyCalendarTable *})
    313313<div class="dparts weeklyCalendarTable"><div class="parts">
     314<div class="block">
    314315({t_form_block m=pc a=do_h_home_insert_c_schedule})
    315316<input type="hidden" name="w" value="({$w})" />
    316 <p class="scheduleForm">予定 <input type="text" class="input_text" name="title" value="" size="24" />
     317<label for="title">予定</label> <input type="text" class="input_text" name="title" id="title" value="" size="24" />
    317318<select name="start_date">
    318319({foreach from=$calendar item=item})
     
    324325<a href="({t_url m=pc a=page_h_home})" title="今週">■</a>
    325326<a href="({t_url m=pc a=page_h_home})&amp;w=({$w+1})" title="次の週">></a>
    326 </p>
    327327({/t_form_block})
     328</div>
     329
    328330<table class="calendar">
    329331<tr>
    330332({foreach from=$calendar item=item name=calendar})
    331 <th class="day({if $item.dayofweek == "日" || $item.holiday}) sun({elseif $item.dayofweek == "土"}) sat({/if})({if $item.now}) now({/if})">({strip})
    332 ({capture name=day})
     333({strip})
     334<td({if $item.now}) class="today"({/if})>
     335<p class="day({if $item.dayofweek == "日"}) sun({elseif $item.dayofweek == "土"}) sat({/if})({if $item.holiday}) holiday({/if})">
    333336({if $smarty.foreach.calendar.first || $item.day == 1})({$item.month})/({/if})({$item.day})<br />
    334337(({$item.dayofweek}))
    335 ({/capture})
    336 ({if $item.now})<strong>({$smarty.capture.day|smarty:nodefaults})</strong>({else})({$smarty.capture.day|smarty:nodefaults})({/if})
    337 ({/strip})</th>
    338 ({/foreach})
    339 </tr><tr>
    340 ({foreach from=$calendar item=item name=calendar})
    341 <td class="day({if $item.now}) now({/if})">
    342 ({strip})
    343 ({* 祝日 *})
    344338({foreach from=$item.holiday item=item_holiday})
    345 <span class="holiday">({$item_holiday})</span><br />
    346 ({/foreach})
    347 
     339<br />({$item_holiday})
     340({/foreach})
     341</p>
    348342({* 誕生日 *})
    349343({foreach from=$item.birth item=item_birth})
    350344({if $item_birth.public_flag_birth_month_day != "private" || $c_member.c_member_id == $item_birth.c_member_id})
    351 <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 />
     345<p><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></p>
    352346({/if})
    353347({/foreach})
     
    355349({* イベント *})
    356350({foreach from=$item.event item=item_event})
    357 <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 />
     351<p><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></p>
    358352({/foreach})
    359353
    360354({* スケジュール *})
    361355({foreach from=$item.schedule item=item_schedule})
    362 <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 />
    363 ({/foreach})
     356<p><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></p>
     357({/foreach})
     358</td>
    364359({/strip})
    365 </td>
    366 ({/foreach})
    367 </tr>
    368 </table>
     360({/foreach})
     361</tr>
     362</table>
     363
    369364<div class="block moreInfo">
    370365<ul class="moreInfo">
     
    372367</ul>
    373368</div>
     369
    374370</div></div>
    375371({* }}} *})
  • OpenPNE/trunk/webapp_biz/modules/pc/templates/h_home.tpl

    r6625 r6635  
    295295({if $inc_entry_point[8]})({$inc_entry_point[8]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})({/if})
    296296
    297 ({if $calendar})
    298 ({* {{{ weeklyCalendarTable *})
    299 <div class="dparts weeklyCalendarTable"><div class="parts">
    300 ({t_form_block m=pc a=do_h_home_insert_c_schedule})
    301 <input type="hidden" name="w" value="({$w})" />
    302 <p class="scheduleForm">予定 <input type="text" class="input_text" name="title" value="" size="24" />
    303 <select name="start_date">
    304 ({foreach from=$calendar item=item})
    305 <option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
    306 ({/foreach})
    307 </select>
    308 <input type="submit" class="input_submit" value="追加" />
    309 <a href="({t_url m=pc a=page_h_home})&amp;w=({$w-1})" title="前の週"><</a>
    310 <a href="({t_url m=pc a=page_h_home})" title="今週">■</a>
    311 <a href="({t_url m=pc a=page_h_home})&amp;w=({$w+1})" title="次の週">></a>
    312 </p>
    313 ({/t_form_block})
    314 <table class="calendar">
    315 <tr>
    316 ({foreach from=$calendar item=item name=calendar})
    317 <th class="day({if $item.dayofweek == "日" || $item.holiday}) sun({elseif $item.dayofweek == "土"}) sat({/if})({if $item.now}) now({/if})">({strip})
    318 ({capture name=day})
    319 ({if $smarty.foreach.calendar.first || $item.day == 1})({$item.month})/({/if})({$item.day})<br />
    320 (({$item.dayofweek}))
    321 ({/capture})
    322 ({if $item.now})<strong>({$smarty.capture.day|smarty:nodefaults})</strong>({else})({$smarty.capture.day|smarty:nodefaults})({/if})
    323 ({/strip})</th>
    324 ({/foreach})
    325 </tr><tr>
    326 ({foreach from=$calendar item=item name=calendar})
    327 <td class="day({if $item.now}) now({/if})">
    328 ({strip})
    329 ({* 祝日 *})
    330 ({foreach from=$item.holiday item=item_holiday})
    331 <span class="holiday">({$item_holiday})</span><br />
    332 ({/foreach})
    333 
    334 ({* 誕生日 *})
    335 ({foreach from=$item.birth item=item_birth})
    336 ({if $item_birth.public_flag_birth_month_day != "private" || $c_member.c_member_id == $item_birth.c_member_id})
    337 <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 />
    338 ({/if})
    339 ({/foreach})
    340 
    341 ({* イベント *})
    342 ({foreach from=$item.event item=item_event})
    343 <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 />
    344 ({/foreach})
    345 
    346 ({* スケジュール *})
    347 ({foreach from=$item.schedule item=item_schedule})
    348 <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 />
    349 ({/foreach})
    350 ({/strip})
    351 </td>
    352 ({/foreach})
    353 </tr>
    354 </table>
    355 <div class="block moreInfo">
    356 <ul class="moreInfo">
    357 <li><a href="({t_url m=pc a=page_h_calendar})">月別カレンダー</a></li>
    358 </ul>
    359 </div>
    360 </div></div>
    361 ({* }}} *})
    362 ({/if})
    363 
    364297({if $inc_entry_point[9]})({$inc_entry_point[9]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})({/if})
    365298
Note: See TracChangeset for help on using the changeset viewer.