<!--#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>
<%set rs=server.CreateObject("adodb.recordset")
		rs.open "select * from shop_text order by linkidorder",conn,1,1
		dim i
		i=rs.recordcount%>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
  <tr bgcolor="#cccccc">
    <td height="22">
    <div align="center">推荐文字：</div></td>
    <td><div align="center">文字颜色：</div></td>
    <td height="22">
    <div align="center">推荐连接：</div></td>
    <td>
    <div align="center">是否弹出：</div></td>
    <td height="22">
    <div align="center">排 序</div></td>
    <td height="22">
    <div align="center">操 作</div></td>
  </tr>
  <%if rs.eof and rs.bof then
		  response.write "No data!"
		  else
		  iii=1
		  do while not rs.eof%>
  <tr bgcolor="#F3F3F3">
    <form name="forma<%=iii%>" method="post" action="web_text_save.asp?action=edit&id=<%=rs("textid")%>">
      <td height="24">
        <div align="center">
          <input name="text" type="text" class="wenbenkuang"  id="text" value="<%=trim(rs("text"))%>" size="20">
</div></td>
      <td height="24" align="center"><input name="textys" type="text" class="wenbenkuang" id="textys" value="<%=rs("textys")%>" size="7">
        <img src="images/tm.gif"  width="20" height="20"  align="absmiddle"  style="background-color:<%=rs("textys")%>" onClick="colorcd('forma<%=iii%>','textys','snsncolr<%=iii%>')">&nbsp;<font id="snsncolr<%=iii%>" color="<%=rs("textys")%>">网软志成</font></td>
      <td>
        <div align="center">
          <input name="link" type="text" class="wenbenkuang"  id="link" value="<%=trim(rs("link"))%>" size="30">
      </div></td>
      <td>
        <%select case rs("tc")
			case 1%>
        <input name="tc"  type="radio" value="1" checked>
        弹出
        <input type="radio" name="tc" value="0">
        不弹出
        <%case 0%>
        <input name="tc" type="radio" value="1" >
        弹出
        <input type="radio" name="tc" value="0" checked>
        不弹出
      <%end select%>      </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>
        <div align="center">
          <input type="submit" name="Submit" class="go-wenbenkuang"  value="修改">
&nbsp;&nbsp;<a href=web_text_save.asp?action=del&id=<%=rs("textid")%>><font color="#FF0000">删除</font></a> </div></td>
    </form>
  </tr>
  <%iii=iii+1
  rs.movenext
		  loop
		  end if
		  rs.close
		  set rs=nothing%>
</table>
<form name="form2" method="post" action="web_text_save.asp?action=add" onSubmit="return ck1()">
<Script language=javascript>	
 function ck1()
  {   
  if(form2.text1.value=="")
  {
  alert("请输入名称")
  form2.text1.focus()
  return false
  }
  
   if(form2.textys1.value=="")
  {
  alert("请选择颜色")
  form2.textys1.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><div align="center">是否弹出：</div></td>
      <td> <div align="center">排 序</div></td>
      <td> <div align="center">操 作</div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td height="15"> <div align="center"> 
          <input name="text1" class="wenbenkuang"  type="text" id="text1" size="30">
      </div></td>
      <td height="15" align="center"><input name="textys1" type="text" class="wenbenkuang" id="textys1" value="#666666" size="7">
        <img src="images/tm.gif"  width="20" height="20"  align="absmiddle"  style="background-color: #666666" onClick="colorcd('form2','textys1','textys1')">&nbsp;<font id="textys1" color="#666666">网软志成</font></td>
      <td> <div align="center"> 
          <input name="link1" class="wenbenkuang"  type="text" id="link1" size="26">
      </div></td>
      <td><div align="center"> 
          <input name="tc1" class="wenbenkuang" type="radio" value="1">
          弹出 
          <input name="tc1" type="radio" value="0" checked>
      不弹出</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> <div align="center"> 
          <input type="submit" name="Submit2" class="go-wenbenkuang"  value="添 加">
      </div></td>
    </tr>
  </table>
</form>
<!--#include file="color.asp"-->
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
