LoadTemp.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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,"template");
  20. $url="<a href=LoadTemp.php".$ecms_hashur['whehref'].">批量导入栏目模板</a>";
  21. db_close();
  22. $empire=null;
  23. ?>
  24. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  25. <html>
  26. <head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  28. <title>批量导入栏目模板</title>
  29. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  30. </head>
  31. <body>
  32. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  33. <tr>
  34. <td height="25">位置:<?=$url?></td>
  35. </tr>
  36. </table>
  37. <form name="form1" method="post" action="../ecmstemp.php" onsubmit="return confirm('确认要导入?');">
  38. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  39. <?=$ecms_hashur['form']?>
  40. <tr class="header">
  41. <td height="25"><div align="center">批量导入栏目模板
  42. <input name="enews" type="hidden" id="enews" value="LoadTempInClass">
  43. </div></td>
  44. </tr>
  45. <tr bgcolor="#FFFFFF">
  46. <td height="25"> <div align="center"><br>
  47. <input type="submit" name="Submit" value="开始导入模板">
  48. <br>
  49. <br>
  50. </div></td>
  51. </tr>
  52. <tr bgcolor="#FFFFFF">
  53. <td height="25"><div align="center">(说明:非终极栏目有效,请将要导入的模板上传至:<a href="ShowLoadTempPath.php<?=$ecms_hashur['whehref']?>" target="_blank"><strong>/e/data/LoadTemp</strong></a>,然后点击导入模板.<br>
  54. 模板文件命名形式:<strong><font color="#FF0000">栏目ID.htm</font></strong> ,系统会搜索相应的&quot;ID文件&quot;进行导入.)</div></td>
  55. </tr>
  56. </table>
  57. </form>
  58. </body>
  59. </html>