⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sk_getphoto.asp

📁 SK信息采集2.0功能介绍: 1.可针对任何静态网页,动态网页进行采集。包括htm,html,shtml,ASP,ASPX,JSP,PHP等。 2.增加自定文件采集.用户可采集网页中的所有文件.
💻 ASP
📖 第 1 页 / 共 4 页
字号:
  <tr class="tdbg">
    <td height="20" align="right"><STRONG>采集保存地址:</STRONG></td>
    <td><input name="photodir" type="text" class="lostfocus" value="<% =rs("photodir") %>" size="27" maxlength="30">
    <font class="alert">&nbsp;后面必须带"/"符号</font></td>
  </tr>
  <tr class="tdbg">
    <td height="20" align="right">&nbsp;</td>
    <td height="30"><input name="Submit2" type="submit" class="lostfocus" value="提交"></td>
  </tr>
  </form>
</table>
<%
Rs.Close	
set rs=nothing
end sub
Sub addnew1()'初步设置
Colleclx=Trim(Request("Colleclx"))
call SetChannel
If action="edit" or action1="edit" Then
   if ItemID<>"" then
	   ItemID=Clng(ItemID)
	   SqlItem ="select * from Item where ItemID=" & ItemID
	   Set RsItem=Server.CreateObject("adodb.recordset")
	   RsItem.Open SqlItem,ConnItem,1,1
	   If RsItem.Eof And RsItem.Bof  Then
		  FoundErr=True
		  ErrMsg=ErrMsg & "<br><li>参数错误,没有找到该项目!</li>"
	   Else
		ItemName=RsItem("ItemName")
		ChannelID=RsItem("ChannelID")
		ClassID=RsItem("ClassID")
	   	SpecialID=RsItem("SpecialID")
		selEncoding=RsItem("selEncoding")
	   	WebUrl=RsItem("WebUrl")
	   	ListStr=RsItem("ListStr")
		ListPaingType=RsItem("ListPaingType")
		LPsString=RsItem("LPsString")
		LPoString=RsItem("LPoString")
		ListPaingStr2=RsItem("ListPaingStr2")
		Select Case ListPaingType
		   Case 0 
			  ListUrl=ListStr
		   Case 1
		   	  ListPaingID1=RsItem("ListPaingID1")
			  ListPaingID2=RsItem("ListPaingID2")
			  ListUrl=Replace(ListPaingStr2,"{$ID}",CStr(ListPaingID1))
		   Case 2
			  ListPaingStr3=RsItem("ListPaingStr3")
			  If  Instr(ListPaingStr3,"|")>0  Then
					ListUrl=Left(ListPaingStr3,Instr(ListPaingStr3,"|")-1)
			  Else
					ListUrl=ListPaingStr3
			  End  If
			  ListPaingStr3=Replace(ListPaingStr3,"|",CHR(13))
		End Select
	   	Colleclx=RsItem("Colleclx")
		SaveFileUrl=RsItem("SaveFileUrl")
		Passed=RsItem("Passed")
		SaveFiles=RsItem("SaveFiles")
		CollecOrder=RsItem("CollecOrder")
		Script_Iframe=RsItem("Script_Iframe")
     	Script_Object=RsItem("Script_Object")
		Script_Script=RsItem("Script_Script")
		Script_Div=RsItem("Script_Div")
		Script_Class=RsItem("Script_Class")
		Script_Span=RsItem("Script_Span")
		Script_Img=RsItem("Script_Img")
		Script_Font=RsItem("Script_Font")
		Script_A=RsItem("Script_A")
		Script_Html=RsItem("Script_Html")
		Script_Table=RsItem("Script_Table")
		Script_Tr=RsItem("Script_Tr")
		Script_Td=RsItem("Script_Td")
		Stars=RsItem("Stars")
		ReadPoint=RsItem("ReadPoint")
		Hits=RsItem("Hits")
		Colleclx=RsItem("Colleclx")
		Thumb_WaterMark=RsItem("Thumb_WaterMark")
		CollecNewsNum=RsItem("CollecNewsNum")
	   End If
   RsItem.Close
   Set RsItem=Nothing
   end if
