<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%if Request.QueryString("mark")="southidc" then

id=request("id")
name=request("name")
'note=Request("note")
link=Request("link")
'linktype=Request("linktype")
'leibie=Request("leibie")
'DailynContent=Request("DailynContent")

If name="" Then
response.write "SORRY <br>"
response.write "请输入网站名称"
response.end
end if
'
If link="http://" Then
response.write "SORRY <br>"
response.write "连接地址不能为空"
response.end
end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from links where id="&id
rs.open sql,conn,1,3

rs("name")=name
'rs("note")=note
rs("link")=link
'rs("linktype")=linktype
'rs("leibie")=leibie
'rs("linkpic")=DailynContent

rs.update
rs.close
response.redirect "Manage_link.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From links where id="&id, conn,3,3
%>
<script language="javascript">
<!--
function openwin(href)
{
	window.open(href,'answerwin','location=no,height=350, width=450, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no');
}
//-->
</script>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="68" align="center" valign="top" bgcolor="#A0CCD8"><!--#include file="adminleft.asp"--></td>
    <td width="925" align="center" valign="top"><div align="center">
      <table width="100%" height="0"  border="0" cellpadding="5" cellspacing="0">
        <tr>
          <td height="24" background="image/usercenter_3.jpg"><div align="center"><font color="#FFFFFF"><strong>友 情 链 接 管 理</strong></font></div></td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_southidc">
        <tr>
          <form method="post" name="DailynForm" action="Manage_editlink.asp?mark=southidc">
            <input type=hidden name=id value=<%=id%>>
            <td><div align="center">
                <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                  <tr>
                    <td width="8%" height="25" bgcolor="#C2DAE1"><div align="center">网站名称</div></td>
                    <td width="62%" bgcolor="#EFEEE9"><input name="name" type="text" id="name" value="<%=rs("name")%>" size="40" maxlength="40">                    </td>
                  </tr>
                  <tr>
                    <td height="22" bgcolor="#C2DAE1"><div align="center">连接地址</div></td>
                    <td bgcolor="#EFEEE9"><input name="link" type="text" id="link" value="<%=rs("link")%>" size="40" maxlength="200">                    </td>
                  </tr>
                  <tr>
                    <td height="25" colspan="2" bgcolor="#EFEEE9"><div align="center">
                        <input name="submit" type="submit" value="确定">
                      &nbsp;
                      <input name="reset" type="reset" value="从来">
                    </div></td>
                  </tr>
                </table>
            </div></td>
          </form>
        </tr>
      </table>
    </div></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->