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

192 lines
9.0KB

  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/admin.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.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 height="26" colspan="2" background='../static/web/img/wbg.gif' style="padding-left:10px"><a href="module_main.php">模块管理</a> &gt; 模块修改</td>
  43. </tr>
  44. <tr>
  45. <td width="260">模块名称:</td>
  46. <td><input name="modulname" type="text" id="modulname" style="width:160px" value="<?php echo $name; ?>" class='alltxt'/></td>
  47. </tr>
  48. <tr>
  49. <td>开发者ID:</td>
  50. <td><input name="dev_id2" type="text" id="dev_id2" style="width:160px" value="<?php echo $dev_id; ?>" class='alltxt' 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 name="moduletype" type="radio" id="moduletype1" class='np' value='soft'<?php if($moduletype=='soft') echo " checked='1' "; ?>/> 模块</label>
  60. <label><input name="moduletype" type="radio" id="moduletype2" class='np' value='templets'<?php if($moduletype=='templets') echo " checked='1' "; ?>/> 模板</label>
  61. <label><input name="moduletype" type="radio" id="moduletype3" class='np' value='plus'<?php if($moduletype=='plus') echo " checked='1' "; ?>/> 小插件</label>
  62. <label><input name="moduletype" type="radio" id="moduletype3" class='np' 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' disabled name='hashv' value='<?php echo $hash; ?>' style="width:260px" class='alltxt'>(不可改)
  70. </td>
  71. </tr>
  72. <tr>
  73. <td>发布时间:</td>
  74. <td><input name="mtime" type="text" id="mtime" style="width:160px" value="<?php echo $time; ?>" class='alltxt'/></td>
  75. </tr>
  76. <tr>
  77. <td>是否涉及会员系统:</td>
  78. <td>
  79. <label><input name="ismember" type="radio" class='np' id="ismember0" value="0" onclick="ShowHideMb('ismember0','rboxct')" <?php if($ismember=='0') echo " checked='1' "; ?>>
  80. 不涉及</label>
  81. <label><input name="ismember" type="radio" id="ismember1" value="1" onclick="ShowHideMb('ismember0','rboxct')" class='np' <?php if($ismember=='1') echo " checked='1' "; ?>> 涉及</label>
  82. <div id='rboxct' style='display:<?php echo ($ismember=='0' ? 'none' : 'block'); ?>'>
  83. 导航使用名称:
  84. <input name="indexname" type="text" id="indexname" style="width:160px" value="<?php echo $indexname; ?>" class='alltxt'/>
  85. <br>
  86. 导航使用网址:
  87. <input name="indexurl" type="text" id="indexurl" style="width:160px" value="<?php echo $indexurl; ?>" class='alltxt'>
  88. (用相对于会员中心的网址,如:../ask)
  89. </div>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td>后台管理菜单:</td>
  94. <td>
  95. <textarea name="menustring" id="menustring" style="width:98%;height:160px"><?php echo $menustring; ?></textarea><br>
  96. (普通插件或模板、补丁类不要填写,模块菜单格式请参考inc/inc_menu_module.php)
  97. </td>
  98. </tr>
  99. <tr>
  100. <td>使用说明文件:</td>
  101. <td>
  102. <table width="100%" cellpadding="5" cellspacing="1">
  103. <tr>
  104. <td bgcolor="#F3FDE1">使用协议或说明:<br>
  105. 如果需要带HTML格式,请编译后点击修改时使用HTML
  106. </td>
  107. </tr>
  108. <tr>
  109. <td><textarea name="readmetxt" id="readmetxt" style="width:98%;height:160px"><?php echo $readmetxt; ?></textarea></td>
  110. </tr>
  111. </table>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td>程序安装:</td>
  116. <td>
  117. <label><input type="checkbox" name="autosetup" id="autosetup" value='1' class="np" onclick="ShowHideField('autosetup','autosetupinput','autosetupct')"<?php if(isset($autosetup) && $autosetup==1) echo " checked='1'"; ?> />
  118. 自动生成(由系统自动处理安装)</label>
  119. <br>
  120. <div style="display:<?php if(!isset($autosetup) || $autosetup==0) echo 'block'; else echo 'none'; ?>" id="autosetupinput">
  121. <input name="setup" type="file" id="setup" style="width:360px">
  122. </div>
  123. <div style="margin:5px 0px 5px 5px;display:<?php if(isset($autosetup) && $autosetup==1) echo 'block'; else echo 'none'; ?>" id="autosetupct">
  124. <table width="100%" cellpadding="5" cellspacing="1">
  125. <tr>
  126. <td bgcolor="#F3FDE1">
  127. 请使用MySQL4.0版本格式的SQL语句:<br>
  128. MySQL4.1/5.x版本请把创建表语句 ENGINE=MyISAM DEFAULT CHARSET=* ,改为 TYPE=MyISAM ,SQL语句允许换行,但必须用 ";换行" 表示一条SQL语句结束<br>
  129. 如果SQL中包含有模块网址的,用 _ROOTURL_ 表示,如:_ROOTURL_/ask/index.php
  130. </td>
  131. </tr>
  132. <tr>
  133. <td><textarea name="setupsql40" id="setupsql40" style="width:98%;height:160px"><?php echo $setupsql40; ?></textarea></td>
  134. </tr>
  135. </table>
  136. </div>
  137. </td>
  138. </tr>
  139. <tr>
  140. <td>删除程序:</td>
  141. <td>
  142. <label><input type="checkbox" name="autodel" id="autodel" value='1' class="np" onclick="ShowHideField('autodel','autodelinput','autodelct')" <?php if(isset($autodel) && $autodel==1) echo " checked='1' "; ?> />
  143. 自动生成(由系统自动处理卸载)</label>
  144. <br>
  145. <div style='display:<?php if(!isset($autodel) || $autodel==0) echo 'block'; else echo 'none'; ?>' id='autodelinput'>
  146. <input name="uninstall" type="file" id="uninstall" style="width:360px">
  147. </div>
  148. <div style='margin:5px 0px 5px 5px;display:<?php if(isset($autodel) && $autodel==1) echo 'block'; else echo 'none'; ?>' id='autodelct'>
  149. <table width="100%" cellpadding="5" cellspacing="1">
  150. <tr>
  151. <td bgcolor="#F3FDE1">卸载时执行的SQL语句:<br>
  152. (SQL允许换行,但必须用 ";换行" 表示一条SQL语句结束)
  153. </td>
  154. </tr>
  155. <tr>
  156. <td><textarea name="delsql" id="delsql" style="width:98%;height:160px"><?php echo $delsql; ?></textarea></td>
  157. </tr>
  158. </table>
  159. </div>
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>模块文件选项:</td>
  164. <td>
  165. <label><input name="rebuild" type="radio" id="rebuild1" class='np' value='yes' checked='1'/> 重新编译所有文件</label>
  166. <label><input name="rebuild" type="radio" id="rebuild2" class='np' value='no'/> 不对[文件列表]内文件重编译</label>
  167. </td>
  168. </tr>
  169. <tr>
  170. <td>文件列表:</td>
  171. <td>每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件<br>
  172. 如:如果已经指定了:../book 则不需要再指定目录里的 ../book/index.php 等文件或目录,系统会自动索引整个目录,<br>
  173. 对于不需要索引整个目录的,请不要指定这个目录,否则可能会把不必要的文件也放进模块中 <br>
  174. <textarea name="filelist" id="filelist" style="width:98%;height:160px"><?php echo $filelist; ?></textarea>
  175. </td>
  176. </tr>
  177. <tr>
  178. <td>开发者私钥:</td>
  179. <td>开发者认证后获取的私钥<br>
  180. <textarea name="priv" id="priv" style="width:98%;height:160px"></textarea>
  181. </td>
  182. </tr>
  183. <tr>
  184. <td colspan="2" align="center" class="py-3">
  185. <button name="imageField" type="submit" class="btn btn-success btn-sm">提交</button>
  186. <button type="button" id="button" onClick="location='module_main.php';" class="btn btn-success btn-sm">返回</button>
  187. </td>
  188. </tr>
  189. </form>
  190. </table>
  191. </body>
  192. </html>