home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
ins.cab
/
editres.asp
< prev
next >
Wrap
Text File
|
1997-10-12
|
3KB
|
82 lines
<%
L_PAGETITLE_HTMLTitle = "Edit News Offline Search"
L_QUERYRESULT_StaticText ="Your query has been updated."
L_QUERYFAILED_StaticText = "Your query has been deleted."
L_ENTERREPLYMODE_StaticText = "You must specify at least one reply mode. Use the browser back button to go back."
L_ENTEREMAILADDRESS_StaticText = "You must specify an email address to use the email reply mode. Use the browser button to go back."
L_ENTERNEWSGROUP_StaticText = "You must specify a news group to use the news reply mode. Use the browser button to go back."
L_ENTERSEARCHFREQ_StaticText = "The search frequency must be a number. Use the browser button to go back."
%>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 2.0">
<title><%= L_PAGETITLE_HTMLTitle %></title>
</head>
<body background="images\gnback.gif" text="white">
<%if Request.Form("editdelete") = "edit" then%>
<%if IsNumeric( Request.Form("search_frequency") ) = true or Request.Form("search_frequency") = "" then %>
<%if (Request.Form("by_news") = "on" and Request.Form("news_group") <> "") or Request.Form("by_news") <> "on" then%>
<%if (Request.Form("by_mail") = "on" and Request.Form("email_address") <> "") or Request.Form("by_mail") <> "on" then%>
<%if Request.Form("by_mail") <> "" or Request.Form("by_news") <> "" then%>
<%Set querybase = Server.CreateObject("req.req.1")%>
<%set guid = session("guid")%>
<% set x = querybase.ItemX(guid)
x.EmailAddress = Request.Form("email_address")
x.QueryString = Request.Form("query_string")
x.LastDate = Request.Form("last_date")
x.SearchFrequency = Request.Form("search_frequency")
x.Message_Template = Request.Form("message_template")
x.URL_Template = Request.Form("url_template")
x.NewsGroup = Request.Form("news_group")
if Request.Form("by_mail") = "on" and Request.Form("by_news") = "on" then
x.ReplyMode = "both"
else
if Request.Form("by_mail") = "on" then
x.ReplyMode = "mail"
else
if Request.Form("by_news") = "on" then
x.ReplyMode = "news"
else
x.ReplyMode = "mail"
end if
end if
end if
querybase.Save(x)
%>
<p align="center"><font size="4"><strong><%= L_QUERYRESULT_StaticText %></strong></font></p>
<%else%>
<script language="javascript">
alert("<% = L_ENTERREPLYMODE_StaticText %>")
</script>
<%end if%>
<%else%>
<script language="javascript">
alert("<% = L_ENTEREMAILADDRESS_StaticText %>")
</script>
<%end if%>
<%else%>
<script language="javascript">
alert("<% = L_ENTERNEWSGROUP_StaticText %>")
</script>
<%end if%>
<%else%>
<script language="javascript">
alert("<% = L_ENTERSEARCHFREQ_StaticText %>")
</script>
<%end if%>
<%else
set querybase=Server.CreateObject("req.req.1")
set guid=session("guid")
querybase.Delete(guid)%>
<p align="center"><font size="4"><strong><%= L_QUERYFAILED_StaticText %></strong></font></p>
<%end if%>
</body>
</html>