soft_add.htm
10.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
<!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; ?>" />
<title>上传<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title>
<link href="templets/style/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" language='javascript' src="templets/js/main.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/leftmenu.js"></script>
<script type="text/javascript" src="templets/js/checkSubmit.js"></script>
<script type="text/javascript">
var startNum = 2;
function MakeUpload()
{
var upfield = document.getElementById("uploadfield");
var morelinkobj = document.getElementById("morelink");
var endNum = parseInt(document.addcontent.picnum.value) + startNum-1;
morelinkobj.style.display = "block";
if(endNum>12) endNum = 12;
for(startNum;startNum<=endNum;startNum++){
upfield.innerHTML += "<label>软件地址"+startNum+":</label><input type='text' name='softurl"+startNum+"' value='http://' maxlength='100' class='intxt' style='width:250px'> ";
upfield.innerHTML += " ";
upfield.innerHTML += "服务器名称:<input type='text' name='servermsg"+startNum+"' class='intxt' style='width:150px'>\r\n";
}
}
function ShowHideAddr()
{
document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display=='block' ? 'none' : 'block');
document.getElementById('btsh3').value = (document.getElementById('morelink').style.display=='block' ? '隐藏地址' : '显示地址');
}
-->
</script>
</head>
<body>
<div id="main">
<?php include(DEDEMEMBER."/templets/head.htm"); ?>
<div id="content" class="w960 clearfix">
<?php include(DEDEMEMBER."/templets/menu.php"); ?>
<div id="mcpmain">
<div id="appTab">
<ul>
<li class="thisTab"><a href="#"><span>上传<?php echo $cInfos['typename']; ?></span></a></li>
</ul>
<div class="tabOther">
</div>
</div>
<form class="mTB10 mR10 mL10" name="addcontent" action="soft_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
<input type="hidden" name="dopost" value="save" />
<input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
<div id="mainCp">
<h3 class="meTitle"><strong>上传软件</strong></h3>
<div class="postForm">
<p class="cellBg">
<label><?php echo $cInfos['typename']; ?>名称:</label>
<input name="title" type="text" id="title" maxlength="100" class="intxt"/>
</p>
<p>
<label>标签TAG:</label>
<input name="tags" type="text" id="tags" maxlength="100" class="intxt"/>
</p>
<p class="cellBg">
<label>作者:</label>
<input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" maxlength="100" class="intxt" style="width:95px;">
</p>
<p>
<span class="colLeft">
<label>文件类型:</label>
<select name="filetype" id="filetype" style="width:100px">
<option value=".exe" selected="selected">.exe</option>
<option value=".zip">.zip</option>
<option value=".rar">.rar</option>
<option value=".iso">.iso</option>
<option value=".gz">.gz</option>
<option value="其它">其它</option>
</select>
</span>
<span class="colRight">
<label>界面语言:</label>
<select name="language" id="language" style="width:100px">
<option value="简体中文" selected="selected">简体中文</option>
<option value="英文软件">英文软件</option>
<option value="繁体中文">繁体中文</option>
<option value="其它类型">其它类型</option>
</select>
</span>
</p>
<p class="cellBg">
<span class="colLeft">
<label>软件类型:</label>
<select name="softtype" id="softtype" style="width:100px">
<option value="国产软件" selected="selected">国产软件</option>
<option value="国外软件">国外软件</option>
<option value="汉化补丁">汉化补丁</option>
</select>
</span>
<span class="colRight">
<label>授权方式:</label>
<select name="accredit" id="accredit" style="width:100px">
<option value="共享软件" selected="selected">共享软件</option>
<option value="免费软件">免费软件</option>
<option value="开源软件">开源软件</option>
<option value="商业软件">商业软件</option>
<option value="破解软件">破解软件</option>
<option value="游戏外挂">游戏外挂</option>
</select>
</span>
</p>
<p>
<span class="colLeft">
<label>运行环境:</label>
<input type='text' name='os' value='Win2003,WinXP,Win2000,Win9X' maxlength="100" class="intxt" style="width:160px"/>
</span>
<span class="colRight">
<label>软件等级:</label>
<select name="softrank" id="softrank" style="width:100px">
<option value="1">一星</option>
<option value="2">二星</option>
<option value="3" selected="selected">三星 </option>
<option value="4">四星</option>
<option value="5">五星</option>
</select>
</span>
</p>
<p class="cellBg">
<span class="colLeft">
<label>官方网址:</label>
<input type="text" name="officialDemo" id="officialDemo" maxlength="100" class="intxt" style="width:160px"/>
</span>
<span class="colRight">
<label>程序演示:</label>
<input type="text" name="officialUrl" id="officialUrl" value="http://" maxlength="100" class="intxt" style="width:160px"/>
</span>
</p>
<p>
<span class="colLeft">
<label>软件大小:</label>
<input type="text" name="softsize" id="softsize" maxlength="100" class="intxt" style="width:95px"/>
<select name="unit" id="unit">
<option value="MB" selected="selected">MB</option>
<option value="KB">KB</option>
<option value="GB">GB</option>
</select>
</span>
<span class="colRight">
<label>软件来源:</label>
<input name="source" type="text" id="source" maxlength="100" class="intxt" style="width:160px"/>
</span>
</p>
<p class="cellBg">
<span class="colLeft">
<label>隶属栏目:</label>
<?php
$typeOptions = GetOptionList(0,$channelid);
echo "<select name='typeid' size='1'>\r\n";
echo "<option value='0' selected>请选择栏目...</option>\r\n";
echo $typeOptions;
echo "</select>";
?>
<span style="color:#F00">*</span>
</span>
<span class="colRight">
<label>需要金币:</label>
<input name="needmoney" type="text" value="0" id="needmoney" maxlength="100" class="intxt" style="width:80px" />(最大允许100个)
</span>
</p>
<p>
<label>缩略图:</label>
<input name="litpic" type="file" id="litpic" onchange="SeePicNew('divpicview',this);" maxlength="100" class="intxt"/>
</p>
<?php
//自定义字段
PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');
?>
</div>
<h3 class="meTitle"><strong>软件详情</strong></h3>
<div class="contentShow postForm">
<p>
<label>文字介绍:</label><?php GetEditor("body","",200,"Member"); ?>
</p>
<p class="cellBg">
<label>本地地址:</label>
<input name="softurl1" type="text" id="softurl1" class="intxt" style="width:230px" />
<button name="sel1" type="button" id="sel1" onclick="SelectSoft('addcontent.softurl1')" class="bt3">选取</button>
服务器名称:
<input name="servermsg1" type="text" id="servermsg1" value="本地下载" class="intxt" style="width:150px" />
</p>
<p>
<label>其它地址:</label>
<input name="picnum" type="text" id="picnum" value="5" class="intxt" size="8" style="width:230px" />
<button name='kkkup' type='button' id='kkkup2' onclick="MakeUpload();" class="bt2">增加地址</button>
<button type="button" name="Submit3" id="btsh3" onclick="ShowHideAddr();" class="bt2">隐藏地址</button>
(最多为12个链接)</p>
<div id="morelink" style="display:none"><p><?php echo "<span id='uploadfield' style='line-height: 32px;'></span>"; ?></p></div>
<?php
if($safe_faq_send == '1'){
$faqkey = array_rand($safefaqs);
?>
<p class="cellBg">
<label>验证问题:</label>
<?php echo $safefaqs[$faqkey]['question'];?> (答案:<?php echo $safefaqs[$faqkey]['answer'];?>)<input class="intxt" name="safeanswer" type="text" id="safeanswer" size="25" style='width:250px;'/>
<input type="hidden" name="faqkey" value="<?php echo $faqkey;?>" />
</p>
<?php
}
//游客强制加验证码,会员则判断后台开关
if(preg_match("/3/",$safe_gdopen)){
?>
<p class="cellBg">
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /></p>
<?php }?>
<p>
<button class="button2" type="submit">提交</button>
<button class="button2 ml10" type="reset" onclick="location.reload();">重置</button>
</p>
</div>
</div>
</form>
</div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
</div>
</body>
</html>