destoon实现VIP排名一直在前面排序的方法_PHP

WBOY
Release: 2016-05-31 19:30:10
Original
1024 people have browsed it

本文示例方法实现destoon的排序方式为:一天内VIP登陆后,在点更新之后,会排在其他没有更新的VIP和普通会员前面。

其具体的操作步骤如下:

打开module\sell\admin\template\ 下setting.tpl.php文件
在大约71行找到:

<select onchange="if(this.value) Dd('order').value=this.value;">
Copy after login

并在其下行添加:

<option value="vip desc,editdate desc,edittime desc"<&#63;php if($order == 'vip desc,editdate desc,edittime desc') echo ' selected';&#63;>><&#63;php echo VIP;&#63;>级别,更新日期,更新时间</option>
Copy after login

即可实现该功能。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template