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

Changeset 9909


Ignore:
Timestamp:
Jan 5, 2009, 4:02:50 PM (12 years ago)
Author:
nagasawa
Message:

fixed layout and community ranking

Location:
OpenPNE3/plugins/opRankingPlugin/trunk
Files:
19 added
13 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/i18n/messages.ja.xml

    r9879 r9909  
    77      <target>アクセス数No1メンバーは%sさんです</target>
    88      </trans-unit>
     9
    910      <trans-unit id="2">
    10       <source> :%saccess</source>
    11       <target>さん :%sアクセス</target>
     11      <source>The No1 of the number of Friends member is %s</source>
     12      <target>マイフレンド数No1メンバーは%sさんです</target>
    1213      </trans-unit>
    1314
    1415      <trans-unit id="3">
    15       <source>The No1 of the number of access member</source>
    16       <target>アクセス数No1メンバー</target>
     16      <source>The No1 of the number of community member is %s</source>
     17      <target>参加人数No1コミュニティは『%s』です</target>
    1718      </trans-unit>
    18       <trans-unit id="4">
    19       <source>all member is 0 access</source>
    20       <target>全てのメンバーは0アクセスです</target>
    21       </trans-unit>
    22 
    23       <trans-unit id="5">
    24       <source>The No1 of the number of Friends member is %s</source>
    25       <target>マイフレンド数No1メンバーは%sさんです</target>
    26       </trans-unit>
    27       <trans-unit id="6">
    28       <source>No%s</source>
    29       <target>第%s位</target>
    30       </trans-unit>
    31       <trans-unit id="7">
    32       <source> :%smember</source>
    33       <target>さん :%s人</target>
    34       </trans-unit>
    35 
    36       <trans-unit id="8">
    37       <source>The No1 of the number of Friends member</source>
    38       <target>マイフレンド数No1メンバー</target>
    39       </trans-unit>
    40       <trans-unit id="9">
    41       <source>The Friends member</source>
    42       <target>マイフレンドがいるメンバーがいません</target>
    43       </trans-unit>
    44 
    45       <trans-unit id="10">
    46       <source>The No1 of the number of community member is %s</source>
    47       <target>参加人数No1コミュニティは%sさんです</target>
    48       </trans-unit>
    49 
    50       <trans-unit id="11">
    51       <source>The No1 of the number of community member</source>
    52       <target>参加人数No1コミュニティ</target>
    53       </trans-unit>
    54 
    55       <trans-unit id="12">
    56       <source>No community</source>
    57       <target>コミュニティがありません</target>
    58       </trans-unit>
    59 
    6019
    6120    </body>
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/modules/ranking/config/view.yml

    r9879 r9909  
    11all:
    22  stylesheets: [/plugins/opRankingPlugin/css/ranking]
     3  layout: layoutB
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/modules/ranking/templates/accessError.php

    r9879 r9909  
    11<?php
     2slot('op_sidemenu');
    23include_parts('rankingLink', 'RankingLink');
     4end_slot();
    35include_box('access_list', __('The No1 of the number of access member'), __('all member is 0 access'));
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/modules/ranking/templates/accessSuccess.php

    r9879 r9909  
    1616);
    1717
     18slot('op_sidemenu');
    1819include_parts('rankingLink', 'RankingLink');
     20end_slot();
    1921include_parts('rankingResultList', 'RankingResultList', $options);
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/modules/ranking/templates/communityError.php

    r9879 r9909  
    11<?php
     2slot('op_sidemenu');
    23include_parts('rankingLink', 'RankingLink');
     4end_slot();
    35include_box('community_list', __('The No1 of the number of community member'), __('No community'));
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/modules/ranking/templates/communitySuccess.php

    r9879 r9909  
    55  $community = $ranking['model'][$i];
    66  $list[$i][sprintf(__('No%s'), $ranking['rank'][$i])] = $community->getName() . sprintf(__(' :%smember'), $ranking['count'][$i]);
    7   $list[$i][__('category')] = "";
    8   $list[$i][__('manager')] = "";
    9   $list[$i][__('description')] = CommunityConfigPeer::retrieveByNameandCommunityId('description', $community->getId());
     7  $list[$i][__('Category')] = "none";
     8  $list[$i][__('Manager')] = $ranking['admin'][$i]->getName();
     9  $list[$i][__('Description')] = nl2br($community->getConfig('description'));
    1010}
    1111
    1212$options = array(
    13   'title'          => sprintf(__('The No1 of the number of community is %s'), $ranking['model'][0]->getName()),
    14   'link_to_detail' => 'member/profile?id=%d',
     13  'title'          => sprintf(__('The No1 of the number of community member is %s'), $ranking['model'][0]->getName()),
     14  'link_to_detail' => 'community/%d',
    1515  'model'          => $ranking['model'],
    1616  'list'           => $list,
     
    1818);
    1919
     20slot('op_sidemenu');
    2021include_parts('rankingLink', 'RankingLink');
     22end_slot();
    2123include_parts('rankingResultList', 'RankingResultList', $options);
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/modules/ranking/templates/friendError.php

    r9879 r9909  
    11<?php
     2slot('op_sidemenu');
    23include_parts('rankingLink', 'RankingLink');
    3 include_box('friend_list', __('マイフレンド数No1メンバー'), __('マイフレンドがいるメンバーがいません'));
     4end_slot();
     5include_box('friend_list', __('The No1 of the number of MyFriend member'), __('There is no member who has a MyFriend'));
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/modules/ranking/templates/friendSuccess.php

    r9879 r9909  
    1616);
    1717
     18slot('op_sidemenu');
    1819include_parts('rankingLink', 'RankingLink');
     20end_slot();
    1921include_parts('rankingResultList', 'RankingResultList', $options);
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/templates/_partsRankingLink.php

    r9879 r9909  
    22<div class="parts">
    33
    4 <div class="caption"><?php echo __('アクセス数no1') ?></div>
    5 <div class="exposition"><?php echo __('昨日のアクセスが多かったメンバーのランキングです。') ?>
    6 <div class="link"><?php echo link_to(__('アクセス数No1'), 'ranking/access') ?></div>
     4<div class="caption"><?php echo __('Number No1 of accesses') ?></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(__('Number No1 of accesses'), 'ranking/access') ?></div>
    77</div>
    88
    9 <div class="caption"><?php echo __('マイフレンド数no1') ?></div>
    10 <div class="exposition"><?php echo __('登録されているマイフレンドの数が多いメンバーのランキングです。') ?>
    11 <div class="link"><?php echo link_to(__('マイフレンド数No1'), 'ranking/friend') ?></div>
     9<div class="caption"><?php echo __('Number No1 of my 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(__('Number No1 of my friends'), 'ranking/friend') ?></div>
    1212</div>
    1313
    14 <div class="caption"><?php echo __('参加人数No1コミュニティ') ?></div>
    15 <div class="exposition"><?php echo __('参加者の多いコミュニティのランキングです。') ?>
    16 <div class="link"><?php echo link_to(__('参加人数No1'), 'ranking/community') ?></div>
     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>
    1717</div>
    1818
    19 <div class="caption"><?php echo __('盛り上がり度No1コミュニティ') ?></div>
    20 <div class="exposition"><?php echo __('昨日の掲示板書き込み数が多かったコミュニティのランキングです。') ?>
    21 <div class="link"><?php echo link_to(__('盛り上がり度No1'), 'ranking/community') ?></div>
     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/community') ?></div>
    2222</div>
    2323
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/templates/_partsRankingResultList.php

    r9879 r9909  
    22
    33<?php if (!$key || ($key > 0 && $option['rank'][$key] != $option['rank'][$key - 1])): ?>
    4 <div class="dparts rankingResultList"><div class="ranking_parts">
     4<div class="dparts rankingResultList <?php ($option['rank'][$key] == 1) ? print('rank_top') : print('') ?>"><div class="ranking_parts">
    55<?php if ($option['rank'][$key] == 1): ?>
    66<div class="partsHeading">
  • OpenPNE3/plugins/opRankingPlugin/trunk/i18n/messages.ja.xml

    r9879 r9909  
    88      </trans-unit>
    99
     10      <trans-unit id="2">
     11      <source>Number No1 of accesses</source>
     12      <target>アクセス数No1</target>
     13      </trans-unit>
     14      <trans-unit id="3">
     15      <source>It is a ranking of the member with a lot of numbers of yesterday of accesses.</source>
     16      <target>昨日のアクセスが多かったメンバーのランキングです。</target>
     17      </trans-unit>
     18      <trans-unit id="4">
     19      <source>Number No1 of my friends</source>
     20      <target>マイフレンド数No1</target>
     21      </trans-unit>
     22      <trans-unit id="6">
     23      <source>It is a ranking of the member with a lot of numbers of registered friends.</source>
     24      <target>登録されているマイフレンドの数が多いメンバーのランキングです。</target>
     25      </trans-unit>
     26      <trans-unit id="7">
     27      <source>Participation number No1 community</source>
     28      <target>参加人数No1コミュニティ</target>
     29      </trans-unit>
     30      <trans-unit id="8">
     31      <source>It is a ranking of a lot of communities of the participant that are.</source>
     32      <target>参加者の多いコミュニティのランキングです。</target>
     33      </trans-unit>
     34      <trans-unit id="9">
     35      <source>No1 community at each upsurge</source>
     36      <target>盛り上がり度No1コミュニティ</target>
     37      </trans-unit>
     38      <trans-unit id="10">
     39      <source>It is a ranking of the community with a lot of numbers of yesterday of bulletin board writing.</source>
     40      <target>昨日の掲示板書き込み数が多かったコミュニティのランキングです。</target>
     41      </trans-unit>
     42
     43      <trans-unit id="11">
     44      <source> :%saccess</source>
     45      <target>さん :%sアクセス</target>
     46      </trans-unit>
     47
     48      <trans-unit id="12">
     49      <source>The No1 of the number of access member</source>
     50      <target>アクセス数No1メンバー</target>
     51      </trans-unit>
     52      <trans-unit id="13">
     53      <source>all member is 0 access</source>
     54      <target>全てのメンバーは0アクセスです</target>
     55      </trans-unit>
     56
     57      <trans-unit id="14">
     58      <source>No%s</source>
     59      <target>第%s位</target>
     60      </trans-unit>
     61      <trans-unit id="15">
     62      <source>Category</source>
     63      <target>カテゴリ</target>
     64      </trans-unit>
     65      <trans-unit id="16">
     66      <source>Manager</source>
     67      <target>管理者</target>
     68      </trans-unit>
     69      <trans-unit id="17">
     70      <source>Description</source>
     71      <target>紹介文</target>
     72      </trans-unit>
     73
     74      <trans-unit id="18">
     75      <source> :%smember</source>
     76      <target>さん :%s人</target>
     77      </trans-unit>
     78
     79      <trans-unit id="19">
     80      <source>The No1 of the number of MyFriend member</source>
     81      <target>マイフレンド数No1メンバー</target>
     82      </trans-unit>
     83      <trans-unit id="20">
     84      <source>There is no member who has a MyFriend</source>
     85      <target>マイフレンドがいるメンバーがいません</target>
     86      </trans-unit>
     87
     88      <trans-unit id="21">
     89      <source>The No1 of the number of community member</source>
     90      <target>参加人数No1コミュニティ</target>
     91      </trans-unit>
     92      <trans-unit id="22">
     93      <source>No community</source>
     94      <target>コミュニティがありません</target>
     95      </trans-unit>
     96
    1097    </body>
    1198  </file>
  • OpenPNE3/plugins/opRankingPlugin/trunk/lib/model/RankingPeer.php

    r9879 r9909  
    9292    $list['count'] = array();
    9393    $list['model'] = array();
     94    $list['admin'] = array();
    9495    for ($i = 0, $rank = 1, $cnt = -1; $row = $stmt->fetch(PDO::FETCH_NUM); $i++)
    9596    {
     
    9899      $list['model'][$i] = CommunityPeer::retrieveByPK($row[1]);
    99100      $list['rank'][$i] = $rank;
     101      $list['admin'][$i] = CommunityMemberPeer::getCommunityAdmin($row[1]);
     102      $list['admin'][$i] = MemberPeer::retrieveByPk($list['admin'][$i]->getMemberId());
    100103    }
    101104    $list['number'] = $i;
  • OpenPNE3/plugins/opRankingPlugin/trunk/web/css/ranking.css

    r9879 r9909  
    11@charset "UTF-8";
     2
     3#LayoutB #Sidemenu div {
     4  background-color: #FFFFFF;
     5  border: 1px solid #CCCCCC;
     6  margin: 0;
     7  width: auto;
     8}
    29
    310/*----------------------------------------------
     
    1320div.ranking_parts table {
    1421  table-layout: fixed;
    15   width: 100%;
    1622}
    1723div.ranking_parts th,
     
    3238 *----------------------------------------------------------------------------*/
    3339.rankingResultList {
    34   width: 460px;
    35   float: right;
    3640}
    3741.rankingResultList .partsInfo {
     
    5155}
    5256.rankingResultList th {
    53         width: 75px;
     57  width: 75px;
    5458}
    5559.rankingResultList td {
    56   width: 75%;
     60  width: 400px;
    5761}
    5862#Body .rankingResultList th:first-child,
     
    9498 * ranking link
    9599 *---------------------------------------------------------------------------*/
    96 .ranking_link {
     100#LayoutB #Sidemenu div.ranking_link {
    97101  width: 150px;
    98   float: left;
    99102}
    100 .ranking_link div.caption {
     103#LayoutB #Sidemenu div.ranking_link div.caption {
    101104  background-color: #58B5F3;
    102105  text-align: center;
    103106  padding: 2px 2px 4px 4px;
     107  font-weight: bold;
    104108}
    105 .ranking_link div.exposition {
     109#LayoutB #Sidemenu div.ranking_link div.exposition {
    106110  padding: 2px;
    107111}
    108 .ranking_link div.link {
     112#LayoutB #Sidemenu div.ranking_link div.link {
    109113  border: solid 1px #58B5F3;
    110114  text-align: right;
     
    118122  padding-left: 0;
    119123}
     124.rank_top td.photo {
     125  width: 130px;
     126}
Note: See TracChangeset for help on using the changeset viewer.