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

175 lines
8.4KB

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