 <!--#include file="webconn.asp"-->
<link href="web_jspok.css" rel="stylesheet" type="text/css">
<%
if request("action")="" then 
%>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#A3BFE8">
  <tr>
    <td colspan="2" align="center" bgcolor="#E9F1F8">合作伙伴</td>
  </tr>
  <tr>
    <td colspan="2" align="center" bgcolor="#E9F1F8">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="left" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <form action="addfid.asp?action=save" method="post">
  <tr>
    <td width="36%" align="center" bgcolor="#E9F1F8">名&nbsp;&nbsp;&nbsp; 称：</td>
    <td width="64%" align="left" bgcolor="#E9F1F8"><label>
      <input name="txt_name" type="text" id="txt_name" style="width:190px">
    </label></td>
  </tr>
  <tr>
    <td height="20" align="center" bgcolor="#E9F1F8">网站地址：</td>
    <td align="left" bgcolor="#E9F1F8"><input name="txt_url" type="text" id="txt_url" style="width:190px"></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#E9F1F8">LOGO地址：</td>
    <td align="left" bgcolor="#E9F1F8"><input name="txt_logo" type="text" id="txt_logo" style="width:190px"></td>
  </tr>
  <tr>
    <td colspan="2" align="center" bgcolor="#E9F1F8">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="center" bgcolor="#E9F1F8"><label>
      <input type="submit" name="Submit" value="提交">
    </label></td>
  </tr>
  </form>
  <tr>
    <td align="left" bgcolor="#E9F1F8"></td>
    <td align="left" bgcolor="#E9F1F8"></td>
  </tr>
</table>
<%else%>
<%
Tname=server.HTMLEncode(trim(request("txt_name")))
Tlogo=server.HTMLEncode(trim(request("txt_logo")))
Turl=server.HTMLEncode(trim(request("txt_url")))
Ttype=server.HTMLEncode(trim(request("txt_type")))
%>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from friend"
rs.open sql,conn,1,3
rs.addnew
rs("f_name")=Tname
rs("f_logo")=Tlogo
rs("f_url")=Turl
rs("f_type")=Ttype
rs.update
rs.close
  %>
  <!--#include file="admininfo.asp"-->
<%end if%>
