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

Changeset 3601


Ignore:
Timestamp:
Aug 1, 2007, 12:29:10 PM (12 years ago)
Author:
ebihara
Message:

携帯版メッセージ削除機能の実装

Location:
OpenPNE/trunk/webapp/modules/ktai
Files:
5 edited
11 copied

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/ktai/page/h_message_box.php

    r1856 r3601  
    1717        $direc_s = $requests['direc_s'];
    1818        $page_s = $requests['page_s'];
     19        $direc_t = $requests['direc_t'];
     20        $page_t = $requests['page_t'];
    1921        $box = $requests['box'];
    2022        $keyword = $requests['keyword'];
     
    5052            }
    5153            $this->set('pager', $pager);
     54        } elseif ($box == 'trash') {
     55            $page_t += $direc_t;
     56            $list_t = db_message_c_message_trash_list4c_member_id4range($u, $page_t, $page_size);
     57
     58            $this->set('c_message_trash_list', $list_t[0]);
     59            $this->set('page_t', $page_t);
     60            $this->set('is_prev_t', $list_t[1]);
     61            $this->set('is_next_t', $list_t[2]);
     62            $this->set('count_messages_sent', $list_t[3]);
     63            $this->set('total_num', $list_t[3]);
     64
     65            $pager = array();
     66            $pager['start'] = $page_size * ($page_t - 1) + 1;
     67            if (($pager['end'] = $page_size * $page_t) > $list_t[3]) {
     68                $pager['end'] = $list_t[3];
     69            }
     70            $this->set('pager', $pager);
    5271        } else {
    5372            $page_r += $direc_r;
  • OpenPNE/trunk/webapp/modules/ktai/templates/h_home.tpl

    r3296 r3601  
    7676◆<a href="({t_url m=ktai a=page_h_ranking})&amp;({$tail})">ランキング</a><br>
    7777◆<a href="({t_url m=ktai a=page_fh_intro})&amp;({$tail})">紹介文</a><br>
    78 ◆メッセージ[<a href="({t_url m=ktai a=page_h_message_box})&amp;box=inbox&amp;({$tail})">受信箱</a>|<a href="({t_url m=ktai a=page_h_message_box})&amp;box=outbox&amp;({$tail})">送信箱</a>]<br>
     78◆メッセージ[<a href="({t_url m=ktai a=page_h_message_box})&amp;box=inbox&amp;({$tail})">受信箱</a>|<a href="({t_url m=ktai a=page_h_message_box})&amp;box=outbox&amp;({$tail})">送信箱</a>|<a href="({t_url m=ktai a=page_h_message_box})&amp;box=trash&amp;({$tail})">ごみ箱</a>]<br>
    7979◆<a href="({t_url m=ktai a=page_h_ashiato})&amp;({$tail})">あしあと</a><br>
    8080<hr>
  • OpenPNE/trunk/webapp/modules/ktai/templates/h_message.tpl

    r2734 r3601  
    33<center>メッセージBOX</center>
    44<hr>
     5({if (!$c_message.is_deleted_from && $c_message.c_member_id_from==$u) || (!$c_message.is_deleted_to && $c_message.c_member_id_to==$u)})
    56({if $prev_c_message_id})
    67<a href="({t_url m=ktai a=page_h_message})&amp;target_c_message_id=({$prev_c_message_id})&amp;({$tail})">前を表示</a>
     
    89({if $next_c_message_id})
    910<a href="({t_url m=ktai a=page_h_message})&amp;target_c_message_id=({$next_c_message_id})&amp;({$tail})">次を表示</a>
     11({/if})
    1012({/if})
    1113<br>
     
    4042<a href="({t_url m=ktai a=page_h_confirm_list})&amp;({$tail})">承認待ちリスト</a><br>
    4143({/if})
     44
    4245({if $c_message.c_member_id_to==$u})
     46({if $c_message.is_deleted_to})
     47[<a href="({t_url m=ktai a=do_h_message_update_c_message_is_deleted})&amp;c_message_id=({$c_message.c_message_id})&amp;({$tail})">元に戻す</a>]
     48[<a href="({t_url m=ktai a=page_h_message_delete_confirm})&amp;c_message_id=({$c_message.c_message_id})&amp;({$tail})">削除する</a>]
     49({else})
     50[<a href="({t_url m=ktai a=page_h_message_trash_confirm})&amp;c_message_id=({$c_message.c_message_id})&amp;({$tail})">削除する</a>]
     51({/if})
     52
     53({if !$c_message.is_deleted_to})
    4354<hr>
    4455■返信を書く<br>
     
    5667</form>
    5768({/if})
     69({else})
     70({if $c_message.is_deleted_from})
     71[<a href="({t_url m=ktai a=do_h_message_update_c_message_is_deleted})&amp;c_message_id=({$c_message.c_message_id})&amp;({$tail})">元に戻す</a>]
     72[<a href="({t_url m=ktai a=page_h_message_delete_confirm})&amp;c_message_id=({$c_message.c_message_id})&amp;({$tail})">削除する</a>]
     73({else})
     74[<a href="({t_url m=ktai a=page_h_message_trash_confirm})&amp;c_message_id=({$c_message.c_message_id})&amp;({$tail})">削除する</a>]
     75({/if})
     76({/if})
    5877<hr>
    5978<a href="({t_url m=ktai a=page_h_message_box})&amp;({$tail})">メッセージボックス</a><br>
  • OpenPNE/trunk/webapp/modules/ktai/templates/h_message_box.tpl

    r972 r3601  
    11({$inc_ktai_header|smarty:nodefaults})
    22
    3 <center><font color="orange">メッセージBOX(({if $box != 'outbox'})受信箱({else})送信箱({/if}))</font></center>
     3<center><font color="orange">メッセージBOX(({if $box == 'trash'})ごみ箱({elseif $box != 'outbox'})受信箱({else})送信箱({/if}))</font></center>
    44<hr>
     5({if $box != 'trash'})
    56<a href="#search" accesskey="1">1.検索</a>
    67<br><br>
    78
    89<a href="({t_url m=ktai a=page_h_message_send})&amp;({$tail})">メッセージを書く</a><br>
     10({/if})
    911
     12({if $box == 'trash'})
     13[削除済メッセージ゙(({if $total_num})({$total_num})({else})0({/if}))]
    1014
    11 ({if $box != 'outbox' })
     15({capture name="pager"})
     16({if $is_prev_t || $is_next_t})
     17<br>
     18({if $is_prev_t})<a href="({t_url m=ktai a=page_h_message_box})&amp;box=trash&amp;page_t=({$page_t-1})&amp;({$tail})">前へ</a> ({/if})
     19({if $is_next_t})<a href="({t_url m=ktai a=page_h_message_box})&amp;box=trash&amp;page_t=({$page_t+1})&amp;({$tail})">次へ</a>({/if})
     20<br>
     21({$total_num})件中
     22({$pager.start})件~({$pager.end})件を表示<br>
     23<br>
     24({/if})
     25({/capture})
     26({$smarty.capture.pager|smarty:nodefaults})
     27
     28({if $total_num})
     29({foreach from=$c_message_trash_list item=c_message_trash})
     30<tr>
     31({$c_message_trash.r_datetime|date_format:"%y/%m/%d"})-({$c_message_trash.nickname|default:"&nbsp;"})さん<br>
     32<a href="({t_url m=ktai a=page_h_message})&amp;target_c_message_id=({$c_message_trash.c_message_id})&amp;({$tail})">({$c_message_trash.subject|default:"&nbsp;"})</a>
     33({if $c_message_trash.c_member_id_to != $u})
     34(★)
     35({/if})
     36<br>
     37({/foreach})
     38<br>
     39※送信済メッセージ…(★)
     40<br>
     41({else})
     42メッセージはありません<br><br>
     43({/if})
     44
     45({$smarty.capture.pager|smarty:nodefaults})
     46
     47({elseif $box != 'outbox' })
    1248<br>
    1349[受信メッセージ(({if $total_num})({$total_num})({else})0({/if}))]<br>
     
    70106({/if})
    71107
     108({if $box != 'trash'})
    72109<a href="({t_url m=ktai a=page_h_message_send})&amp;({$tail})">メッセージを書く</a><br><br>
    73110
     
    79116<input type="submit" value="検索">
    80117</form>
     118({/if})
    81119
    82120<hr>
    83 ({if $box != 'outbox'})
    84 <a href="({t_url m=ktai a=page_h_message_box})&amp;box=outbox&amp;({$tail})">送信箱</a>
     121({if $box == 'trash'})
     122<a href="({t_url m=ktai a=page_h_message_box})&amp;box=outbox&amp;({$tail})">送信箱</a><br>
     123<a href="({t_url m=ktai a=page_h_message_box})&amp;box=inbox&amp;({$tail})">受信箱</a><br>
     124({elseif $box != 'outbox'})
     125<a href="({t_url m=ktai a=page_h_message_box})&amp;box=outbox&amp;({$tail})">送信箱</a><br>
     126<a href="({t_url m=ktai a=page_h_message_box})&amp;box=trash&amp;({$tail})">ごみ箱</a><br>
    85127({else})
    86 <a href="({t_url m=ktai a=page_h_message_box})&amp;box=inbox&amp;({$tail})">受信箱</a>
     128<a href="({t_url m=ktai a=page_h_message_box})&amp;box=inbox&amp;({$tail})">受信箱</a><br>
     129<a href="({t_url m=ktai a=page_h_message_box})&amp;box=trash&amp;({$tail})">ごみ箱</a><br>
    87130({/if})
    88131<br>
  • OpenPNE/trunk/webapp/modules/ktai/validate/page/h_message_box.ini

    r972 r3601  
    1919default = 1
    2020
     21[direc_t]
     22type = "int"
     23default = 0
     24
     25[page_t]
     26type = "int"
     27default = 1
     28
    2129[box]
    2230type = "string"
Note: See TracChangeset for help on using the changeset viewer.