git-svn-id: http://xe-core.googlecode.com/svn/trunk@1024 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-09 01:49:11 +00:00
parent 988d15362a
commit e77791ab6b
3 changed files with 25 additions and 1 deletions

View file

@ -25,4 +25,11 @@
$lang->cmd_null_item = "설문조사로 등록할 값이 없습니다.\n다시 설정해주세요"; $lang->cmd_null_item = "설문조사로 등록할 값이 없습니다.\n다시 설정해주세요";
$lang->confirm_poll_submit = "설문조사에 응하시겠습니까?"; $lang->confirm_poll_submit = "설문조사에 응하시겠습니까?";
$lang->search_target_list = array(
'title' => '제목',
'regdate' => '등록일',
'ipaddress' => 'IP 주소',
);
?> ?>

View file

@ -17,6 +17,24 @@
* @brief 관리자 페이지 * @brief 관리자 페이지
**/ **/
function dispPollAdminList() { function dispPollAdminList() {
// 검색 옵션 정리
$search_target = trim(Context::get('search_target'));
$search_keyword = trim(Context::get('search_keyword'));
if($search_target && $search_keyword) {
switch($search_target) {
case 'title' :
if($search_keyword) $search_keyword = str_replace(' ','%',$search_keyword);
$args->s_title= $search_keyword;
break;
case 'regdate' :
$args->s_regdate = $search_keyword;
break;
case 'ipaddress' :
$args->s_ipaddress= $search_keyword;
break;
}
}
// 목록을 구하기 위한 옵션 // 목록을 구하기 위한 옵션
$args->page = Context::get('page'); ///< 페이지 $args->page = Context::get('page'); ///< 페이지
$args->list_count = 50; ///< 한페이지에 보여줄 글 수 $args->list_count = 50; ///< 한페이지에 보여줄 글 수

View file

@ -97,7 +97,6 @@
} }
} }
// 변수 설정 // 변수 설정
$args->sort_index = $obj->sort_index; $args->sort_index = $obj->sort_index;
$args->page = $obj->page?$obj->page:1; $args->page = $obj->page?$obj->page:1;