<!--#include file="pysjzx_conn.asp"-->
<!--#include file="session.asp"-->
<%
action=request.QueryString("action")
'//保存信息
id=request.QueryString("id")
if action="edit" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from links where linkid="&id,conn,1,3
rs("linkname")=request("linkname")
rs("linkurl")=trim(request("linkurl"))
rs("user")=trim(request("user"))
rs("email")=trim(request("email"))
rs("tel")=trim(request("tel"))
rs("linkidorder")=int(request("linkidorder"))
rs("by_tongguo")=trim(request("by_tongguo"))
rs.update
rs.close
response.Redirect "link.asp?id="&id
set rs=nothing
end if


set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from links where linkid="&id,conn,1,3
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center">
<table width="95%" border="1" cellpadding="3" cellspacing="1" bordercolor="#C0C0C0" style="border-collapse: collapse">
    <form name="form1" method="post" action="link.asp?action=edit&id=<%=rs("linkid")%>">
			<tr> 
            <td height="22" colspan="3" bgcolor="#E8F1FF"> 
       <p align="center"><b>文字链接管理</b></td>
  			</td>
            </tr>
			<tr> 
            <td height="22" colspan="3" bgcolor="#F7F7F7">　</td>
            </tr>
            <tr> 
              <td bgcolor="#F7F7F7" width="18%">
				　</td>
              <td bgcolor="#F7F7F7" width="11%">
				网站名称</td>
              <td bgcolor="#F7F7F7">
				<input name="linkname" type="text" id="weburl" size="28" value="<%=trim(rs("linkname"))%>"></td>
            </tr>
            <tr> 
              <td bgcolor="#F7F7F7" width="18%">
				　</td>
              <td bgcolor="#F7F7F7" width="11%">
				网站网址</td>
              <td bgcolor="#F7F7F7">
				<input name="linkurl" type="text" id="weburl0" size="28" value="<%=trim(rs("linkurl"))%>"></td>
            </tr>
            <tr> 
              <td bgcolor="#F7F7F7" width="18%">
				　</td>
              <td bgcolor="#F7F7F7" width="11%">
				联系人</td>
              <td bgcolor="#F7F7F7">
				<input name="user" type="text" id="weburl1" size="28" value="<%=trim(rs("user"))%>"></td>
            </tr>
            <tr> 
              <td bgcolor="#F7F7F7" width="18%">
				　</td>
              <td bgcolor="#F7F7F7" width="11%">
				联系电话</td>
              <td bgcolor="#F7F7F7">
				<input name="tel" type="text" id="weburl2" size="28" value="<%=trim(rs("tel"))%>"></td>
            </tr>
            <tr> 
              <td bgcolor="#F7F7F7" width="18%">
				　</td>
              <td bgcolor="#F7F7F7" width="11%">
				联系邮箱</td>
              <td bgcolor="#F7F7F7">
				<input name="email" type="text" id="weburl3" size="28" value="<%=trim(rs("email"))%>"></td>
            </tr>
            <tr> 
              <td bgcolor="#F7F7F7" width="18%">
				　</td>
              <td bgcolor="#F7F7F7" width="11%">
				审核状态</td>
              <td bgcolor="#F7F7F7">
				<p align="left"><select name="by_tongguo">
				<option value="1" <%if rs("by_tongguo")=1 then%> selected <%end if%>>通过</option>
				<option value="0" <%if rs("by_tongguo")=0 then%> selected <%end if%>>未通过</option>
				</select></td>
            </tr>
            <tr> 
              <td bgcolor="#F7F7F7" width="18%">
				　</td>
              <td bgcolor="#F7F7F7" width="11%">
				排序号</td>
              <td bgcolor="#F7F7F7">
				<input name="linkidorder" type="text" id="weburl4" size="28" value="<%=trim(rs("linkidorder"))%>"></td>
            </tr>
            <tr> 
              <td height="22" colspan="3" bgcolor="#F7F7F7">
			   <div align="center"> 
                  <div align="center">
					<input type="submit" value=" 提 交 " name="Submit">
					<input type="reset" value=" 消 除 " name="Submit2"> <input type="button" value=" 返 回 " onClick="javascript:history.go(-1)" class="unnamed5" name="button"></div>
				</div>
              </td>
             </tr>
          </form>
        </table>
             <%rs.Close
            set rs=nothing%>
</div>
<br>
</body>
</html>

  