<!--#include file="admin_chk.asp"-->
<!--#include file="admin_conn.asp"-->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>

<body>
<br>
<br>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
  <tr> 
    <td height="22" bgcolor="f1f1f1"> <div align="center"><font color="#FF0000">管理图片连接合作伙伴</font></div></td>
  </tr>
  <tr> 
    <td height="99" valign="top" bgcolor="#FFFFFF"> 
      <%set rs=server.CreateObject("adodb.recordset")
		rs.open "select * from shop_imagelinks order by linkidorder",conn,1,1
		i=rs.recordcount%>
      <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
        <tr bgcolor="#f1f1f1"> 
		<td width="20%"><div align="center">网站名称</div></td>
          <td width="29%" height="22"> <div align="center">图片路径地址</div></td>
          <td width="30%" height="22"> <div align="center">网站地址</div></td>
          <td width="6%" height="22"> <div align="center">排 序</div></td>
          <td width="15%" height="22"> <div align="center">操 作</div></td>
        </tr>
        <%if rs.eof and rs.bof then
		  response.write "还没有数据，请添加！"
		  else
		  do while not rs.eof%>
        <tr bgcolor="#FFFFFF"> 
          <form name="form1" method="post" action="saveimagelinks.asp?action=edit&id=<%=rs("linkid")%>"><td><div align="center">
            <input name="name" type="text" id="name" value="<%=trim(rs("name"))%>" size="20">
          </div></td>
            <td height="24"> <div align="center"> 
                <input name="imagelinks" type="text" class="wenbenkuang"  id="imagelinks" value="<%=trim(rs("imagelinks"))%>" size="30">
              </div></td>
            <td> <div align="center"> 
                <input name="linkurl" type="text" class="wenbenkuang"  id="linkurl" value="<%=trim(rs("linkurl"))%>" size="26">
              </div></td>
            <td> <div align="center"> 
                <input name="linkidorder" type="text" class="wenbenkuang"  id="linkidorder" value=<%=rs("linkidorder")%> size="3">
              </div></td>
            <td> <div align="center"> 
                <input type="submit" name="Submit3" class="go-wenbenkuang"  value="修 改">
                &nbsp;&nbsp;<a href=saveimagelinks.asp?action=del&id=<%=rs("linkid")%>><font color="#FF0000">删除</font></a> 
              </div></td>
          </form>
        </tr>
        <%rs.movenext
		  loop
		  end if
		  rs.close
		  set rs=nothing%>
      </table></td>
  </tr>
</table>
<form name="form2" method="post" action="saveimagelinks.asp?action=add">
   
  <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
    <tr bgcolor="#f1f1f1"> 
	<td width="20%"><div align="center">网站名称</div></td>
      <td width="30%" height="15"> <div align="center">图片路径地址</div></td>
      <td width="29%"> <div align="center">网站地址</div></td>
      <td width="7%"> <div align="center">排 序</div></td>
            <td width="14%"> <div align="center">操 作</div></td>
    </tr>
          <tr bgcolor="#FFFFFF"> 
		  <td><input name="name" type="text" id="name" size="20"></td>
            <td height="15"> <div align="center"> 
          <input name="imagelinks1" class="wenbenkuang"  type="text" id="imagelinks1" size="30">
        </div></td>
            <td> <div align="center"> 
                <input name="linkurl1" class="wenbenkuang"  type="text" id="linkurl1" size="26">
              </div></td>
            <td> <div align="center"> 
                <input name="linkidorder1" class="wenbenkuang" type="text" id="linkidorder1" value=<%=i+1%> size="3">
              </div></td>
            <td> <div align="center"> 
                <input type="submit" name="Submit22" class="go-wenbenkuang"  value="添 加">
              </div></td>
          </tr>
        </table>
    </form>

</body>
</html>
 
