<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx14<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<html>
<head>
<title>网软志成在线购物系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	color: #000000;
	font-weight: bold;
}
.style2 {color: #FF0000}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
}
-->
</style>
</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="28">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td width="77%" height="27" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 系统管理 &gt;&gt; 图片形式友情链接管理 </font></strong></td>
        <td width="23%" style="font-size:14px;color:#ffffff"><span class="style2">* 为必添项目</span></td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
<br>
<%set rs=server.CreateObject("adodb.recordset")
		rs.open "select * from shop_imagelinks order by weizhi,linkidorder",conn,1,1
		i=rs.recordcount%>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
  <tr bgcolor="#cccccc">
    <td width="30%" height="22">
    <div align="center">图片路径地址</div></td>
    <td width="26%" height="22">
    <div align="center">网站地址</div></td>
    <td width="7%" height="22">
    <div align="center">排 序</div></td>
    <td width="13%" align="center">显示位置</td>
    <td width="8%" align="center">是否显示</td>
    <td width="16%" height="22">
    <div align="center">操 作</div></td>
  </tr>
  <%if rs.eof and rs.bof then
		  response.write "No data!"
		  else
		  xian=1
		  do while not rs.eof
		  if rs("weizhi")="2" and xian=1 then%>
		   <tr><td  height="3" bgcolor="#FF0000" colspan="6" ></td></tr>		
		
		  <%xian=0
		  end if%>
  <tr bgcolor="#F3F3F3">
    <form name="form1" method="post" action="web_imglinks_save.asp?action=edit&id=<%=rs("linkid")%>">

      <td height="24">        <div align="center">
          <input name="imagelinks" type="text" class="wenbenkuang"  id="imagelinks" value="<%=trim(rs("imagelinks"))%>" size="30">
          <input type="button" name="Submit222" class="go-wenbenkuang" value="传" onClick="window.open('../upload.asp?formname=form1&uppath=imagelinks&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
        </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" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td align="center"><select name="weizhi" class="wenbenkuang">
        <option value="1" <%if rs("weizhi")=1 then%>selected<%end if%>>上部</option>
        <option value="2" <%if rs("weizhi")=2 then%>selected<%end if%>>下部</option>
      </select>      </td>
      <td align="center"><select name="xianshi" class="wenbenkuang">
        <option value="1" <%if rs("xianshi")=1 then%>selected<%end if%>>显示</option>
        <option value="2" <%if rs("xianshi")=2 then%>selected<%end if%>>隐藏</option>
                  </select></td>
      <td>
        <div align="center">
          <input type="submit" name="Submit3" class="go-wenbenkuang"  value="修 改">
&nbsp;&nbsp;<a href=web_imglinks_save.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>
<form name="form2" method="post" action="web_imglinks_save.asp?action=add"  onSubmit="return ck1()">
<Script language=javascript>	
 function ck1()
  {
    if(form2.imagelinks1.value=="")
  {
  alert("请输入名称")
  form2.imagelinks1.focus()
  return false
  }
    if(form2.linkidorder1.value=="")
  {
  alert("请输入排序")
  form2.linkidorder1.focus()
  return false
  }
}
</script>
   
  <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
    <tr bgcolor="#cccccc"> 
      <td height="15"> <div align="center">图片路径地址</div></td>
      <td> <div align="center">网站地址</div></td>
      <td> <div align="center">排 序</div></td>
      <td align="center">显示位置</td>
      <td align="center">是否显示</td>
      <td> <div align="center">操 作</div></td>
    </tr>
          <tr bgcolor="#F3F3F3"> 
            <td height="15"> <div align="center"> 
          <input name="imagelinks1" class="wenbenkuang"  type="text" id="imagelinks1" size="30">
          <input type="button" name="Submit2222" class="go-wenbenkuang" value="传" onClick="window.open('../upload.asp?formname=form2&editname=imagelinks1&uppath=imagelinks1&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
            </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" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
            </div></td>
            <td align="center"><select name="weizhi" class="wenbenkuang" id="weizhi">
              <option value="1">上部</option>
              <option value="2">下部</option>
            </select>
            </td>
            <td align="center"><select name="xianshi" class="wenbenkuang" id="xianshi">
              <option value="1">显示</option>
              <option value="2">隐藏</option>
            </select></td>
            <td> <div align="center"> 
                <input type="submit" name="Submit22" class="go-wenbenkuang"  value="添 加">
            </div></td>
          </tr>
  </table>
</form>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
