YulinCMS GBList标签调用示例

来自站长百科
跳转至: 导航、​ 搜索

导航: 上一页

GBList 标签调用留言列表

GBList 标签语法格式如下:

{Yu:GBList 属性1="属性值1" 属性="属性值2"}
{NormalTemplate} 普通项模板 + 底层变量......{/NormalTemplate}
{AlterTemplate} 交替项模板 + 底层变量.......{/AlterTemplate}
{SeparTemplate} 分隔符模板内容..............{/SeparTemplate}
{ConditionTemplate} 条件输出模板内容........{/ConditionTemplate}
{/Yu:GBList}
  • 简单示例
<!-- 留言列表 开始 -->
{Yu:GBList Count="10"}
<table width="600" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e0e0e0" style="margin: 8px">
<tr bgcolor="#FFFFFF">
<td width="120" rowspan="2" valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<img src="{@WriterAvatar/}" border="0" /></td>
</tr>
<tr>
<td align="center">
{@WriterName/}</td>
</tr>
</table>
</td>
<td height="20" valign="middle" bgcolor="#eeeeee">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left">
<img src="{$$CmsPath/}/Common/Images/WriteTime.gif" align="absmiddle">
{@WriteTime F="FormatTime(yyyy-MM-dd HH:mm)"/}</td>
<td align="right">
<img src="{$$CmsPath/}/Common/Images/WriterEmail.gif" align="absmiddle">
<a title="{@WriterName/}的Email是:{@WriterEmail/}" href="mailto:{@WriterEmail/}" target="_blank">
Email</a>  <img src="{$$CmsPath/}/Common/Images/WriterQQ.gif" align="absmiddle">
<a title="{@WriterName/}的QQ是:{@WriterQQ/}" href="tencent://message/?uin={@WriterQQ/}"
target="_blank">QQ</a>  <img src="{$$CmsPath/}/Common/Images/WriterMSN.gif"
align="absmiddle">
<a title="{@WriterName/}的MSN是:{@WriterMSN/}" href="mailto:{@WriterMSN/}">MSN</a>  <img
src="{$$CmsPath/}/Common/Images/WriterIP.gif" align="absmiddle">
<span title="{@WriterName/} IP是:{@WriterIP" f="FormatIP(1.1.0.0)"/}">IP</span>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="80" valign="top">
{@WriteBody/}
<br />
{Yu:If Var="@ReplyBody" Test="<>" Value=""}
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#EEEEEE">
<tr>
<td bgcolor="#FFFFF1">
<font color="#cd3610">管理员[{@ReplyerName/}] 于 {@ReplyTime F="FormatTime(yyyy-MM-dd HH:mm)"/}
回复<br />
{@ReplyBody/}</font></td>
</tr>
</table>
{/Yu:If}
</td>
</tr>
</table>
</td>
</tr>
</table>
{/Yu:GBList}
<!-- 留言列表 结束 -->
YulinCMS GBListTags.gif
  • 标签解释

调用留言列表。每页显示10条留言

相关条目[ ]

参考来源[ ]