国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
4.0KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>模板管理器</title>
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link href="css/base.css" rel="stylesheet" type="text/css" />
  10. <style type="text/css">
  11. .linerow {
  12. border-bottom: 1px solid #CBD8AC;
  13. }
  14. td {
  15. padding-left: 5px;
  16. }
  17. a.btn {
  18. color: white!important;
  19. }
  20. </style>
  21. <script language="javascript">
  22. function DelTpl(filename) {
  23. if (window.confirm('你确定要删除这篇文档吗?')) location = 'tpl.php?action=del&acdir=<?php echo $acdir; ?>&filename=' + filename;
  24. else return false;
  25. }
  26. </script>
  27. </head>
  28. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  29. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"
  30. class="table maintable table-bordered mt-3">
  31. <tr>
  32. <td height="28" background="images/tbg.gif" colspan="7">
  33. <b>模板管理</b>
  34. </td>
  35. </tr>
  36. </table>
  37. <table width='98%' border='0' cellspacing='1' cellpadding='0' align="center" bgcolor="#cfcfcf" class="table maintable table-bordered">
  38. <tr height="26" align="center">
  39. <td width="25%" background="images/wbg.gif"><strong>文件名</strong></td>
  40. <td width="33%" background="images/wbg.gif"><strong>文件描述</strong></td>
  41. <td width="22%" background="images/wbg.gif"><strong>修改时间</strong></td>
  42. <td width="20%" background="images/wbg.gif"><strong>操作</strong></td>
  43. </tr>
  44. <tr>
  45. <td colspan='4' height="28" bgcolor="#F9FCEF">
  46. <div style='float:left'>
  47. <b>
  48. 当前位置:
  49. <?php
  50. if($acdir=='plus') echo '插件模板';
  51. else if($acdir=='system') echo '底层模板';
  52. else echo '核心模板 &gt; '.$acdir;
  53. ?>
  54. </b>
  55. </div>
  56. <div style='float:right;padding-right:10px'>
  57. <a class="btn btn-secondary btn-sm" href='templets_main.php'>默认模板目录</a>
  58. <a class="btn btn-secondary btn-sm" href='templets_main.php?acdir=plus'>插件模板目录</a>
  59. </div>
  60. </td>
  61. </tr>
  62. <?php
  63. $dh = dir($templetdird);
  64. while($filename=$dh->read())
  65. {
  66. if(!preg_match("#\.htm#", $filename)) continue;
  67. $filetime = filemtime($templetdird.'/'.$filename);
  68. $filetime = MyDate("Y-m-d H:i",$filetime);
  69. $fileinfo = (isset($fileinfos[$filename]) ? $fileinfos[$filename] : '未知模板');
  70. ?>
  71. <tr height="26" bgcolor='#FFFFFF' onMouseMove="javascript:this.bgColor='#FCFDEE';"
  72. onMouseOut="javascript:this.bgColor='#FFFFFF';">
  73. <td>
  74. <a href='<?php echo $templeturld.'/'.$filename; ?>' target='_blank'>
  75. <img src='images/htm.gif' border='0' align='absmiddle' /> <?php echo $filename; ?>
  76. </a>
  77. </td>
  78. <td>
  79. <?php echo $fileinfo; ?>
  80. </td>
  81. <td align='center'>
  82. <?php echo $filetime; ?>
  83. </td>
  84. <td align='center'>
  85. <a class="btn btn-secondary btn-sm" href='tpl.php?action=edit&acdir=<?php echo $acdir; ?>&filename=<?php echo $filename; ?>' title="编辑"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
  86. <?php
  87. if(!isset($fileinfos[$filename]))
  88. {
  89. ?>
  90. |
  91. <a href='#' class="btn btn-secondary btn-sm" onClick="javascript:DelTpl('<?php echo $filename; ?>');" title="删除"><i class="fa fa-trash" aria-hidden="true"></i></a>
  92. <?php
  93. }
  94. ?>
  95. </td>
  96. </tr>
  97. <?php } ?>
  98. <tr>
  99. <td colspan="4" height='32' bgcolor="#F9FCEF">
  100. &nbsp;
  101. <a class="btn btn-secondary" href='tpl.php?action=newfile&acdir=<?php echo $acdir; ?>'>新建模板</a>
  102. &nbsp;
  103. <a class="btn btn-secondary" href='tpl.php?action=upload&acdir=<?php echo $acdir; ?>'>上传模板</a>
  104. </td>
  105. </tr>
  106. </table>
  107. </body>
  108. </html>