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