更新日志:2016-05-25

【引用CSS样式】

复制内容 <link rel="stylesheet" href="{skins}/common/css/common.css">

【引用JS组件】

复制内容 <script src="{skins}/common/js/jquery.SuperSlide.2.1.2.js"></script> <script src="{skins}/common/js/common.js"></script>

【单页】

复制内容 <!-- 模板通用框架 --> <div class="c-page c-cb"> {eycms:rs top="1" table="ey_model_page" where="classid=[classid]"} {rs:eof} <div class="c-404"> <img src="{skins}/common/images/404.png"> <p>【错误信息】:没有内容</p> </div> {/rs:eof} {eycms.get_content_split($rs[content],htmlrule)} {/eycms:rs} </div> <div class="c-pages">{get_content_page}</div> <!-- 模板通用框架 -->

【列表】

复制内容 <!-- 模板通用框架 --> <ul class="c-cbli"> {eycms:rs table="ey_content" where="classid in([sonid]) and islock=1" order="ontop desc,id desc" pagesize="{var pagenum}"} {rs:eof} <div class="c-404"> <img src="{skins}/common/images/404.png"> <p>【错误信息】:没有内容</p> </div> {/rs:eof} <li> <a href="{$rs[link]}" title="{$rs[title]}">{eycms.cutstr($rs[title],68,1)}</a> <span>{eycms.getdate($rs[createdate],"-",2)}</span> </li> {/eycms:rs} </ul> <div class="c-pages">{showpage}</div> <!-- 模板通用框架 -->

【图文】

复制内容 <!-- 模板通用框架 --> <ul class="c-cbli"> {eycms:rs table="ey_content" where="classid in([sonid]) and islock=1" order="ontop desc,id desc" pagesize="{var pagenum}"} {rs:eof} <div class="c-404"> <img src="{skins}/common/images/404.png"> <p>【错误信息】:没有内容</p> </div> {/rs:eof} <li> <div> <a href="{$rs[link]}" title="{$rs[title]}"><img src="{if $rs[ispic]=1}{$rs[pic]}{else}{skins}/common/images/no.gif{/if}" alt="{$rs[title]}"></a> </div> <div>{eycms.cutstr(eycms.dishtml($rs[intro]),280,1)}</div> <p> <a href="{$rs[link]}" title="{$rs[title]}">{eycms.cutstr($rs[title],68,1)}</a> <span>{eycms.getdate($rs[createdate],"-",2)}</span> </p> </li> {/eycms:rs} </ul> <div class="c-pages">{showpage}</div> <!-- 模板通用框架 -->

【列表内容】

复制内容 <!-- 模板通用框架 --> <div class="c-show"> <div class="c-proBox"> <h3>内容</h3> <div class="c-cb"> <div class="c-proCon c-cb"> <div class="c-Title"> <h2>{title}</h2> <p>人气:<span id="hits">{hits}</span>{if iscomment=1 and syscomment} 评论:{comments}{/if} 日期:{createdate} 标签:{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></p> </div> {content} </div> <div class="c-allPages">{eycms:rs top="1" table="ey_content" where="classid=[classid] and id>[id] and isurl=0 and islock=1"}{rs:eof}<a class="c-fl on">没有啦</a>{/rs:eof}<a class="c-fl" href="{$rs[link]}" title="{$rs[title]}">上一条</a>{/eycms:rs}{eycms:rs top="1" table="ey_content" where="classid=[classid] and id<[id] and isurl=0 and islock=1" order="id desc"}{rs:eof}<a class="c-fr on">没有啦</a>{/rs:eof}<a class="c-fr" href="{$rs[link]}" title="{$rs[title]}">下一条</a>{/eycms:rs}</div> </div> {eycms:include("../../eycms_comment.asp")} </div> </div> <!-- 模板通用框架 -->

【图片】

复制内容 <!-- 模板通用框架 --> <ul class="c-cbli"> {eycms:rs table="ey_content" where="classid in([sonid]) and islock=1" order="ontop desc,id desc" pagesize="{var pagenum}"} {rs:eof} <div class="c-404"> <img src="{skins}/common/images/404.png"> <p>【错误信息】:没有内容</p> </div> {/rs:eof} <li> <div> <a href="{$rs[link]}" title="{$rs[title]}"><img src="{if $rs[ispic]=1}{$rs[pic]}{else}{skins}/common/images/no.gif{/if}" alt="{$rs[title]}" height="154" width="204"></a> </div> <p><a href="{$rs[link]}" title="{$rs[title]}">{eycms.cutstr($rs[title],18,1)}</a></p> </li> {/eycms:rs} </ul> <div class="c-pages">{showpage}</div> <!-- 模板通用框架 -->

【图片内容】

复制内容 <!-- 模板通用框架 --> <div class="c-show"> <div class="c-proBox"> {dim picarr:picarr=eval(rsshow[piclist])} <h3>名称</h3> <div class="c-cb"> <div class="c-fl"> <div class="c-preView"> <div id="vertical" class="c-bigImg"> <img src="{picarr(0)}" id="midimg"> <div id="winSelector"></div> </div> <div class="c-smallImg"> <div class="c-scrollButton c-smallImgUp disabled"><</div> <div id="c-imageMenu"> <ul> {for i=0 to ubound(picarr)} <li {if i=0}id="onlickImg"{/if}><img src="{picarr(i)}"></li> {/for} </ul> </div> <div class="c-scrollButton c-smallImgDown {if i<5}disabled{/if}">></div> </div> <div id="bigView"><img width="800" height="800"></div> </div> </div> <div class="c-proTitle c-fr"> <h2>{title}</h2> <ul class="c-cb"> <li>人气<br/><span id="hits">{hits}</span></li> {if iscomment=1 and syscomment}<li>评论<br/>{comments}</li>{/if} </ul> <div class="c-proTag"><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> </div> <h3>内容</h3> <div class="c-cb"> <div class="c-proCon c-cb"> {content} </div> <div class="c-allPages">{eycms:rs top="1" table="ey_content" where="classid=[classid] and id>[id] and isurl=0 and islock=1"}{rs:eof}<a class="c-fl on">没有啦</a>{/rs:eof}<a class="c-fl" href="{$rs[link]}" title="{$rs[title]}">上一条</a>{/eycms:rs}{eycms:rs top="1" table="ey_content" where="classid=[classid] and id<[id] and isurl=0 and islock=1" order="id desc"}{rs:eof}<a class="c-fr on">没有啦</a>{/rs:eof}<a class="c-fr" href="{$rs[link]}" title="{$rs[title]}">下一条</a>{/eycms:rs}</div> </div> {eycms:include("../../eycms_comment.asp")} </div> </div> <!-- 模板通用框架 -->

【画廊内容】

复制内容 <!-- 模板通用框架 --> <div class="c-show"> <div class="c-proBox"> {dim picarr:picarr=eval(rsshow[piclist])} <h3>内容</h3> <div class="c-cb"> <div class="c-proCon c-cb"> <div class="c-Title"> <h2>{title}</h2> <p>人气:<span id="hits">{hits}</span>{if iscomment=1 and syscomment} 评论:{comments}{/if} 标签:{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></p> </div> <div class="c-proPic"> <div class="bd"> <ul> {for i=0 to ubound(picarr)} <li><img src="{picarr(i)}"></li> {/for} </ul> </div> <span class="prev"></span> <span class="next"></span> </div> {content} </div> <div class="c-allPages">{eycms:rs top="1" table="ey_content" where="classid=[classid] and id>[id] and isurl=0 and islock=1"}{rs:eof}<a class="c-fl on">没有啦</a>{/rs:eof}<a class="c-fl" href="{$rs[link]}" title="{$rs[title]}">上一条</a>{/eycms:rs}{eycms:rs top="1" table="ey_content" where="classid=[classid] and id<[id] and isurl=0 and islock=1" order="id desc"}{rs:eof}<a class="c-fr on">没有啦</a>{/rs:eof}<a class="c-fr" href="{$rs[link]}" title="{$rs[title]}">下一条</a>{/eycms:rs}</div> </div> {eycms:include("../../eycms_comment.asp")} </div> </div> <!-- 模板通用框架 -->

【评论】

复制内容 {if syscomment and not(commentconfig(2))} {dim infoid:infoid=rsshow[cid]} <h3>评论</h3> <div class="c-cb"> <ul class="c-comment c-commentAjax"> {eycms:rs table="ey_expand_comment" where="islock=1 and contentid=[infoid]" order="commentid desc" pagesize="3" isadminurl="0"} {rs:eof} <li> <p class="on">管理员<span>刚刚</span></p> <p>暂无任何留言!</p> </li> {/rs:eof} <li class="c-ajax"> <p class="on">{$rs[username]}<span>{eycms.diffuudate($rs[createdate])}</span></p> <p>{$rs[content]}</p> {if eycms.strlen($rs[reply])>0} <p class="admin">管理员回复:{$rs[reply]}</p> {/if} </li> {/eycms:rs} </ul> {dim total:total=eycms.page.totalurl} {if total>1} <div class="c-more c-moreAjax"><a href="{page:next}">点击查看更多+</a></div> {/if} {dim pageshow:pageshow=1} <form class="c-form c-cb form_comment" method="post"> <textarea type="text" name="t0" placeholder="我也来说几句"></textarea> <input type="hidden" name="t1" value='{asp eycms.get_cityname("网友")}'> <input type="submit" value="发表"> </form> </div> {/if}

【留言】

复制内容 <!-- 模板通用框架 --> <div class="c-show"> <div class="c-proBox"> <h3>留言</h3> <div class="c-cb"> <ul class="c-comment c-commentAjax"> {eycms:rs table="ey_expand_book" where="islock=1" order="id desc" pagesize="20" isadminurl="0"} {rs:eof} <li> <p class="on">管理员<span>刚刚</span></p> <p>暂无任何留言!</p> </li> {/rs:eof} <li class="c-ajax"> <p class="on">{$rs[username]}<span>{eycms.diffuudate($rs[createdate])}</span></p> <p>{$rs[content]}</p> {if eycms.strlen($rs[reply])>0} <p class="admin">管理员回复:{$rs[reply]}</p> {/if} </li> {/eycms:rs} </ul> {dim total:total=eycms.page.totalurl} {if total>1} <div class="c-more c-moreAjax"><a href="{page:next}">点击查看更多+</a></div> {/if} <form class="c-book form_book" method="post"> <ul class="c-cbli"> <li><em>昵称</em><input type="text" name="t0" data-rule="昵称:required;"></li> <li><em>内容</em><textarea name="t1" data-rule="留言内容:required;"></textarea></li> <li><em>联系电话</em><input type="text" name="t2" data-rule="电话号码:required;tel"></li> <li><em>性别</em><select name="t3"><option value="0">保密</option><option value="1">男</option><option value="2">女</option></select></li> <li><em>验证码</em><input type="text" name="t4" data-rule="验证码:required;"><img src="{webroot}lib/imgcode.asp?t0=80&t1=20" title="看不清楚?点击刷新!" id="imgcode" onClick="this.src+='&'+Math.random();"></li> <li class="bnt"><input type="submit" value="发表"> <input type="reset" value="重置"></li> </ul> </form> </div> </div> </div> <!-- 模板通用框架 -->

【RSS】

复制内容 <!-- 模板通用框架 --> <div class="c-show"> {eycms:rp top="0" table="ey_category" where="followid=0 and modeid>0" order="ordnum,cateid" var="eycms_dim:sonid" auto="j"} <div class="c-proBox"> <h3>{$rp[catename]}<a class="c-rss" href='{eycms.gurl("rss.asp?id=",$rp[cateid])}' target="_blank"><img src="{skins}/common/images/rss.gif"></a></h3> <div class="c-cb"> <div class="c-proCon c-cb"> <ul class="c-cbli"> {eycms:rs top="5" table="ey_content" where="classid in([eycms_dim]) and islock=1" order="ontop desc,id desc"} <li> <a href="{$rs[link]}" title="{$rs[title]}">{eycms.cutstr($rs[title],68,1)}</a> <span>{eycms.getdate($rs[createdate],"-",2)}</span> </li> {/eycms:rs} </ul> </div> </div> </div> {/eycms:rp} </div> <!-- 模板通用框架 -->

【404】

复制内容 <!-- 模板通用框架 --> <div class="c-page c-cb"> <div class="c-404"> <img src="{skins}/common/images/404.png"> <p>【错误信息】:{errormsg}</p> </div> </div> <!-- 模板通用框架 -->

【搜索】

复制内容 <!-- 模板通用框架 --> <div class="c-show"> <div class="c-proBox"> <div class="c-cb"> <div class="c-proCon c-cb"> <ul class="c-cbli"> {eycms:rs table="ey_content" where="islock=1[sql_where]" order="ontop desc,id desc" pagesize="20" isadminurl="0"} {rs:eof} <div class="c-404"> <img src="{skins}/common/images/404.png"> <p>【错误信息】:没有内容</p> </div> {/rs:eof} <li> <a href="{$rs[link]}" title="{$rs[title]}">{eycms.highlight(eycms.cutstr($rs[title],68,1),key)}</a> <span>{eycms.getdate($rs[createdate],"-",2)}</span> </li> {/eycms:rs} </ul> </div> </div> </div> </div> <!-- 模板通用框架 -->

【标签】

复制内容 <!-- 模板通用框架 --> <div class="c-show"> <div class="c-proBox"> <div class="c-cb"> <div class="c-proCon c-cb"> {eycms:rs table="ey_expand_tags" where="hits>0" order="hits desc,id desc" pagesize="20" isadminurl="0"}<a href='{eycms.gurl("tags.asp?tag=",server.urlencode($rs[title]))}'>{$rs[title]} ({$rs[hits]})</a> {/eycms:rs} </div> </div> </div> </div> <!-- 模板通用框架 -->

【标签列表】

复制内容 <!-- 模板通用框架 --> <div class="c-show"> <div class="c-proBox"> <div class="c-cb"> <div class="c-proCon c-cb"> <ul class="c-cbli"> {eycms:rs table="ey_content" where="islock=1[sql_where]" order="ontop desc,id desc" pagesize="20" isadminurl="0"} {rs:eof} <div class="c-404"> <img src="{skins}/common/images/404.png"> <p>【错误信息】:没有内容</p> </div> {/rs:eof} <li> <a href="{$rs[link]}" title="{$rs[title]}">{eycms.highlight(eycms.cutstr($rs[title],68,1),tag)}</a> <span>{eycms.getdate($rs[createdate],"-",2)}</span> </li> {/eycms:rs} </ul> </div> </div> </div> </div> <!-- 模板通用框架 -->

【侧栏】

复制内容 <ul> {eycms:rp top="0" table="ey_category" where="followid=[rootid]" order="ordnum,cateid" var="rpid:cateid"} {rp:eof}<li><a href="{eycms.getcateurl(classid)}" class="on">{classname}</a></li>{/rp:eof} <li><a href="{$rp[link]}" {if $rp[cateid]=classid}class="on"{/if}>{eycms.cutstr($rp[catename],10,1)}</a> {if instr($rp[sonid],",")>0} <ul {if instr(","&$rp[sonid]&",",","&classid&",")<=0 or rootid=classid}{else}class="c-db"{/if}> {eycms:rs table="ey_category" top="0" where="followid=[rpid]" order="ordnum,cateid"} <li><a href="{$rs[link]}">{eycms.cutstr($rs[catename],10,1)}</a></li> {/eycms:rs} </ul> {/if} </li> {/eycms:rp} </ul>

【导航】

复制内容 <ul> <li><a href="{webroot}">网站首页</a></li> {eycms:rs top="9" table="ey_category" where="followid=0 and ismenu=1" order="ordnum,cateid" var="eycms_rp:cateid"} <li> <a href="{$rs[link]}">{eycms.cutstr($rs[catename],10,0)}</a> {if instr($rs[sonid],",")>0} <div> <div> {eycms:rp top="0" table="ey_category" where="followid=[eycms_rp]" order="ordnum,cateid"}<a href="{$rp[link]}">{eycms.cutstr($rp[catename],10,0)}</a>|{/eycms:rp} </div> </div> {/if} </li> {/eycms:rs} </ul>

【搜索】

复制内容 <form method="get" action="{webroot}plug/search.asp" onsubmit="return checksearch(this)"> <input name="key" value="请输入关键字" onfocus="if(this.value==defaultValue)this.value=''" onblur="if(this.value=='')this.value=defaultValue"> <div> <select name="classid"> <option value="0">不限类别</option> {eycms:rs top="0" table="ey_category" where="followid=0 and modeid>0" order="ordnum,cateid"} <option value="{$rs[cateid]}" {if clng(classid)=$rs[cateid]}selected="selected"{/if}>{$rs[catename]}</option> {/eycms:rs} </select> </div> <input type="submit" title="搜索" value=""> </form>

【循环列表】

复制内容 {eycms:rs top="3" table="ey_model_news" where="classid in([eycms.get_sonid(2)]) and islock=1" join="left join ey_content on ey_model_news.cid=ey_content.id" order="id desc"} <li><a href="{$rs[link]}" title="{$rs[title]}">{$rs[title]}</a></li> {/eycms:rs}

【循环图片】

复制内容 {eycms:rs top="3" table="ey_model_photo" where="classid in([eycms.get_sonid(3)]) and ispic=1 and isnice=1 and islock=1" join="left join ey_content on ey_model_photo.cid=ey_content.id" order="id desc"} <li> <a href="{$rs[link]}" title="{$rs[title]}"><img src="{if $rs[ispic]=1}{$rs[pic]}{else}{skins}/common/images/no.gif{/if}" alt="{$rs[title]}"></a> </li> {/eycms:rs}

【循环广告】

复制内容 {eycms:rs top="5" table="ey_expand_ad" where="classid=1 and islock=1" order="ordnum desc,id desc"} <li><img src="{$rs[fileurl]}"></li> {/eycms:rs}

【友情链接】

复制内容 {eycms:rs top="0" table="ey_expand_link" where="islock=1 and islogo=0" order="id desc"} <a href="{$rs[weburl]}" title="{$rs[webname]}" {if isindex="yes"}{else}rel="nofollow"{/if} target="_blank">{eycms.cutstr($rs[webname],20,0)}</a> {/eycms:rs}

【浮动工具】

复制内容 <!-- 浮动工具 --> <div class="c-tools"> <ul> <li class="tel-ico"><span>{eycms[my_phone]}</span></li> <li class="ewm-ico"><span class="ewmPic"><img src="{eycms[my_ewm]}"></span></li> <li class="qq-ico"><a href="tencent://message/?uin={eycms[my_qq]}" rel="nofollow"><span>{eycms[my_qq]}</span></a></li> <li class="top-ico"></li> </ul> </div> <!-- 浮动工具 -->

【其他】

复制内容 {eycms.cutstr(eycms.dishtml($rs[intro]),130,1)} -- 截取130字节内容 {eycms.cutstr($rs[title],30,1)} -- 截取30字节标题 {year($rs[createdate])}-{month($rs[createdate])}-{day($rs[createdate])} -- 获取时间年月日 {eycms.getdate($rs[createdate],"-",2)} -- 获取时间月日 {Ucase(eycms.get_catedir(5))} -- 获取英文目录 {eycms.getcatename(5)} -- 获取中文目录 {eycms.getcateurl(5)} -- 获取目录链接 {eycms.is_current(parentid,$rs[cateid],"class='hover'")} -- 获取导航焦点 当前位置:<a href="{webroot}">首页</a>{eycms.getpostion(parentid," / ")} -- 获取当前位置 当前位置:<a href="{webroot}">首页</a> / <a href='{eycms.gurl("plug/tags.asp","")}'>所有标签</a> / {tag} -- 获取当前位置 {eycms.getOptionName("my_syfw",2,$rs[my_syfw])} -- 获取自定义字段 "+webroot+"theme/"+themeroot+" -- 变量路径

【地图】

复制内容 <!-- 通用地图 --> <style> .com-map{width:159px;height:121px;} /* 地图尺寸 */ .BMap_cpyCtrl{display:none;} /* 去地图版权 */ </style> <script src="http://api.map.baidu.com/api?v=2.0&ak=hhKi5mVbjmdDD5rAWtGkCjuD"></script> <div id="indexmap" class="com-map"></div> <script type="text/javascript"> $(function() { var map = new BMap.Map("indexmap"); var myIcon = new BMap.Icon("{skins}/images/tubiao_03.png", new BMap.Size(14, 19)); map.centerAndZoom(new BMap.Point({asp replace(eycms[my_point],",",",")}), 16); var marker1 = new BMap.Marker(new BMap.Point({asp replace(eycms[my_point],",",",")}), { icon: myIcon }); map.addOverlay(marker1); marker1.setAnimation(BMAP_ANIMATION_BOUNCE) }); </script> <!-- 通用地图 -->

【多语言】

复制内容 <link rel="stylesheet" href="{webroot}lib/css/base.css"> <style> .langmenu{position:absolute;right:0;top:12px;} .uselang{padding-top:12px} </style> <div class="langmenu">{langmenu}</div> {if eycms.strlen(langmenu)>0}uselang{/if} -- 判断语言

【重置CSS】

复制内容 blockquote,body,button,caption,dd,div,dl,dt,fieldset,figure,form,h1,h2,h3,h4,h5,h6,hr,html,input,legend,li,menu,ol,p,pre,table,td,textarea,th,ul{margin:0;padding:0;} address,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;} table{border-collapse:collapse;border-spacing:0;} caption,th{text-align:left;font-weight:400;} abbr,body,fieldset,html,iframe,img{border:0;} address,cite,dfn,em,i,var{font-style:normal;} [hidefocus],summary{outline:0;} li{list-style:none;} h1,h2,h3,h4,h5,h6,small{font-size:100%;} sub,sup{font-size:83%;} code,kbd,pre,samp{font-family:inherit;} q:after,q:before{content:none;} textarea{overflow:auto;resize:none;} label,summary{cursor:default;} a,button{cursor:pointer;} b,em,h1,h2,h3,h4,h5,h6,strong{font-weight:700;} a,a:hover,del,ins,s,u{text-decoration:none;} body,button,input,keygen,legend,select,textarea{outline:0;color:#333;font:12px/1.14 arial,\5b8b\4f53;} body{background:#fff;} a,a:hover{color:#333;}

【重置HTML】

复制内容 <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Xz 101 Template</title> </head> <body> </body> </html>