End If
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableBorder" >
<form method="post" action="sk_getphoto.asp" name="myform">
    <tr> 
      <td height="22" colspan="2" class="title"> <div align="center"><strong>添 加 新 
		项 目--基 本 设 置</strong></div></td>
    </tr>
    <tr class="tdbg"> 
      <td width="20%" align="right" bgcolor="#F3F3F3" class="txtlist"><strong>项目名称:</strong></td>
      <td width="75%" bgcolor="#F3F3F3" class="tdbg">
	  <input name="ItemName" type="text" class="lostfocus" value="<%= ItemName %>" size="27" maxlength="30">&nbsp;&nbsp;<font color=red>*</font>如:新浪网-新闻中心 既简单又明了      </td>
    </tr>
    
    <tr class="tdbg"> 
      <td width="20%" align="right" bgcolor="#F3F3F3" class="txtlist"><strong> 所属分类:</strong></td>
      <td width="75%" bgcolor="#F3F3F3" class="tdbg"><select ID="ClassID" name="ClassID"><%call SK_Showclass(ClassID,2)%></select>
       </td>
    </tr>
    

    <tr>
      <td align="right" bgcolor="#F3F3F3" class="txtlist"><STRONG>目标文档编码:</STRONG></td>
      <td bgcolor="#F3F3F3" ><font color=blue>请选择编码→</font></span>      <select name="selEncoding" size="1" onChange="Encoding.value=this.value;">
        <option>请选择编码</option>
        <option value="GB2312" selected <% if selEncoding="GB2312" then Response.Write "selected" %>>GB2312</option>
        <option value="UTF-8" <% if selEncoding="UTF-8" then Response.Write "selected" %>>UTF-8</option>
        <option value="BIG5" <% if selEncoding="BIG5" then Response.Write "selected" %>>BIG5</option>
          </select></td>
    </tr>
    <tr>
      <td width="20%" align="right" bgcolor="#F3F3F3" class="txtlist"><strong> 网站网址:</strong></td>
      <td width="75%" bgcolor="#F3F3F3" class="tdbg"><input name="WebUrl" class="lostfocus" type="text" value=
	  <%if WebUrl="" then 
	  Response.Write "http://www.skxiu.com" 
	  else
	  Response.Write WebUrl 
	  end if%>  size="49" maxlength="150">
      <font color=red>*</font></td>
    </tr>
    <tr class="tdbg">
      <td  align="right" bgcolor="#F3F3F3" class="txtlist"><strong>远程列表URL:</strong></td>
      <td bgcolor="#F3F3F3" class="tdbg"><input name="ListStr" type="text" class="lostfocus"  value="<%= ListStr %>" size="80" maxlength="200">
        <font color=red>*</font></td>
    </tr>
    <tr class="tdbg">
      <td  align="right" bgcolor="#F3F3F3" class="txtlist"><strong>是否列表分页采集:</strong></td>
      <td bgcolor="#F3F3F3" class="tdbg">
	  <input type="radio" value="0" name="ListPaingType" <% if ListPaingType=0 or ListPaingType="" then Response.Write "checked" %> onClick="ListPaing2.style.display='none';ListPaing3.style.display='none'">
        不作设置&nbsp;&nbsp;
        <input type="radio" value="1" name="ListPaingType" <% if ListPaingType=1 then Response.Write "checked" %> onClick="ListPaing2.style.display='';ListPaing3.style.display='none'">
        批量生成&nbsp;
        <input type="radio" value="2" name="ListPaingType" <% if ListPaingType=2 then Response.Write "checked" %> onClick="ListPaing2.style.display='none';ListPaing3.style.display=''">
      手动添加 </td>
    </tr>
    
    <tr  class="tdbg" id="ListPaing2" <% if ListPaingType<>1 then Response.Write "style=""display:none""" %> >
      <td  align="right" bgcolor="#F3F3F3" class="txtlist"><strong><font color=blue>批量生成:</font></strong></td>
      <td bgcolor="#F3F3F3" class="tdbg"><input name="ListPaingStr2" type="text" class="lostfocus" value="<% =ListPaingStr2 %>" size="80" maxlength="200">
        分页代码 <font color=red>{$ID}</font><br>
格式:http://www.scuta.net/list.asp?page={$ID}<br>
生成范围:<br>
<input name="ListPaingID1" value="<%= ListPaingID1 %>" type="text" class="lostfocus" size="8" maxlength="200">
<span lang="en-us"> To </span>
<input name="ListPaingID2"  value="<%= ListPaingID2 %>" type="text" class="lostfocus" size="8" maxlength="200"> 
例如:1 - 9 或者 9 - 1<br>
格式:只能是数字,可升序或者降序。 </td>
    </tr>
    
    <tr class="tdbg" id="ListPaing3" <% if ListPaingType<>2 then Response.Write "style=""display:none""" %>>
      <td  align="right" bgcolor="#F3F3F3" class="txtlist" ><strong><font color=blue>手动添加:</font></strong></td>
      <td bgcolor="#F3F3F3" class="tdbg"><textarea name="ListPaingStr3" cols="60" rows="7" class="lostfocus"><%= ListPaingStr3 %></textarea>
      格式:输入一个网址后按回车,再输入下一个</td>
    </tr>
	 <tr class="tdbg" bgcolor="#F3F3F3">
	   <td height="30" align="right"><STRONG>采集图片保存地址</STRONG>:</td>
	   <td><input name="SaveFileUrl" type="text" class="lostfocus" value="<% =SaveFileUrl %>" size="80" maxlength="200">
       <font class="alert">&nbsp;后面必须带"/"符号</font></td>
    </tr>
	 <tr class="tdbg" bgcolor="#F3F3F3">
	   <td height="30" align="right"><STRONG>图片设置:</STRONG></td>
	   <td><input name="Passed" type="checkbox" value="yes" <%if Passed=1 then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
立即发布
  <input name="SaveFiles" type="checkbox" value="yes" <%if SaveFiles=1 then response.write "checked"%> <%If IsObjInstalled("Scripting.FileSystemObject")=False Then Response.Write "disabled"%> style="border: 0px;background-color: #eeeeee;">
保存图片
<input name="Thumb_WaterMark" type="checkbox" style="border: 0px;background-color: #eeeeee;" value="yes"  <%if Thumb_WaterMark=1 then response.write "checked"%>>
图片水印
<input name="CollecOrder" type="checkbox" style="border: 0px;background-color: #eeeeee;" value="yes"  <%if CollecOrder=1 then response.write "checked"%>>
倒序采集</td>
    </tr>
	 <tr class="tdbg" bgcolor="#F3F3F3">
      <td height="30" width="20%" align="right"><b>标签过滤:</b></td>
      <td>
        <input name="Script_Iframe" type="checkbox" value="yes" <%If Script_Iframe=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        Iframe
        <input name="Script_Object" type="checkbox" value="yes" <%If Script_Object=1 Then response.write "checked"%> onclick='return confirm("确定要选择该标记吗?这将删除正文中的所有Object标记,结果将导致该文章中的所有Flash动画被删除!");' style="border: 0px;background-color: #eeeeee;">
        Object
        <input name="Script_Script" type="checkbox" value="yes" <%If Script_Script=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        Script
        <input name="Script_Div" type="checkbox"  value="yes" <%If Script_Div=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        Div
        <input name="Script_Class" type="checkbox"  value="yes" <%If Script_Class=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        Class
        <input name="Script_Table" type="checkbox"  value="yes" <%If Script_Table=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        Table
        <input name="Script_Tr" type="checkbox"  value="yes" <%If Script_Tr=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        Tr
        <br>
        <input name="Script_Span" type="checkbox"  value="yes" <%If Script_Span=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        Span&nbsp;&nbsp;
        <input name="Script_Img" type="checkbox" value="yes" <%If Script_Img=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        Img&nbsp;&nbsp;&nbsp;
        <input name="Script_Font" type="checkbox"  value="yes" <%If Script_Font=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        Font&nbsp;&nbsp;
        <input name="Script_A" type="checkbox" value="yes" <%If Script_A=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        A&nbsp;&nbsp;
        <input name="Script_Html" type="checkbox" value="yes" <%If Script_Html=1 Then response.write "checked"%> onclick='return confirm("确定要选择该标记吗?这将删除正文中的所有Html标记,结果将导致该文章的可查看性降低!");' style="border: 0px;background-color: #eeeeee;">
        Html&nbsp;
        <input name="Script_Td" type="checkbox"  value="yes" <%If Script_Td=1 Then response.write "checked"%> style="border: 0px;background-color: #eeeeee;">
        Td        </td>
    </tr>
    <tr class="tdbg" bgcolor="#F3F3F3">
       <td align="right"><b>数量限制:</b></td>
       <td><input name="CollecNewsNum" type="text" id="CollecNewsNum" value="<%=CollecNewsNum%>" size="10" maxlength="10"> 
         <font color='#0000FF'>0为采集所有 成功条数 </font></td>
     </tr>
    <tr class="tdbg" bgcolor="#F3F3F3">
      <td align="right"><b>评分等级:</b></td>
      <td>
	  <% if Stars=0 then Stars=5 %>
	  <select name="Stars">
            <option value="5" selected <%If Stars=5 Then response.write "selected"%>>★★★★★</option>
            <option value="4" <%If Stars=4 Then response.write "selected"%>>★★★★</option>
            <option value="3" <%If Stars=3 Then response.write "selected"%>>★★★</option>
            <option value="2" <%If Stars=2 Then response.write "selected"%>>★★</option>
            <option value="1" <%If Stars=1 Then response.write "selected"%>>★</option>
            <option value="0" <%If Stars=0 Then response.write "selected"%>>无</option>
        </select>      </td>
    </tr>
	<tr class="tdbg" bgcolor="#F3F3F3">
      <td align="right"><b>查看点数:</b></td>
      <td><input name='ReadPoint' type='text' id='ReadPoint' value='<%=ReadPoint%>' size='5' maxlength='3'>
      <font color='#0000FF'>如果大于0,则用户查看此<%=radioid%>时将消耗相应点数。(对游客和管理员无效)</font>      </td>
    </tr>
	<tr class="tdbg" bgcolor="#F3F3F3">
      <td align="right"><b>点击数初始值:</b></td>
      <td><input name="Hits" type="text" id="Hits" value="<%=Hits%>" size="10" maxlength="10">
        <font color='#0000FF'>这功能是提供给管理员作弊用的。不过尽量不要用呀!^_^</font>      </td>
    </tr>
    <tr class="tdbg"> 
      <td height="30" colspan="2" align="center" bgcolor="#F3F3F3" class="tdbg">
	  <% 
	  select case action 
	  case "add" 
	  Response.Write "<input name=""Action1"" type=""hidden"" id=""Action"" value=""add"">"
	  case "edit"
	  Response.Write "<input name=""Action1"" type=""hidden"" id=""Action"" value=""edit"">"
	  end select
	    %>
		
	  <input name="ItemID" type="hidden" id="ItemID" value="<%=ItemID%>">
	   <input name="Action" type="hidden" id="Action" value="s1">
	   <input name="Colleclx" type="hidden" id="Action" value="<%= Colleclx %>">
	  
        <input name="Cancel" type="button" class="lostfocus" id="Cancel" style="cursor: hand;background-color: #cccccc;" onClick="window.location.href='SK_getphoto.asp'" value=" 返&nbsp;&nbsp;回 ">
        &nbsp; 
      <input name="Submit"  type="submit" class="lostfocus" style="cursor: hand;background-color: #cccccc;" value="下&nbsp;一&nbsp;步">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <input type="checkbox" name="ShowCode" value="checkbox">显示源码</td>
    </tr>
</form>
</table>


  
</body>         
</html>
<%end Sub%>
<%
Sub SetChannel

Set Rs=server.createobject("adodb.recordset")
Sql = "select ChannelID from SK_Channel where ModuleType=1 order by ChannelID ASC"
Rs.Open Sql,ConnItem,1,1
If Not Rs.Eof Then
   Arr_Channel=Rs.GetRows()
End If
Rs.Close
Set Rs=Nothing

If IsArray(Arr_Channel)= True then
   i_Class=0
   i_Special=0
   For i=0 To Ubound(ArrShowLine)
      ArrShowLine(i)=False
   Next
%>
<script language = "JavaScript">
var count_class;
var count_special;
arr_class = new Array();
arr_special= new Array();
<%
   For i_Channel=0 To Ubound(Arr_Channel,2)
      Set Rs=server.createobject("adodb.recordset")
      Sql = "select * from sk_Class where ChannelID=" & Arr_Channel(0,i_Channel) & " order by RootID,OrderID"
      Rs.Open Sql,ConnItem,1,1
%>
arr_class[<%=i_Class%>] = new Array("<%=Arr_Channel(0,i_Channel)%>","0","请选择栏目");
<%
      i_Class=i_Class+1
      If Not Rs.Eof Then
         Do While Not Rs.Eof
            ClassName="" 
            tmpDepth=Rs("Depth")
            If Rs("NextID")>0 then
				ArrShowLine(tmpDepth)=True
			Else
				ArrShowLine(tmpDepth)=False
			End if
			ClassID=Rs("ClassID")
			ClassName=ClassName & Rs("ClassName")
	%>
	arr_class[<%=i_Class%>] = new Array("<%=Arr_Channel(0,i_Channel)%>","<%=ClassID%>","<%=ClassName%>");
	<%
				i_Class = i_Class + 1
				Rs.MoveNext
         Loop
      End if
      Rs.Close
      Set Rs=Nothing

      Set Rs=server.createobject("adodb.recordset")
      Sql = "select SpecialID,SpecialName from sk_Special where ChannelID=" & Arr_Channel(0,i_Channel) & " order by SpecialID"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -