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

Changeset 3608


Ignore:
Timestamp:
Aug 2, 2007, 11:22:59 AM (12 years ago)
Author:
maruyama
Message:

#1011:【日記】日記コメントにIDを入れて、レス時に指定しやすくする

のマージ

Location:
OpenPNE/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/db/diary.php

    r3057 r3608  
    11151115        'image_filename_2' => '',
    11161116        'image_filename_3' => '',
     1117        'number' => db_diary_get_max_number4diary($c_diary_id)+1,
    11171118    );
    11181119    return db_insert('c_diary_comment', $data);
     
    11701171}
    11711172
     1173/**
     1174 * 現在の日記へのコメントのナンバーの最大値を返す
     1175 */
     1176function db_diary_get_max_number4diary($c_diary_id)
     1177{
     1178    $sql = 'SELECT MAX(number) FROM c_diary_comment WHERE c_diary_id = ?';
     1179    $params = array(intval($c_diary_id));
     1180    return db_get_one($sql, $params);
     1181}
     1182
    11721183?>
  • OpenPNE/trunk/webapp/modules/ktai/templates/fh_diary.tpl

    r2734 r3608  
    4747全({$total_num})件中、({$pager.start})~({$pager.end})件目を表示しています<br>
    4848({foreach from=$c_diary_comment item=c_diary_comment_})
    49 ({if $c_diary_comment_.nickname})<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_diary_comment_.c_member_id})&amp;({$tail})">({$c_diary_comment_.nickname})</a>({/if}) ({if $c_diary_comment_.c_member_id == $u || $target_diary_writer.c_member_id==$u})
     49({$c_diary_comment_.number}).({if $c_diary_comment_.nickname})<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_diary_comment_.c_member_id})&amp;({$tail})">({$c_diary_comment_.nickname})</a>({/if}) ({if $c_diary_comment_.c_member_id == $u || $target_diary_writer.c_member_id==$u})
    5050[<a href="({t_url m=ktai a=page_fh_diary_delete_c_diary_comment_confirm})&amp;target_c_diary_comment_id=({$c_diary_comment_.c_diary_comment_id})&amp;({$tail})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})">削除</a>]
    5151({/if})<br>
  • OpenPNE/trunk/webapp/modules/pc/templates/fh_delete_comment.tpl

    r1081 r3608  
    5959<div style="padding:10px;" class="lh_120">
    6060
     61<span class="b_b">({$target_diary_comment.number})</span>:
    6162({if $target_diary_comment.nickname})
    6263<a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$target_diary_comment.c_member_id})">({$target_diary_comment.nickname|default:"&nbsp;"})</a>
  • OpenPNE/trunk/webapp/modules/pc/templates/fh_diary.tpl

    r2464 r3608  
    575575<div style="padding:4px 3px;">
    576576
     577<span class="b_b">({$item.number})</span>:
    577578({if $item.nickname})
    578579<a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item.c_member_id})"><span class="DOM_fh_diary_comment_writer">({$item.nickname|default:"&nbsp;"})</span></a>
Note: See TracChangeset for help on using the changeset viewer.