<!--#include file="../Inc/Config.asp" -->
<!--#include file="../Inc/AdminClass.asp" -->
<!--#include file="Admin_Check.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="../Inc/edit.CSS" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#5578b8" topmargin="0">
<%
Dim ID
If request.form("PostBlog")="Post" then
	Dim title,info,top	
	title=CblogObj.HtmlStr(CblogObj.FormRequest("log_Title"))
	if title="" then
		Call ToError("标题不能为空!","")
		CONN.CLOSE:SET CONN=NOTHING
	Else
		id=request.form("id")
		if not isnumeric(id) then
			Set Adminobj=Nothing:Set Cblogobj=Nothing
			response.end
		end if
		Info=CblogObj.FormRequest("message")
		Conn.execute ("update Tb_New set title='"& Title &"',Info='"& Info &"' where id="&id&"")
		CblogObj.DelCahe("Recommends_Help")
		Response.Write "<script language=JavaScript1.1>alert('成功!');" 
		Response.Write " document.location='AnnouncementList.Asp';</script>" 
		response.end
	End if
End If

id=request.QueryString("id")
if isnumeric(id) then
	dim show
	set rs=conn.execute("select ID,Title,Info from Tb_New where id="&id&"")
	Show=rs.getrows() 
	rs.close:set rs=nothing
