国内流行的内容管理系统(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.

86 lines
3.5KB

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