{template "header.html"}
这里是demo模块的搜索页,以下有组合搜索的写法
条件筛选
{category pid=0} {/category}
{if $cat}
{loop $related $t} {/loop}
{/if} {category_search_field module=MOD_DIR catid=$catid}
{loop $t.data $v} {/loop}
{/category_search_field}
{list action=linkage code=address pid=$params.csxz} {/list}
{php $field = dr_field_options($ci->module['field']['danxuananniu']['id']);} {loop $field $value $name} {/loop}
{php $field = dr_field_options($ci->module['field']['danxuananniu']['id']);} {loop $field $value $name} {/loop}
{php $field = dr_field_options($ci->module['field']['fuxuankuang']['id']);} {loop $field $value $name} {/loop}
{php $field = dr_field_options($ci->module['field']['fuxuankuang']['id']);} {loop $field $value $name} {/loop}
{php $field = dr_field_options($ci->module['field']['xialaxuanze']['id']);} {loop $field $value $name} {/loop}
{php $field = dr_field_options($ci->member_cache['field']['quyu']['id']);} {loop $field $value $name} {/loop}
{php $price=array('0,500'=>'500以内','500,1000'=>'500到1000','1000,2000'=>'1000到2000','2000,3000'=>'2000到3000','3000,0'=>'3000以上');} {loop $price $i $t} {/loop}
{php $field = $ci->module['setting']['flag'];} {loop $field $value $t} {/loop}
{php $zhxgm = explode(',', $params.zhxgm);}
{php $updatetime = explode(',', $params.updatetime);}
{loop $ci->member_cache['group'] $t} {/loop}
{if $params['order']} {/if} {loop $param_value $p $v} {/loop}
    {search module=MOD_DIR id=$searchid total=$sototal order=$params.order catid=$catid page=1 pagesize=1 urlrule=$urlrule}
  • {$t.title}

    {$t.description}

  • {/search}
{if !$count}
{/if}
    {$pages}
{$debug}
{template "footer.html"}