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

Changeset 10534


Ignore:
Timestamp:
Jan 28, 2009, 2:07:59 PM (12 years ago)
Author:
nagasawa
Message:

#3501:fixed layout

Location:
OpenPNE3/plugins/opRankingPlugin/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/modules/ranking/templates/accessSuccess.php

    r10514 r10534  
    44{
    55  $member = $member_list['model'][$i];
    6   $list[$i][sprintf(__('No%s'), $member_list['rank'][$i])] = $member->getName() . sprintf(__(' :%saccess'), $member_list['count'][$i]);
     6  $list[$i][sprintf(__('No%s'), $member_list['rank'][$i])] =
     7    link_to($member->getName(), 'member/profile?id=' . $member->getId()) . sprintf(__(' :%saccess'), $member_list['count'][$i]);
    78  if ($member->getProfile('self_intro'))
    89  {
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/templates/_partsRankingLink.php

    r9953 r10534  
    1 <div class="dparts ranking_link">
    2 <div class="parts">
     1<div class="parts rankingSideNav">
    32
    4 <div class="caption"><?php echo __('Access number No1 member') ?></div>
    5 <div class="exposition"><?php echo __('It is a ranking of the member with a lot of numbers of yesterday of accesses.') ?>
    6 <div class="link"><?php echo link_to(__('Access number No1 member'), 'ranking/access') ?></div>
     3<div class="item">
     4<div class="partsHeading"><h3><?php echo __('Access number No1 member') ?></h3></div>
     5<p><?php echo __('It is a ranking of the member with a lot of numbers of yesterday of accesses.') ?></p>
     6<p class="link"><?php echo link_to(__('Access number No1 member'), 'ranking/access') ?></p>
    77</div>
    88
    9 <div class="caption"><?php echo __('Member of number No1 of friends') ?></div>
    10 <div class="exposition"><?php echo __('It is a ranking of the member with a lot of numbers of registered friends.') ?>
    11 <div class="link"><?php echo link_to(__('Member of number No1 of friends'), 'ranking/friend') ?></div>
     9<div class="item">
     10<div class="partsHeading"><h3><?php echo __('Member of number No1 of friends') ?></h3></div>
     11<p><?php echo __('It is a ranking of the member with a lot of numbers of registered friends.') ?></p>
     12<p class="link"><?php echo link_to(__('Member of number No1 of friends'), 'ranking/friend') ?></p>
    1213</div>
    1314
    14 <div class="caption"><?php echo __('Participation number No1 community') ?></div>
    15 <div class="exposition"><?php echo __('It is a ranking of a lot of communities of the participant that are.') ?>
    16 <div class="link"><?php echo link_to(__('Participation number No1 community'), 'ranking/community') ?></div>
     15<div class="item">
     16<div class="partsHeading"><h3><?php echo __('Participation number No1 community') ?></h3></div>
     17<p><?php echo __('It is a ranking of a lot of communities of the participant that are.') ?></p>
     18<p class="link"><?php echo link_to(__('Participation number No1 community'), 'ranking/community') ?></p>
    1719</div>
    1820
    19 <div class="caption"><?php echo __('No1 community at each upsurge') ?></div>
    20 <div class="exposition"><?php echo __('It is a ranking of the community with a lot of numbers of yesterday of bulletin board writing.') ?>
    21 <div class="link"><?php echo link_to(__('No1 community at each upsurge'), 'ranking/topic') ?></div>
     21<div class="item">
     22<div class="partsHeading"><h3><?php echo __('No1 community at each upsurge') ?></h3></div>
     23<p><?php echo __('It is a ranking of the community with a lot of numbers of yesterday of bulletin board writing.') ?></p>
     24<p class="link"><?php echo link_to(__('No1 community at each upsurge'), 'ranking/topic') ?></p>
    2225</div>
    2326
    2427</div>
    25 </div>
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/templates/_partsRankingResultList.php

    r10514 r10534  
    33
    44<?php if (!$key || ($key > 0 && $options['rank'][$key] != $options['rank'][$key - 1])): ?>
    5 <div class="dparts rankingResultList <?php ($options['rank'][$key] == 1) ? print('rank_top') : print('') ?>"><div class="ranking_parts">
     5<div class="dparts rankingList">
     6<div class="parts">
    67<?php if ($options['rank'][$key] == 1): ?>
    78<div class="partsHeading">
     
    910</div>
    1011<?php else: ?>
     12<div class="block">
    1113<div class="ditem">
     14<div class="item">
    1215<?php endif; ?>
    13 <div class="item">
     16<?php endif; ?>
     17
    1418<table>
    1519<tbody>
    16 <?php endif; ?>
    1720
    1821<tr>
    1922<td rowspan="<?php echo count($list[$key]) + 1 ?>" class="photo">
    20 <?php echo link_to(image_tag_sf_image($model->getImageFilename(), array('size' => '76x76')), sprintf($options['link_to_detail'], $model->getId())); ?>
     23<?php
     24  echo link_to(
     25    image_tag_sf_image(
     26      $model->getImageFilename(),
     27      array('size' => $options['rank'][$key] == 1 ? '120x120' : '76x76')),
     28      sprintf($options['link_to_detail'],
     29      $model->getId()
     30    )
     31  );
     32?>
    2133</td>
     34
     35<?php $firstItem = true ?>
     36<?php foreach ($list[$key] as $caption => $item) : ?>
     37<?php echo $firstItem ? '' : '<tr>' ?>
     38<th><?php echo $caption ?></th>
     39<td <?php echo $firstItem ? 'class="name"' : '' ?>><?php echo $item ?></td>
    2240</tr>
    23 
    24 <?php foreach ($list[$key] as $caption => $item) : ?>
    25 <tr>
    26 <th><?php echo $caption ?></th>
    27 <td><?php echo $item ?></td>
    28 </tr>
     41<?php $firstItem = false ?>
    2942<?php endforeach; ?>
    3043
    31 <?php if ($key == count($options['rank']) - 1 || $options['rank'][$key] != $options['rank'][$key + 1]): ?>
    3244</tbody>
    3345</table>
    34 </div>
     46
     47<?php if ($key == count($options['rank']) - 1 || $options['rank'][$key] != $options['rank'][$key + 1]): ?>
    3548<?php if ($options['rank'][$key] != 1): ?>
    36 </div>
     49</div></div></div>
    3750<?php endif; ?>
    38 </div>
    39 </div>
     51</div></div>
    4052<?php endif; ?>
    4153
  • OpenPNE3/plugins/opRankingPlugin/trunk/web/css/ranking.css

    r10228 r10534  
    11@charset "UTF-8";
    22
    3 #LayoutB #Sidemenu div {
    4   background-color: #FFFFFF;
     3/*------------------------------------------------------------------------------
     4 * rankingSideNav
     5 *----------------------------------------------------------------------------*/
     6.rankingSideNav {
     7  width: 150px;
     8  margin: 0 auto;
     9  border: 8px solid #CCCCCC;
     10}
     11.rankingSideNav .partsHeading {
     12  padding: 2px 4px;
     13  border-bottom: 1px solid #CCCCCC;
     14  background-image: none;
     15  text-align: center;
     16}
     17.rankingSideNav p {
     18  margin: 3px;
     19}
     20.rankingSideNav p.link {
     21  padding: 3px;
    522  border: 1px solid #CCCCCC;
    6   margin: 0;
    7   width: auto;
     23  text-align: right;
    824}
    925
    10 /*----------------------------------------------
    11  * パーツ枠
    12  *--------------------------------------------*/
    13 div.ranking_parts {
    14  border: solid 1px #CCCCCC;
     26/*----------------------------------------------------------------------------
     27 * rankingList
     28 *--------------------------------------------------------------------------*/
     29.rankingList .partsHeading p {
     30  margin: 0;
     31}
     32#Body .rankingList th:first-child,
     33#Body .rankingList th.first-child {
     34  border-left-width: 1px;
     35}
     36.rankingList td.photo {
     37  width: 120px;
     38  text-align: center;
     39}
     40.rankingList th {
     41  width: 75px;
     42  padding: 5px;
     43}
     44.rankingList td {
     45  padding: 5px;
     46}
     47.rankingList td.name {
     48  background: #EEEEEE;
     49}
     50.rankingList td.name a {
     51  font-weight: bold;
     52}
     53.rankingList .ditem {
     54  margin: 8px 15px;
     55  background: #EEEEEE;
     56}
     57.rankingList .item {
     58  background: #FFFFFF;
     59}
     60.rankingList .item td.photo {
     61  width: 90px;
    1562}
    1663
    17 /*----------------------------------------------
    18  * テーブル
    19  *--------------------------------------------*/
    20 div.ranking_parts table {
    21   table-layout: fixed;
    22 }
    23 div.ranking_parts th,
    24 div.ranking_parts td {
    25   border-width: 1px 0 0 1px;
    26   border-style: solid;
    27   border-color: #CCCCCC;
    28 }
    29 div.ranking_parts tr th:first-child,
    30 div.ranking_parts tr td:first-child,
    31 div.ranking_parts tr th.first-child,
    32 div.ranking_parts tr td.first-child {
    33   border-left-width: 0;
    34 }
    35 
    36 /*==============================================================================
    37  * rankingResultList
    38  *----------------------------------------------------------------------------*/
    39 .rankingResultList {
    40 }
    41 .rankingResultList .partsInfo {
    42         background: #EEEEEE;
    43 }
    44 .rankingResultList .ditem {
    45         margin: 8px 14px;
    46 }
    47 .rankingResultList td.photo {
    48         width: 90px;
    49         padding: 4px;
    50         border-left: none;
    51         text-align: center;
    52 }
    53 .rankingResultList th, .rankingResultList td {
    54         padding: 5px;
    55 }
    56 .rankingResultList th {
    57   width: 75px;
    58 }
    59 .rankingResultList td {
    60   width: 400px;
    61 }
    62 #Body .rankingResultList th:first-child,
    63 #Body .rankingResultList th.first-child {
    64         border-left-width: 1px;
    65 }
    66 .rankingResultList tr.operation th {
    67         padding-top: 0;
    68         padding-bottom: 0;
    69 }
    70 .rankingResultList tr.operation td {
    71         padding: 0;
    72 }
    73 .rankingResultList tr.operation span.text {
    74         float: left;
    75         display: block;
    76         width: 110px;
    77         padding: 5px;
    78         border-right: 1px solid #CCCCCC;
    79 }
    80 .rankingResultList tr.operation span.moreInfo{
    81         zoom: 1;
    82         display: block;
    83         margin-left: 121px;
    84         padding: 4px 0 3px;
    85         text-align: center;
    86 }
    87 .rankingResultList div.operation {
    88         text-align: center;
    89 }
    90 .rankingResultList tr.operation span.moreInfo img,
    91 .rankingResultList div.operation form,
    92 .rankingResultList div.operation fieldset {
    93         display: inline;
    94         vertical-align: top;
    95 }
    96 
    97 /*-----------------------------------------------------------------------------
    98  * ranking link
    99  *---------------------------------------------------------------------------*/
    100 #LayoutB #Left div.ranking_link {
    101   width: 150px;
    102   border: 8px solid #CCCCCC;
    103 }
    104 #LayoutB #Left div.ranking_link div.caption {
    105   background-color: #58B5F3;
    106   text-align: center;
    107   padding: 2px 2px 4px 4px;
    108   font-weight: bold;
    109 }
    110 #LayoutB #Left div.ranking_link div.exposition {
    111   padding: 2px;
    112 }
    113 #LayoutB #Left div.ranking_link div.link {
    114   border: solid 1px #58B5F3;
    115   text-align: right;
    116   padding: 2px;
    117 }
    118 /*----------------------------------------------------------------------------
    119  * ranking
    120  *--------------------------------------------------------------------------*/
    121 .ranking_ditem {
    122   margin-left: 0;
    123   padding-left: 0;
    124 }
    125 .rank_top td.photo {
    126   width: 130px;
    127 }
Note: See TracChangeset for help on using the changeset viewer.