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

178 lines
8.6KB

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