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

Changeset 9559


Ignore:
Timestamp:
Dec 14, 2008, 1:12:04 PM (13 years ago)
Author:
ogawa
Message:

#3209:fixed templates

Location:
OpenPNE3/plugins/opDiaryPlugin/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/listFriendSuccess.php

    r9551 r9559  
    11<?php use_helper('Pagination', 'Date'); ?>
    22
    3 <div class="dparts searchResultList"><div class="parts">
     3<div class="dparts recentList"><div class="parts">
    44<div class="partsHeading"><h3>マイフレンドの日記</h3></div>
    55<?php if ($pager->getNbResults()): ?>
    66<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'diary/list?page=%d'); ?></p></div>
    7 <div class="block">
    87<?php foreach ($pager->getResults() as $diary): ?>
    9 <div class="ditem"><div class="item"><table><tbody><tr>
    10 <td rowspan="4" class="photo"></td>
    11 <th>ニックネーム</th><td><?php echo $diary->getMember()->getName() ?></td>
    12 </tr><tr>
    13 <th>タイトル</th><td><?php echo $diary->getTitle() ?></td>
    14 </tr><tr>
    15 <th>本文</th><td><?php echo $diary->getBody() ?></td>
    16 </tr><tr class="operation">
    17 <th>作成日時</th><td><span class="text"><?php echo format_datetime($diary->getCreatedAt(), 'f') ?></span> <span class="moreInfo"><?php echo link_to('詳細を見る', '@diary_by_id?id='.$diary->getId()) ?></span></td>
    18 </tr></tbody></table></div></div>
     8<dl>
     9<dt><?php echo format_datetime($diary->getCreatedAt(), 'f') ?></dt>
     10<dd><?php echo link_to($diary->getTitle(), '@diary_by_id?id='.$diary->getId()) ?> (<?php echo $diary->getMember()->getName() ?>)</dd>
     11</dl>
    1912<?php endforeach; ?>
    20 </div>
    2113<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'diary/list?page=%d'); ?></p></div>
    2214<?php else: ?>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/listMemberSuccess.php

    r9551 r9559  
    11<?php use_helper('Pagination', 'Date'); ?>
    22
    3 <div class="dparts searchResultList"><div class="parts">
     3<div class="dparts recentList"><div class="parts">
    44<div class="partsHeading"><h3><?php echo $member->getName() ?>さんの日記</h3></div>
    55<?php if ($pager->getNbResults()): ?>
    66<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'diary/list?page=%d'); ?></p></div>
    7 <div class="block">
    87<?php foreach ($pager->getResults() as $diary): ?>
    9 <div class="ditem"><div class="item"><table><tbody><tr>
    10 <td rowspan="4" class="photo"></td>
    11 <th>ニックネーム</th><td><?php echo $diary->getMember()->getName() ?></td>
    12 </tr><tr>
    13 <th>タイトル</th><td><?php echo $diary->getTitle() ?></td>
    14 </tr><tr>
    15 <th>本文</th><td><?php echo $diary->getBody() ?></td>
    16 </tr><tr class="operation">
    17 <th>作成日時</th><td><span class="text"><?php echo format_datetime($diary->getCreatedAt(), 'f') ?></span> <span class="moreInfo"><?php echo link_to('詳細を見る', '@diary_by_id?id='.$diary->getId()) ?></span></td>
    18 </tr></tbody></table></div></div>
     8<dl>
     9<dt><?php echo format_datetime($diary->getCreatedAt(), 'f') ?></dt>
     10<dd><?php echo link_to($diary->getTitle(), '@diary_by_id?id='.$diary->getId()) ?></dd>
     11</dl>
    1912<?php endforeach; ?>
    20 </div>
    2113<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'diary/list?page=%d'); ?></p></div>
    2214<?php else: ?>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/listSuccess.php

    r9558 r9559  
    2626<?php endif; ?>
    2727</div></div>
    28 
    29 <?php echo link_to('日記を作成する', 'diary/edit') ?>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/showSuccess.php

    r9527 r9559  
    1717</div></div>
    1818
    19 <?php echo link_to('この日記を削除する', 'diary/delete?id='.$diary->getId()) ?>
     19<?php if ($diary->getMember()->getId() === $sf_user->getMemberId()): ?>
     20<ul>
     21<li><?php echo link_to('この日記を編集する', 'diary/edit?id='.$diary->getId()) ?></li>
     22<li><?php echo link_to('この日記を削除する', 'diary/delete?id='.$diary->getId()) ?></li>
     23</ul>
     24<?php endif; ?>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/web/css/diary.css

    r9528 r9559  
    66.diaryDetailBox .partsHeading,
    77.diaryDetailBox dl,
     8.recentList dl,
    89.formTable .partsHeading,
    910.formTable div.checkList ul,
     
    1415.diaryDetailBox .partsHeading:after,
    1516.diaryDetailBox dl:after,
     17.recentList dl:after,
    1618.formTable .partsHeading:after,
    1719.formTable div.checkList ul:after,
     
    255257  vertical-align: top;
    256258}
     259
     260/*==============================================================================
     261 * 25. recentList(最新書き込みリスト)
     262 *----------------------------------------------------------------------------*/
     263.recentList dl
     264{
     265  border-top: 1px solid #CCCCCC;
     266}
     267.recentList dt
     268{
     269  float: left;
     270  width: 170px;
     271  padding: 5px;
     272  text-align: center;
     273}
     274.recentList dd
     275{
     276  zoom: 1;
     277  margin-left: 180px;
     278  padding: 5px;
     279  border-left: 1px solid #CCCCCC;
     280}
     281* html #Body .recentList dd
     282{
     283  height: 1.2em;
     284}
Note: See TracChangeset for help on using the changeset viewer.