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

Changeset 2250


Ignore:
Timestamp:
Mar 25, 2007, 1:22:57 PM (16 years ago)
Author:
ebihara
Message:

#558 トピック編集時、ファイルの削除ができるように

Location:
OpenPNE/branches/ebihara/prj_dev28_misc01/webapp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ebihara/prj_dev28_misc01/webapp/lib/db/commu.php

    r2249 r2250  
    24602460}
    24612461
     2462function db_commu_delete_c_commu_topic_comment_file($c_commu_topic_id)
     2463{
     2464    $data = array(
     2465        'filename' => '',
     2466    );
     2467    $where = array(
     2468        'c_commu_topic_id' => intval($c_commu_topic_id),
     2469        'number' => 0,
     2470    );
     2471    return db_update('c_commu_topic_comment', $data, $where);
     2472}
     2473
    24622474function db_commu_insert_c_commu_topic($topic)
    24632475{
  • OpenPNE/branches/ebihara/prj_dev28_misc01/webapp/modules/pc/templates/c_topic_edit.tpl

    r2249 r2250  
    186186<td class="bg_01" align="center"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
    187187</tr>
     188
     189({if $smarty.const.OPENPNE_USE_FILEUPLOAD})
    188190({*********})
    189191<tr>
     
    209211({if $c_topic.filename})
    210212({$c_topic.filename})<br>
    211 <a href="({t_url m=pc a=do_c_topic_edit_delete_c_commu_topic_comment_image})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})&amp;pic_delete=3&amp;sessid=({$PHPSESSID})">削除</a><br>
     213<a href="({t_url m=pc a=do_c_topic_edit_delete_c_commu_topic_comment_file})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})&amp;sessid=({$PHPSESSID})">削除</a><br>
    212214({/if})
    213215<input type="file" name="filename4" size="40">
     
    219221</tr>
    220222({*********})
     223({/if})
    221224<tr>
    222225<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" style="width:1px;height:1px;" class="dummy"></td>
Note: See TracChangeset for help on using the changeset viewer.