功能
1、所有功能都在后台管理设置
2、网址文字变色
3、网址文字加粗,斜体,粗+斜等样式
4、网址推介
5、网址简介提示
6、直接链接到网站url
7、热门网址
8、最新加入网址
9、广告功能
实现方法
1、首页网址推介标签
查询语句
select top 20 id,FolderName from ks_class where tn='{$CurrClassID}' order by folderOrder
循环体
[loop=20]
<li>[ <a href="{$Field(id,GetInfoUrl,100,1)}" class="nav">{$Field(FolderName,Text,8,0,0,)}</a> ] {SQL_文章循环体({$Field(id,GetInfoUrl,100,2)})}</li>
[/loop]
2、分页标签
查询语句
select ID,Title,TitleFontColor,KS_weburl,TitleFontType from KS_Article where tid in({$CurrClassChildID}) order by id desc
循环体
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
<tr> [loop=6]
<td><a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:
bold||style="font-weight:normal)}">{$Field(Title,Text,0,...,0,)}</font></a></td>
[/loop] </tr>
</table>
3、文章循环标签【嵌套到首页网址推介标签】
查询语句
select top 6 id,title,TitleFontColor,adddate,KS_weburl,KS_jieshao,TitleFontType from ks_article where tid='{$Param(0)}' and Recommend=1 order by id desc
循环体
[loop=6]<a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank" title="{$Field(KS_jieshao,Text,200,...,0,)}"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:bold"||style="font-weight:normal")}>{$Field(title,Text,0,...,0,没有推荐)}</font></a> | [/loop]
4、热门网址
查询语句
select id,title,TitleFontColor,KS_weburl,TitleFontType,KS_jieshao from ks_article where Popular=1 order by id desc
循环体
[loop=5]<li class="left_li">
<a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank" title="{$Field(KS_jieshao,Text,200,...,0,)}"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:bold"||style="font-weight:normal")}>{$Field(title,Text,28,0,0,没有热门)}</font></a>
</li>[/loop]
5、最新网址
查询语句
select id,title,TitleFontColor,KS_weburl,TitleFontType,KS_jieshao from ks_article order by id desc
循环体
[loop=5]<li class="left_li">
<a href="{$Field(KS_weburl,Text,0,...,0,)}" target="_blank" title="{$Field(KS_jieshao,Text,200,...,0,)}"><font color="{$Field(TitleFontColor,Text,0,...,0,#000000)}"; {$IF({$Field(TitleFontType,Num,0,2)}=1||style="font-weight:bold"||style="font-weight:normal")}>{$Field(title,Text,28,0,0,没有热门)}</font></a>
</li>[/loop]