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

Changeset 2947


Ignore:
Timestamp:
May 17, 2007, 5:59:56 PM (12 years ago)
Author:
ebihara
Message:

#782:携帯版で、Todoの目標期日が正しく表示されていなかったのを修正

Location:
OpenPNE/branches/2.8.x
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.8.x/webapp_biz/modules/biz/lib/mysql_functions.php

    r2945 r2947  
    11311131//Todo登録
    11321132function biz_insertTodo($member_id, $memo, $writer_id, $sort_order, $is_all,
    1133     $due_datetime = '', $priority = 3, $biz_group_id = '', $public_flag = 'public')
     1133    $due_datetime = null, $priority = 3, $biz_group_id = '', $public_flag = 'public')
    11341134{
    11351135    if ($is_all) {
  • OpenPNE/branches/2.8.x/webapp_biz/modules/ktai_biz/page/fh_biz_todo_edit.php

    r2892 r2947  
    2121        $this->set("target_biz_todo_id", $requests['target_biz_todo_id']);
    2222        $todo = biz_getTodo($requests['target_biz_todo_id']);
     23        if (!strncmp($todo['due_datetime'], '0000', 4)) {
     24            $todo['due_datetime'] = null;
     25        }
    2326        $this->set("todo", $todo);
    2427
  • OpenPNE/branches/2.8.x/webapp_biz/modules/ktai_biz/templates/fh_biz_todo_edit.tpl

    r1477 r2947  
    1111
    1212目標期日:<br>
    13 <input type="text" name='due_datetime_y' size="2" value="({$now.year})" istyle="4" mode="numeric">年
    14 <input type="text" name='due_datetime_m' size="2" value="({$now.month})" istyle="4" mode="numeric">月
    15 <input type="text" name='due_datetime_d' size="2" value="({$now.day})" istyle="4" mode="numeric">日<br>
     13<input type="text" name='due_datetime_y' size="2" value="({if $todo.due_datetime})({$todo.due_datetime|date_format:'%Y'})({/if})" istyle="4" mode="numeric">年
     14<input type="text" name='due_datetime_m' size="2" value="({if $todo.due_datetime})({$todo.due_datetime|date_format:'%m'})({/if})" istyle="4" mode="numeric">月
     15<input type="text" name='due_datetime_d' size="2" value="({if $todo.due_datetime})({$todo.due_datetime|date_format:'%d'})({/if})" istyle="4" mode="numeric">日<br>
    1616
    1717<center>
Note: See TracChangeset for help on using the changeset viewer.