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

Changeset 1051


Ignore:
Timestamp:
Dec 6, 2006, 9:31:43 PM (14 years ago)
Author:
ebihara
Message:

Todo表示時、重要度による色分け表示とソート処理を行うようにした

Location:
OpenPNE/branches/ebihara/prj_dev26_todo/webapp_biz/modules/biz
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ebihara/prj_dev26_todo/webapp_biz/modules/biz/lib/mysql_functions.php

    r1050 r1051  
    553553    );
    554554
     555    //priorityの高い順にソート
    555556    $membertodo = db_get_all($sql, $params);
     557        foreach ($membertodo as $key => $row) {
     558           $priority[$key]  = $row['priority'];
     559        }
     560    if(!is_null($priority)) {
     561        array_multisort($priority, SORT_ASC, $membertodo);
     562    }
    556563
    557564    $sql = 'SELECT * FROM biz_todo WHERE c_member_id = 0 AND is_check = ? ORDER BY biz_todo_id DESC;';  //共有Todo
  • OpenPNE/branches/ebihara/prj_dev26_todo/webapp_biz/modules/biz/templates/inc_biz_todo.tpl

    r387 r1051  
    5858({if $value.memo})
    5959<tr>
    60 <td class="border_01({if $value.writer_id != $target_id}) bg_09({else}) bg_02({/if})" style="width:35px;border-top:none;border-right:none;" valign="top">
    61 
     60<td class="border_01({if $value.writer_id != $target_id}) bg_09({else}) bg_02({/if})" style="width:35px;border-top:none;border-right:none;({if $value.priority == 1})border-left: 2px solid #f00;({elseif $value.priority == 2})border-left: 2px solid #f88;({/if})" valign="top">
    6261<a href="({t_url m=biz a=do_`$cmd`_home_check_biz_todo})&amp;sessid=({$PHPSESSID})&amp;chid=({$value.biz_todo_id})&amp;is_check=({$value.is_check})">
    6362<img src="./skin/biz/checkbox_nochecked_({if $value.c_member_id == 0})share_({/if})2.gif" style="width:34px;height:34px;display:block;"></a>
Note: See TracChangeset for help on using the changeset viewer.