📄 user_soft_code.asp
字号:
Response.Write " <select name='ClassID'>" & User_GetClass_Option(4, ClassID) & "</select>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>所属专题:</strong></td>"
Response.Write " <td><select name='SpecialID'><option value='0'>不属于任何专题</option>" & GetSpecial_Option(0) & "</select></td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "名称:</strong></td>"
Response.Write " <td>"
Response.Write " <input name='SoftName' type='text' value='' size='50' maxlength='255'> <font color='#FF0000'>*</font>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>关键字:</strong></td>"
Response.Write " <td>"
Response.Write " <input name='Keyword' type='text' id='Keyword' size='50' maxlength='255'> <font color='#FF0000'>*</font> " & GetKeywordList("User", ChannelID)
Response.Write " <br><font color='#0000FF'>用来查找相关" & ChannelShortName & ",可输入多个关键字,中间用<font color='#FF0000'>“|”</font>隔开。不能出现"'&?;:()等字符。</font>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>作者/开发商:</strong></td>"
Response.Write " <td>"
Response.Write " <input name='Author' type='text' id='Author' value='" & Trim(Session("Author")) & "' size='50' maxlength='30'>" & GetAuthorList("User", ChannelID, UserName)
Response.Write " </td>"
Response.Write " </tr>"
If FoundInArr(arrEnabledTabs, "SoftParameter", ",") = True Then
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "版本:</strong></td>"
Response.Write " <td><input name='SoftVersion' type='text' size='15' maxlength='100'></td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "来源:</strong></td>"
Response.Write " <td>"
Response.Write " <input name='CopyFrom' type='text' id='CopyFrom' value='" & Trim(Session("CopyFrom")) & "' size='50' maxlength='100'>" & GetCopyFromList("User", ChannelID)
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "类别:</strong></td>"
Response.Write " <td>"
Response.Write " <select name='SoftType' id='SoftType'>" & GetSoftType(0) & "</select> "
Response.Write " <strong>" & ChannelShortName & "语言:</strong> <select name='SoftLanguage' id='SoftLanguage'>" & GetSoftLanguage(0) & "</select> "
Response.Write " <strong>授权形式:</strong> <select name='CopyrightType' id='CopyrightType'>" & GetCopyrightType(0) & "</select>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "平台:</strong></td>"
Response.Write " <td>"
Response.Write " <input name='OperatingSystem' type='text' value='" & XmlText("Soft", "OperatingSystem", "Win9x/NT/2000/XP/") & "' size='80' maxlength='200'> <br>" & GetOperatingSystemList
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "演示地址:</strong></td>"
Response.Write " <td><input name='DemoUrl' type='text' value='http://' size='80' maxlength='200'></td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "注册地址:</strong></td>"
Response.Write " <td><input name='RegUrl' type='text' value='http://' size='80' maxlength='200'></td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>解压密码:</strong></td>"
Response.Write " <td><input name='DecompressPassword' type='text' id='DecompressPassword' size='30' maxlength='30'></td>"
Response.Write " </tr>"
End If
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "图片:</strong></td>"
Response.Write " <td>"
Response.Write " <input name='SoftPicUrl' type='text' id='SoftPicUrl' size='80' maxlength='200'>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'></td>"
Response.Write " <td><table><tr><td>上传" & ChannelShortName & "图片:</td><td><iframe style='top:2px' id='UploadFiles' src='upload.asp?ChannelID=" & ChannelID & "&dialogtype=softpic' frameborder=0 scrolling=no width='450' height='25'></iframe></td></tr></table></td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5' valign='middle'><strong>" & ChannelShortName & "简介:</strong></td>"
Response.Write " <td><textarea name='SoftIntro' cols='80' rows='10' id='SoftIntro' style='display:none'></textarea>"
Response.Write " <iframe ID='editor' src='../editor.asp?ChannelID=" & ChannelID & "&ShowType=3&tContentid=SoftIntro' frameborder='1' scrolling='no' width='650' height='200' ></iframe>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "地址:</strong></td>"
Response.Write " <td>"
Response.Write " <table width='100%' border='0' cellpadding='0' cellspacing='0'>"
Response.Write " <tr>"
Response.Write " <td>"
Response.Write " <input type='hidden' name='DownloadUrls' value=''>"
Response.Write " <select name='DownloadUrl' style='width:400;height:100' size='2' ondblclick='return ModifyUrl();'></select>"
Response.Write " </td>"
Response.Write " <td>"
Response.Write " <input type='button' name='addurl' value='添加外部地址' onclick='AddUrl();'><br>"
Response.Write " <input type='button' name='modifyurl' value='修改当前地址' onclick='return ModifyUrl();'><br>"
Response.Write " <input type='button' name='delurl' value='删除当前地址' onclick='DelUrl();'>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>上传" & ChannelShortName & ":</strong></td>"
Response.Write " <td>"
Response.Write " 系统提供的上传功能只适合上传比较小的" & ChannelShortName & "(如ASP源代码压缩包)。如果" & ChannelShortName & "比较大(2M以上),请先使用FTP上传,而不要使用系统提供的上传功能,以免上传出错或过度占用服务器的CPU资源。FTP上传后请将地址复制到下面的地址框中。<br>"
Response.Write " <iframe style='top:2px' ID='UploadFiles' src='upload.asp?ChannelID=" & ChannelID & "&dialogtype=soft' frameborder=0 scrolling=no width='450' height='25'></iframe>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "大小:</strong></td>"
Response.Write " <td><input name='SoftSize' type='text' id='SoftSize' size='10' maxlength='10'> K</strong></td>"
Response.Write " </tr>"
'自定义字段
Dim rsField
Set rsField = Conn.Execute("select * from PE_Field where ChannelID=" & ChannelID & " or ChannelID=-2")
Do While Not rsField.EOF
Call WriteFieldHTML(rsField("FieldName"), rsField("Title"), rsField("Tips"), rsField("FieldType"), rsField("DefaultValue"), rsField("Options"), rsField("EnableNull"))
rsField.MoveNext
Loop
Set rsField = Nothing
Response.Write " <tr class='tdbg' class='tdbg5'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "状态:</strong></td>"
Response.Write " <td><input name='Status' type='radio' id='Status' value='-1'>草稿 <input Name='Status' Type='Radio' Id='Status' Value='0' checked>投稿</td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " <p align='center'>"
Response.Write " <input name='Action' type='hidden' id='Action' value='SaveAdd'>"
Response.Write " <input name='ChannelID' type='hidden' id='ChannelID' value='" & ChannelID & "'>"
Response.Write " <input name='add' type='submit' id='Add' value=' 添 加 ' onClick=""document.myform.Action.value='SaveAdd';document.myform.target='_self';"" style='cursor:hand;'> "
Response.Write " <input name='Preview' type='submit' id='Preview' value=' 预 览 ' onClick=""document.myform.Action.value='Preview';document.myform.target='_blank';"" style='cursor:hand;'> "
Response.Write " <input name='Cancel' type='button' id='Cancel' value=' 取 消 ' onClick=""window.location.href='User_Soft.asp?ChannelID=" & ChannelID & "&Action=Manage';"" style='cursor:hand;'>"
Response.Write " </p><br>"
Response.Write "</form>"
End Sub
Sub Modify()
If FoundInArr(arrClass_Input, ChannelDir & "none", ",") = True Then
FoundErr = True
ErrMsg = ErrMsg & "<br><li>对不起!您没有在" & ChannelName & "添加" & ChannelShortName & "的权限!</li><br><br>"
Exit Sub
End If
Dim rsSoft, sql, tmpAuthor, tmpCopyFrom, SpecialID
If SoftID = "" Then
FoundErr = True
ErrMsg = ErrMsg & "<li>请指定要修改的" & ChannelShortName & "ID</li>"
Exit Sub
Else
SoftID = PE_CLng(SoftID)
End If
sql = "select * from PE_Soft where Inputer='" & UserName & "' and Deleted=" & PE_False & " and SoftID=" & SoftID & ""
Set rsSoft = Server.CreateObject("ADODB.Recordset")
rsSoft.Open sql, Conn, 1, 1
If rsSoft.BOF And rsSoft.EOF Then
FoundErr = True
ErrMsg = ErrMsg & "<li>找不到" & ChannelShortName & "</li>"
Else
If rsSoft("Status") > 0 And EnableModifyDelete = 0 Then
FoundErr = True
ErrMsg = ErrMsg & "<li>" & ChannelShortName & "已经被审核通过或在审核中,您不能再进行修改!</li>"
End If
End If
If FoundErr = True Then
rsSoft.Close
Set rsSoft = Nothing
Exit Sub
End If
SpecialID = PE_CLng(Conn.Execute("select top 1 SpecialID from PE_InfoS where ModuleType=2 and ItemID=" & SoftID & "")(0))
If Right(rsSoft("Author"), 1) = "|" Then
tmpAuthor = Left(rsSoft("Author"), Len(rsSoft("Author")) - 1)
Else
tmpAuthor = rsSoft("Author")
End If
If Right(rsSoft("CopyFrom"), 1) = "|" Then
tmpCopyFrom = Left(rsSoft("CopyFrom"), Len(rsSoft("CopyFrom")) - 1)
Else
tmpCopyFrom = rsSoft("CopyFrom")
End If
Call ShowJS_Soft
Response.Write "<form method='POST' name='myform' onSubmit='return CheckForm();' action='User_Soft.asp'>"
Response.Write " <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>"
Response.Write " <tr class='title'>"
Response.Write " <td height='22' align='center' colspan='2'><b>修改" & ChannelShortName & "</b></td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>所属栏目:</strong></td>"
Response.Write " <td colspan='2'>"
Response.Write " <select name='ClassID'>" & User_GetClass_Option(4, rsSoft("ClassID")) & "</select>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>所属专题:</strong></td>"
Response.Write " <td><select name='SpecialID'><option value='0'>不属于任何专题</option>" & GetSpecial_Option(SpecialID) & "</select></td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "名称:</strong></td>"
Response.Write " <td>"
Response.Write " <input name='SoftName' type='text' value='" & rsSoft("SoftName") & "' size='50' maxlength='255'> <font color='#FF0000'>*</font>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>关键字:</strong></td>"
Response.Write " <td>"
Response.Write " <input name='Keyword' type='text' id='Keyword' value='" & Mid(rsSoft("Keyword"), 2, Len(rsSoft("Keyword")) - 2) & "' size='50' maxlength='255'> <font color='#FF0000'>*</font> " & GetKeywordList("User", ChannelID)
Response.Write " <br><font color='#0000FF'>用来查找相关" & ChannelShortName & ",可输入多个关键字,中间用<font color='#FF0000'>“|”</font>隔开。不能出现"'&?;:()等字符。</font>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>作者/开发商:</strong></td>"
Response.Write " <td>"
Response.Write " <input name='Author' type='text' id='Author' value='" & tmpAuthor & "' size='50' maxlength='30'>" & GetAuthorList("User", ChannelID, UserName)
Response.Write " </td>"
Response.Write " </tr>"
If FoundInArr(arrEnabledTabs, "SoftParameter", ",") = True Then
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "版本:</strong></td>"
Response.Write " <td><input name='SoftVersion' type='text' size='15' maxlength='100' value='" & rsSoft("SoftVersion") & "'></td>"
Response.Write " </tr>"
Response.Write " <tr class='tdbg'>"
Response.Write " <td width='120' align='right' class='tdbg5'><strong>" & ChannelShortName & "来源:</strong></td>"
Response.Write " <td>"
Response.Write " <input name='CopyFrom' type='text' id='CopyFrom' value='" & tmpCopyFrom & "' size='50' maxlength='100'>" & GetCopyFromList("User", ChannelID)
Response.Write " </td>"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -