관리페이지 첨부파일 목록 개선

* 첨부 대상 표시 : 댓글, 모듈(페이지), 임시저장 문서
  * 회원 닉네임 출력 추가
    * 대기 상태 파일의 닉네임 출력 안되는건 문제 아님
  * 모듈 업데이트 필요 (필드 추가)
    * 파일 업로드시에는 값을 주지 않고
      관리페이지에서 조회시에 업데이트 (업로드시 값 넣으면 오히려 방해)


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6310 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2009-05-08 10:22:22 +00:00
parent a42e14c552
commit f57734760b
5 changed files with 170 additions and 73 deletions

View file

@ -51,44 +51,60 @@
<th scope="col"><div>{$lang->cmd_download}</div></th>
<th scope="col"><div>{$lang->date}</div></th>
<th scope="col"><div>{$lang->ipaddress}</div></th>
<th scope="col"><div>{$lang->nick_name}</div></th>
</tr>
</thead>
<tbody>
<!--@foreach($file_list as $no => $val)-->
<!--@if($val->upload_target_srl != $cur_upload_target_srl)-->
<!--@if($val->target_document_srl)-->
{@ $document_srl = $val->target_document_srl}
<!--@if($val->upload_target_type == 'com')-->
{@ $document_srl = $val->target_document_srl}
{@ $move_uri = getUrl('', 'document_srl', $document_srl).'#comment_'.$val->upload_target_srl}
<!--@else-->
{@ $document_srl = $val->upload_target_srl}
<!--@elseif($val->upload_target_type == 'doc')-->
{@ $document_srl = $val->upload_target_srl}
{@ $move_uri = getUrl('', 'document_srl', $document_srl)}
<!--@end-->
{@ $cur_upload_target_srl = $val->upload_target_srl}
<tr class="row{$cycle_idx} bg1">
<th colspan="8">
<!--@if(!$document_list[$document_srl])-->
{$lang->cmd_save}
<th colspan="9">
<!--@if(!$val->upload_target_type)-->
{$lang->is_stand_by}
<!--@else-->
<a href="{getUrl('', 'mid', $module_list[$val->module_srl]->mid)}" onclick="window.open(this.href);return false;" class="blue">{$module_list[$val->module_srl]->browser_title}</a> - <a href="{$move_uri}" onclick="window.open(this.href);return false;">{htmlspecialchars($document_list[$document_srl]->title)}</a>
<!--@if($val->upload_target_type == 'com')-->[{$lang->comment}] <!--@end-->
<!--@if($val->upload_target_type == 'mod')-->[{$lang->module}] <!--@end-->
<!--@if($val->upload_target_type == 'doc' && $document_list[$document_srl]->get('module_srl') == $document_list[$document_srl]->get('member_srl'))-->[임시저장] <!--@end-->
<a href="{getUrl('', 'mid', $module_list[$val->module_srl]->mid)}" onclick="window.open(this.href);return false;">{$module_list[$val->module_srl]->browser_title}</a>
<!--@if($val->upload_target_type == 'doc' || $val->upload_target_type == 'com')-->
- <!--@if($document_list[$document_srl]->get('module_srl') != $document_list[$document_srl]->get('member_srl'))--><a href="{$move_uri}" onclick="window.open(this.href);return false;">{$document_list[$document_srl]->getTitle()}</a><!--@else-->{$document_list[$document_srl]->getTitle()}<!--@end-->
<!--@end-->
<!--@end-->
</th>
</tr>
<!--@endif-->
<tr>
<td class="center number">{$no}</td>
<td class="center"><input type="checkbox" name="cart" value="{$val->file_srl}" /></td>
<td><a href="{$val->download_url}" class="red">{htmlspecialchars($val->source_filename)}</a></td>
<td class="tCenter number">{$no}</td>
<td class="tCenter"><input type="checkbox" name="cart" value="{$val->file_srl}" /></td>
<td class="wide"><a href="{$val->download_url}" class="red">{htmlspecialchars($val->source_filename)}</a></td>
<td class="number tRight">{FileHandler::filesize($val->file_size)}</td>
<td class="tCenter">
<!--@if($val->isvalid=='Y')-->
<td class="blue center">{$lang->is_valid}</td>
{$lang->is_valid}
<!--@else-->
<td class="red center">{$lang->is_stand_by}</td>
{$lang->is_stand_by}
<!--@end-->
<td class="number center">{$val->download_count}</td>
<td class="date center nowrap">{zdate($val->regdate,"Y-m-d")}</td>
<td class="number left nowrap"><a href="{getUrl('search_target','ipaddress','search_keyword',$val->ipaddress)}">{$val->ipaddress}</a></td>
</td>
<td class="number tCenter">{$val->download_count}</td>
<td class="date tCenter nowrap" title="{zdate($val->regdate,"Y-m-d H:i:s")}">{zdate($val->regdate,"Y-m-d")}</td>
<td class="number tCenter nowrap"><a href="{getUrl('search_target','ipaddress','search_keyword',$val->ipaddress)}">{$val->ipaddress}</a></td>
<td class="nowrap">
<!--@if($val->upload_target_type == 'doc')-->
<span class="member_{$document_list[$document_srl]->get('member_srl')}">{$document_list[$document_srl]->getNickName()}</span>
<!--@elseif($val->upload_target_type == 'com')-->
<span class="member_{$comment_list[$val->upload_target_srl]->get('member_srl')}">{$comment_list[$val->upload_target_srl]->getNickName()}</span>
<!--@end-->
</td>
</tr>
<!--@endforeach-->
</tbody>