本文档由亿联网维护
模版文件路径引用
<script src="{skins}/js/eycms.js"></script>动态文件引用
{eycms:include("../../eycms_head.asp")}常用标签
| 所属栏目名称 | {classname} | 更新日期 | {lastupdate} |
| 标题 | {title} | 内容简介 | {intro} |
| 显示内容 | {content} | 缩略图 | {pic} |
| 作者 | {author} | 内容分页 | {get_content_page} |
| 内容url | {contenturl} | 人气 | {hits} |
| 标题CSS | {style} | 相关内容id | {likeid} |
| 格式化日期 | {eycms.getdate(createdate,".",1)} | 来源 | {comefrom} |
不常用标签
| 是否带图 | {ispic} | 内容的标签 | {tags} |
| 所属栏目ID | {classid} | 发布日期 | {createdate} |
| 所属父栏目ID | {followid} | 所属栏目的所有子类 | {sonid} |
| 所属栏目图片 | {catepic} | 所属栏目的所有父类 | {parentid} |
| 当前内容ID | {id} | 内容分页的当前页数 | {page} |
| 外链网址 | {url} | 是否为外链 | {isurl} |
标题、关键词、描述
<title>{title}_{classname}{if page>1}_第{page}页{/if}_{eycms[webname]}</title>
<meta name="Keywords" content="{seokey}">
<meta name="Description" content="{seodesc}">
<link href="{webroot}lib/css/base.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="{skins}/common/css/common.css">
<script>var webroot="{webroot}";var themeroot="{theme_root}";var webmode="{webmode}";</script>
<script>var infoid="{rsshow[cid]}";var contenturl="{contenturl}";</script>
<script src="{webroot}lib/js/eycms.hits.js"></script>
{if iscomment=1 and syscomment}
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
{/if}您所在的位置:<a href="{webroot}">首页</a>{eycms.getpostion(parentid," > ")} > 正文
内容分页<div class="pglist">{get_content_page}</div>
热门排行
{eycms:rs top="10" table="ey_content" where="islock=1 and classid=[classid]" order="hits desc,id desc"}
{rs:eof}<li>没有资料</li>{/rs:eof}
<li><a href="{$rs[link]}" title="{$rs[title]}"{if $rs[isurl]=1} target="_blank"{/if} {$rs[style]}>{eycms.cutstr($rs[title],30,1)}</a></li>
{/eycms:rs}相关阅读
{if likeid<>"0"}
{eycms:rs top="10" table="ey_content" where="islock=1 and id in([likeid])" order="ontop desc,id desc"}
<li><a href="{$rs[link]}" title="{$rs[title]}"{if $rs[isurl]=1} target="_blank"{/if} {$rs[style]}>{eycms.cutstr($rs[title],30,1)}</a></li>
{/eycms:rs}
{/if}上一条、下一条
<div class="pre">上一篇:{eycms:rs top="1" table="ey_content" where="islock=1 and classid=[classid] and id<[id] and isurl=0" order="id desc"}
{rs:eof}<span class=c9>没有资料</span>{/rs:eof}
<a href="{$rs[link]}" title="{$rs[title]}">{eycms.cutstr($rs[title],70,1)}</a>
{/eycms:rs}</div>
<div class="next">下一篇:{eycms:rs top="1" table="ey_content" where="islock=1 and classid=[classid] and id>[id] and isurl=0"}
{rs:eof}<span class=c9>没有资料</span>{/rs:eof}
<a href="{$rs[link]}" title="{$rs[title]}">{eycms.cutstr($rs[title],70,1)}</a>
{/eycms:rs}</div>标签
<div class="tags">
<span>标签:</span>
{for i=0 to ubound(tags)}
<a href="{eycms.gurl("plug/tags.asp?tag=",server.urlencode(tags(i)))}">{tags(i)}</a>
{/for}
<a href="{eycms.gurl("plug/tags.asp","")}">全部</a>
</div>评论
<div class="comment-main">
{eycms:include("../../eycms_comment.asp")}
</div>发布日期、浏览次数
<div class="mark"><span>发布日期:{createdate}</span> <span>浏览次数:<i id="hits">{hits}</i></span></div>组图
<!--组图开始-->
<div class="showImg fl clearfix">
<div class="showImg_left'"
{dim picarr:picarr=eval(rsshow[piclist])}
<div class='hd">
<ul>{for i=0 to ubound(picarr)}<li></li>{/for}</ul>
</div>
<div class='bd'>
<ul"class='picList'>
{for i=0 to ubound(picarr)}
<li><img src='{picarr(i)}' alt"''></li>
{/for}
</ul>
"/div>
</div>
</div>
<!--组图结束-->