<!--#include file="byshop_conn.asp"-->
<!--#include file="session.asp"-->
<html>
<head>
<title>图片链接管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<body>
<%
dim  tongguo,tongguo1
tid=request("tongguo1")
if tid<>"" then
set rs=server.createobject("adodb.recordset") 
sql="select  by_tongguo from imageslinks where linkid="&tid
rs.open sql,conn,1,3
rs("by_tongguo")=1
rs.update
rs.close

end if
%>
<%
tid=request("tongguo")
if tid<>"" then
set rs=server.createobject("adodb.recordset") 
sql="select by_tongguo from imageslinks where linkid="&tid
rs.open sql,conn,1,3
rs("by_tongguo")=0
rs.update
rs.close

end if
%>


<%set rs=server.CreateObject("adodb.recordset")
	rs.open "select * from imageslinks order by linkidorder",conn,1,1
	dim i
	i=rs.recordcount
%>
<div align="center">
<table cellpadding="3" cellspacing="1" border="1" width="100%" class="tableBorder" style="border-collapse: collapse" bordercolor="#C0C0C0">
  <tr align="center"> 
    <th class="tableHeaderText" colspan=7 height=25 bgcolor="#E8F1FF">管理图片连接</th>
  </tr>
  <tr>
  <td width="10%" class="forumRowHighlight" align="center" bgcolor="#F7F7F7"> ID</td>
  <td width="13%" class="forumRowHighlight" align="center" bgcolor="#F7F7F7"> 网站说明</td>
  <td width="23%" class="forumRowHighlight" align="center" bgcolor="#F7F7F7"> LOGO地址</td>
  <td width="20%" class="forumRowHighlight" align="center" bgcolor="#F7F7F7"> 网站地址</td>
  <td width="9%" class="forumRowHighlight" align="center" bgcolor="#F7F7F7"> <span lang="zh-cn">
	审核</span></td>
  <td width="9%" class="forumRowHighlight" align="center" bgcolor="#F7F7F7"> 排 序</td>
  <td width="13%" class="forumRowHighlight" align="center" bgcolor="#F7F7F7"> 操 作</td>
  </tr>
  <%if rs.eof and rs.bof then
		  response.write "还没有数据，请添加！"
		  else
		  do while not rs.eof%>
  <tr> 
    <form name="form1" method="post" action="saveimageslinks.asp?action=edit&id=<%=rs("linkid")%>">
      <td  align="center" class="forumRowHighlight" bgcolor="#F7F7F7"> <a href="link2.asp?id=<%=rs("linkid")%>"><%=rs("linkid")%></a></td>
      <td  align="center" class="forumRowHighlight" bgcolor="#F7F7F7"> <input name="linkname" type="text" id="linkname" value="<%=trim(rs("linkname"))%>" size="26"></td>
      <td align="center" class="forumRowHighlight" bgcolor="#F7F7F7"> 
		<input name="linkimages" type="text" id="linkurl2" value="<%=trim(rs("linkimages"))%>" size="30"></td>
      <td align="center" class="forumRowHighlight" bgcolor="#F7F7F7"> <input name="linkurl" type="text" id="linkurl" value="<%=trim(rs("linkurl"))%>" size="26"> 
      </td>
      <td align="center" class="forumRowHighlight" bgcolor="#F7F7F7"> <% if rs("by_tongguo")=1 then %>
      <a href="imageslinks.asp?tongguo=<%=rs("linkid")%>">通过</a> <font color="#FF0000"> 
      <% else %>
      <a href="imageslinks.asp?tongguo1=<%=rs("linkid")%>"><font color="#FF0000">未通过</font></a>  
      <% end if %>　</td>
      <td align="center" class="forumRowHighlight" bgcolor="#F7F7F7"> <input name="linkidorder" type="text" id="linkidorder" value=<%=rs("linkidorder")%> size="3"> 
      </td>
      <td align="center" class="forumRowHighlight" bgcolor="#F7F7F7"> <input class="button" type="submit" name="Submit" value="修 改"> &nbsp;&nbsp;<a href=saveimageslinks.asp?action=del&id=<%=rs("linkid")%>>删除</a> 
      </td>
    </form>
  </tr>
  
  <%rs.movenext
		  loop
		  end if
		  rs.close
		  set rs=nothing%><tr> 
      <td  align="center" class="forumRowHighlight" colspan="7"> 网站说明：格式可采用<span lang="en-us">
		</span>网站名<span lang="en-us">&lt;br&gt;</span>网站说明<span lang="en-us"> ,&lt;br&gt;表示换行</span>。</td>
  </tr>
</table>
</div>
<br>
<div align="center">
<table cellpadding="3" cellspacing="1" border="1" width="100%" class="tableBorder" style="border-collapse: collapse" bordercolor="#C0C0C0">
  <tr> 
    <th class="tableHeaderText" colspan=5 height=25 bgcolor="#E8F1FF">添加<span lang="zh-cn">图片连接</span></th>
  </tr>
  <form name="form2" method="post" action="saveimageslinks.asp?action=add">
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7"> 
        <div align="center">网站说明</div></td>
      <td class="forumRowHighlight" width="26%" bgcolor="#F7F7F7"> 
        <p align="center">LOGO地址</td>
      <td class="forumRowHighlight" width="26%" bgcolor="#F7F7F7"> 
        <div align="center">网站地址</div></td>
      <td class="forumRowHighlight" width="13%" bgcolor="#F7F7F7"> 
        <div align="center">排 序</div></td>
      <td class="forumRowHighlight" width="13%" bgcolor="#F7F7F7"> 
        <div align="center">操 作</div></td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7"> <div align="center"> 
          <input name="linkname1" type="text" id="linkname1" size="16">
        </div></td>
      <td class="forumRowHighlight" width="26%" bgcolor="#F7F7F7">  
		<p align="center">  
		<input name="linkimages" type="text" id="linkurl3"  size="30"></td>
      <td class="forumRowHighlight" width="26%" bgcolor="#F7F7F7"> <div align="center"> 
          <input name="linkurl1" type="text" id="linkurl1" size="26">
        </div></td>
      <td class="forumRowHighlight" width="13%" bgcolor="#F7F7F7"> <div align="center"> 
          <input name="linkidorder1" type="text" id="linkidorder1" value=<%=i+1%> size="3">
        </div></td>
      <td class="forumRowHighlight" width="13%" bgcolor="#F7F7F7"> <div align="center"> 
          <input class="button" type="submit" name="Submit2" value="添 加">
        </div></td>
    </tr>
  </form>
</table>
</div>
<br>
</body>
</html> 
  