帝国cms调用数据表下拉框字段的默认值
在任何模板里面均可添加以下代码<?$quyu=$empire->fetch1("select * from phome_enewsf where f='quyu' and tid='9'");$quyu=explode("|",$quyu[fvalue]);for ($i=0;$i<count($quyu);$i++){echo '<option value="'.$……
在任何模板里面均可添加以下代码
<?$quyu=$empire->fetch1("select * from phome_enewsf where f='quyu' and tid='9'");$quyu=explode("|",$quyu[fvalue]);for ($i=0;$i<count($quyu);$i++){echo '<option value="'.$quyu[$i].'">'.$quyu[$i].'</ption>';}?>
- 上一篇
帝国cms列表页栏目模板生成多个比如最新热门评分排序的静态页面
修改e/class/functions.php文件找到//替换分页数$string=str_replace('[!--list.pageno--]',($pagenum==1?'':$pagenum),$string);WriteFiletext($path,$classlevel.$string);$string='';}$no++;}和$empire->fre
- 下一篇
对帝国cms默认留言板模板做的一些美化
帝国cms留言板模板效果如下;留言板模板css.tableborder { border: 1px solid #ccc } .tableborder .header { background: #F0F0F0; color: #000;