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

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