mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 20:29:57 +09:00
문서/댓글/첨부파일/엮인글 관리자 페이지에 모듈별 열람이 가능하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1929 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a9e390ac0a
commit
9ccf23473b
15 changed files with 99 additions and 20 deletions
|
|
@ -51,6 +51,7 @@
|
|||
$args->page = $obj->page?$obj->page:1;
|
||||
$args->list_count = $obj->list_count?$obj->list_count:20;
|
||||
$args->page_count = $obj->page_count?$obj->page_count:10;
|
||||
$args->s_module_srl = $obj->module_srl;
|
||||
|
||||
// file.getFileList쿼리 실행
|
||||
$output = executeQuery('file.getFileList', $args);
|
||||
|
|
|
|||
|
|
@ -24,11 +24,17 @@
|
|||
|
||||
$args->sort_index = 'file_srl'; ///< 소팅 값
|
||||
$args->isvalid = Context::get('isvalid');
|
||||
$args->module_srl = Context::get('module_srl');
|
||||
|
||||
// 목록 구함
|
||||
$oFileModel = &getAdminModel('file');
|
||||
$output = $oFileModel->getFileList($args);
|
||||
|
||||
// mid목록을 구함
|
||||
$oModuleModel = &getModel('module');
|
||||
$mid_list = $oModuleModel->getMidList();
|
||||
Context::set('mid_list', $mid_list);
|
||||
|
||||
// 목록의 loop를 돌면서 mid를 구하기 위한 module_srl값을 구함
|
||||
$file_count = count($output->data);
|
||||
if($file_count) {
|
||||
|
|
|
|||
|
|
@ -6,9 +6,10 @@
|
|||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="isvalid" var="isvalid" />
|
||||
<condition operation="equal" column="module_srl" var="s_module_srl" />
|
||||
<condition operation="equal" column="isvalid" var="isvalid" pipe="and" />
|
||||
<group pipe="and">
|
||||
<condition operation="like" column="uploaded_filename" var="s_filename" />
|
||||
<condition operation="like" column="source_filename" var="s_filename" pipe="or" />
|
||||
<condition operation="more" column="file_size" var="s_filesize" pipe="or" />
|
||||
<condition operation="more" column="download_count" var="s_download_count" pipe="or" />
|
||||
<condition operation="like_prefix" column="regdate" var="s_regdate" pipe="or" />
|
||||
|
|
|
|||
|
|
@ -15,7 +15,16 @@
|
|||
<tr>
|
||||
<th scope="col">{$lang->no}</th>
|
||||
<th scope="col"><input type="checkbox" onclick="doCheckAll(); return false;" /></th>
|
||||
<th scope="col">{$lang->module}</th>
|
||||
<th scope="col">
|
||||
<div class="nowrap">
|
||||
<select name="module_srl" class="mid_list" id="module_srl">
|
||||
<option value="">{$lang->module}</option>
|
||||
<!--@foreach($mid_list as $key => $val)-->
|
||||
<option value="{$val->module_srl}" <!--@if($module_srl == $val->module_srl)-->selected="selected"<!--@end-->>{$val->browser_title}</option>
|
||||
<!--@end-->
|
||||
</select><a href="#" onclick="location.href=current_url.setQuery('module_srl',xGetElementById('module_srl').options[xGetElementById('module_srl').selectedIndex].value);return false;" class="button"><span>GO</span></a>
|
||||
</div>
|
||||
</th>
|
||||
<th scope="col">{$lang->file_name}</th>
|
||||
<th scope="col">{$lang->file_size}</th>
|
||||
<th scope="col">{$lang->is_valid}</th>
|
||||
|
|
@ -73,6 +82,7 @@
|
|||
<form action="./" method="get" class="adminSearch">
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<input type="hidden" name="act" value="{$act}" />
|
||||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
||||
|
||||
<fieldset>
|
||||
<select name="isvalid">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue