
-
帝国教程
A .首先要说明,目前排行调用实现的是: 一周(一月,一年)内新增的信息,按点击排行的调用 . 目前的排行调用方式,比较适合新闻网站,缺点是,如果本周无更新,就什么也调不出...
184

-
帝国教程
前言 模型之间的字段关联主要应用在同一个系统使用多个模型实现的情况下使用,用于实现多个模型之间的数据关联。如学校中的学生管理系统:一般要由学生档案模型、班级模型、学...
79

-
帝国教程
[ecmsinfo]"select * from phome_4ecms_news where checked=1 order by diggtop desc,id desc limit 10",10,30,0,24,10,0[/ecmsinfo] 这个是顶的排行 [ecmsinfo]"select * from phome_4ecms_news where newspath SUBDATE(NOW(),INTERVAL 7 DAY) order...
104

-
帝国教程
在e/class/function.php相应位置添加ClickPicNext函数 //替换禁用字符 function ReplaceWord($newstext){global $empire,$dbtbpre;if(empty($newstext)){return $newstext;}$sql=$empire-query("select newword,oldword from {$dbtbpre}enewsw...
66

-
帝国教程
第一步:在e/class/userfun.php中加入下面的函数,函数只有一个参数,就是当前ID //当前位置导航function user_linknav($classid){global $empire,$dbtbpre;$query="select classname,bclassid,classpath from {$dbtbpre}en...
184

-
帝国教程
用sql调用 12小时: ?=$empire-gettotal("select count(*) as total from phome_ecms_表 where newstimeUNIX_TIMESTAMP()-24*3600")? 6小时: ?=$empire-gettotal("select count(*) as total from phome_ecms_表 where newstimeUNIX_TIMESTAMP()-6...
72

-
帝国教程
栏目ID是递增的,不可以改变,但可以清空从零开始,前提是你所有栏目都不要了。 进入phpmyadmin操作你的帝国数据库,勾选phome_enewsclass这个表,选择清空...
127

-
帝国教程
scriptfunction sendtof(url){window.clipboardData.setData('Text',url);alert('复制地址成功,粘贴给你好友一起分享。');} /script a href="#####" onClick=sendtof("!--title--]:http://域名!--titleurl--]") title="点击复制文章...
111

-
帝国教程
帝国ECMS制作Google的Sitemap 1.在后台开启模板支持程序代码 2.在模板管理,列表模板里新增一个列表模板页面模板内容 !--empirenews.listtemp--]!--list.var1--!--empirenews.listtemp--] 列表内容模板 loc...
77