mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
지정 용량 이하의 첨부파일도 검색할 수 있도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6520 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
395c34a23e
commit
af624a6527
3 changed files with 46 additions and 37 deletions
|
|
@ -27,11 +27,17 @@
|
||||||
if($search_keyword) $search_keyword = str_replace(' ','%',$search_keyword);
|
if($search_keyword) $search_keyword = str_replace(' ','%',$search_keyword);
|
||||||
$args->s_filename = $search_keyword;
|
$args->s_filename = $search_keyword;
|
||||||
break;
|
break;
|
||||||
case 'filesize' :
|
case 'filesize_more' :
|
||||||
$args->s_filesize = (int)$search_keyword;
|
$args->s_filesize_more = (int)$search_keyword;
|
||||||
break;
|
break;
|
||||||
case 'filesize_mega' :
|
case 'filesize_mega_more' :
|
||||||
$args->s_filesize = (int)$search_keyword * 1024 * 1024;
|
$args->s_filesize_more = (int)$search_keyword * 1024 * 1024;
|
||||||
|
break;
|
||||||
|
case 'filesize_less' :
|
||||||
|
$args->s_filesize_less = (int)$search_keyword;
|
||||||
|
break;
|
||||||
|
case 'filesize_mega_less' :
|
||||||
|
$args->s_filesize_less = (int)$search_keyword * 1024 * 1024;
|
||||||
break;
|
break;
|
||||||
case 'download_count' :
|
case 'download_count' :
|
||||||
$args->s_download_count = (int)$search_keyword;
|
$args->s_download_count = (int)$search_keyword;
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,10 @@
|
||||||
|
|
||||||
$lang->file_search_target_list = array(
|
$lang->file_search_target_list = array(
|
||||||
'filename' => '파일이름',
|
'filename' => '파일이름',
|
||||||
'filesize' => '파일크기 (byte, 이상)',
|
'filesize_more' => '파일크기 (byte, 이상)',
|
||||||
'filesize_mega' => '파일크기 (Mb, 이상)',
|
'filesize_mega_more' => '파일크기 (Mb, 이상)',
|
||||||
|
'filesize_less' => '파일크기 (byte, 이하)',
|
||||||
|
'filesize_mega_less' => '파일크기 (Mb, 이하)',
|
||||||
'download_count' => '다운로드 회수 (이상)',
|
'download_count' => '다운로드 회수 (이상)',
|
||||||
'user_id' => '아이디',
|
'user_id' => '아이디',
|
||||||
'user_name' => '이름',
|
'user_name' => '이름',
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,32 @@
|
||||||
<query id="getFileList" action="select">
|
<query id="getFileList" action="select">
|
||||||
<tables>
|
<tables>
|
||||||
<table name="files" alias="files" />
|
<table name="files" alias="files" />
|
||||||
<table name="member" alias="member" />
|
<table name="member" alias="member" />
|
||||||
</tables>
|
</tables>
|
||||||
<columns>
|
<columns>
|
||||||
<column name="files.*" />
|
<column name="files.*" />
|
||||||
</columns>
|
</columns>
|
||||||
<conditions>
|
<conditions>
|
||||||
<condition operation="in" column="files.module_srl" var="s_module_srl" />
|
<condition operation="in" column="files.module_srl" var="s_module_srl" />
|
||||||
<condition operation="equal" column="files.isvalid" var="isvalid" pipe="and" />
|
<condition operation="equal" column="files.isvalid" var="isvalid" pipe="and" />
|
||||||
<condition operation="equal" column="files.direct_download" var="direct_download" pipe="and" />
|
<condition operation="equal" column="files.direct_download" var="direct_download" pipe="and" />
|
||||||
<condition operation="equal" column="files.member_srl" default="member.member_srl" pipe="and" />
|
<condition operation="equal" column="files.member_srl" default="member.member_srl" pipe="and" />
|
||||||
<group pipe="and">
|
<group pipe="and">
|
||||||
<condition operation="like" column="files.source_filename" var="s_filename" pipe="or" />
|
<condition operation="like" column="files.source_filename" var="s_filename" pipe="or" />
|
||||||
<condition operation="more" column="files.file_size" var="s_filesize" pipe="or" />
|
<condition operation="more" column="files.file_size" var="s_filesize_more" pipe="or" />
|
||||||
<condition operation="more" column="files.download_count" var="s_download_count" pipe="or" />
|
<condition operation="less" column="files.file_size" var="s_filesize_less" pipe="or" />
|
||||||
<condition operation="like_prefix" column="files.regdate" var="s_regdate" pipe="or" />
|
<condition operation="more" column="files.download_count" var="s_download_count" pipe="or" />
|
||||||
<condition operation="like_prefix" column="files.ipaddress" var="s_ipaddress" pipe="or" />
|
<condition operation="like_prefix" column="files.regdate" var="s_regdate" pipe="or" />
|
||||||
<condition operation="like" column="member.user_id" var="s_user_id" pipe="or" />
|
<condition operation="like_prefix" column="files.ipaddress" var="s_ipaddress" pipe="or" />
|
||||||
<condition operation="like" column="member.user_name" var="s_user_name" pipe="or" />
|
<condition operation="like" column="member.user_id" var="s_user_id" pipe="or" />
|
||||||
<condition operation="like" column="member.nick_name" var="s_nick_name" pipe="or" />
|
<condition operation="like" column="member.user_name" var="s_user_name" pipe="or" />
|
||||||
</group>
|
<condition operation="like" column="member.nick_name" var="s_nick_name" pipe="or" />
|
||||||
</conditions>
|
</group>
|
||||||
<navigation>
|
</conditions>
|
||||||
<index var="sort_index" default="files.file_srl" order="desc" />
|
<navigation>
|
||||||
<list_count var="list_count" default="20" />
|
<index var="sort_index" default="files.file_srl" order="desc" />
|
||||||
<page_count var="page_count" default="10" />
|
<list_count var="list_count" default="20" />
|
||||||
<page var="page" default="1" />
|
<page_count var="page_count" default="10" />
|
||||||
</navigation>
|
<page var="page" default="1" />
|
||||||
</query>
|
</navigation>
|
||||||
|
</query>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue