ClassUrl.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. require("../../data/dbcache/class.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. //验证用户
  11. $lur=is_login();
  12. $logininid=$lur['userid'];
  13. $loginin=$lur['username'];
  14. $loginrnd=$lur['rnd'];
  15. $loginlevel=$lur['groupid'];
  16. $loginadminstyleid=$lur['adminstyleid'];
  17. //ehash
  18. $ecms_hashur=hReturnEcmsHashStrAll();
  19. $classid=(int)$_GET['classid'];
  20. $r['classid']=$classid;
  21. $url=sys_ReturnBqClassname($r,9);
  22. $jspath=$public_r['newsurl'].'d/js/class/class'.$classid.'_';
  23. ?>
  24. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  25. <title>调用地址</title><table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
  26. <tr class=header>
  27. <td height="25">&nbsp;</td>
  28. <td height="25">调用地址</td>
  29. <td height="25"> <div align="center">预览</div></td>
  30. </tr>
  31. <tr bgcolor="#FFFFFF">
  32. <td width="22%" height="25">栏目地址:</td>
  33. <td width="71%" height="25"> <input name="textfield" type="text" value="<?=$url?>" size="35"></td>
  34. <td width="7%" height="25"> <div align="center"><a href="<?=$url?>" target="_blank">预览</a></div></td>
  35. </tr>
  36. <tr bgcolor="#FFFFFF">
  37. <td height="25">最新信息JS:</td>
  38. <td height="25"> <input name="textfield2" type="text" value="<?=$jspath?>newnews.js" size="35"></td>
  39. <td height="25"> <div align="center"><a href="js.php?classid=<?=$classid?>&js=<? echo urlencode($jspath."newnews.js");?><?=$ecms_hashur['ehref']?>" target="_blank">预览</a></div></td>
  40. </tr>
  41. <tr bgcolor="#FFFFFF">
  42. <td height="25">热门信息JS:</td>
  43. <td height="25"> <input name="textfield3" type="text" value="<?=$jspath?>hotnews.js" size="35"></td>
  44. <td height="25"> <div align="center"><a href="js.php?classid=<?=$classid?>&js=<? echo urlencode($jspath."hotnews.js");?><?=$ecms_hashur['ehref']?>" target="_blank">预览</a></div></td>
  45. </tr>
  46. <tr bgcolor="#FFFFFF">
  47. <td height="25">推荐信息JS:</td>
  48. <td height="25"> <input name="textfield4" type="text" value="<?=$jspath?>goodnews.js" size="35"></td>
  49. <td height="25"> <div align="center"><a href="js.php?classid=<?=$classid?>&js=<? echo urlencode($jspath."goodnews.js");?><?=$ecms_hashur['ehref']?>" target="_blank">预览</a></div></td>
  50. </tr>
  51. <tr bgcolor="#FFFFFF">
  52. <td height="25">热点评论信息JS:</td>
  53. <td height="25"> <input name="textfield4" type="text" value="<?=$jspath?>hotplnews.js" size="35"></td>
  54. <td height="25"> <div align="center"><a href="js.php?classid=<?=$classid?>&js=<? echo urlencode($jspath."hotplnews.js");?><?=$ecms_hashur['ehref']?>" target="_blank">预览</a></div></td>
  55. </tr>
  56. <tr bgcolor="#FFFFFF">
  57. <td height="25">头条信息JS:</td>
  58. <td height="25"> <input name="textfield4" type="text" value="<?=$jspath?>firstnews.js" size="35"></td>
  59. <td height="25"> <div align="center"><a href="js.php?classid=<?=$classid?>&js=<? echo urlencode($jspath."firstnews.js");?><?=$ecms_hashur['ehref']?>" target="_blank">预览</a></div></td>
  60. </tr>
  61. </table>