<!--#include file="../../here99login/0.asp"--><!--#include file="../../conn/zkconn.asp"-->
<html>
<head>
<title>复制头条推荐</title>
<SCRIPT language=javascript>
function Validnumber(item){
	etext=item;
	elen=item.length;
	for (i=0;i<=elen-1;i++){
  		aa=etext.charAt(i)
  		if (aa<'0'||aa>'9') return false;
  	}
  	return true;
}
function check_input() 
{  
	if (frmAnnounce.pic1.value=="")
	{ alert("请上传图片1");
	frmAnnounce.pic1.focus();
	return false;
	}
	if (frmAnnounce.link1.value=="")
	{ alert("请输入图片1链接");
	frmAnnounce.link1.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">
<div align="center">
  <% 
function judge(a,b)
  dim res 
  if instr(a,b)>0 then
   res ="checked"
  end if
  judge = res
end function
%>
  <% 
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") 
   sql="select * from firstpic where id='"&id&"'"
   rs.open sql,conn,1,1
   %>
  <br>
<br>
&gt;&gt;当前位置：复制首页推荐 </div>
<form action="ok-fuzhi.asp" method="POST" onSubmit="return check_input()" name="frmAnnounce">
  <table width="80%" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#CCCCCC">
    <tr valign="middle" bgcolor="#FFFFFF"> 
      <td width="44%" height="25" colspan=2>图片位置： 
        <%places=rs("lbid")%> <select name="lbid" class="wenbenkuang">
          <option value="0" <%=judges(places,"0")%>>首页</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> </td>
	</tr>
    <tr valign="middle" bgcolor="#FFFFFF"> 
      <td width="44%" height="25"> 图片1: 
        <input name="pic1" type="text" class="wenbenkuang" value=<%=rs("pic1")%>> 
        <%ifbr1=rs("ifbr1")%> <input type="checkbox" name="ifbr1" <%=judge(ifbr1,"<br>")%> value="<br>"> 
      </td>
      <td width="57%" height="25"> <iframe name="ad" frameborder=0 width=100% height=20 scrolling=no src=shangchuan1.asp></iframe></td>
    </tr>
    <tr valign="middle" bgcolor="#FFFFFF"> 
      <td height="25" colspan="2">链接： 
        <input name="link1" type="text" class="wenbenkuang" value="<%=rs("link1")%>" size="65"> 
      </td>
    </tr>
    <tr valign="middle" bgcolor="#FFFFFF"> 
      <td width="44%" height="25">图片2: 
        <input name="pic2" type="text" class="wenbenkuang" value=<%=rs("pic2")%>> 
        <%ifbr2=rs("ifbr2")%> <input type="checkbox" name="ifbr2" <%=judge(ifbr2,"<br>")%> value="<br>"> 
      </td>
      <td width="57%" height="25"><iframe name="ad" frameborder=0 width=100% height=20 scrolling=no src=shangchuan2.asp></iframe> 
      </td>
    </tr>
    <tr valign="middle" bgcolor="#FFFFFF"> 
      <td height="25" colspan="2">链接： 
        <input name="link2" type="text" class="wenbenkuang" value="<%=rs("link2")%>" size="65"> 
      </td>
    </tr>
    <tr valign="middle" bgcolor="#FFFFFF"> 
      <td width="44%" height="25">图片3: 
        <input name="pic3" type="text" class="wenbenkuang" value=<%=rs("pic3")%>> 
        <%ifbr3=rs("ifbr3")%> <input type="checkbox" name="ifbr3" <%=judge(ifbr3,"<br>")%> value="<br>"> 
      </td>
      <td width="57%" height="25"><iframe name="ad" frameborder=0 width=100% height=20 scrolling=no src=shangchuan3.asp></iframe> 
      </td>
    </tr>
    <tr valign="middle" bgcolor="#FFFFFF"> 
      <td height="25" colspan="2">链接： 
        <input name="link3" type="text" class="wenbenkuang" value="<%=rs("link3")%>" size="65"> 
      </td>
    </tr>
    <tr valign="middle" bgcolor="#FFFFFF"> 
      <td width="44%" height="25">图片4: 
        <input name="pic4" type="text" class="wenbenkuang" value="<%=rs("pic4")%>"> 
        <input type="hidden" name=id value=<%=id%>> 
      </td>
      <td width="57%" height="25"><iframe name="ad" frameborder=0 width=100% height=20 scrolling=no src=shangchuan4.asp></iframe> 
      </td>
    </tr>
    <tr valign="middle" bgcolor="#FFFFFF"> 
      <td height="25" colspan="2">链接： 
        <input name="link4" type="text" class="wenbenkuang" value="<%=rs("link4")%>" size="65"> 
      </td>
    </tr>
    <tr align="center" valign="middle" bgcolor="#FFFFFF"> 
      <td height="25" colspan="2"> <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>
  <%rs.close
    set rs=nothing %>
</form>
<div align="center"></div>
</body>
</html>
