mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1250 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
35ea1c4bbc
commit
2cc77d574c
6 changed files with 10 additions and 25 deletions
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
class blog extends ModuleObject {
|
||||
|
||||
var $search_option = array('title','content','title_content','user_name','user_id','tag'); ///< 검색 옵션
|
||||
|
||||
var $skin = "default"; ///< 스킨 이름
|
||||
var $list_count = 1; ///< 한 페이지에 나타날 글의 수
|
||||
var $page_count = 10; ///< 페이지의 수
|
||||
|
|
|
|||
|
|
@ -154,8 +154,8 @@
|
|||
$args->page_count = $this->page_count; ///< 페이지 네비게이션에 나타날 페이지의 수
|
||||
|
||||
// 검색 옵션
|
||||
$args->search_target = Context::get('search_target'); ///< 검색 대상 (title, contents...)
|
||||
$args->search_keyword = Context::get('search_keyword'); ///< 검색어
|
||||
$args->search_keyword = trim(Context::get('search_keyword')); ///< 검색어
|
||||
if($args->search_keyword) $args->search_target = "title_content"; ///< 검색 고정
|
||||
$args->category_srl = $this->category_srl;
|
||||
|
||||
$args->sort_index = 'list_order'; ///< 소팅 값
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
<filter name="search" module="blog">
|
||||
<form>
|
||||
<node target="search_target" required="true" />
|
||||
<node target="search_keyword" minlegnth="2" maxlength="40" required="true" />
|
||||
</form>
|
||||
<parameter>
|
||||
<param name="mid" target="mid" />
|
||||
<param name="search_target" target="search_target" />
|
||||
<param name="search_keyword" target="search_keyword" />
|
||||
</parameter>
|
||||
<response callback_func="completeSearch">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -81,10 +81,8 @@
|
|||
<!--@if($grant->list)-->
|
||||
<!-- 검색 -->
|
||||
<div class="layout_search">
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, search)">
|
||||
<form action="./" method="get">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="category" value="{$category}" />
|
||||
<input type="hidden" name="search_target" value="title_content" />
|
||||
<input type="text" class="search_keyword" name="search_keyword" value="{htmlspecialchars($search_keyword)}" />
|
||||
<input type="submit" class="search_button" value="{$lang->cmd_search}" />
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
<!--%import("filter/search.xml")-->
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<!-- 목록 -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue