123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?php
- define('EmpireCMSAdmin','1');
- require("../class/connect.php");
- require("../class/db_sql.php");
- require("../class/functions.php");
- require LoadLang("pub/fun.php");
- $link=db_connect();
- $empire=new mysqlquery();
- //验证用户
- $lur=is_login();
- $logininid=$lur['userid'];
- $loginin=$lur['username'];
- $loginrnd=$lur['rnd'];
- $loginlevel=$lur['groupid'];
- $loginadminstyleid=$lur['adminstyleid'];
- //ehash
- $ecms_hashur=hReturnEcmsHashStrAll();
- //验证权限
- CheckLevel($logininid,$loginin,$classid,"class");
- //展开
- if($_GET['doopen'])
- {
- $open=(int)$_GET['open'];
- SetDisplayClass($open);
- }
- //图标
- if(getcvar('displayclass',1))
- {
- $img="<a href='ListClass.php?doopen=1&open=0".$ecms_hashur['ehref']."' title='展开'><img src='../data/images/displaynoadd.gif' width='15' height='15' border='0'></a>";
- }
- else
- {
- $img="<a href='ListClass.php?doopen=1&open=1".$ecms_hashur['ehref']."' title='收缩'><img src='../data/images/displayadd.gif' width='15' height='15' border='0'></a>";
- }
- //缓存
- $displayclass=(int)getcvar('displayclass',1);
- $fcfile="../data/fc/ListClass".$displayclass.".php";
- $fclistclass='';
- if(file_exists($fcfile))
- {
- $fclistclass=str_replace(AddCheckViewTempCode(),'',ReadFiletext($fcfile));
- }
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>管理栏目</title>
- <link rel="stylesheet" href="adminstyle/<?=$loginadminstyleid?>/adminstyle.css" type="text/css">
- <SCRIPT lanuage="JScript">
- function turnit(ss)
- {
- if (ss.style.display=="")
- ss.style.display="none";
- else
- ss.style.display="";
- }
- var newWindow = null
- //调用地址
- function tvurl(classid){
- window.open('view/ClassUrl.php?<?=$ecms_hashur['ehref']?>&classid='+classid,'','width=500,height=250');
- }
- //刷新栏目
- function relist(classid){
- self.location.href='enews.php?<?=$ecms_hashur['href']?>&enews=ReListHtml&from=ListClass.php<?=urlencode($ecms_hashur['whehref'])?>&classid='+classid;
- }
- //刷新信息
- function renews(classid,tbname){
- window.open('ReHtml/DoRehtml.php?<?=$ecms_hashur['href']?>&enews=ReNewsHtml&from=ListClass.php<?=urlencode($ecms_hashur['whehref'])?>&classid='+classid+'&tbname[]='+tbname);
- }
- //归档
- function docinfo(classid){
- if(confirm('确认归档?'))
- {
- self.location.href='ecmsinfo.php?<?=$ecms_hashur['href']?>&enews=InfoToDoc&ecmsdoc=1&docfrom=ListClass.php<?=urlencode($ecms_hashur['whehref'])?>&classid='+classid;
- }
- }
- //刷新JS
- function rejs(classid){
- self.location.href='ecmschtml.php?<?=$ecms_hashur['href']?>&enews=ReSingleJs&doing=0&classid='+classid;
- }
- //复制
- function copyc(classid){
- self.location.href='AddClass.php?<?=$ecms_hashur['ehref']?>&classid='+classid+'&enews=AddClass&docopy=1';
- }
- //修改
- function editc(classid){
- self.location.href='AddClass.php?<?=$ecms_hashur['ehref']?>&classid='+classid+'&enews=EditClass';
- }
- //删除
- function delc(classid){
- if(confirm('确认要删除此栏目,将删除所属子栏目及信息'))
- {
- self.location.href='ecmsclass.php?<?=$ecms_hashur['href']?>&classid='+classid+'&enews=DelClass';
- }
- }
- //标题分类
- function ttc(classid){
- window.open('ClassInfoType.php?<?=$ecms_hashur['ehref']?>&classid='+classid);
- }
- //发布信息
- function addi(classid){
- window.open('AddNews.php?<?=$ecms_hashur['ehref']?>&enews=AddNews&classid='+classid);
- }
- </SCRIPT>
- </head>
- <body>
- <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
- <tr>
- <td width="18%">位置: <a href="ListClass.php<?=$ecms_hashur['whehref']?>">管理栏目</a></td>
- <td width="82%"> <div align="right" class="emenubutton">
- <input type="button" name="Submit6" value="增加栏目" onclick="self.location.href='AddClass.php?enews=AddClass<?=$ecms_hashur['ehref']?>'">
- <input type="button" name="Submit" value="刷新首页" onclick="self.location.href='ecmschtml.php?enews=ReIndex<?=$ecms_hashur['href']?>'">
- <input type="button" name="Submit2" value="刷新所有栏目页" onclick="window.open('ecmschtml.php?enews=ReListHtml_all&from=ListClass.php<?=urlencode($ecms_hashur['whehref'])?><?=$ecms_hashur['href']?>','','');">
- <input type="button" name="Submit3" value="刷新所有信息页面" onclick="window.open('ReHtml/DoRehtml.php?enews=ReNewsHtml&start=0&from=ListClass.php<?=urlencode($ecms_hashur['whehref'])?><?=$ecms_hashur['href']?>','','');">
- <input type="button" name="Submit4" value="刷新所有JS调用" onclick="window.open('ecmschtml.php?enews=ReAllNewsJs&from=ListClass.php<?=urlencode($ecms_hashur['whehref'])?><?=$ecms_hashur['href']?>','','');">
- </div></td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
- <form name=editorder method=post action=ecmsclass.php onsubmit="return confirm('确认要操作?');">
- <?=$ecms_hashur['form']?>
- <tr class="header" height="25">
- <td width="5%" align="center">顺序</td>
- <td width="7%" align="center"><?=$img?></td>
- <td width="6%" align="center">ID</td>
- <td width="36%">栏目名</td>
- <td width="6%" align="center">访问</td>
- <td width="14%">栏目管理</td>
- <td width="29%">操作</td>
- </tr>
- <?php
- echo $fclistclass;
- ?>
- <tr class="header">
- <td height="25" colspan="7"> <div align="left">
- <input type="submit" name="Submit5" value="修改栏目顺序" onClick="document.editorder.enews.value='EditClassOrder';document.editorder.action='ecmsclass.php';">
- <input name="enews" type="hidden" id="enews" value="EditClassOrder">
- <input type="submit" name="Submit7" value="刷新栏目页面" onClick="document.editorder.enews.value='GoReListHtmlMoreA';document.editorder.action='ecmschtml.php';">
- <input type="submit" name="Submit72" value="终极栏目属性转换" onClick="document.editorder.enews.value='ChangeClassIslast';document.editorder.action='ecmsclass.php';">
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25" colspan="7"><strong>终极栏目属性转换说明(只能选择单个栏目):</strong><br>
- 如果你选择的是<font color="#FF0000">非终极栏目</font>,则转为<font color="#FF0000">终极栏目</font><font color="#666666">(此栏目不能有子栏目)</font><br>
- 如果你选择的是<font color="#FF0000">终极栏目</font>,则转为<font color="#FF0000">非终极栏目</font><font color="#666666">(请先把当前栏目的数据转移,否则会出现冗余数据)<br>
- </font><strong>修改栏目顺序:顺序值越小越前面</strong></td>
- </tr>
- <input name="from" type="hidden" value="ListClass.php<?=$ecms_hashur['whehref']?>">
- <input name="gore" type="hidden" value="0">
- </form>
- </table>
- <br>
- <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
- <tr class="header">
- <td width="13%" height="25">
- <div align="center">名称</div></td>
- <td width="39%" height="25">调用地址</td>
- <td width="13%">
- <div align="center">名称</div></td>
- <td width="35%">
- <div align="center">调用地址</div></td>
- </tr>
- <tr>
- <td height="25" bgcolor="#FFFFFF"><div align="center">热门信息调用</div></td>
- <td height="25" bgcolor="#FFFFFF"> <input name="textfield" type="text" value="<?=$public_r[newsurl]?>d/js/js/hotnews.js">
- [<a href="ecmschtml.php?enews=ReHot_NewNews<?=$ecms_hashur['href']?>">刷新</a>][<a href="view/js.php?js=hotnews&p=js<?=$ecms_hashur['ehref']?>" target="_blank">预览</a>]</td>
- <td bgcolor="#FFFFFF"><div align="center">横向搜索表单</div></td>
- <td bgcolor="#FFFFFF"> <div align="left">
- <input name="textfield3" type="text" value="<?=$public_r[newsurl]?>d/js/js/search_news1.js">
- [<a href="view/js.php?js=search_news1&p=js<?=$ecms_hashur['ehref']?>" target="_blank">预览</a>]</div></td>
- </tr>
- <tr>
- <td height="25" bgcolor="#FFFFFF"> <div align="center">最新信息调用</div></td>
- <td height="25" bgcolor="#FFFFFF"> <input name="textfield2" type="text" value="<?=$public_r[newsurl]?>d/js/js/newnews.js">
- [<a href="ecmschtml.php?enews=ReHot_NewNews<?=$ecms_hashur['href']?>">刷新</a>][<a href="view/js.php?js=newnews&p=js<?=$ecms_hashur['ehref']?>" target="_blank">预览</a>]</td>
- <td bgcolor="#FFFFFF"><div align="center">纵向搜索表单</div></td>
- <td bgcolor="#FFFFFF"> <div align="left">
- <input name="textfield4" type="text" value="<?=$public_r[newsurl]?>d/js/js/search_news2.js">
- [<a href="view/js.php?js=search_news2&p=js<?=$ecms_hashur['ehref']?>" target="_blank">预览</a>]</div></td>
- </tr>
- <tr>
- <td height="25" bgcolor="#FFFFFF"><div align="center">推荐信息调用</div></td>
- <td height="25" bgcolor="#FFFFFF"><input name="textfield22" type="text" value="<?=$public_r[newsurl]?>d/js/js/goodnews.js">
- [<a href="ecmschtml.php?enews=ReHot_NewNews<?=$ecms_hashur['href']?>">刷新</a>][<a href="view/js.php?js=goodnews&p=js<?=$ecms_hashur['ehref']?>" target="_blank">预览</a>]</td>
- <td bgcolor="#FFFFFF"><div align="center">搜索页面地址</div></td>
- <td bgcolor="#FFFFFF"> <div align="left">
- <input name="textfield5" type="text" value="<?=$public_r[newsurl]?>search">
- [<a href="../../search" target="_blank">预览</a>]</div></td>
- </tr>
- <tr>
- <td height="24" bgcolor="#FFFFFF">
- <div align="center">控制面板地址</div></td>
- <td height="24" bgcolor="#FFFFFF">
- <input name="textfield52" type="text" value="<?=$public_r[newsurl]?>e/member/cp">
- [<a href="../member/cp" target="_blank">预览</a>]</td>
- <td bgcolor="#FFFFFF"><div align="center"></div></td>
- <td bgcolor="#FFFFFF"><div align="center"></div></td>
- </tr>
- <tr class="header">
- <td height="25" colspan="4">js调用方式:<script src=js地址></script></td>
- </tr>
- </table>
- </body>
- </html>
- <?php
- db_close();
- $empire=null;
- ?>
|