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

153 lines
7.9KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>模块修改</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. <script src="/static/web/js/webajax.js"></script>
  11. </head>
  12. <body>
  13. <form action="module_make.php" method="post" enctype="multipart/form-data" name="form1">
  14. <input type="hidden" name="action" value="edit">
  15. <input type="hidden" name="dev_id" value="<?php echo $dev_id;?>">
  16. <table align="center" class="table maintable my-3">
  17. <tr>
  18. <td bgcolor="#f8fafb" colspan="2"><a href="module_main.php">模块管理</a> - 模块修改</td>
  19. </tr>
  20. <tr>
  21. <td width="260">模块名称:</td>
  22. <td><input type="text" name="modulname" id="modulname" class="admin-input-sm" value="<?php echo $name;?>"></td>
  23. </tr>
  24. <tr>
  25. <td>贡献者id:</td>
  26. <td>
  27. <input type="text" name="dev_id2" id="dev_id2" class="admin-input-sm" value="<?php echo $dev_id;?>" disabled>
  28. <a href="<?php echo $cfg_biz_dedebizUrl;?>/developer" target="_blank" class="btn btn-success btn-sm">如何获取贡献者id</a>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td>语言编码:</td>
  33. <td><?php echo $lang;?></td>
  34. </tr>
  35. <tr>
  36. <td>封装类型:</td>
  37. <td>
  38. <label><input type="radio" name="moduletype" id="moduletype1" value="soft" <?php if ($moduletype=='soft') echo 'checked';?>> 模块</label>
  39. <label><input type="radio" name="moduletype" id="moduletype2" value="templets" <?php if ($moduletype=='templets') echo 'checked';?>> 模板</label>
  40. <label><input type="radio" name="moduletype" id="moduletype3" value="plus" <?php if ($moduletype=='plus') echo 'checked';?>> 小插件</label>
  41. <label><input type="radio" name="moduletype" id="moduletype4" value="patch" <?php if ($moduletype=='patch') echo 'checked';?>> 补丁</label>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td>模块识别码:</td>
  46. <td>
  47. <input type="hidden" name="hash" value="<?php echo $hash;?>">
  48. <input type="text" name="hashv" value="<?php echo $hash;?>" class="admin-input-lg" disabled>(不可改)
  49. </td>
  50. </tr>
  51. <tr>
  52. <td>发布时间:</td>
  53. <td><input type="text" name="mtime" id="mtime" class="admin-input-sm" value="<?php echo $time;?>"></td>
  54. </tr>
  55. <tr>
  56. <td>是否涉及会员系统:</td>
  57. <td>
  58. <label><input type="radio" name="ismember" id="ismember1" value="1" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='1') echo 'checked';?>> 涉及</label>
  59. <label><input type="radio" name="ismember" id="ismember0" value="0" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='0') echo 'checked';?>> 不涉及</label>
  60. <div id="rboxct" style="display:<?php echo ($ismember=='0' ? 'none' : 'block');?>">
  61. <label>导航使用名称:<input type="text" name="indexname" id="indexname" class="admin-input-sm" value="<?php echo $indexname;?>"></label><br>
  62. <label>导航使用网址:<input type="text" name="indexurl" id="indexurl" class="admin-input-sm" value="<?php echo $indexurl;?>"></label>
  63. <span>(用相对于会员中心的网址,如:/ask)</span>
  64. </div>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td>后台管理菜单:</td>
  69. <td>
  70. <p>(普通插件或模板、补丁类不要填写,模块菜单格式请参考inc/inc_menu_module.php)</p>
  71. <textarea name="menustring" id="menustring" class="admin-textarea-xl"><?php echo $menustring;?></textarea>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td>使用说明文件:</td>
  76. <td>
  77. <p>(使用协议或说明:如果需要带网页格式,请编译后点击修改时使用网页)</p>
  78. <textarea name="readmetxt" id="readmetxt" class="admin-textarea-xl"><?php echo $readmetxt;?></textarea>
  79. </td>
  80. </tr>
  81. <tr>
  82. <td>程序安装:</td>
  83. <td>
  84. <label><input type="checkbox" name="autosetup" id="autosetup" value="1" onclick="ShowHideField('autosetup','autosetupinput','autosetupct')" <?php if (isset($autosetup) && $autosetup==1) echo 'checked';?>> 自动生成</label><br>
  85. <div style="display:<?php if (!isset($autosetup) || $autosetup==0) echo 'block'; else echo 'none';?>" id="autosetupinput"><input type="file" name="setup" id="setup" class="admin-input-lg"></div>
  86. <div style="display:<?php if (isset($autosetup) && $autosetup==1) echo 'block'; else echo 'none';?>" id="autosetupct">
  87. <p>(由系统自动处理安装,请使用MySQL4.0版本格式的SQL语句:MySQL4.1/5.x版本请把创建表语句 ENGINE=MyISAM DEFAULT CHARSET=*,改为TYPE=MyISAM,SQL语句允许换行,但必须用;表示一条SQL语句结束,如果SQL中包含有模块网址的,用 _ROOTURL_ 表示,如:_ROOTURL_/ask/index.php)</p>
  88. <textarea name="setupsql40" id="setupsql40" class="admin-textarea-xl"><?php echo $setupsql40;?></textarea>
  89. </div>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td>删除程序:</td>
  94. <td>
  95. <label><input type="checkbox" name="autodel" id="autodel" value="1" onclick="ShowHideField('autodel','autodelinput','autodelct')" <?php if (isset($autodel) && $autodel==1) echo 'checked';?>> 自动生成</label><br>
  96. <div style="display:<?php if (!isset($autodel) || $autodel==0) echo 'block'; else echo 'none';?>" id="autodelinput"><input type="file" name="uninstall" id="uninstall" class="admin-input-lg"></div>
  97. <div style="display:<?php if (isset($autodel) && $autodel==1) echo 'block'; else echo 'none';?>" id="autodelct">
  98. <p>(由系统自动处理卸载,卸载时执行SQL允许换行,但必须用;表示一条SQL语句结束)</p>
  99. <textarea name="delsql" id="delsql" class="admin-textarea-xl"><?php echo $delsql;?></textarea>
  100. </div>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td>模块文件选项:</td>
  105. <td>
  106. <label><input type="radio" name="rebuild" value="yes" checked> 重新编译所有文件</label>
  107. <label><input type="radio" name="rebuild" value="no"> 不对[文件列表]内文件重编译</label>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>文件列表:</td>
  112. <td>
  113. <p>(每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件,如:如果已经指定了/book则不需要再指定目录里的/book/index.php 等文件或目录,系统会自动索引整个目录,对于不需要索引整个目录的,请不要指定这个目录,否则会把不必要的文件也放进模块中)</p>
  114. <textarea name="filelist" id="filelist" class="admin-textarea-xl"><?php echo $filelist;?></textarea>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td>贡献者私钥:</td>
  119. <td>
  120. <p>(贡献者认证后获取的私钥)</p>
  121. <textarea name="priv" id="priv" class="admin-textarea-xl"></textarea>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td bgcolor="#f8fafb" colspan="2" align="center">
  126. <button type="submit" name="imageField" class="btn btn-success btn-sm">提交</button>
  127. <button type="button" id="button" class="btn btn-outline-success btn-sm" onclick="location='module_main.php';">返回</button>
  128. </td>
  129. </tr>
  130. </table>
  131. </form>
  132. <script>
  133. function ShowHideField(cbox,vid,nid) {
  134. var cboxobj = document.getElementById(cbox);
  135. if (cboxobj.checked) {
  136. document.getElementById(nid).style.display = 'block';
  137. document.getElementById(vid).style.display = 'none';
  138. } else {
  139. document.getElementById(nid).style.display = 'none';
  140. document.getElementById(vid).style.display = 'block';
  141. }
  142. }
  143. function ShowHideMb(rbox1,nid) {
  144. var rboxobj = document.getElementById(rbox1);
  145. if (rboxobj.checked) {
  146. document.getElementById(nid).style.display = 'none';
  147. } else {
  148. document.getElementById(nid).style.display = 'block';
  149. }
  150. }
  151. </script>
  152. </body>
  153. </html>