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

Changeset 2171


Ignore:
Timestamp:
Mar 19, 2007, 4:33:26 PM (14 years ago)
Author:
takanashi
Message:

#223 微調整とりこみ

Location:
OpenPNE/branches/develop/2_7_5/webapp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/develop/2_7_5/webapp/lib/db/file.php

    r2156 r2171  
    1818
    1919    $c_file_list = array();
    20     foreach ($id_list as $c_file_id) {
    21         $sql = 'SELECT c_file_id, filename, r_datetime FROM c_file WHERE c_file_id = ?';
     20    foreach ($id_list as $i => $c_file_id) {
     21        $sql = 'SELECT c_file_id, filename, r_datetime, bin FROM c_file WHERE c_file_id = ?';
    2222        $params = array(intval($c_file_id));
    23         $c_file_list[] = db_get_row($sql, $params);
     23        $c_file_list[$i] = db_get_row($sql, $params);
     24        $c_file_list[$i]['size'] = strlen($c_file_list[$i]['bin']);
    2425    }
    2526
  • OpenPNE/branches/develop/2_7_5/webapp/modules/admin/templates/list_c_file.tpl

    r2156 r2171  
    6969({****})
    7070<td>
    71 2345678903456789
     71({$item.size|number_format}) Bytes
    7272</td>
    7373({****})
  • OpenPNE/branches/develop/2_7_5/webapp/modules/pc/templates/c_topic_detail.tpl

    r2156 r2171  
    112112</tr>
    113113
    114 
     114({if $c_topic.filename})
    115115<tr>
    116116<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     
    118118<td style="width:531px;height:50px;" class="bg_02" align="left" valign="middle">
    119119
    120 ({if $c_topic.filename})
    121120<div class="padding_s">
    122121<span class="padding_s">
     
    126125</span>
    127126</div>
    128 ({/if})
    129 
    130 </td>
    131 <td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    132 </tr>
     127
     128</td>
     129<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
     130</tr>
     131({/if})
    133132
    134133<tr>
Note: See TracChangeset for help on using the changeset viewer.