用自定義標簽實現下載排行_動易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教程-用自定義標簽實現下載排行。