分享帝国cms教程之调用全部数据表的最新数据的方法
代码如下:[e:loop={'select * from (select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_book where newstime unionselect id,classid,titleurl,filename,title,newstime,titlepic from p...
代码如下:[e:loop={'select * from (select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_book where newstime unionselect id,classid,titleurl,filename,title,newstime,titlepic from p...
Html代码如下:<a onclick="SetHome(window.location)" href="javascript:void(0)">设为首页</a> | <a onclick="AddFavorite(window.location,document.title)" href="javascript:void(0)">加入收藏</a>js代码如下:<sc...
找到e/class/connect.php文件找到以下代码://返回首页地址改成//返回首页地址function ReturnSiteIndexUrl(){global $public_r;if($public_r['indexpagedt']){$public_r['indextype']='.php';}$file=$public_r['newsu...
如果有一篇文章设置成要积分才能查看,那不管是普通会员还是VIP会员,查看文章都会被扣分。给VIP会员设置有效期 就不会给vip会员扣积分了...
6.6是在e/class/user.php将$changeregisterurl="ChangeRegister.php";修改为$changeregisterurl="";7.0修改 e/config/config.php 文件里的:$ecms_config['member']['changeregisterurl']...
select id,subject,status from 114.modoer_articles order by id DESC limit 2,5...
$uid=$empire->fetch1("select * from {$dbtbpre}enewsmemberadd where userid={$r[userid]}");if(empty($uid[userpic])){$uid[userpic]='/e/data/images/nouserpic.gif';}$newimg='';$newim='';if($r[ismember]==0)...
<form name="searchform" method="post" action="/e/search/index.php"><input type="hidden" name="tempid" value="1"><input type="hidden" name="andor" value="an...
用灵动标签调用即可[e:loop={'select ztid from phome_enewsztinfo where classid='.$navinfor[classid].' and id='.$navinfor[id],10,24,0}]专题名:<?=$class_zr[$bqr[ztid]][ztname]?>专题地址:/<?=$class_zr[$bqr[z...
<?=esub(str_replace(egetzy('rn'),'',$navinfor[smalltext]),截取字数);?>...
用<?=$r[字段名]?> 即可...