dttemppageleft.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. $link=db_connect();
  7. $empire=new mysqlquery();
  8. $editor=1;
  9. //验证用户
  10. $lur=is_login();
  11. $logininid=$lur['userid'];
  12. $loginin=$lur['username'];
  13. $loginrnd=$lur['rnd'];
  14. $loginlevel=$lur['groupid'];
  15. $loginadminstyleid=$lur['adminstyleid'];
  16. //ehash
  17. $ecms_hashur=hReturnEcmsHashStrAll();
  18. //验证权限
  19. CheckLevel($logininid,$loginin,$classid,"dttemp");
  20. //关闭
  21. if(!$ecms_config['esafe']['openeditdttemp'])
  22. {
  23. echo"没有开启在线修改动态页面模板";
  24. exit();
  25. }
  26. $showtempr=array();
  27. $showtempr['incfile']='';
  28. $showtempr['doinfo']='';
  29. $showtempr['pubtemp']='';
  30. $showtempr['shopsys']='';
  31. $showtempr['member']='';
  32. $showtempr['membermsg']='';
  33. $showtempr['memberfriend']='';
  34. $showtempr['memberfav']='';
  35. $showtempr['memberother']='';
  36. $showtempr['memberspace']='';
  37. $showtempr['memberconnect']='';
  38. $showtempr['diytemp']='';
  39. $tempsql=$empire->query("select tempid,tempvar,tempname,tempfile,temptype from {$dbtbpre}enewstempdt order by myorder,tempid");
  40. while($tempr=$empire->fetch($tempsql))
  41. {
  42. $andstr='<tr><td height="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor=\'#EFEFEF\'" onMouseOut="this.style.backgroundColor=\'#FFFFFF\'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="EditDttemp.php?tempid='.$tempr['tempid'].$ecms_hashur['ehref'].'" target="apmain">'.$tempr['tempname'].'</a></td></tr>';
  43. if($tempr['temptype']=='incfile')
  44. {
  45. $showtempr['incfile'].=$andstr;
  46. }
  47. if($tempr['temptype']=='doinfo')
  48. {
  49. $showtempr['doinfo'].=$andstr;
  50. }
  51. if($tempr['temptype']=='pubtemp')
  52. {
  53. $showtempr['pubtemp'].=$andstr;
  54. }
  55. if($tempr['temptype']=='shopsys')
  56. {
  57. $showtempr['shopsys'].=$andstr;
  58. }
  59. if($tempr['temptype']=='member')
  60. {
  61. $showtempr['member'].=$andstr;
  62. }
  63. if($tempr['temptype']=='membermsg')
  64. {
  65. $showtempr['membermsg'].=$andstr;
  66. }
  67. if($tempr['temptype']=='memberfriend')
  68. {
  69. $showtempr['memberfriend'].=$andstr;
  70. }
  71. if($tempr['temptype']=='memberfav')
  72. {
  73. $showtempr['memberfav'].=$andstr;
  74. }
  75. if($tempr['temptype']=='memberother')
  76. {
  77. $showtempr['memberother'].=$andstr;
  78. }
  79. if($tempr['temptype']=='memberspace')
  80. {
  81. $showtempr['memberspace'].=$andstr;
  82. }
  83. if($tempr['temptype']=='memberconnect')
  84. {
  85. $showtempr['memberconnect'].=$andstr;
  86. }
  87. if($tempr['temptype']=='diytemp')
  88. {
  89. $showtempr['diytemp'].=$andstr;
  90. }
  91. }
  92. ?>
  93. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  94. <html>
  95. <head>
  96. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  97. <title>菜单</title>
  98. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  99. <SCRIPT lanuage="JScript">
  100. function DisplayImg(ss,imgname,phome)
  101. {
  102. if(imgname=="incfileimg")
  103. {
  104. img=todisplay(incfile,phome);
  105. document.images.incfileimg.src=img;
  106. }
  107. else if(imgname=="memberimg")
  108. {
  109. img=todisplay(member,phome);
  110. document.images.memberimg.src=img;
  111. }
  112. else if(imgname=="memberfunimg")
  113. {
  114. img=todisplay(memberfun,phome);
  115. document.images.memberfunimg.src=img;
  116. }
  117. else if(imgname=="memberspaceimg")
  118. {
  119. img=todisplay(memberspace,phome);
  120. document.images.memberspaceimg.src=img;
  121. }
  122. else if(imgname=="memberconnectimg")
  123. {
  124. img=todisplay(memberconnect,phome);
  125. document.images.memberconnectimg.src=img;
  126. }
  127. else if(imgname=="memberotherimg")
  128. {
  129. img=todisplay(memberother,phome);
  130. document.images.memberotherimg.src=img;
  131. }
  132. else if(imgname=="doinfoimg")
  133. {
  134. img=todisplay(doinfo,phome);
  135. document.images.doinfoimg.src=img;
  136. }
  137. else if(imgname=="shopsysimg")
  138. {
  139. img=todisplay(shopsys,phome);
  140. document.images.shopsysimg.src=img;
  141. }
  142. else if(imgname=="pubtempimg")
  143. {
  144. img=todisplay(pubtemp,phome);
  145. document.images.pubtempimg.src=img;
  146. }
  147. else if(imgname=="diytempimg")
  148. {
  149. img=todisplay(diytemp,phome);
  150. document.images.diytempimg.src=img;
  151. }
  152. else
  153. {
  154. }
  155. }
  156. function todisplay(ss,phome)
  157. {
  158. if(ss.style.display=="")
  159. {
  160. ss.style.display="none";
  161. theimg="../openpage/images/add.gif";
  162. }
  163. else
  164. {
  165. ss.style.display="";
  166. theimg="../openpage/images/noadd.gif";
  167. }
  168. return theimg;
  169. }
  170. function turnit(ss,img)
  171. {
  172. DisplayImg(ss,img,0);
  173. }
  174. </SCRIPT>
  175. </head>
  176. <body topmargin="0">
  177. <br>
  178. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="incfileid">
  179. <tr>
  180. <td height="25" class="header"><img src="../openpage/images/noadd.gif" name="incfileimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(incfile,"incfileimg"); style="CURSOR: hand">公共引用页面</a></td>
  181. </tr>
  182. <tbody id="incfile">
  183. <?=$showtempr['incfile']?>
  184. </tbody>
  185. </table>
  186. <br>
  187. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="memberid">
  188. <tr>
  189. <td height="25" class="header"><img src="../openpage/images/noadd.gif" name="memberimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(member,"memberimg"); style="CURSOR: hand">会员基本页面</a></td>
  190. </tr>
  191. <tbody id="member">
  192. <?=$showtempr['member']?>
  193. </tbody>
  194. </table>
  195. <br>
  196. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="memberfunid">
  197. <tr>
  198. <td height="25" class="header"><img src="../openpage/images/noadd.gif" name="memberfunimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(memberfun,"memberfunimg"); style="CURSOR: hand">会员模块页面</a></td>
  199. </tr>
  200. <tbody id="memberfun">
  201. <tr>
  202. <td height="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;短消息页面</td>
  203. </tr>
  204. <?=$showtempr['membermsg']?>
  205. <tr>
  206. <td height="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;好友页面</td>
  207. </tr>
  208. <?=$showtempr['memberfriend']?>
  209. <tr>
  210. <td height="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;收藏夹页面</td>
  211. </tr>
  212. <?=$showtempr['memberfav']?>
  213. </tbody>
  214. </table>
  215. <br>
  216. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="memberspaceid">
  217. <tr>
  218. <td height="25" class="header"><img src="../openpage/images/noadd.gif" name="memberspaceimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(memberspace,"memberspaceimg"); style="CURSOR: hand">会员空间</a></td>
  219. </tr>
  220. <tbody id="memberspace">
  221. <?=$showtempr['memberspace']?>
  222. </tbody>
  223. </table>
  224. <br>
  225. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="memberconnectid">
  226. <tr>
  227. <td height="25" class="header"><img src="../openpage/images/noadd.gif" name="memberconnectimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(memberconnect,"memberconnectimg"); style="CURSOR: hand">会员登录绑定</a></td>
  228. </tr>
  229. <tbody id="memberconnect">
  230. <?=$showtempr['memberconnect']?>
  231. </tbody>
  232. </table>
  233. <br>
  234. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="memberotherid">
  235. <tr>
  236. <td height="25" class="header"><img src="../openpage/images/noadd.gif" name="memberotherimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(memberother,"memberotherimg"); style="CURSOR: hand">会员其他页面</a></td>
  237. </tr>
  238. <tbody id="memberother">
  239. <?=$showtempr['memberother']?>
  240. </tbody>
  241. </table>
  242. <br>
  243. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="doinfoid">
  244. <tr>
  245. <td height="25" class="header"><img src="../openpage/images/noadd.gif" name="doinfoimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(doinfo,"doinfoimg"); style="CURSOR: hand">投稿</a></td>
  246. </tr>
  247. <tbody id="doinfo">
  248. <?=$showtempr['doinfo']?>
  249. </tbody>
  250. </table>
  251. <br>
  252. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="shopsysid">
  253. <tr>
  254. <td height="25" class="header"><img src="../openpage/images/noadd.gif" name="shopsysimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(shopsys,"shopsysimg"); style="CURSOR: hand">商城</a></td>
  255. </tr>
  256. <tbody id="shopsys">
  257. <?=$showtempr['shopsys']?>
  258. </tbody>
  259. </table>
  260. <br>
  261. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="pubtempid">
  262. <tr>
  263. <td height="25" class="header"><img src="../openpage/images/noadd.gif" name="pubtempimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(pubtemp,"pubtempimg"); style="CURSOR: hand">其他</a></td>
  264. </tr>
  265. <tbody id="pubtemp">
  266. <?=$showtempr['pubtemp']?>
  267. </tbody>
  268. </table>
  269. <br>
  270. <?php
  271. if($showtempr['diytemp'])
  272. {
  273. ?>
  274. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="diytempid">
  275. <tr>
  276. <td height="25" class="header"><img src="../openpage/images/noadd.gif" name="diytempimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(diy,"diytempimg"); style="CURSOR: hand">自定义</a></td>
  277. </tr>
  278. <tbody id="diy">
  279. <?=$showtempr['diytemp']?>
  280. </tbody>
  281. </table>
  282. <br>
  283. <?php
  284. }
  285. ?>
  286. </body>
  287. </html>
  288. <?php
  289. db_close();
  290. $empire=null;
  291. ?>