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

module_main.htm 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="css/base.css">
  10. <script src="../static/js/jquery.min.js"></script>
  11. <script src="../static/js/bootstrap.bundle.js"></script>
  12. <script src="../static/js/dedeajax2.js"></script>
  13. <script>
  14. function getmodule(action, hash) {
  15. $DE('status_' + hash).innerHTML = '<img src=\'images/loadinglit.gif\'>';
  16. var myajax = new DedeAjax($DE('status_' + hash), false, true, '-', '-', '...');
  17. myajax.SendGet2('module_main.php?action=download&hash=' + hash);
  18. $DE('manager_' + hash).style.display = 'block';
  19. DedeXHTTP = null;
  20. }
  21. </script>
  22. </head>
  23. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  24. <div class="bodytitle mt-3">
  25. <div class="bodytitleleft"></div>
  26. <div class="bodytitletxt" style="padding-left:10px;">模块管理</div>
  27. <div class="bodytitletxt" style="float: right;padding-right: 10px;">
  28. <a href="<?php echo $cfg_biz_dedebizUrl;?>?from=module" target="_blank">应用市场</a>
  29. <a href="module_upload.php">模块上传</a>
  30. <a href="module_make.php">模块打包</a>
  31. </div>
  32. </div>
  33. <div class="alert alert-info maintable mb-2" role="alert" style="margin: 0 auto;">
  34. 从DedeCMSV6开始,启动了<a href="<?php echo $cfg_biz_dedebizUrl;?>/license_developer" target="_blank">DedeBIZ商业开发者计划</a>,为了保障系统及技术服务安全,请认准DedeBIZ商业认证开发者。
  35. </div>
  36. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable"
  37. style="background:#CFCFCF;">
  38. <form name="form1" action="plus_add.php" method="post">
  39. <input type='hidden' name='dopost' value='save'>
  40. <tr>
  41. <td height="25" colspan="7" bgcolor="#EDF9D5" background="images/tbg.gif" style="padding-left:10px;">
  42. <div style='float:left'><a href='module_main.php'><b>模块管理</b></a> &gt; <b>模块列表:</b></div>
  43. <div style='float:right;padding-right:8px;'>
  44. <a href='module_main.php'>全部</a> |
  45. <a href='module_main.php?moduletype=soft'>模块</a> |
  46. <a href='module_main.php?moduletype=templets'>模板</a> |
  47. <a href='module_main.php?moduletype=plus'>小插件</a> |
  48. <a href='module_main.php?moduletype=patch'>补丁</a>
  49. </div>
  50. </td>
  51. </tr>
  52. <tr bgcolor="#FBFCE2">
  53. <td align="center" width="16%">模块名称</td>
  54. <td align="center" width="12%">发布时间</td>
  55. <td align="center" width="10%">编码</td>
  56. <td align="center" width="10%">类型</td>
  57. <td align="center" width="12%">模块状态</td>
  58. <td align="center" width="26%">管理</td>
  59. </tr>
  60. <?php
  61. if(count($modules)>0)
  62. foreach($modules as $k=>$v)
  63. {
  64. ?>
  65. <tr bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  66. onMouseOut="javascript:this.bgColor='#FFFFFF';">
  67. <td><?php echo $v['name']; ?></td>
  68. <td><?php echo $v['time']; ?></td>
  69. <td>
  70. <?php
  71. if($cfg_soft_lang != $v['lang']) echo "<font color='red'>".$v['lang']."</font>";
  72. else echo $v['lang'];
  73. ?>
  74. </td>
  75. <td><?php echo $types[$v['moduletype']];?></td>
  76. <td>
  77. <?php
  78. $file = DEDEDATA."/module/{$v['hash']}.xml";
  79. if(file_exists($file)) {
  80. if(file_exists(DEDEDATA."/module/{$v['hash']}-readme.php")){
  81. echo "<font color='green'>已安装</font> <a style='color:green' href='module_main.php?action=uninstall&hash={$v['hash']}'><u>卸载</u></a>";
  82. } else {
  83. echo "未安装 <a class='btn btn-secondary btn-sm' href='module_main.php?action=setup&hash={$v['hash']}'>安装</a>";
  84. }
  85. } else {
  86. echo "<div id=\"status_{$v['hash']}\"><font color='red'>未下载</font> <a style='color:red' href=\"javascript:getmodule('download','{$v['hash']}')\"><u>下载</u></a></div>";
  87. }
  88. ?>
  89. </td>
  90. <td>
  91. <div id='manager_<?php echo $v['hash']; ?>'
  92. <?php if(!file_exists(DEDEDATA."/module/{$v['hash']}.xml")) echo 'style="display:none;"'?>>
  93. <a class="btn btn-secondary"
  94. href='module_main.php?action=view_developoer&hash=<?php echo $v['hash']; ?>'>开发者信息</a>
  95. <div class="btn-group" role="group">
  96. <button id="btnAction" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown"
  97. aria-haspopup="true" aria-expanded="false">
  98. 操作
  99. </button>
  100. <div class="dropdown-menu" aria-labelledby="btnAction">
  101. <a class="dropdown-item" href="module_main.php?action=showreadme&hash=<?php echo $v['hash']; ?>">说明</a>
  102. <a class="dropdown-item" href="module_main.php?action=view&hash=<?php echo $v['hash']; ?>">详细</a>
  103. <a class="dropdown-item" href="module_main.php?action=edit&hash=<?php echo $v['hash']; ?>">修改</a>
  104. <a class="dropdown-item" href="module_main.php?action=del&hash=<?php echo $v['hash']; ?>">删除</a>
  105. </div>
  106. </div>
  107. </div>
  108. </td>
  109. </tr>
  110. <?php
  111. }
  112. ?>
  113. <tr>
  114. <td colspan="7" align="center" bgcolor='#F9FCEF'>&nbsp;</td>
  115. </tr>
  116. </form>
  117. </table>
  118. </body>
  119. </html>