
分享帝國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[字段名]?> 即可...