📄 admin_softgather.asp
字号:
ArrayRemoveCode = Split(Rs("RemoveCode"), "|")
End If
.Write ">★</option>" & vbCrLf
.Write " </select></td>" & vbCrLf
.Write " </tr>" & vbCrLf
.Write " <tr>" & vbCrLf
.Write " <td align=""right"" class=""TableRow1""><strong>简介过滤设置:</strong></td>" & vbCrLf
.Write " <td class=""TableRow1""><input name=""RemoveCode0"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(0)) = 1 Then .Write " checked"
Else
.Write " checked"
End If
.Write "> " & vbCrLf
.Write " SCRIPT " & vbCrLf
.Write " <input name=""RemoveCode1"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(1)) = 1 Then .Write " checked"
Else
.Write " checked"
End If
.Write "> " & vbCrLf
.Write " IFARME " & vbCrLf
.Write " <input name=""RemoveCode2"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(2)) = 1 Then .Write " checked"
End If
.Write "> " & vbCrLf
.Write " OBJECT " & vbCrLf
.Write " <input name=""RemoveCode3"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(3)) = 1 Then .Write " checked"
End If
.Write "> " & vbCrLf
.Write " APPLET " & vbCrLf
.Write " <input name=""RemoveCode4"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(4)) = 1 Then .Write " checked"
End If
.Write "> " & vbCrLf
.Write " DIV " & vbCrLf
.Write " <br>" & vbCrLf
.Write " <input name=""RemoveCode5"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(5)) = 1 Then .Write " checked"
End If
.Write "> " & vbCrLf
.Write " FONT " & vbCrLf
.Write " <input name=""RemoveCode6"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(6)) = 1 Then .Write " checked"
End If
.Write "> " & vbCrLf
.Write " SPAN " & vbCrLf
.Write " <input name=""RemoveCode7"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(7)) = 1 Then .Write " checked"
End If
.Write "> " & vbCrLf
.Write " A " & vbCrLf
.Write " <input name=""RemoveCode8"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(8)) = 1 Then .Write " checked"
End If
.Write "> " & vbCrLf
.Write " IMG " & vbCrLf
.Write " <input name=""RemoveCode9"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(9)) = 1 Then .Write " checked"
End If
.Write "> " & vbCrLf
.Write " FORM " & vbCrLf
.Write " <input name=""RemoveCode10"" type=""checkbox"" value=""1"""
If isEdit Then
If Mynewasp.ChkNumeric(ArrayRemoveCode(10)) = 1 Then .Write " checked"
End If
.Write "> " & vbCrLf
.Write " HTML </td>" & vbCrLf
.Write " </tr>" & vbCrLf
.Write " <tr>" & vbCrLf
.Write " <td align=""right"" class=""TableRow1""><strong class=""TableRow2"">远程列表URL:</strong></td>" & vbCrLf
.Write " <td class=""TableRow2""><span class=""TableRow1"">" & vbCrLf
.Write " <input name=""RemoteListUrl"" type=""text"" id=""RemoteListUrl"" size=""70"""
If isEdit Then
.Write " value=""" & Rs("RemoteListUrl") & """"
End If
.Write ">" & vbCrLf
.Write " </span></td>" & vbCrLf
.Write " </tr>" & vbCrLf
.Write " <tr>" & vbCrLf
.Write " <td align=""right"" class=""TableRow1""><strong class=""TableRow1"">是否列表分页采集:</strong></td>" & vbCrLf
.Write " <td class=""TableRow1""><input name=""IsPagination"" type=""radio"" value=""0"""
If isEdit Then
If Rs("IsPagination") = 0 Then .Write " checked"
Else
.Write " checked"
End If
.Write " onClick=""Pageinate1.style.display='none';Pageinate2.style.display='none';""> 否 " & vbCrLf
.Write " <input type=""radio"" name=""IsPagination"" value=""1"""
If isEdit Then
If Rs("IsPagination") > 0 Then .Write " checked"
End If
.Write " onClick=""Pageinate1.style.display='';Pageinate2.style.display='';""> 是</td>" & vbCrLf
.Write " </tr>" & vbCrLf
.Write " <tr id=""Pageinate1"""
If isEdit Then
If Rs("IsPagination") = 0 Then .Write " style=""display:'none';"""
Else
.Write " style=""display:'none';"""
End If
.Write ">" & vbCrLf
.Write " <td align=""right"" class=""TableRow2""><strong class=""TableRow2"">远程列表分页URL:</strong></td>" & vbCrLf
.Write " <td class=""TableRow2""><input name=""PaginalList"" type=""text"" id=""PaginalList"" size=""70"""
If isEdit Then
.Write " value=""" & Rs("PaginalList") & """"
End If
.Write ">" & vbCrLf
.Write " <span class=""style2""> * 分页代码 <font color=""red"">{$pageid}</font></span></td>" & vbCrLf
.Write " </tr>" & vbCrLf
.Write " <tr id=""Pageinate2"""
If isEdit Then
If Rs("IsPagination") = 0 Then .Write " style=""display:'none';"""
Else
.Write " style=""display:'none';"""
End If
.Write ">" & vbCrLf
.Write " <td align=""right"" class=""TableRow1""><strong class=""TableRow1"">远程列表起始页:</strong></td>" & vbCrLf
.Write " <td class=""TableRow1"">开始页:" & vbCrLf
.Write " <input name=""startid"" type=""text"" id=""startid"" size=""6"""
If isEdit Then
.Write " value=""" & Rs("startid") & """"
Else
.Write " value=""1"""
End If
.Write "> -" & vbCrLf
.Write " 结束页:" & vbCrLf
.Write " <input name=""lastid"" type=""text"" id=""lastid"" size=""6"""
If isEdit Then
.Write " value=""" & Rs("lastid") & """"
Else
.Write " value=""2"""
End If
.Write "> <span class=""style2"">* 例如:1 - 9 或者 9 - 1</span></td>" & vbCrLf
.Write " </tr>" & vbCrLf
'--简介字符替换操作
.Write " <tr>" & vbCrLf
.Write " <td align=""right"" class=""TableRow2""><strong>简介字符替换操作:</strong></td>" & vbCrLf
.Write " <td class=""TableRow2""><table border=""0"" cellpadding=""3""><tr><td><select name=""strReplace"" id=""strReplace"" style=""width:380;height:100"" size=""2"" ondblclick=""return ModifyReplace();"">" & vbCrLf
Dim strReplaceArray
If isEdit Then
If Not IsNull(Rs("strReplace")) Then
strReplaceArray = Split(Rs("strReplace"), "$$$")
For i = 0 To UBound(strReplaceArray)
If Len(strReplaceArray(i)) > 1 Then
.Write " <option value=""" & strReplaceArray(i) & """>" & strReplaceArray(i) & "</option>" & vbCrLf
End If
Next
End If
End If
.Write " " & vbCrLf
.Write " </select></td><td>" & vbCrLf
.Write " <input type=""button"" name=""addReplace"" value=""添加替换字符"" class=""button"" onclick=""AddReplace();""><br><br style=""overflow: hidden; line-height: 5px"">" & vbCrLf
.Write " <input type=""button"" name=""modifyReplace"" value=""修改当前字符"" class=""button"" onclick=""return ModifyReplace();""><br><br style=""overflow: hidden; line-height: 5px"">" & vbCrLf
.Write " <input type=""button"" name=""delReplace"" value=""删除当前字符"" class=""button"" onclick=""DelReplace();""><br>" & vbCrLf
.Write " <input type=""hidden"" name=""ReplaceList"" value="""">" & vbCrLf
.Write " </td><tr></table>" & vbCrLf
.Write " </td>" & vbCrLf
.Write " </tr>" & vbCrLf
.Write " <tr>" & vbCrLf
.Write " <td align=""right"" class=""TableRow1""> </td>" & vbCrLf
.Write " <td class=""TableRow1""><div align=""center"">" & vbCrLf
.Write " <input name=""B12"" type=""button"" class=""Button"" onclick=""javascript:history.go(-1)"" value=""返回上一页""> " & vbCrLf
.Write " <input name=""B22"" type=""submit"" class=""Button"" value="" 下一步 ""> " & vbCrLf
.Write " <input name=""ShowCode"" type=""checkbox"" value=""1""> 显示源码" & vbCrLf
.Write " </div></td>" & vbCrLf
.Write " </tr> " & vbCrLf
.Write "</table> " & vbCrLf
.Write "</form>" & vbCrLf
If isEdit Then Rs.Close: Set Rs = Nothing
End With
End Sub
'-- 采集项目第二步
Private Sub ItemStep2()
Dim tmpRemoveCode, i, showcode
Dim NewItemID, strFindListCode
ItemID = Mynewasp.ChkNumeric(Request("ItemID"))
showcode = Mynewasp.ChkNumeric(Request("showcode"))
If Trim(Request("change")) = "yes" Then
If Len(Trim(Request.Form("ItemName"))) = 0 Then
OutErrors ("请填写项目名称!")
Exit Sub
End If
If Len(Trim(Request.Form("SiteUrl"))) = 0 Then
OutErrors ("请填写目标站点URL!")
Exit Sub
End If
If Left(LCase(Request.Form("SiteUrl")), 4) <> "http" Then
OutErrors ("目标站点URL输入错误,请在URL前面加上“http://”!")
Exit Sub
End If
If Len(Trim(Request.Form("Encoding"))) < 3 Then
OutErrors ("请选择目标站点的文件编码!")
Exit Sub
End If
If Mynewasp.ChkNumeric(Request.Form("AutoClass")) = 0 Then
If Mynewasp.ChkNumeric(Request.Form("ClassID")) = 0 Then
OutErrors ("该一级分类已经有下属分类,不能采集;请重新选择分类!")
Exit Sub
End If
End If
If Len(Trim(Request.Form("RemoteListUrl"))) = 0 Then
OutErrors ("请填写远程列表URL!")
Exit Sub
End If
If Mynewasp.ChkNumeric(Request.Form("IsPagination")) > 0 Then
If Len(Trim(Request.Form("PaginalList"))) = 0 Then
OutErrors ("请填写远程分页列表URL!")
Exit Sub
End If
End If
Mynewasp.DelCahe "SoftItem" & ItemID
For i = 0 To 10
tmpRemoveCode = tmpRemoveCode & Mynewasp.ChkNumeric(Request.Form("RemoveCode" & i & "")) & "|"
Next
tmpRemoveCode = tmpRemoveCode & "0|0|0|0|0|0|0|0|0"
If ItemID = 0 Then
SQL = "SELECT * FROM NC_SoftItem WHERE (ItemID is null)"
Else
SQL = "SELECT * FROM NC_SoftItem WHERE ItemID=" & ItemID
End If
Set Rs = CreateObject("ADODB.Recordset")
Rs.Open SQL, MyConn, 1, 3
If ItemID = 0 Then Rs.AddNew
Rs("ItemName") = Trim(Request.Form("ItemName"))
Rs("SiteUrl") = Trim(Request.Form("SiteUrl"))
Rs("ChannelID") = ChannelID
Rs("ClassID") = Mynewasp.ChkNumeric(Request.Form("ClassID"))
Rs("SpecialID") = Mynewasp.ChkNumeric(Request.Form("SpecialID"))
Rs("StopItem") = Mynewasp.ChkNumeric(Request.Form("StopItem"))
Rs("Encoding") = Trim(Request.Form("Encoding"))
Rs("IsDown") = Mynewasp.ChkNumeric(Request.Form("IsDown"))
Rs("downid") = Mynewasp.ChkNumeric(Request.Form("downid"))
Rs("MaxAddress") = Mynewasp.ChkNumeric(Request.Form("MaxAddress"))
Rs("AutoClass") = Mynewasp.ChkNumeric(Request.Form("AutoClass"))
Rs("PathForm") = Mynewasp.ChkNumeric(Request.Form("PathForm"))
Rs("SaveFilePath") = Trim(Request.Form("SaveFilePath"))
Rs("AutoRename") = Mynewasp.ChkNumeric(Request.Form("AutoRename"))
Rs("IsNowTime") = Mynewasp.ChkNumeric(Request.Form("IsNowTime"))
Rs("AllHits") = Mynewasp.ChkNumeric(Request.Form("AllHits"))
Rs("star") = Mynewasp.ChkNumeric(Request.Form("star"))
Rs("RemoveCode") = Trim(tmpRemoveCode)
Rs("RemoteListUrl") = Trim(Request.Form("RemoteListUrl"))
Rs("PaginalList") = Trim(Request.Form("PaginalList"))
Rs("IsPagination") = Mynewasp.ChkNumeric(Request.Form("IsPagination"))
Rs("startid") = Mynewasp.ChkNumeric(Request.Form("startid"))
Rs("lastid") = Mynewasp.ChkNumeric(Request.Form("lastid"))
If ItemID = 0 Then
Rs("lastime") = Now()
Rs("FindListCode") = "0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0"
Rs("FindInfoCode") = "0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0$$$0"
Rs("DownPage") = 0
Rs("NamedDemourl") = ""
End If
Rs("RetuneClass") = Trim(Request.Form("ClassList"))
Rs("strReplace") = Trim(Request.Form("ReplaceList"))
Rs.Update
Rs.Close: Set Rs = Nothing
End If
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -