?? sk_getflash.asp
字號:
<textarea name="AoString" cols="70" rows="7" class="lostfocus"><%= AoString %></textarea></td>
</tr>
<tr class="tdbg" id="Author2" style="display:none">
<td width="20%" align="right" bgcolor="f3f3f3" class="tdbg" ><strong><font color=blue>請指定作者:</font></strong></td>
<td width="75%" bgcolor="f3f3f3" class="tdbg">
<input name="AuthorStr" type="text" class="lostfocus" id="AuthorStr" value="<%= AuthorStr %>"> </td>
</tr>
<tr class="tdbg">
<td width="20%" align="right" bgcolor="f3f3f3" class="tdbg" ><b>來 源
設 置:</b></td>
<td width="75%" bgcolor="f3f3f3" class="tdbg">
<input type="radio" value="0" name="CopyFromType" <% If CopyFromType=0 Or CopyFromType="" Then Response.Write("checked") %> onClick="CopyFrom1.style.display='none';CopyFrom2.style.display='none'">不作設置
<input type="radio" value="1" name="CopyFromType" <% If CopyFromType=1 Then Response.Write("checked") %> onClick="CopyFrom1.style.display='';CopyFrom2.style.display='none'">設置標簽
<input type="radio" value="2" name="CopyFromType" <% If CopyFromType=2 Then Response.Write("checked") %> onClick="CopyFrom1.style.display='none';CopyFrom2.style.display=''">指定來源</td>
</tr>
<tr class="tdbg" id="CopyFrom1" style="display:none">
<td width="20%" align="right" bgcolor="f3f3f3" class="tdbg" ><strong><font color=blue>來源開始標記:</font></strong><p> </p>
<p> </p>
<strong><font color=blue>來源結束標記:</font></strong></td>
<td width="75%" bgcolor="f3f3f3" class="tdbg">
<textarea name="FsString" cols="70" rows="7" class="lostfocus"><%= FsString %></textarea><br>
<textarea name="FoString" cols="70" rows="7" class="lostfocus"><%= FoString %></textarea></td>
</tr>
<tr class="tdbg" id="CopyFrom2" style="display:none">
<td width="20%" align="right" bgcolor="f3f3f3" class="tdbg" ><strong><font color=blue>請指定來源:</font></strong></td>
<td width="75%" bgcolor="f3f3f3" class="tdbg">
<input name="CopyFromStr" type="text" class="lostfocus" id="CopyFromStr" value="<%= CopyFromStr %>"> </td>
</tr>
<tr class="tdbg">
<td width="20%" align="right" bgcolor="f3f3f3" class="tdbg" ><b>關鍵字詞設置:</b></td>
<td width="75%" bgcolor="f3f3f3" class="tdbg">
<input type="radio" value="0" name="KeyType" <% If KeyType=0 Or KeyType="" Then Response.Write("checked") %> onClick="Key1.style.display='none';Key2.style.display='none'">標題生成
<input type="radio" value="1" name="KeyType" <% If KeyType=1 Then Response.Write("checked") %> onClick="Key1.style.display='';Key2.style.display='none'">標簽生成
<input type="radio" value="2" name="KeyType" <% If KeyType=2 Then Response.Write("checked") %> onClick="Key1.style.display='none';Key2.style.display=''">自定義關鍵字</td>
</tr>
<tr class="tdbg" id="Key1" style="display:none">
<td width="20%" align="right" bgcolor="f3f3f3" class="tdbg" ><strong><font color=blue>關鍵詞開始標記:</font></strong><p> </p>
<p> </p>
<strong><font color=blue>關鍵詞結束標記:</font></strong></td>
<td width="75%" bgcolor="f3f3f3" class="tdbg">
<textarea name="KsString" cols="70" rows="7" class="lostfocus"><%= KsString %></textarea><br>
<textarea name="KoString" cols="70" rows="7" class="lostfocus"><%= KoString %></textarea></td>
</tr>
<tr class="tdbg" id="Key2" style="display:none">
<td width="20%" align="right" bgcolor="f3f3f3" class="tdbg" ><strong><font color=blue>請指定關鍵:</font></strong></td>
<td width="75%" bgcolor="f3f3f3" class="tdbg"><input name="KeyStr" type="text" class="lostfocus" id="KeyStr" value="<%= KeyStr %>">
<br>
格式:關鍵字之間用<font color=red>|</font>分隔,如:<%= CjName%>|IT </td>
</tr>
<%
'------自定義-----------
If SK.GeU_WUrl=1 then
Response.Write SK.GetField(1,Colleclx)
End if
%>
<tr class="tdbg">
<td height="30" colspan="2" align="center" bgcolor="f3f3f3" class="tdbg">
<input name="ItemID" type="hidden" value="<%=ItemID%>">
<%
Response.Write "<input name=""Action1"" type=""hidden"" id=""Action"" value="& action1 &">"
%>
<input name="Action" type="hidden" id="Action" value="demo">
<input type="hidden" name="UrlTest" id="UrlTest" value="<%=UrlTest%>">
<input name="button1" type="button" class="lostfocus" style="cursor: hand;background-color: #cccccc;" onClick="window.location.href='javascript:history.go(-1)'" value="上 一 步">
<input name="Submit" type="submit" class="lostfocus" style="cursor: hand;background-color: #cccccc;" value="下 一 步"> <input type="checkbox" name="ShowCode" value="checkbox">顯示源碼</td>
</tr>
</form>
</table>
<%
End If
End Sub'第二完
Sub demo()'測試頁
If ItemID="" Then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>參數錯誤,項目ID不能為空</li>"
Else
ItemID=Clng(ItemID)
End If
If FoundErr<>True Then
Req_Err_msg 3
End If
If FoundErr<>True And Action="demo" And Action1="" Then
SK.GetTest()
End If
If FoundErr=True Then
Call WriteErrMsg(ErrMsg)
Else
If Action1="" And Action="demo" Or Skcj.G("ShowCode")="checkbox" Then
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableBorder" >
<tr>
<td height="22" colspan="2" class="title"> <div align="center"><strong>編 輯 項 目--采 樣 測 試</strong></div></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableBorder" >
<tr align="center" class="tdbg">
<td colspan="2" valign="bottom"><span lang="zh-cn">
<%=Title%></span></td>
</tr>
<tr align="center" class="tdbg">
<td colspan="2">
<strong>作者:</strong><%=Author%> <strong>來源:</strong><%=CopyFrom%> <strong>更新時間:</strong><%=UpDateTime%>
</td>
</tr>
<tr class="tdbg">
<td colspan="2">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td height="200" valign="top">
<%
If x_tp=1 Then
Response.Write "<B>列表小圖片地址:</b>"
Response.Write "<a href="& picpath &" target=""_blank"">"& picpath &"<a/>"
End If
Response.Write "<br><strong>內容:</strong>" & Server.HtmlEncode(Content) &""
Response.Write "<br><strong>動漫地址:</strong><a href="& DownUrls &" target=""_blank"">"& DownUrls &"<a/>"
Response.Write "<br><b>關鍵字:</b>" & Server.HtmlEncode(Key) &"<br>"
'-------------------自定義--------------------------
If SK.GeU_WUrl=1 then
Dim DiyFieldSTR,Diy_Arr,DiyField_Arr
'最終頁
DiyFieldSTR=Sk.GetDiyField_STR(ItemID,1,Colleclx)'取得采集字符串
If DiyFieldSTR<>"" then
Diy_Arr=Split(DiyFieldSTR,"{$SK$}")
For Testi=0 To Ubound(Diy_Arr) -1
DiyField_Arr=Split(Diy_Arr(Testi),"{|}")
Response.Write "<B>"& DiyField_Arr(0) &":</B>" & Server.HtmlEncode(DiyField_Arr(1)) &"<BR>"
Next
End if
End If
'-------------------自定義--------------------------
%>
</td>
</tr>
</table>
</td>
</tr>
<form method="post" action="<%= CJFileName %>" name="form1">
<tr class="tdbg">
<td colspan="2" align="center">
<input name="Cancel" class="lostfocus" type="button" value=" 上 一 步 " onClick="window.location.href='javascript:history.go(-1)'" style="cursor: hand;background-color: #cccccc;"> <input type="submit" name="Submit" class="lostfocus" value=" 設置完成 " style="cursor: hand;background-color: #cccccc;">
</td>
</tr>
</form>
</table>
<%
else
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableBorder" >
<tr class="tdbg">
<td colspan="2">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td height="30" valign="top"><a href="?action=demo&ItemID=<%= ItemID %>">點擊查看測試頁</a></td>
</tr>
</table> </td>
</tr>
<form method="post" action="<%= CJFileName %>" name="form1">
<tr class="tdbg">
<td colspan="2" align="center">
<input name="Cancel" class="lostfocus" type="button" value=" 上 一 步 " onClick="window.location.href='javascript:history.go(-1)'" style="cursor: hand;background-color: #cccccc;"> <input type="submit" name="Submit" class="lostfocus" value=" 設置完成 " style="cursor: hand;background-color: #cccccc;"> </td>
</tr>
</form>
</table>
<%
End If
End If
End Sub
Sub copy
ItemID=Skcj.G("ItemID")
If ItemID="" Then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>請選擇要刪除的項目!</li>"
Else
Dim copy_s,copyitem(99999)
SqlItem="Select top 1 * from Item where ItemID="& ItemID
Set RsItem=server.CreateObject("adodb.recordset")
RsItem.Open SqlItem,ConnItem,3,3
copy_s =Cint(RsItem.Fields.count)
for i=1 to copy_s - 1
copyitem(i)=RsItem(i)
next
RsItem.AddNew
for i=1 to copy_s - 1
RsItem(i)=copyitem(i)
RsItem(1)=copyitem(1) & " 復制"
next
RsItem.update
RsItem.close
Call show_Manage()
End If
End Sub
Sub Del
ItemID=Skcj.G("ItemID")
If Skcj.G("Del")="快速采集" Then
Response.redirect "Sk_CollectionFast.asp?ItemID="&ItemID&"&ItemNum=1&ListNum=1&NewsSuccesNum=0&NewsFalseNum=0&ImagesNumAll=0&NewsNum_i=0"
Else
If Skcj.G("Del")="清空所有記錄" Then
ConnItem.Execute("Delete From Item")
ConnItem.Execute("Delete From Filters")
ConnItem.Execute("Delete From Histroly")
Else
If ItemID="" Then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>請選擇要刪除的項目!</li>"
Else
ItemID=Replace(ItemID," ","")
ConnItem.Execute("Delete From [Item] Where ItemID In(" & ItemID & ")")
ConnItem.Execute("Delete From [Filters] Where ItemID In(" & ItemID & ")")
ConnItem.Execute("Delete From [Histroly] Where ItemID In(" & ItemID & ")")
End If
End If
End If
Call show_Manage()
End Sub
'================================================
'函數名:Req_Err_msg
'作 用:檢查提交設置并保存
'參 數:erron ----第幾步
'================================================
Public Sub Req_Err_msg(erron)
select case erron
case 1
ItemName=Trim(Request.Form("ItemName"))
ChannelID=Trim(Request.Form("ChannelID"))
ClassID=Trim(Request.Form("ClassID"))
SpecialID=Trim(Request.Form("SpecialID"))
selEncoding=Trim(Request.Form("selEncoding"))
Colleclx=Trim(Request.Form("Colleclx"))
ListStr=Trim(Request.Form("ListStr"))
ListPaingType=Trim(Request.Form("ListPaingType"))
ListPaingStr2=Trim(Request.Form("ListPaingStr2"))
ListPaingID1=Trim(Request.Form("ListPaingID1"))
ListPaingID2=Trim(Request.Form("ListPaingID2"))
ListPaingStr3=Trim(Request.Form("ListPaingStr3"))
Passed=Trim(Request.Form("Passed"))
SaveFiles=Trim(Request.Form("SaveFiles"))
Thumb_WaterMark=Request.Form("Thumb_WaterMark")
SaveFileUrl=Trim(Request.Form("SaveFileUrl"))
Script_Iframe=Trim(Request.Form("Script_Iframe"))
Script_Object=Trim(Request.Form("Script_Object"))
Script_Script=Trim(Request.Form("Script_Script"))
Script_Div=Trim(Request.Form("Script_Div"))
Script_Class=Trim(Request.Form("Script_Class"))
Script_Span=Trim(Request.Form("Script_Span"))
Script_Img=Trim(Request.Form("Script_Img"))
Script_Font=Trim(Request.Form("Script_Font"))
Script_A=Trim(Request.Form("Script_A"))
Script_Html=Trim(Request.Form("Script_Html"))
Script_Table=Trim(Request.Form
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -