<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
end if
%>
<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><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_links order by linkidorder",conn,1,1
		dim i
		i=rs.recordcount%>
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
        <tr bgcolor="#f1f1f1"> 
          <td width="26%" height="22"> 
            <div align="center">网站名称</div>
          </td>
          <td width="42%" height="22"> 
            <div align="center">网站地址</div>
          </td>
          <td width="9%" height="22"> 
            <div align="center">排 序</div>
          </td>
          <td width="23%" 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="savelinks.asp?action=edit&id=<%=rs("linkid")%>">
            <td height="24"> 
              <div align="center"> 
                <input name="linkname" type="text" class="wenbenkuang"  id="linkname" value="<%=trim(rs("linkname"))%>" size="16">
              </div>
            </td>
            <td> 
              <div align="center"> 
                <input name="linkurl" type="text" class="wenbenkuang"  id="linkurl" value="<%=trim(rs("linkurl"))%>" size="30">
              </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="Submit" class="go-wenbenkuang"  value="修改">
                &nbsp;&nbsp;<a href=savelinks.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="savelinks.asp?action=add">
        
  <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
    <tr bgcolor="#f1f1f1"> 
            <td height="15"> 
              <div align="center">网站名称</div>
            </td>
            <td> 
              <div align="center">网站地址</div>
            </td>
            <td> 
              <div align="center">排 序</div>
            </td>
            <td> 
              <div align="center">操 作</div>
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="15"> 
              <div align="center"> 
                <input name="linkname1" class="wenbenkuang"  type="text" id="linkname1" size="16">
              </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="Submit2" class="go-wenbenkuang"  value="添 加">
              </div>
            </td>
          </tr>
        </table>
    </form>
<!--#include file="copyright.asp"-->
</body>
</html>
