<!--#include file="../../here99login/0.asp"--><!--#include file="../../conn/zkconn.asp"-->
<html>
<head>
<title>热点产品</title>
<SCRIPT language=javascript>
function check_input() 
{  
	   if (frmAnnounce.texts.value=="")
      { alert("请输入文字");
        frmAnnounce.texts.focus();
	   return false;
       }
	   	  if (frmAnnounce.texts.value.length>150)
      { alert("文字或彩色文字代码太长！");
        frmAnnounce.texts.focus();
	   return false;
       }

	    if (frmAnnounce.links.value=="")
      { alert("请输入文字链接");
        frmAnnounce.links.focus();
	   return false;
       }  
	
	   return true;
}
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<% 
function judges(a,b)
  dim ress 
  if (a=b) then
   ress ="selected"
  end if
  judges = ress
end function
%>
<%id=request("id")
if id="" then 
   response.write "修改那个?"
   response.end
 end if 
 set rs=server.createobject("adodb.recordset")
   sqls="select * from hotpro where id='"&id&"'"
   rs.open sqls,conn,1,1
   %>
当前位置：修改热点产品 
<div align="center"> 
  <p>&nbsp;</p>
  <form name="frmAnnounce" method="post" onSubmit="return check_input()" action="ch_addhotpro.asp">
    <table width="550" border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">
      <tr valign="middle" bgcolor="#FFFFFF"> 
        <td width="21%" height="25"> 
          <div align="right">出现位置：</div></td>
        <td width="79%" height="25"> 
          <%places=rs("lbid")%> 
          <select name="lbid" class="wenbenkuang">
		<option value="0" <%=judges(places,0)%>>首页</option>
		<option value="99" <%=judges(places,99)%>>热门搜索</option>
          <% set rs2 = conn.execute("select * from lb order by lbid")
		  do while not rs2.eof%><option value="<%=rs2("lbid")%>"  <%=judges(places,rs2("lbid"))%>><%=rs2("lbname")%></option>
<%rs2.movenext
loop
%>
          </select> <input type="hidden" name=id value=<%=id%>></td>
      </tr>
      <tr valign="middle" bgcolor="#FFFFFF"> 
        <td width="21%" height="25"> 
          <div align="right">文字说明：</div></td>
        <td width="79%" height="25"> 
          <textarea name="texts" cols="50" rows="2" class="wenbenkuang"><% if Request.form("EditorValue")<>null or Request.form("EditorValue")<>"" then response.write replace(Request.form("EditorValue"),vbcrlf,"") else Response.Write rs("texts")%></textarea>
          <a href="edit/edit2.asp?id=<%=request("id")%>">&gt;&gt;<font color="#FF0000">彩</font><font color="#00FF00">色</font><font color="#FF33CC">文</font><font color="#0000FF">字</font>编辑器</a> 
        </td>
      </tr>
      <tr valign="middle" bgcolor="#FFFFFF"> 
        <td width="21%" height="25"> 
          <div align="right">链接：</div></td>
        <td width="79%" height="25"> 
          <input name="links" type="text" class="wenbenkuang" value=<%=rs("links")%> size="60" maxlength="200"> 
        </td>
      </tr>
      <tr valign="middle" bgcolor="#FFFFFF"> 
        <td height="25"> 
          <div align="center"> </div></td>
        <td height="25"> <input name="Submit" type="submit" class="go-wenbenkuang" value="修改"> 
          <input name="Submit2" type="button" class="go-wenbenkuang" value="返回" onclick="javascript:window.history.go(-1)"></td>
      </tr>
    </table>
  </form>
</div>
</body>
</html>
<% rs.close
set rs=nothing
rs2.close
set rs2=nothing%>