mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
if search keyword is empty, show all list
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12410 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
de2e386980
commit
bbb5ba847f
2 changed files with 7 additions and 1 deletions
|
|
@ -126,6 +126,12 @@ class pointModel extends point
|
||||||
$search_target = trim(Context::get('search_target'));
|
$search_target = trim(Context::get('search_target'));
|
||||||
$search_keyword = trim(Context::get('search_keyword'));
|
$search_keyword = trim(Context::get('search_keyword'));
|
||||||
|
|
||||||
|
// if search keyword is emtpy, show all list
|
||||||
|
if(!$search_keyword)
|
||||||
|
{
|
||||||
|
unset($args, $search_target);
|
||||||
|
}
|
||||||
|
|
||||||
if($search_target && $search_keyword)
|
if($search_target && $search_keyword)
|
||||||
{
|
{
|
||||||
switch($search_target)
|
switch($search_target)
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</select>
|
</select>
|
||||||
<span class="x_input-append">
|
<span class="x_input-append">
|
||||||
<input type="search" required name="search_keyword" value="{htmlspecialchars($search_keyword)}" title="{$lang->cmd_search}" style="width:100px" />
|
<input type="search" name="search_keyword" value="{htmlspecialchars($search_keyword)}" title="{$lang->cmd_search}" style="width:100px" />
|
||||||
<button type="submit" class="x_btn x_btn-inverse">{$lang->cmd_search}</button>
|
<button type="submit" class="x_btn x_btn-inverse">{$lang->cmd_search}</button>
|
||||||
<button class="x_btn" type="button" onclick="location.href='{getUrl('','module',$module,'act',$act)}';return false;">{$lang->cmd_cancel}</button>
|
<button class="x_btn" type="button" onclick="location.href='{getUrl('','module',$module,'act',$act)}';return false;">{$lang->cmd_cancel}</button>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue