列表页栏目别名:<?=$class_r[$GLOBALS[navclassid]][bname]?>
当前页面:[!--newsnav--]
本站网址:[!--news.url--]
扩展变量的调用:<?=$public_r['add_自定义变量名']?>
列表模板得到父栏目链接:
<a href="[!--news.url--]e/public/ClassUrl/?classid=[!--bclass.id--]">
获取当前链接:
<?$r['classid']=$GLOBALS[navclassid];$classurl=sys_ReturnBqClassname($r,9);echo $classurl;?>
内容模板调用时间:<?=date("YmdHis",$navinfor['newstime'])?> Y年 m月 d日 H小时 i分钟 s秒
[e:loop={'selfinfo',6,0,0,'','newstime DESC'}]
<?=$bqsr['titleurl']?> (链接)
<?=$bqr['title']?> (标题)
<?=$bqr[onclick]?> (点击数)
<?=date('Y-m-d',$bqr[newstime])?>(时间:年-月-日)
<?=esub($bqr[smalltext],180)?> (简要说明里,限制180个字符即90个字)
语法:esub(字符串,截取字数,后缀)
<?=esub('12345678',6,'...')?>,返回结果为:123456...
<?=$bqr[titlepic]?> (缩略图的)
[/e:loop]
帝国CMS灵动标签调用当前栏目缩略图:
[e:loop={"select classimg from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]
<img src="<?=$bqr[classimg]?>" alt="[!---class.name--]" width="950" height="300" >
[/e:loop]
istop=0 是排除置顶 信息
isgood=0 是排除推荐 信息
firsttitle=0 是排除头条 信息
灵动标签简化版写法
sql附加条件'istop=0 and isgood=0 and firsttitle=0'
以上是帝国CMS 灵动标签排除头条、推荐、置顶等信息调用的方法
帝国cms 灵动标签【列表页】调用当前父栏目下的所有子栏目
<?
$bclassid = $class_r[$GLOBALS[navclassid]][bclassid]; //获取当前父栏目ID
?>
[e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid ='$bclassid' order by classid",0,24,0}]<!-取得父栏目下的子栏目->
<li><a href="<?=$public_r[newsurl].$bqr[classpath]?>/"><?=$bqr[classname]?></a></li>
[/e:loop]
内容页调用当前文档id下的字段
[e:loop={"SELECT nianfen FROM [!db.pre!]ecms_cont where id='$navinfor[id]' limit 1",20,24,0}]
<span> 所属年份:<?=$bqr['nianfen']?></span><br>
[/e:loop]
灵动标签实现数字自增的方法
[e:loop={"select * from phome_enewsclass where bclassid=0 order by classid limit 10 ",10,24,0}]
<li><span><?=$bqno?></span><a href="<?=$bqsr['classurl']?>"><?=$bqr[classname]?></a></li>
[/e:loop]
解析:
<?=$bqno?>从1开始。
<?=$bqno+1?>从2开始。
<?=$bqno+2?>从3开始。
<?=$bqno?>输出的效果 1 2 3 4 5 6 7 8 9 10
<?=sprintf("%02d", $bqno)?>输出效果 01 02 03 04 05 06 07 08 09 10
<?=sprintf("%03d", $bqno)?>输出效果 001 002 003 004 005 006 007 008 009 010
灵动标签调用栏目自定义字段:
[e:loop={"select * from {$dbtbpre}enewsclass where classid in(1,4,8,15,18) order by myorder,classid desc",0,24,0}]
<?php
$cr=$empire->fetch1("select * from {$dbtbpre}enewsclassadd where classid='$bqr[classid]'");
$newimg=$cr['lanmu'];
?>
<?=$bqr[classname]?>-<?=$newimg?> (注:lanmu是栏目自定义字段名称)
[/e:loop]
灵动标签调用标题图片没有图片时显示默认图片
<img src="<?=$bqr[titlepic]?$bqr[titlepic]:'/e/data/images/notimg.gif'?>">
灵动标签标题多余字用省略号显示
[e:loop={'news',8,22,0}]
<?php
if(strlen($bqr[title]) > 54)
$cutitle = esub($bqr[title],36,'...');
else
$cutitle = $bqr[title];
?>
<li><span style="color:#ff0000;"><?=date('Y-m-d',$bqr[newstime])?></span>
[<a href="<?=$bqsr[classurl]?>"><?=$bqsr[classname]?></a>] <a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>"><?=$cutitle?></a></li>
[/e:loop]
关于字数的问题有谁能帮我解释下!!? 标题大于18个汉字就截取,所以esub里是36,这个我能理解,,strlen($bqr[title]) > 54这个不太理解,utf8一个汉字等于三个字符
<title>[!--pagetitle--]</title> <meta name="keywords" content="[!--pagekey--]"> <meta name="description" content="[!--pagedes--]">
<title>[e:loop={"select bname from phome_enewsclass where
classid='$GLOBALS[navclassid]'",1,24,0}] <?=$bqr[bname]?> [/e:loop]</title>
<meta name="keywords" content="[!--class.keywords--]">
<meta name="description" content="[!--class.intro--]">
<title>[!--title--]</title> <meta name="keywords" content="[!--pagekey--]"> <meta name="description" content="[!--smalltext--]">
<a href="[!--news.url--]<?=$class_r[10]['classpath']?>" > (id为10的新闻链接)
<?=$class_r[10]['classname']?> (id为10的栏目名称)
<?=$class_r[10]['classimg']?> (id为10的栏目缩略图)
<?=$class_r[10]['bname']?> (id为10的栏目别名标题)
当前栏目:<?=$class_r[$GLOBALS[navclassid]]['classname']?>
栏目别名:[e:loop={"select bname from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}] <?=$bqr[bname]?> [/e:loop]
栏目自定义字段的单独调用:<?=ReturnClassAddField(0,'funame')?>(0表示当前栏目id,其他数字表示栏目id号)
[e:loop={"select classname,classpath from [!db.pre!]enewsclass where bclassid=0 order by classid ",0,24,0}]
<a href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>" title="<?=$bqr[classname]?>"><?=$bqr[classname]?></a><br>
[/e:loop]
<div class="bd">
[e:loop={'select classid,classname,classpath from [!db.pre!]enewsclass where bclassid=3 order by myorder',20,24,0}]
<ul class="gridlist2">
<!--循环开始-->
<?php $ecms_bq_sql2=sys_ReturnEcmsLoopBq("select * from [!db.pre!]ecms_produt where classid=$bqr[classid]",14,24,0);
while($bqr2=$empire->fetch($ecms_bq_sql2))
{
?><li class="n1 animated delay1">
<a href="<?=$bqr2[titleurl]?>" title="<?=sub($bqr2[title],0,54,false)?>" target="_blank">
<img src="<?=$bqr2[titlepic]?>" title="<?=sub($bqr2[title],0,54,false)?>" alt="<?=sub($bqr2[title],0,54,false)?>" />
</a>
<a class="InfoTitle" href="<?=$bqr2[titleurl]?>" title="<?=sub($bqr2[title],0,54,false)?>" target="_blank"><?=sub($bqr2[title],0,54,false)?></a>
</li>
<?php
}
?>
<!--循环结束-->
</ul>
[/e:loop]
</div>
<ul id="nav" class="nyw12 clearfix">
<?php
$i=0;
if($GLOBALS[navclassid]==""){
echo '<li class="mgl"><h3><a class="on" href="[!--news.url--]" alt="网站首页" >网站首页<p>HOME</p></a></li>';
}
else {
echo '<li class="mgl"><h3><a href="[!--news.url--]" alt="网站首页" >网站首页<p>HOME</p></a></li>';
}
?>
<?php
$ecms_bq_sql=sys_ReturnEcmsLoopBq("SELECT a.classname,a.islast,a.classpath,a.classid,b.lanmu,b.nofollow from [!db.pre!]enewsclass as a,[!db.pre!]enewsclassadd as b where a.classid = b.classid and a.bclassid=0 and a.classid not in (6,9) ORDER BY a.myorder",14,24,0);
$nof="";
$css="";
$style="";
$fcr=explode('|',$class_r[$GLOBALS[navclassid]][featherclass]);
$topbclassid=$fcr[1]?$fcr[1]:$GLOBALS[navclassid];//取得当前栏目的顶级栏目ID
$num=0;
while($bqr=$empire->fetch($ecms_bq_sql))
{
if($bqr[nofollow]=='是'){
$nof='rel="nofollow"';
}else{
$nof="";
}
$num++;
if($bqr[classid]==$topbclassid){
$css="on";
}else{
$css="";
}
if($num==3){
$style="l240";
}else{
$style="";
}
?>
<li class="mgl <?=$style?>">
<h3><a <?=$nof?> class="<?=$css?>" href="<?=$public_r['newsurl']?><?=$bqr['classpath']?>/"><?=$bqr['classname']?>
<p>
<?=$bqr['lanmu']?>
</p>
</a>
</h3>
<ul class="mglbox" style="display: none;">
<?php
if($bqr[islast]==1){
$ecms_bq_sql2=sys_ReturnEcmsLoopBq("select * from [!db.pre!]ecms_cont where classid=$bqr[classid]",14,24,0);
}else{
$ecms_bq_sql2=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewsclass where bclassid=$bqr[classid] order by myorder",14,24,0);
}
while($bqr2=$empire->fetch($ecms_bq_sql2))
{
if($bqr[islast]==1){
?>
<li><a href="<?=$bqr2[titleurl]?>" alt="<?=sub($bqr2[title],0,54,false)?>" title="#"><?=sub($bqr2[title],0,54,false)?></a></li>
<?
}else{
?>
<li><a href="<?=$public_r[newsurl]?><?=$bqr2[classpath]?>/" alt="<?=sub($bqr2[classname],0,54,false)?>"><?=sub($bqr2[classname],0,54,false)?></a></li>
<?php
}
}
?>
</ul>
</li>
<?php
}
?>
</ul>
<?php
$i=0;
if($GLOBALS[navclassid]==""){
echo '<li class=active><a href="[!--news.url--]" >首页</a></li>';
}
else {
echo '<li><a href="[!--news.url--]" >首页</a></li>';
}
?>
[e:loop={"select classid,classname from [!db.pre!]enewsclass where bclassid=0 order by myorder",0,24,0}]
<?php
$classurl=sys_ReturnBqClassname($bqr,9);//取得栏目地址
$class="";
if($GLOBALS[navclassid])
{
$fcr=explode('|',$class_r[$GLOBALS[navclassid]][featherclass]);
$topbclassid=$fcr[1]?$fcr[1]:$GLOBALS[navclassid];//取得当前栏目的一级栏目ID
if($bqr[classid]==$topbclassid)
{
$class="active";
}
}
?>
<tr>
<li class="<?=$class?>"><a href="<?=$classurl?>"><?=$bqr[classname]?></a></li>
</tr>
[/e:loop]
<script type="text/javascript">
try {var urlhash = window.location.hash;if (!urlhash.match("fromapp"))
{if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
{window.location="<?=$public_r['add_murl']?>";}}}
catch(err)
{
}</script>
<meta name="mobile-agent" content="format=xhtml;url=<?=$public_r['add_murl']?>">
<script type="text/javascript">
try {var urlhash = window.location.hash;if (!urlhash.match("fromapp"))
{if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
{window.location="<?=$public_r['add_murl']?><?=sys_ReturnBqClassUrl($class_r[$GLOBALS[navclassid]]);?>";}}}
catch(err)
{
}</script>
<meta name="mobile-agent" content="format=xhtml;url=<?=$public_r['add_murl']?><?=sys_ReturnBqClassUrl($class_r[$GLOBALS[navclassid]]);?>">
<script type="text/javascript">
try {var urlhash = window.location.hash;if (!urlhash.match("fromapp"))
{if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))
{window.location="<?=$public_r['add_murl']?>[!--titleurl--]";}}}
catch(err)
{
}</script>
<meta name="mobile-agent" content="format=xhtml;url=<?=$public_r['add_murl']?>[!--titleurl--]"> <!--?=$public_r['add_murl']?-->是系统设置---扩展变量---add_murl,里面可填你手机端地址
[e:loop={'select * from [!db.pre!]ecms_syny where classid=23 order by id ASC limit 6',20,24,0}]
<?php
$fr=$empire->fetch1("select onlinepath from {$dbtbpre}ecms_syny where id='$bqr[id]'");
$olurl=explode('::::::',$fr['onlinepath']);
?>
<li class="fnt_16 li<?=$bqno?>" data-src="<?=$olurl[1]?>">
<q><?=$bqr['title']?></q>
<i></i>
<em><img src="<?=$bqr['titlepic']?>" alt=""></em>
</li>
[/e:loop]
在e/enews/gbookfun1.php下
$sip=egetip();
$sbr=$empire->fetch1("select ip from {$dbtbpre}enewsgbook where ip='$sip';");
if(!empty($sbr['ip']))
{
printerror("ReDoForPl","history.go(-1)",1);
}
在e/class/q_functions.php下
$rzip=egetip();
$inum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsfeedback where ip='$rzip' and date_format(saytime,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')");
if($inum){
echo printerror2("IP".$rzip."今日已发一条反馈!");
exit;
}
<a href="[!--news.url--]e/public/GotoNext?classid=[!--classid--]&id=[!--id--]&enews=pre">上一篇</a> <a href="[!--news.url--]e/public/GotoNext?classid=[!--classid--]&id=[!--id--]&enews=next">下一篇</a>
打开phome_enewsuser以后,重点修改下面三个部分数据: password修改为:28faed7bf0c97624ad3b8737b6947e41 salt修改为:fy1rWNIJ salt2修改为:pzNVrEdbkRJ2W6bvxpVo 密码为:admin888
<script>
function check(){
var reg1=/^1[34578]\d{9}$/;
username=document.getElementById("name");
userphone=document.getElementById("mycall");
usermasg=document.getElementById("lytext");
scode=document.getElementById("scode");
if (username.value=="" || username.value=="请输入姓名"){
alert("用户名不能为空!");
username.focus();
return false;
}
if (userphone.value=="" || userphone.value=="请输入电话"){
alert("电话不能为空!");
userphone.focus();
return false;
}
if(!(reg1.test(userphone.value)))
{
alert("电话输入有误!请重新输入!!");
userphone.focus();
return false;
}
if (usermasg.value=="" || usermasg.value=="请输入内容"){
alert("内空不能为空!");
usermasg.focus();
return false;
}
if (scode.value==""){
alert("验证码不能为空!");
scode.focus();
return false;
}
}
var weburl = window.location.href;
document.getElementById("zturl").value = weburl;
</script>
<?php
$ecms_bq_sql=sys_ReturnEcmsLoopBq("select * from {$dbtbpre}enewsclass where bclassid=0 order by myorder limit 7",14,24,0);
$bqno=0;
while($bqr=$empire->fetch($ecms_bq_sql))
{
$bqsr=sys_ReturnEcmsLoopStext($bqr);
$bqno++;
?>
<li>
<a href='<?=$public_r[newsurl]?><?=$bqr[classpath]?>/'><?=sub($bqr[classname],0,54,false)?></a>
<p>
<?php
$ecms_bq_sql2=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewsclass where bclassid=$bqr[classid] order by myorder limit 8",14,24,0);
$bqno2=0;
while($bqr2=$empire->fetch($ecms_bq_sql2))
{
$bqsr2=sys_ReturnEcmsLoopStext($bqr2);
$bqno2++;
?>
<a href="<?=$public_r[newsurl]?><?=$bqr2[classpath]?>/" ><?=sub($bqr2[classname],0,54,false)?></a>
<?php
}
?></p></li>
<?php
}
?>
列表页 内容页 判断有图或者无图时调用的代码:
if(empty($r[titlepic]))
{
$con='无图的模板代码 列如:<li><img src="图片地址">无图模板</li>';
}
else{
$con='有图的模板代码 列如:<div><li><img src="图片地址">有图模板</li></div>';
}
$listtemp=$con;
方法一:
没有标题图片时显示指定图片:
if(empty($r[titlepic]))
{
$r[titlepic]='/images/img.gif';
}
$listtemp='<li><a href="[!--titleurl--]"><img src="[!--titlepic--]"></a></li>';
说明:$r[titlepic]为标题图片字段变量。$listtemp为模板内容变量。
也不一定是标题图片,其它字段也可以。
示例代码,eweima 字段
$img='<div class="a">字段为空时显示这里</div>';
if(empty($r[eweima]))
{
$img='<div class="a"><div class="bbb">[!---eweima--]</div></div>';
}
$listtemp=''.$img.'';
方法二:
$img='<dt><a target=”_blank” href=”[!–titleurl–]”><img alt=”[!–title–]” title=”[!–title–]” width=”120″ height=”100″ src=”[!–titlepic–]”/></a></dt>
<dd><a id=”newstitle” name=”newstitle” target=”_blank” href=”[!–titleurl–]”>[!–title–]</a></dd>';
if(empty($r[titlepic]))
{
$img='<dd><a id=”newstitle” name=”newstitle” target=”_blank” href=”[!–titleurl–]”>[!–title–]</a></dd>';
}
$listtemp='<dl>’.$img.'</dl>';
就是,有标题图片与没有的情况下分别调用。
[e:loop={"SELECT a.classname,a.classid,b.columnname,b.nofollow from [!db.pre!]enewsclass as a,[!db.pre!]enewsclassadd as b where a.classid = b.classid and a.bclassid=0 and a.classid in (1,18,2,3,4,5,6) ORDER BY a.myorder",10,24,0}]
<?php
$nof="";
if($bqr[nofollow]=='是'){
$nof='rel="nofollow"';
}
$classurl=sys_ReturnBqClassname($bqr,9);//取得栏目地址
$class="";
if($GLOBALS[navclassid])
{
$fcr=explode('|',$class_r[$GLOBALS[navclassid]][featherclass]);
$topbclassid=$fcr[1]?$fcr[1]:$GLOBALS[navclassid];//取得当前栏目的一级栏目ID
if($bqr[classid]==$topbclassid)
{
$class="class=menu_check";
}
}
?>
<li <?=$class?>><a <?=$nof?> href="<?=$classurl?>"><?=$bqr[classname]?></a></li>
[/e:loop]
方法1、打开数据表 “phome_enewsloginfail”, 有几个字段:ip num lasttime 删除里面的记录,然后再重新登录就没有错误提示了 方法2、修改e/class/config.php文件,把loginnum的登陆限制次数改一下,登陆后再参数设置
1、先到参数设置开启模板支持程序代码 2、在模板中加入如下代码 <a href="/e/public/ClassUrl?classid=<?=$class_r[$navinfor[classid]][bclassid]?>"><?=$class_r[$navinfor[classid]][classname]?></a> 说明: <?=$class_r[$navinfor[classid]][bclassid]?>">这是父栏目id <?=$class_r[$navinfor[classid]][classname]?>这是父栏目名称
把根目录下的 e/admin/ecmseditor 这个文件夹替换
[e:loop={1,10,0,0,'id in (1,2,3,5,7,8)'}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>
[/e:loop]
[e:loop={'select * from [!db.pre!]enewslink where checked=1 order by myorder',20,24,0}]
<li><a href="<?=$bqr[lurl]?>" title="<?=$bqr[lname]?>" target="_blank"><?=$bqr[lname]?></a></li>
[/e:loop]
其中,classid=1 为友情链接分类ID,checkde=1 为审核过的链接。
如果希望不需要指定分类,则去掉 and classid=1 即可。
[e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=1 order by lid',3,24,0}]
<li><a href="<?=$bqr[lurl]?>" title="<?=$bqr[lname]?>" target="_blank"><img src="<?=$bqr[lpic]?>"/></a></li>
[/e:loop]
<form id="form1" name="form1" method="post" action="">
<label for="FRIEND LINK ">友情链接:</label>
<select onchange="window.open(this.options[selectedIndex].value,'','');" name="FRIEND LINK" size="1" id="FRIEND LINK">
[e:loop={'select * from [!db.pre!]enewslink where checked=1 order by lid',20,24,0}]
<option value="<?=$bqr[lurl]?>">
<?=$bqr[lname]?>
</option>
[/e:loop]
</select>
</form> [e:loop={"SELECT a.classname,a.classpath,b.columnname from [!db.pre!]enewsclass as a,[!db.pre!]enewsclassadd as b where a.classid = b.classid and a.bclassid=0 and a.classid not in (9) ORDER BY a.myorder",10,24,0}]
<li>
<a href="[!--news.url--]<?=$bqr['classpath']?>/" target="_blank">
<p class="nav_ul_li_p1"><?=$bqr['classname']?></p>
<p class="nav_ul_li_p2"><?=$bqr['columnname']?></p>
</a>
</li>
[/e:loop]
当前栏目下的子栏目调用:
[e:loop={"select * from [!db.pre!]enewsclass where ".($class_r[$GLOBALS[navclassid]][islast]?"classid='$GLOBALS[navclassid]'":ReturnClass($class_r[$GLOBALS[navclassid]][sonclass]))." order by classid limit 1",1,24,0}]
<li><a href="[!--news.url--]<?=$bqr['classpath']?>/" ><?=$bqr['classname']?></a></li>
[/e:loop]
指定子栏目循环
[e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='4' order by `classid` asc ",7,24,0}]
<li><a title="<?=$bqr[classname]?>" href="<?=$bqsr['classurl']?>" ><?=$bqr[classname]?></a></li>
[/e:loop]
新闻内容当前栏目随机调用文章
//$GLOBALS[navclassid]当前栏目下
[e:loop={"select * from {$dbtbpre}ecms_news where classid='$GLOBALS[navclassid]' order by rand() desc limit 2",20,24,0}]
<dl><a href="<?=$bqsr['titleurl']?>"><div class="ny_new_sg fl"><img alt="<?=$bqr['title']?>" src="<?=$bqr['titlepic']?>"></div><div class="ny_new_sgcont fl"><h2><?=$bqr['title']?></h2></div></a></dl>
[/e:loop]
列表页用$r 内容页用$varinfor
$r[title]=esub($r[title],8,'...');//截取前8个字符,多出部分用...代替
$r[title]=str_replace("lhj","",$r[title]);//替换指定文本
$str='<li><div class="p"><span class="txt">'.$r[title].'</span></div></li>';
单个栏目高亮
<div class="about_title2_cn"><a <? if($GLOBALS[navclassid]=='12'){ echo 'class="about_title2_cn_hover"';} ?>
href="[!--news.url--]<?=$class_r[12]['classpath']?>"><?=$class_r[12]['classname']?></a></div>
当前栏目下的子栏目高亮:
<? $a=$class_r[$GLOBALS[navclassid]][bclassid];?>
[e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid='. $a.' order by myorder,classid asc",0,24,0}]
<?php
$css="moren";
if($bqr[classid]==$GLOBALS[navclassid])
{
$css="curon";
}
?>
<li class="<?=$css?>"><a href="<?=$public_r[newsurl].$bqr[classpath]?>"><?=$bqr[classname]?></a></li>
[/e:loop]
新闻文章标题高亮:
[e:loop={'selfinfo',10,0,0}]
<?
if (sys_ReturnBqTitleLink($navinfor)=="$bqsr[titleurl]"){
echo "<li><a href='$bqsr[titleurl]' class='current'>$bqr[title]</a></li>";
}
else{
echo "<li><a href='$bqsr[titleurl]'>$bqr[title]</a></li>";
}
?>
[/e:loop]
<?=$class_r[$GLOBALS[navclassid]][bname]?>
<?php
$cr=$empire->fetch1("select bname from phome_enewsclass where
classid='".$GLOBALS[navclassid]."' limit 1");
echo $cr['bname'];
?> 增加模板时list.var模板需要勾选“使用程序代码”选项
$newstime=$r[newstime];//获取信息发布时间
$ri=format_datetime($newstime,"d");//单独获取日
$yue=format_datetime($newstime,"m");
$year=format_datetime($newstime,"Y");
$listtemp=' 循环的列表(<div class="new_li">
<div id="xinwenDate"><p class="day">'.$ri.'</p><p class="month">'.$yue.'</p>
<p class="year">'.$year.'年</p></div>
<div id="xinwenList">
<p class="xinwenTitle"><a href="[!--titleurl--]">[!--title--]</a></p>
<div class="xinwenText">[!--smalltext--]</div>
</div>
</div>)';
步骤:把ckplayer文件夹放到根目录/www/e/DownSys/play/文件夹里,然后在电影内容文档上增加视频链接。前端用iframe调用 <iframe name= "iFrame1" width="100%" height="100%" src= "[!--news.url--]e/DownSys/play/?classid= [!--classid--]&id=[!--id--]&pathid=" frameborder= "0"> </iframe>
and,exec,insert,select,delete,update,chr,mid,master,or,truncate,char,declare,join,cmd,outfile,union,update,replace,sleep,benchmark,load_file,create
<script src=[!--news.url--]e/public/onclick/?ztid=[!--self.classid--]&enews=dozt></script>
<script src=[!--news.url--]e/public/ViewClick/?classid=[!--classid--]&id=[!--id--]&addclick=1></script>
<meta http-equiv="refresh" content="10;url=music/index.html"> 注释:“10”代表十秒后跳转时间,“music/index.html”代表跳转的新页面地址