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

231 lines
11KB

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