资讯模版

资讯模版适用于内容资讯的显示。

我们就来讲讲资讯模版的使用方法。

同样,也是在网页设计器中把设计好的代码标签拷贝到资讯模版中。

 

 

具体的代码实现如下:

<html>
<head>
<meta name="Designer" content="图元科技" />
<meta name="Publisher" content="深圳市图元科技有限公司" />

<title>深圳市城管局-[TY:Title]</title>
<link href="../../../css/style.css" rel="stylesheet" type="text/css">
<!--与后台交互代码 start-->

</head>

<body>
<script src='../../../js/Privatejs_20061112153528.js'></script>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="6" height="243" valign="top">&nbsp;</td>
<td width="935" valign="top"><table width="932" height="461" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="927" height="461" valign="top" background="../../../images/index/main_background2.jpg" style="border-right:#6eafcb solid 1px; border-left:#6eafcb solid 1px; padding-left:15px;padding-right:15px; padding-top:5px; padding-bottom:5px;"><table width="100%" height="21" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="6%" height="21" class="loca"><img src="../../../images/le2/dot_sun.jpg" width="22" height="21" align="absmiddle"> 您所在的位置:[TY:Navigation]</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="6%" class="loca">&nbsp;</td>
</tr>
</table>
<!--startprint-->
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>
<td height="38" colspan="2" align="center" valign="middle" background="/images/titlebg.jpg" class="article_title">[TY:Title]</td>
</tr>
<tr>
<td width="82%" height="25" bgcolor="#DCEEF5"><table width="87%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div align="right"><span style="background-repeat:repeat-y">阅读:[TY:ViewClick] 出处:[TY:Source] 发布日期:[TY:Year]-[TY:Month]-[TY:Day]</span></div></td>
</tr>
</table></td>
<td width="18%" align="center" bgcolor="#DCEEF5" style="padding-top:3px;"><span class="loca">【字号 <a href="javascript:doZoom(16)" class="loca">大</a> <a href="javascript:doZoom(14)" class="loca">中</a> <a href="javascript:doZoom(12)" class="loca">小</a>】</span></td>
</tr>
<tr>
<td height="8" colspan="2" align="center" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th height="6" background="/images/line2.jpg" scope="col"><img src="/images/spacer.gif" width="1" height="1"></th>
</tr>
</table></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td class="article" id=zoom> [TY:Content] </td>
</tr>
<tr>
<td class="News" id=zoom><p align='right' class="text">[TY:SubPage]</p></td>
</tr>
</table><!--endprint-->
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th height="6" background="/images/line2.jpg" scope="col"><img src="/images/spacer.gif" width="1" height="1"></th>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="6">
<tr>
<td height="1" colspan="2" background="/images/bg_dot.gif"></td>
</tr>
<tr>
<td height="25">
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td>上一条:<a href='[TY:PrevNews]'>[TY:PrevTitle]</a></td>
</tr>
<tr>
<td>下一条:<a href='[TY:NextNews]'>[TY:NextTitle]</a> </td>
</tr>
</table>
</td>
<td align="right"></td>
</tr>
<tr>
<td width="97%" height="40" align="right">
<input name="Submit" type="button" class="btn1" value="收藏本页" onclick=window.external.AddFavorite(document.location.href,document.title)>
&nbsp;
<input name="Submit2" type="button" class="btn1" value="打印文章" onClick="doPrint()">
&nbsp;
<input name="Submit3" type="button" class="btn1" value="关闭窗口" onClick="window.close()">
&nbsp;</td>
<td width="3%" align="right" valign="middle"><a href="#"><img src="../../../images/news/2006_button_top.gif" width="38" height="29" border="0"></a></td>
</tr>
</table><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="ccccd4">
<td width="9" height="27" bgcolor="#EDEDED"></td>
<td width="430" bgcolor="#EDEDED"><strong class="title_bold">相关内容</strong></td>
<td width="416" bgcolor="#EDEDED"><strong class="title_bold">热门内容</strong></td>
</tr>
<tr bgcolor="#f2f3f7">
<td colspan="3" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="5">
<tr>
<td width="51%" valign="top"><table width="99%" border="0" cellspacing="0" cellpadding="0">
[TY:Correlation TY:NewsCount=8]
<tr>
<td height="23" style="padding-left:10px;"><img src="../../../images/index/dot_aticle.jpg" width="10" height="12" align="absmiddle"> <a href="[TY:NewsPath]" class="black">[TY:Title]</a></td>
</tr>
[/TY:Correlation]
</table></td>
<td width="49%" valign="top" style="padding-left:10px;"class="black"><script src='../../../js/Privatejs_20061112161301.js'></script></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="ccccd4">
<td width="9" height="27" bgcolor="#EDEDED"></td>
<td width="846" bgcolor="#EDEDED"><b class="title_bold">您的评论 </b><a href="[TY:ReviewPath]" target="_blank">网友评论<span class="red">[TY:ReCount]</span>条</a></td>
</tr>
<tr bgcolor="#f2f3f7">
<td colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="5" cellpadding="3">
<tr>
<td>[TY:LastReview]</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="12" cellpadding="0">
[TY:Review]
<tr>
<td width="63%" style="border:1px #6eafcb solid;"><table width="97%" border="0" align="center" cellpadding="6" cellspacing="0">
<input type=hidden name=DocumentID value=1734>
<tr>
<td>用户名:
<input name=ReviewName type=text class="input4">
密码


<input name="textfield" type="text" class="input4" size="15">


<input name="checkbox" type="checkbox" value="checkbox" checked>
匿名发表 </td>
</tr>
<tr>
<td><textarea name=ReviewContent cols=60 rows=6 class="input4" style="width:100%"></textarea></td>
</tr>
<tr>
<td align=center><input name=submit type=submit class="btn1" value=发送> </td>
</tr>
</table></td>
<td width="37%" style="border:1px #6eafcb solid;">&nbsp;</td>
</tr>
[/TY:Review]
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="932" height="12" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="12" style="border-right:#6eafcb solid 1px; border-bottom:#a5d2e5 solid 1px; border-left:#6eafcb solid 1px; background-repeat:no-repeat;">&nbsp;</td>
</tr>
</table>
<table width="100%" height="6" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
<script src='../../../js/Privatejs_20061112153646.js'></script>
</body>
</html>