用自定义标签实现下载排行_动易Cms教程
教程Tag:暂无Tag,欢迎添加,赚取U币!
下面演示了如何通过自下定义标签来实现对下载软件进行下载排行
效果演示:
此主题相关图片如下:
查询语句:下面的查询语句适用与SQL版本,AC版本请把红色部分改成Status =-3
select top 10 SoftID,ChannelID,SoftName,Hits,WeekHits from PE_Soft where ChannelID={input(0)} and Status =3 and Deleted=0 order by Hits desc
参数列表:
请填写: ChannelID
标签内容:
<div class="b1 s228" id="left">
<div class="s228 rank" id="left">
<div class="pm1" id="left"><div style="margin-top: 4px;"><b>排行</b></div></div>
<div class="pm2" id="left"><b>游戏名称</b></div>
<div class="pm3" id="left"><b>近期下载</b></div>
<div class="pm4" id="right"><b>总下载</b></div>
</div>
<div class="s228 rank" id="left">
<div style="margin-top: 5px;">[本排行榜依据总下载次数]</div>
</div>
{Loop}{Infobegin}
<div class="s228 rank" id="left">
<div class="pm1" id="left"><img src="files/images/no1.gif" /></div>
<div class="pm2" id="left"><a href="{$InstallDir}{$Field(0,GetUrl,Soft,1)}" target="_blank">{$Field(2,Text,10,2,1)}</a></div>
<div class="pm3" id="left">{$Field(4,Num,0,0)}</div>
<div class="pm4" id="right">{$Field(3,Num,0,0)}</div>
</div>{Infoend}{Infobegin}
<div class="s228 rank" id="left">
<div class="pm1" id="left"><img src="files/images/no2.gif" /></div>
<div class="pm2" id="left"><a href="{$InstallDir}{$Field(0,GetUrl,Soft,1)}" target="_blank">{$Field(2,Text,10,2,1)}</a></div>
<div class="pm3" id="left">{$Field(4,Num,0,0)}</div>
<div class="pm4" id="right">{$Field(3,Num,0,0)}</div>
</div>{Infoend}{Infobegin}
<div class="s228 rank" id="left">
<div class="pm1" id="left"><img src="files/images/no3.gif" /></div>
<div class="pm2" id="left"><a href="{$InstallDir}{$Field(0,GetUrl,Soft,1)}" target="_blank">{$Field(2,Text,10,2,1)}</a></div>
<div class="s228 rank" id="left">
<div class="pm1" id="left"><div style="margin-top: 4px;"><b>排行</b></div></div>
<div class="pm2" id="left"><b>游戏名称</b></div>
<div class="pm3" id="left"><b>近期下载</b></div>
<div class="pm4" id="right"><b>总下载</b></div>
</div>
<div class="s228 rank" id="left">
<div style="margin-top: 5px;">[本排行榜依据总下载次数]</div>
</div>
{Loop}{Infobegin}
<div class="s228 rank" id="left">
<div class="pm1" id="left"><img src="files/images/no1.gif" /></div>
<div class="pm2" id="left"><a href="{$InstallDir}{$Field(0,GetUrl,Soft,1)}" target="_blank">{$Field(2,Text,10,2,1)}</a></div>
<div class="pm3" id="left">{$Field(4,Num,0,0)}</div>
<div class="pm4" id="right">{$Field(3,Num,0,0)}</div>
</div>{Infoend}{Infobegin}
<div class="s228 rank" id="left">
<div class="pm1" id="left"><img src="files/images/no2.gif" /></div>
<div class="pm2" id="left"><a href="{$InstallDir}{$Field(0,GetUrl,Soft,1)}" target="_blank">{$Field(2,Text,10,2,1)}</a></div>
<div class="pm3" id="left">{$Field(4,Num,0,0)}</div>
<div class="pm4" id="right">{$Field(3,Num,0,0)}</div>
</div>{Infoend}{Infobegin}
<div class="s228 rank" id="left">
<div class="pm1" id="left"><img src="files/images/no3.gif" /></div>
<div class="pm2" id="left"><a href="{$InstallDir}{$Field(0,GetUrl,Soft,1)}" target="_blank">{$Field(2,Text,10,2,1)}</a></div>
相关动易Cms教程:
- MAC错误的解决方法
- 如何屏蔽动易后台导航里的某个功能菜单?
- 动易.NET版本留言自动选定栏目方法
- 动易SiteFactoty整合Discuz!NT3.0
- 在任意位置获取根节点ID标签
- 如何开启SiteWeaver6.8的支持,反对功能
- Windows 2008安装动易.NET系统之四----动易系统安装篇
- Windows 2008安装动易.NET系统之三----数据库篇
- Windows 2008安装动易.NET系统之二----IIS、目录环境配置篇
- 数据库修复,SQL Server 2005内部操作不一致的处理
- 如何安装动易.net程序权限配置
- 为什么提示对Windows系统文件夹下的Temp目录没有访问权限?
- 相关链接:
- 教程说明:
动易Cms教程-用自定义标签实现下载排行。