<%@language=vbscript codepage=936 %>
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!-- #include file="Inc/Head.asp" -->

<script language = "JavaScript">


function CheckForm()
{
     document.addNEWS.cnWords.value = document.frames.cnEditBox.getHTML(true);     
     document.addNEWS.imageNum.value = document.frames.cnEditBox.document.all("editImageNum").value;
     document.addNEWS.editFirstImageName.value = document.frames.cnEditBox.document.all("editFirstImageName").value;

	if (document.addNEWS.title.value.length == 0) 
	{
		alert("资讯标题没有填写!");
		document.addNEWS.title.focus();
		return false;
	}
		
	return true;
}
</script>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top">
	  <br /><table width="750" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
        <form name="addNEWS" method="post" action="News_save.asp" onSubmit="return CheckForm();">
          <tr> 
            <td class="back_southidc" height="30" colspan="2" align="center">增加信息</td>
          </tr>
          <tr bgcolor="#ECF5FF"> 
            <td width="100" height="25" align="center"><font color="#FF0000">* </font>标 题：</td>
            <td width="400"> 
              <input name="title" type="text" class="input" size="50"></td>
          </tr>
          <tr bgcolor="#ECF5FF"> 
            <td height="25" align="center"><font color="#FF0000">* </font>类 别：</td>
            <td> 
<%		set rs=server.createobject("adodb.recordset")
        sql = "select * from BigClass_New where BigClassName<>'精品兰苑' and BigClassName<>'兰家风采'"
        rs.open sql,conn,1,1
		if rs.eof and rs.bof then
			response.write "请先添加栏目。"
		else
%>
 <select name="BigClassID" id="BigClassID">
                <%do while not rs.eof%>
                <option value="<%=trim(rs("BigClassID"))%>"><%=trim(rs("BigClassName"))%></option>
                <%
		        rs.movenext
    	    loop
		end if
        rs.close
			%>
              </select></td>
          </tr>
          <tr bgcolor="#ECF5FF"> 
            <td height="25" align="center" valign="top"><font color="#FF0000">* </font>内 容：</td>
            <td valign="top"> 
			  <textarea name="content" style="display:none"></textarea>
			 <iframe id="eWebEditor1" src="ewebeditor.asp?id=content&style=s_coolblue1" frameborder="0" scrolling="No" width="650" height="350"></iframe>			  </td>
          </tr>
          <tr bgcolor="#ECF5FF"> 
            <td height="12" align="center">来 源：</td>
            <td> 
              <input name="ly" type="text" class="input" id="ly" size="30"></td>
          </tr>
          <tr bgcolor="#ECF5FF">
            <td rowspan="2" align="center"><font color="#FF0000">*</font> 首页幻灯片<br>
            图片上传：</td>
            <td height="30"><input name="img" type="text" id="img" size="40">
注：当此框有地址显示时，图片才算上传成功，图片不易太大！</td>
          </tr>
          <tr bgcolor="#ECF5FF">
            <td height="12"><iframe style="top:2px" id="UploadFiles" src="../upload_zjf.asp?PhotoUrlID=3" frameborder=0 scrolling=no width="300" height="25"></iframe></td>
          </tr>
          <tr bgcolor="#ECF5FF">
            <td align="center">是否显示图片：</td>
            <td height="12"><input name="ok" type="radio" value="1">
是
  <input name="ok" type="radio" value="0" checked>
否 （当上面“首页幻灯片”图片上传成功后此开关才起作用）</td>
          </tr>
          
          <tr> 
            <td height="30" colspan="2" align="center" bgcolor="#ECF5FF"> 
              <input type="submit" name="Submit" value="确定添加本条信息" class="input"> 
              <input type="reset" name="Submit2" value="重新编辑" class="input">            </td>
          </tr>
        </form>
    </table></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->