%>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">
  <form name="input" method="post" action="AnnouncementUpdate.Asp">
    <tr bgcolor="#cfdded"> 
      <td height="40" colspan="2" align="right" nowrap> 
        <div align="center"><strong> Edit 公告</strong></div></td>
    </tr>
    <tr bgcolor="#f0f5f9"> 
      <td colspan="2" align="right" nowrap> 
        <div align="left"><b>标题：</b> 
          <input name="log_Title" type="text" id="log_Title" value="<%=Show(1,0)%>" size="50" maxlength="50">
          <input name="id" type="hidden" id="id" value="<%=Show(0,0)%>">
        </div></td>
      <DIV id="MagicFace" style="Z-INDEX: 99; VISIBILITY: hidden; POSITION: absolute"></DIV>
      <DIV id=magicFrame style="VISIBILITY: hidden; POSITION: absolute"> </DIV>
    </tr>
	<script language="JavaScript" src="../inc/common.js" type="text/javascript"></script>
  <script language="JavaScript" src="../inc/loadbar.js" type="text/javascript"></script>
    <script language="JavaScript" src="../inc/ubbhelp.js"></script>
    <script language="JavaScript" src="../inc/ubbcode.js"></script>
    <tr bgcolor="#f0f5f9"> 
      <td colspan="2" align="right" valign="top"> 
        <div style="padding-left:8px;" align="left" width="100%"></div>
        <table width="99%" border="0" cellspacing="0" cellpadding="2">
          <tr> 
            <td width="100%"><select name="font" onFocus="this.selectedIndex=0" onChange="chfont(this.options[this.selectedIndex].value)" size="1">
                <option value="" selected>- Select Font -</option>
                <option value="Arial">Arial</option>
                <option value="Book Antiqua">Book Antiqua</option>
                <option value="Century Gothic">Century Gothic</option>
                <option value="Courier New">Courier New</option>
                <option value="Georgia">Georgia</option>
                <option value="Impact">Impact</option>
                <option value="Tahoma">Tahoma</option>
                <option value="Times New Roman">Times New Roman</option>
                <option value="Verdana">Verdana</option>
              </select> <select name="size" onFocus="this.selectedIndex=0" onChange="chsize(this.options[this.selectedIndex].value)" size="1">
                <option value="" selected>- Size (pt) -</option>
                <option value="-2">-2</option>
                <option value="-1">-1</option>
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4">4</option>
                <option value="5">5</option>
                <option value="6">6</option>
                <option value="7">7</option>
              </select> <select name="color"  onFocus="this.selectedIndex=0" onChange="chcolor(this.options[this.selectedIndex].value)" size="1">
                <option value="" selected>- Color -</option>
                <option value="White">White</option>
                <option value="Black">Black</option>
                <option value="Red">Red</option>
                <option value="Yellow">Yellow</option>
                <option value="Pink">Pink</option>
                <option value="Green">Green</option>
                <option value="Orange">Orange</option>
                <option value="Purple">Purple</option>
                <option value="Blue">Blue</option>
                <option value="Beige">Beige</option>
                <option value="Brown">Brown</option>
                <option value="Teal">Teal</option>
                <option value="Navy">Navy</option>
                <option value="Maroon">Maroon</option>
                <option value="LimeGreen">LimeGreen</option>
              </select>
              <b> </b> </td>
          </tr>
          <tr> 
            <td><a href="javascript:bold()"><img src="../img/ubbcode/bb_bold.gif" border="0" alt="Bold"></a> 
              <a href="javascript:italicize()"><img src="../img/ubbcode/bb_italicize.gif" border="0" alt="Italic"></a> 
              <a href="javascript:underline()"><img src="../img/ubbcode/bb_underline.gif" border="0" alt="Underline"></a> 
              <a href="javascript:fly()"><img src="../img/ubbcode/bb_fly.gif" border="0" alt="fly"></a> 
              <a href="javascript:center()"><img src="../img/ubbcode/bb_center.gif" border="0" alt="center"></a> 
              <a href="javascript:hyperlink()"><img src="../img/ubbcode/bb_url.gif" border="0" alt="Insert URL"></a> 
              <a href="javascript:email()"><img src="../img/ubbcode/bb_email.gif" border="0" alt="Insert Mail Link"></a> 
              <a href="javascript:image()"><img src="../img/ubbcode/bb_image.gif" border="0" alt="Insert Image"></a> 
              <a href="javascript:code()"><img src="../img/ubbcode/bb_code.gif" border="0" alt="Insert Code Block"></a> 
              <a href="javascript:quote()"><img src="../img/ubbcode/bb_quote.gif" border="0" alt="Insert Quote"></a> 
              <a href="javascript:list()"><img src="../img/ubbcode/bb_list.gif" border="0" alt="Insert List"></a> 
              <a href="javascript:sup()"><img src="../img/ubbcode/bb_sup.gif" alt="Insert Superscript" border="0" /></a> 
              <a href="javascript:sub()"><img src="../img/ubbcode/bb_sub.gif" border="0" alt="Insert Subscrip" /></a> 
              <a href="javascript:flash()"><img src="../img/ubbcode/bb_flash.gif" border="0" alt="Insert Flash" /></a><a href="javascript:wma()"><img src="../img/ubbcode/bb_wma.gif" alt="Insert Mp3" width="23" height="22" border="0" /></a> 
              <a href="javascript:wmv()"><img src="../img/ubbcode/bb_wmv.gif" alt="Insert Wmv" width="23" height="22" border="0" /></a> 
              <a href="javascript:ra()"><img src="../img/ubbcode/bb_ra.gif" alt="Insert RA" width="23" height="22" border="0" /></a> 
              <a href="javascript:rm()"><img src="../img/ubbcode/bb_rm.gif" alt="Insert RM" width="23" height="22" border="0" /></a> 
            </td>
          </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
          <tr valign="top"> 
            <td><textarea name="message" style="width:100%" rows="20" wrap="VIRTUAL" id="Message" onSelect="javascript: storeCaret(this);" onClick="javascript: storeCaret(this);" onKeyDown="javascript: ctlent();" onKeyUp="javascript: storeCaret(this);"><%=Show(2,0)%></textarea></td>
          </tr>
        </table></td>
    </tr>
    <tr bgcolor="#f0f5f9"> 
      <td width="101" align="right">上传:</td>
      <td width="666"> 
        <iframe border="0" frameBorder="0" frameSpacing="0" height="23" marginHeight="0" marginWidth="0" noResize scrolling="no" width="100%" vspale="0" src="User_UpFile_Add.asp"></iframe></td>
    </tr>
    <tr align="center" bgcolor="#f0f5f9"> 
      <td colspan="2"> 
        <input name="PostBlog" type="hidden" value="Post"> 
        <input name="topicsubmit" type="submit" value="Submit" onClick="this.disabled=true;document.input.action='AnnouncementUpdate.Asp';document.input.submit();"> 
        &nbsp; <input name="L_Reset" type="reset" id="L_Reset" value=" Reset ">
      </td>
    </tr>
  </form>
</table>
<div align="center"><%Set Adminobj=Nothing:Set Cblogobj=Nothing%></div></body>
</body>
</html>
<%
end if
%>