<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim rs,sql,id
id=trim(request("selectedid"))
if not isnumeric(id) or id="" then
response.write "<li>参数错误！"
response.end
end if
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [link] where id="&cstr(id) 
rs.open sql,conn,1,1
%>
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改连接</title>
</head>
<SCRIPT language=javascript>
<!--
function CheckForm()
{
if(document.thisForm.web.value.length<1)
	{
	    alert("网站名称不能为空!");
	    return false;
	}
	if(document.thisForm.url.value.length<1)
	{
	    alert("网站地址不能为空!");
	    return false;
	}
			if(document.thisForm.webabout.value.length<1)
	{
	    alert("网站简介不能为空!");
	    return false;
	}
	


}

//-->
</SCRIPT>
<body style="font-size: 12px">

<form method="POST" name="thisForm" action="link_e_chk.asp?selectedid=<%=id%>">
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	<b>修改网站连接资料</b></p><hr color="#C0C0C0" size="1">
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	网站名称:<input type="text" name="web" size="30" maxlength="20" value="<%=rs("web")%>"> *</p>
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	网站地址:<input type="text" name="url" size="30" value="<%=rs("url")%>"> *</p>
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	logo地址:<input type="text" name="logo" size="36" value="<%=rs("logo")%>"> (88*31)</p>
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	网站简介:<input type="text" name="webabout" size="38" maxlength="50" value="<%=rs("webabout")%>"> *</p>
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	                  <input border="0" onclick="javascript:return CheckForm();" src="../images/Login_but.gif" name="I2" type="image" width="62" height="22"></p>
</form>

</body>
<%
rs.close
set rs=nothing
closedb
%>

</html>