联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
排序问题,,按价格和时间排序不起作用
类型:POSCMS 更新时间:2018-06-07 17:48:35

按价格按高到低排序和时间先后排序,筛选的内容不正确


<div class="screen-list">

<div class="container screen-nav">

<a href="index.php?s=course">默认排序</a>

<a href="{dr_search_url($params, 'order', 'kaikeshijian')}">时间 ↑</a>

<a href="{dr_search_url($params, 'order', 'jiage')}">价格 ↓</a>

</div>

<div class="container">

{if $searchid}

{list action=search module=$dirname id=$searchid total=$sototal catid=$catid page=1 pagesize=10 urlrule=$urlrule}

<div class=" screen-bottom" >

<div class="screen-top">

<img src="{dr_thumb($t.thumb)}" alt="{$t.title}">

<h4>{dr_strcut($t.title, 30,'')}

<a href="javascript:;" title="">{$t.kaibanji}</a>

<a href="javascript:;" title="">{$t.rebaodu}</a>

<a href="javascript:;" class="screen-a1" title="">剩余{$t.shengyuliang}</a>

<a href="javascript:;" title="">{$t.shifouxinkai}</a>

</h4>

<p>

介绍:{dr_strcut($t.description, 130,'')}

</p>

<b>¥{$t.jiage}</b>

</div>

<span>

<dl>{$t.banxing}</dl>

<div class="screen-dd">

</div>

<div class="screen-a">

<a href="{$t.zaixianzixun}" title="点击我了解更多">咨询</a>

<a href="{$t.zaixianyuyue}" class="screen-a3" title="点击我了解更多">在线预约</a>

</div>

</span>

</div>

{/list}

{if !$total}

<div class="alert alert-danger"><strong>对不起!</strong> 没有找到任何记录 </div>

{/if}

{else}

<div class="alert alert-danger"><strong>对不起!</strong> 没有找到任何记录 </div>

{/if}

<div class="search-pagination">

<ul class="pagination">

{$pages}

</ul>

</div>

</div>

</div>


回帖
  • 可接二开、定制、使用解答
    #1楼    可接二开、定制、使用解答
    2018-06-07 16:49:29
    0
    {dr_search_url($params, 'order', 'jiage_asc')}
    {dr_search_url($params, 'order', 'jiage_desc')}
    jiage必须是主表字段
    满意答案
  • 13377185609
    #2楼    13377185609
    2018-06-07 17:48:35
    0
    谢谢大家