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

Changeset 3308


Ignore:
Timestamp:
Jun 20, 2007, 12:30:42 AM (12 years ago)
Author:
ishida
Message:

bug fix

Location:
OpenPNE/branches/maruyama/prj_message/webapp_ext/modules/pc
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/maruyama/prj_message/webapp_ext/modules/pc/do/h_home_update_message.php

    r3214 r3308  
    2828    function ext_update_prof_message($c_member_id, $prof_message, $message_datetime)
    2929    {
    30         $prof_message_id = 11;
    31         $message_datetime_id = 12;
     30        $sql = 'SELECT c_profile_id FROM c_profile WHERE name = ? ';
     31        $prof_message_id = db_get_one($sql, array('message'));
     32        $message_datetime_id = db_get_one($sql, array('message_datetime'));
    3233       
    3334        //function cache削除
  • OpenPNE/branches/maruyama/prj_message/webapp_ext/modules/pc/page/f_home.php

    r3214 r3308  
    11<?php
    22/**
    3  * @copyright 2005-2006 OpenPNE Project
     3 * @copyright 2005-2007 OpenPNE Project
    44 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
    55 */
     
    7474        $this->set('c_friend_count', db_friend_count_friends($target_c_member_id));
    7575        $this->set('user_count', db_commu_count_c_commu4c_member_id($target_c_member_id));
     76
     77        $this->set('common_commu_count', count(db_common_commu_common_commu_id4c_member_id($target_c_member_id,$u)));
     78       
    7679        $c_commu_list = db_commu_c_commu_list4c_member_id_2($target_c_member_id, 9);
    7780        $this->set('c_commu_list', $c_commu_list);
     
    8487        $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id));
    8588
    86         //PNEPOINT
    87         $point = db_point_get_point($target_c_member_id);
    88         $this->set("point", $point);
     89        if (OPENPNE_USE_POINT_RANK) {
     90            // ポイント
     91            $point = db_point_get_point($target_c_member_id);
     92            $this->set("point", $point);
    8993
    90         //rank
    91         $this->set("rank", db_point_get_rank4point($point));
     94            // ランク
     95            $this->set("rank", db_point_get_rank4point($point));
     96        }
    9297
    9398        // inc_entry_point
    94         $this->set('inc_entry_point', fetch_inc_entry_point_f_home($this->getView()));
     99        $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'f_home'));
    95100
    96101        // ---
  • OpenPNE/branches/maruyama/prj_message/webapp_ext/modules/pc/page/h_home.php

    r3214 r3308  
    11<?php
    22/**
    3  * @copyright 2005-2006 OpenPNE Project
     3 * @copyright 2005-2007 OpenPNE Project
    44 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
    55 */
     
    5454        /// 左側 ///
    5555
    56         // メンバ情報
     56        // メンバ情報
    5757        $c_member = db_member_c_member4c_member_id($u);
    5858        $this->set('c_member', $c_member);
     
    9595        /// その他 ///
    9696
    97         //PNEPOINT
    98         $point = db_point_get_point($u);
    99         $this->set("point", $point);
     97        if (OPENPNE_USE_POINT_RANK) {
     98            // ポイント
     99            $point = db_point_get_point($u);
     100            $this->set("point", $point);
    100101
    101         //rank
    102         $this->set("rank", db_point_get_rank4point($point));
     102            // ランク
     103            $this->set("rank", db_point_get_rank4point($point));
     104        }
    103105
    104106        // 紹介文
     
    130132            $this->set('bookmark_blog_list', db_bookmark_blog_list($u, 5));
    131133
    132             //お気に入りのメンバ
     134            //お気に入りのメンバ
    133135            $bookmark_member_list = db_bookmark_member_list($u, 9);
    134136            $this->set('bookmark_member_list', $bookmark_member_list);
     
    143145
    144146        // inc_entry_point
    145         $this->set('inc_entry_point', fetch_inc_entry_point_h_home($this->getView()));
     147        $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'h_home'));
    146148
    147149        return 'success';
  • OpenPNE/branches/maruyama/prj_message/webapp_ext/modules/pc/page/h_prof.php

    r3214 r3308  
    11<?php
    22/**
    3  * @copyright 2005-2006 OpenPNE Project
     3 * @copyright 2005-2007 OpenPNE Project
    44 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
    55 */
     
    4444        $this->set('days_birthday', db_member_count_days_birthday4c_member_id($target_c_member_id));
    4545
    46         //PNEPOINT
    47         $point = db_point_get_point($u);
    48         $this->set("point", $point);
     46        if (OPENPNE_USE_POINT_RANK) {
     47            // ポイント
     48            $point = db_point_get_point($target_c_member_id);
     49            $this->set("point", $point);
    4950
    50         //rank
    51         $this->set("rank", db_point_get_rank4point($point));
     51            // ランク
     52            $this->set("rank", db_point_get_rank4point($point));
     53        }
    5254
    5355        // inc_entry_point
    54         $this->set('inc_entry_point', fetch_inc_entry_point_f_home($this->getView()));
     56        $this->set('inc_entry_point', fetch_inc_entry_point($this->getView(), 'f_home'));
    5557
    5658        return 'success';
  • OpenPNE/branches/maruyama/prj_message/webapp_ext/modules/pc/templates/h_home.tpl

    r3214 r3308  
    2323<img src="({t_img_url_skin filename=icon_search})" alt="search" style="width:62px;height:20px;" class="icon">
    2424<input type="text" size="30" name="q" class="text border_01" value="" style="width:180px;">
    25 <input type="image" src="({t_img_url_skin filename=button_search_1})" value="diary" alt="日記" border="0" name="diary" class="button" style="width:62px;height:20px;">
    26 <input type="image" src="({t_img_url_skin filename=button_search_2})" value="community" alt="コミュニティ" border="0" name="community" class="button" style="width:62px;height:20px;">
    27 <input type="image" src="({t_img_url_skin filename=button_search_4})" value="message" alt="メッセージ" border="0" name="message" class="button" style="width:62px;height:20px;">
     25<input type="image" src="({t_img_url_skin filename=button_search_1})" value="diary" alt="日記" name="diary" class="button" style="width:62px;height:20px;border:none;">
     26<input type="image" src="({t_img_url_skin filename=button_search_2})" value="community" alt="コミュニティ" name="community" class="button" style="width:62px;height:20px;border:none;">
     27<input type="image" src="({t_img_url_skin filename=button_search_4})" value="message" alt="メッセージ" name="message" class="button" style="width:62px;height:20px;border:none;">
    2828({if $smarty.const.USE_EXTRA_SERVICE})
    29 <input type="image" src="({t_img_url_skin filename=button_search_3})" value="web" alt="web" border="0" name="web" class="button" style="width:62px;height:20px;">
     29<input type="image" src="({t_img_url_skin filename=button_search_3})" value="web" alt="web" name="web" class="button" style="width:62px;height:20px;border:none;">
    3030({/if})
    3131</td>
     
    8181<td class="padding_s">
    8282
    83 ({$site_info|smarty:nodefaults|default:"&nbsp;"})
     83({$site_info|smarty:nodefaults|default:"&nbsp;"|t_url2cmd:'info'|t_cmd:'info'})
    8484
    8585</td>
     
    157157<tr>
    158158<td class="container">
    159 ({$inc_entry_point[3]|smarty:nodefaults})
     159({$inc_entry_point[3]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    160160</td>
    161161</tr>
     
    168168
    169169({if $inc_entry_point[4]})
    170 ({$inc_entry_point[4]|smarty:nodefaults})
     170({$inc_entry_point[4]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    171171({/if})
    172172
     
    227227<tr>
    228228<td align="center" class="bg_05 c_04">
     229
     230({if ($smarty.const.OPENPNE_DISP_RANK && $rank) || ($smarty.const.OPENPNE_DISP_POINT && $point)})
     231<img src="./skin/dummy.gif" class="v_spacer_m">
     232({if $smarty.const.OPENPNE_DISP_RANK && $rank})
     233<img src="({t_img_url filename=$rank.image_filename})" class="pict" alt="({$rank.name})" style="margin:2px"><br>
     234({/if})
     235({if $smarty.const.OPENPNE_DISP_POINT && $point})
     236({$point}) Point<br>
     237({/if})
     238({/if})
     239
    229240<img src="./skin/dummy.gif" class="v_spacer_m">
    230241({$c_member.nickname})さん (({$c_friend_count}))
     242
    231243</td>
    232244</tr>
     
    250262
    251263({if $inc_entry_point[5]})
    252 ({$inc_entry_point[5]|smarty:nodefaults})
     264({$inc_entry_point[5]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    253265({/if})
    254266
     
    282294({if $key > 0})&({/if})
    283295pne_item({$key+1})_id=({$item.c_member_id})
    284 &pne_item({$key+1})_name=({$item.nickname|t_truncate:12:'..'|escape:'url'})
     296&pne_item({$key+1})_name=({$item.nickname|t_truncate:12:'..'|escape:url|smarty:nodefaults})
    285297&pne_item({$key+1})_linkurl=({t_url m=pc a=page_f_home _urlencode=true _html=false})%26target_c_member_id=({$item.c_member_id})
    286298&pne_item({$key+1})_imageurl=({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image _urlencode=true _html=false})
     
    461473
    462474({if $inc_entry_point[6]})
    463 ({$inc_entry_point[6]|smarty:nodefaults})
     475({$inc_entry_point[6]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    464476({/if})
    465477
     
    493505({if $key > 0})&({/if})
    494506pne_item({$key+1})_id=({$item.c_commu_id})
    495 &pne_item({$key+1})_name=({$item.name|t_truncate:12:'..'|escape:'url'})
     507&pne_item({$key+1})_name=({$item.name|t_truncate:12:'..'|escape:url|smarty:nodefaults})
    496508&pne_item({$key+1})_linkurl=({t_url m=pc a=page_c_home _urlencode=true _html=false})%26target_c_commu_id=({$item.c_commu_id})
    497509&pne_item({$key+1})_imageurl=({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_logo_small _urlencode=true _html=false})
     
    697709({if $key > 0})&({/if})
    698710pne_item({$key+1})_id=({$item.c_member_id})
    699 &pne_item({$key+1})_name=({$item.nickname|t_truncate:12:'..'|escape:'url'})
     711&pne_item({$key+1})_name=({$item.nickname|t_truncate:12:'..'|escape:url|smarty:nodefaults})
    700712&pne_item({$key+1})_linkurl=({t_url m=pc a=page_f_home _urlencode=true _html=false})%26target_c_member_id=({$item.c_member_id})
    701713&pne_item({$key+1})_imageurl=({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image _urlencode=true _html=false})
     
    871883
    872884({if $inc_entry_point[7]})
    873 ({$inc_entry_point[7]|smarty:nodefaults})
     885({$inc_entry_point[7]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    874886({/if})
    875887
     
    883895
    884896({if $inc_entry_point[8]})
    885 ({$inc_entry_point[8]|smarty:nodefaults})
     897({$inc_entry_point[8]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    886898({/if})
    887899
     
    944956
    945957<img src="./skin/dummy.gif" class="v_spacer_m">
     958
    946959
    947960({if $calendar})
     
    10551068
    10561069({if $inc_entry_point[9]})
    1057 ({$inc_entry_point[9]|smarty:nodefaults})
     1070({$inc_entry_point[9]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    10581071({/if})
    10591072
     
    13621375
    13631376({if $inc_entry_point[10]})
    1364 ({$inc_entry_point[10]|smarty:nodefaults})
     1377({$inc_entry_point[10]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    13651378({/if})
    13661379
     
    15461559
    15471560({if $inc_entry_point[11]})
    1548 ({$inc_entry_point[11]|smarty:nodefaults})
     1561({$inc_entry_point[11]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    15491562({/if})
    15501563
     
    16411654
    16421655({if $inc_entry_point[12]})
    1643 ({$inc_entry_point[12]|smarty:nodefaults})
     1656({$inc_entry_point[12]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    16441657({/if})
    16451658
  • OpenPNE/branches/maruyama/prj_message/webapp_ext/modules/pc/templates/inc_f_home_h_prof.tpl

    r3214 r3308  
    251251
    252252({if $inc_entry_point[3]})
    253 ({$inc_entry_point[3]|smarty:nodefaults})
     253({$inc_entry_point[3]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    254254({/if})
    255255
     
    354354
    355355({if $inc_entry_point[4]})
    356 ({$inc_entry_point[4]|smarty:nodefaults})
     356({$inc_entry_point[4]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    357357({/if})
    358358
     
    385385({if $key > 0})&({/if})
    386386pne_item({$key+1})_id=({$item.c_member_id})
    387 &pne_item({$key+1})_name=({$item.nickname|t_truncate:12:'..'|escape:'url'})
     387&pne_item({$key+1})_name=({$item.nickname|t_truncate:12:'..'|escape:url|smarty:nodefaults})
    388388&pne_item({$key+1})_linkurl=({t_url m=pc a=page_f_home _urlencode=true _html=false})%26target_c_member_id=({$item.c_member_id})
    389389&pne_item({$key+1})_imageurl=({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image _urlencode=true _html=false})
     
    559559
    560560({if $inc_entry_point[5]})
    561 ({$inc_entry_point[5]|smarty:nodefaults})
     561({$inc_entry_point[5]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    562562({/if})
    563563
     
    591591({if $key > 0})&({/if})
    592592pne_item({$key+1})_id=({$item.c_commu_id})
    593 &pne_item({$key+1})_name=({$item.name|t_truncate:12:'..'|escape:'url'})
     593&pne_item({$key+1})_name=({$item.name|t_truncate:12:'..'|escape:url|smarty:nodefaults})
    594594&pne_item({$key+1})_linkurl=({t_url m=pc a=page_c_home _urlencode=true _html=false})%26target_c_commu_id=({$item.c_commu_id})
    595595&pne_item({$key+1})_imageurl=({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_logo_small _urlencode=true _html=false})
     
    618618({if $item})
    619619<td style="width:88px;" class="bg_03" align="center">
    620 ({if $item.c_member_id_admin == $target_c_member.c_member_id })<img src="({t_img_url_skin filename=icon_crown})" class="icon"><br>({/if})
     620({if $item.c_member_id_admin == $target_c_member.c_member_id })<img src="({t_img_url_skin filename=icon_crown})" class="icon"><br>({/if}) 
    621621<a href="({t_url m=pc a=page_c_home})&amp;target_c_commu_id=({$item.c_commu_id})">
    622622<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_logo_small})" class="pict"></a>
     
    657657({if $item})
    658658<td class="bg_03" align="center">
    659 ({if $item.c_member_id_admin == $target_c_member.c_member_id })<img src="({t_img_url_skin filename=icon_crown})" class="icon"><br>({/if})
    660659<a href="({t_url m=pc a=page_c_home})&amp;target_c_commu_id=({$item.c_commu_id})">
    661660<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_logo_small})" class="pict"></a>
     
    736735<table border="0" cellspacing="0" cellpadding="0" style="width:268px">
    737736<tr>
    738 <td style="width:1px;" class="bg_07" rowspan="3"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     737<td style="width:1px;" class="bg_07" rowspan="({if $common_commu_count})4({else})3({/if})"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    739738<td style="width:266px;" class="bg_02" colspan="4"><img src="./skin/dummy.gif" style="width:266px;height:5px;" class="dummy"></td>
    740 <td style="width:1px;" class="bg_07" rowspan="3"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     739<td style="width:1px;" class="bg_07" rowspan="({if $common_commu_count})4({else})3({/if})"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    741740</tr>
    742741<tr>
     
    748747<td style="width:5px;" class="bg_02"><img src="./skin/dummy.gif" style="width:5px;height:1px;" class="dummy"></td>
    749748</tr>
     749({if $common_commu_count})
     750<tr>
     751<td style="width:125px;" class="bg_02"><img src="./skin/dummy.gif" style="width:125px;height:1px;" class="dummy"></td>
     752<td style="width:20px;" class="bg_02"><img src="./skin/dummy.gif" class="icon arrow_1"></td>
     753<td align="left" style="width:116px;padding:2px 0px;" class="bg_02 lh_110">
     754<a href="({t_url m=pc a=page_f_com_list_common})&amp;target_c_member_id=({$target_c_member_id})">共通コミュニティ(({$common_commu_count}))</a>
     755</td>
     756<td style="width:5px;" class="bg_02"><img src="./skin/dummy.gif" style="width:5px;height:1px;" class="dummy"></td>
     757</tr>
     758({/if})
    750759<tr>
    751760<td style="width:266px;" class="bg_02" colspan="4"><img src="./skin/dummy.gif" style="width:266px;height:5px;" class="dummy"></td>
     
    768777
    769778({if $inc_entry_point[6]})
    770 ({$inc_entry_point[6]|smarty:nodefaults})
     779({$inc_entry_point[6]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    771780({/if})
    772781
     
    780789
    781790({if $inc_entry_point[7]})
    782 ({$inc_entry_point[7]|smarty:nodefaults})
     791({$inc_entry_point[7]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    783792({/if})
    784793
     
    838847
    839848<img src="./skin/dummy.gif" class="v_spacer_m">
     849
    840850
    841851<!-- ************************************ -->
     
    909919<!-- ここまで:主内容>年齢 -->
    910920<!-- ここから:主内容>誕生日 -->
     921({if $target_c_member.birth_month && $target_c_member.birth_day})
    911922<tr>
    912923<td class="border_01 bg_09 padding_s" style="width:90px;border-right:none;border-top:none;">
     
    921932</td>
    922933</tr>
     934({/if})
    923935<!-- ここまで:主内容>誕生日 -->
    924936({/capture})
     
    11271139
    11281140({if $inc_entry_point[8]})
    1129 ({$inc_entry_point[8]|smarty:nodefaults})
     1141({$inc_entry_point[8]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    11301142({/if})
    11311143
     
    12191231
    12201232({if $inc_entry_point[9]})
    1221 ({$inc_entry_point[9]|smarty:nodefaults})
     1233({$inc_entry_point[9]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})
    12221234({/if})
    12231235
Note: See TracChangeset for help on using the changeset viewer.