<!--#include file="../conn/conn1.asp"-->
<!--#include file="inc.asp"-->
<!--#include file="../config.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加影片</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">

<SCRIPT language=JavaScript>
helpstat = false;
stprompt = true;
basic = false;

function AddText2(NewCode) {
document.frmadd.images.value+=NewCode
}
function xxg()
{
  if (frmadd.title.value=="")
   { 
	alert("图片的标题？");
	return false;
	 }
  if (frmadd.guestcontent.value=="")
   {
	alert("图片的内容？");
	return false;
	 }
  if (frmadd.images.value=="")
   {
	alert("图片路径？");
	return false;
	 }
  return true;
  }
  
</script>

</head>
<body topmargin="20" leftmargin="15" >

  <center>
 
  <form method="POST" action="savegg.asp" name="form1" id="frmadd" >

      
    <table border="0" cellspacing="0" width="600" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0" height="20" class="sx">
      <tr bgcolor="#99CC00"> 
        <td width="100%" height="20" > 
          <p align="center">添加公告页</td>
      </tr>
    </table>
      
    <table width="600" border="0" cellpadding="0" cellspacing="0" bordercolorlight="#000000">
      <tr bordercolordark="#FFFFFF"> 
          <td width="100%" height="20"> 
            
          <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr> 
              <td colspan="2" height="10">&nbsp;</td>
            </tr>
            <tr> 
              <td width="85"> <div align="center">公告名称：</div></td>
              <td> <input type="text" name="title" size="35"
          class="smallinput" maxlength="255"> 
              <font color="#FF0000" size="3">*</font>              </td>
            </tr>
                        
			<tr>
              <td><div align="center">添加时间： </div></td>
              <td><input name="dateandtime" type="text"
          class="smallinput" id="dateandtime" value="<%=date()%>" size="20" maxlength="255">              </td>
            </tr>
						<tr> 
              <td width="85"> <div align="center">公告类别： </div></td>
              <td><select name="typeid" size="1" class="smallSel">
                <option selected value="">请选择类别</option>
                <%
dim rs2,sql,sel
 set rs2=server.createobject("adodb.recordset")
  sql="select * from typep"
 rs2.open sql,conn,1.1
			  do while not rs2.eof    
		             response.write "<option  value='"+CStr(rs2("typeID"))+"' name=typeid>"+rs2("type")+"</option>"+chr(13)+chr(10)
		             rs2.movenext
    		          loop
			rs2.close
			  %>
              </select></td>
            </tr>
            <tr> 
              <td width="85"> <div align="center"> 
                  <p>内容简介： </p>
                </div></td>
              <td> <textarea rows="8" name="content" cols="65" class="smallarea">暂无</textarea> 
                <font color="#FF0000" size="3">*</font> <input type="hidden" name="zhuid" value="<%=zhuid%>"> 
                <input type="hidden" name="typename" value="<%=typename%>"> </td>
            </tr>
          </table>
            
          </td>
      </tr>
    </table>
    <p> 
        <input type="submit" value=" 添 加 "
  name="cmdok" class="buttonface">
        &nbsp; 
        <input type="reset" value=" 清 除 "
  name="cmdcancel" class="buttonface">
        <br>
        <br>
      以上带 <font color="#FF0000" size="3">*</font> 为必填写</p>
      
    <p> <a href="gg.asp">返回管理页面</a> </p>
  </form>
  </center>
</body>
</html><%   conn.close
   set conn=nothing 
%>