<!-- #include file="include/adovbs.inc" -->
<!-- #include file="include/dataconn.asp" -->
<!-- #include file="include/checksession.asp" -->
<%
classid=Request("id")
pageno=trim(Request("pageno"))
findcontent=trim(request("findcontent"))

set infors=server.CreateObject("adodb.recordset")
sql = "select * from t_InfoDetail where Infoid =" & cint(classid)


infors.Open sql,conn


%>

<HTML>
<HEAD>
<META NAME="GE
NERATOR" Content="Microsoft Visual Studio 6.0">
<link rel="stylesheet" href="include/e1.css" type="text/css">
</HEAD>
<script language="javascript">
	function check()
	{
		if(form1.infotitle.value=="")
		{
			alert("至少需要输入标题！");
			document.form1.infotitle.focus();
			return false;
		}
		else
		{
			return true;
			document.form1.submit();
		}

	}
</script>
<BODY>     
 <form name="form1" method="post" action="infoeditcheck.asp?id=<% =classid%>&findcontent=<% =findcontent%>&pageno=<% =pageno%>" onsubmit="return check();">
  <table width="90%" border="0" cellpadding="5" cellspacing="1">
    <tr class="tdTitle"> 
      <td height="46" colspan="3"> 
        <div align="center"><strong><font color="#FFFFFF" size="4">修 改 公 告 </font></strong></div></td>
    </tr>
    <tr> 
      <td width="19%">&nbsp;</td>
      <td width="64%"><div align="left">标 题：<br>
          <input name="infotitle" type="text" size="50" maxlength="40" value="<% =infors("InfoTitle") %>">
        </div>
          
        <p align="left">类别： 
          <select name="infoclassname" size="1">
            <option value="0" selected>公告</option>
          </select>
        </p>
        <p align="left">新闻内容：<br>
          <textarea name="infocontent" cols="50"  rows="10"><% =infors("infocontent") %></textarea>
        </p>
        <p align="left">增加时间：<br>
        <input name="createdatetime" type="text" size="50" maxlength="40" value="<% =year(infors("createdatetime"))&"-"&month(infors("createdatetime"))&"-"&day(infors("createdatetime")) %>"></p>        
        <p align="left">
          <input type="checkbox" name="IsFocus" value="1" <% if infors("IsFocus")=true then %>checked<%end if%>>
          重要公告</p>
        <p align="center"> 
          <input type="submit" name="Submit" value="修改">
          &nbsp;&nbsp;&nbsp; 
          <input type="reset" name="Submit2" value="重填">
        </p>
        </td>
      <td width="17%">&nbsp;</td>
    </tr>
  </table>
</form>
<P>&nbsp; </P>

</BODY>
</HTML>

