<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_SystemSetweburl")<>1 then HX_GoBack "对不起,您的权限不够!",""
WS_Urid=request("WS_Urid"):WS_WebSearchName=request("WS_WebSearchName"):WS_WebSearchUrl=request("WS_WebSearchUrl"):WS_webUrlContent=request("WS_webUrlContent"):ColumnName="":Tablename="HX_WebUrlSearch"
if WS_Urid<>"" and isnumeric(WS_Urid) then
  if request("action")="editsave" then  Orderby=" where WS_Urid<>"&WS_Urid&" and WS_WebSearchName='"&WS_WebSearchName&"' and WS_WebSearchUrl='"&WS_WebSearchUrl&"' and WS_webUrlContent='"&WS_webUrlContent&"'" else  Orderby=" where WS_Urid="&WS_Urid
else
 response.Write("<script language=javascript>alert('非法操作!');window.close();</script>"):response.end
end if
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
if request("action")="editsave" then
  if rs.recordcount>0 then  Call WS_S.HX_GoBack("此号码已存在","")
  Call WS_S.HX_RSClose(rs)
  set rs=WS_S.HX_SetRSD(ColumnName,Tablename," where WS_Urid="&WS_Urid)
  rs("WS_WebSearchName")=WS_WebSearchName:rs("WS_WebSearchUrl")=WS_WebSearchUrl:rs("WS_webUrlContent")=WS_webUrlContent:rs.update
  response.write "<script>alert('修改成功');window.opener.location.reload();window.close();</script>"
  response.end
else
  if rs.recordcount>0 then  WS_WebSearchName=rs("WS_WebSearchName"): WS_WebSearchUrl=rs("WS_WebSearchUrl"):WS_webUrlContent=rs("WS_webUrlContent")
end if
Call WS_S.HX_RSClose(rs)
response.Write "<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>常用网址修改</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'><script src='../hxinclude/HX_function.js'></script></head><body topmargin='20' leftmargin='0' bottommargin='0'><script language='javascript'>  function check(){  var frms=document.form2;  if(frms.WS_WebSearchName.value=='')    {	alert('网站名称不能为空！');	frms.WS_WebSearchName.focus();	return false;	}  if(frms.WS_WebSearchUrl.value=='')    {	alert('网站地址不能为空！');	frms.WS_WebSearchUrl.focus();	return false;	}	return true;  }</script><table width='380'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8><table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>常用网址修改</font></td></tr></table><table width='100%'  border='0' cellpadding='0' cellspacing='1' bgcolor=613c25><tr bgcolor='FFFBE8'><td><table width='100%'  border='0' cellspacing='1' cellpadding='2' bgcolor=BF9B73><form name='form2' method='post' action='?action=editsave' onSubmit='return check();'><tr bgcolor='#FFFBE8'><td width='24%' bgcolor='#FFFBE8'><div align='right'>网站名称：</div></td><td width='76%' bgcolor='#FFFBE8'><input type='text' name='WS_WebSearchName' size=25  value='"&WS_WebSearchName&"'></td></tr><tr bgcolor='#FFFBE8'><td bgcolor='#FFFBE8'><div align='right'>网站地址：</div></td><td bgcolor='#FFFBE8'><input type='text' name='WS_WebSearchUrl' size=25 value='"&WS_WebSearchUrl&"'></td></tr><tr bgcolor='#FFFBE8'><td bgcolor='#FFFBE8' valign=top><div align='right'> 网站说明： </div></td><td bgcolor='#FFFBE8'><textarea name='WS_webUrlContent' cols='40' rows='10' class='bgline'>"&WS_webUrlContent&"</textarea></td></tr><tr bgcolor='#FFFBE8'><td colspan='2'><div align='right'><input type='submit' name='Submit' value=' 修 改 '>&nbsp;&nbsp;<input name='' type='reset' value=' 重 输 '>&nbsp;&nbsp;<input name='' type='button' value=' 关 闭 ' onclick='window.close();'>&nbsp;       </div></td><input type='hidden' name='WS_Urid' size=25 value='"&WS_Urid&"'></tr></form></table></td></tr></table></td></tr></table></td></tr></table>"%>