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

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