<!--announcements.asp##发布或编辑公告页面-->
<div class="w_b100">
<script language="javascript" src="hst_edit/main.js"></script>
<link id="css" href="hst_edit/skins/default/main.css" type="text/css" rel="stylesheet">
<script language="javascript">
<!--
var hstmsgarea=null;
function SaveMessage(frm,e){    
	if(document.Hstform.username.value.length<2||document.Hstform.username.value.length>100){
        alert('请填写收件人');
		document.Hstform.username.focus();
		//document.getElementById('touser').className='mybgcolor1';
        return false;
    }
	if(document.Hstform.title.value.length<2||document.Hstform.title.value.length>100){
        alert('请填写发送短消息的标题！');
		document.Hstform.title.focus();
        return false;
    }
	frm.content.value=hstmsgarea.save();
	if(frm.content.value.length<10||frm.content.value.length>4000){
        alert('您的内容太短或过长');
        return false;
    }
	
	//alert(frm.message.value.length);
    frm.content.value=hstmsgarea.save();
    document.Hstform.Submit.disabled=true;
    return true;
}
//-->
</script>
<form action="{$action}" method="post" name="Hstform" id="Hstform" onSubmit="return SaveMessage(this,event)">
  <table cellspacing="0" cellpadding="0" class="padd_td main_bor_all" width="100%">
      <tr>
        <td align="center" colspan="2" class="Internal_b board_bg">{$dowhat}</td>
      </tr>
      <tr valign="middle">
        <td class="Internal_rb" align="left"><b>用户名</b></td>
        <td class="Internal_b" align="left"><input name="username" id="username" type="text" readonly value="{$username}" size="20" class="myinput"/> 
          <input name="username" type="hidden" value="{$username}"  /></td>
      </tr>
       <tr valign="middle">
        <td class="Internal_rb" align="left"><b>版　面</b></td>
        <td class="Internal_b" align="left"><select id="boardid" name="boardid"></select>
{$readme}</td>
      </tr>
       <tr valign="middle">
        <td class="Internal_rb" align="left"><b>背景乐</b></td>
        <td class="Internal_b" align="left"><input name="bgs" type="text" value="{$bgs}" size="60"  class="myinput"/>&nbsp;支持MID或WAV文件，此项非必填。</td>
      </tr>
        <tr valign="middle">
        <td class="Internal_rb" align="left"><b>标　题</b></td>
        <td class="Internal_b" align="left"><input name="title" type="text" value="{$title}" size="60"  class="myinput"/></td>
      </tr>
      <tr>
        <td class="Internal_rb" valign="top" width="30%" align="left"><b>内　容</b></td>
        <td class="Internal_b" valign="middle" align="left" style="padding:0;"><textarea id="content" name="content" style="width:99%;height:240px;margin:0;padding:0;border:none;margin:0px auto;">{$content}</textarea></div>
<div style="margin:0;"><script language="javascript">
<!--
var hsteditconfig={
	textarea_id:'content',
	edit_height:'212px',
	edit_mode:'design',
	toolbar:[],
	is_open_temp_save:true
};
hstmsgarea=new HstEdit(hsteditconfig);	
//-->
</script>
<link id="css" href="hst_edit/skins/default/main.css" type="text/css" rel="stylesheet">
<script language="javascript" src="hst_edit/toolbar.js"></script>
		</div></td>
      </tr>
      <tr>
        <td align="center" valign="middle" colspan="2"><center><input name="submit" type="submit" value="发 布" class="mysubmit" /></center></td>
      </tr>
  </table>
</form>
<script language="JavaScript" type="text/javascript">
<!--
BoardJumpListSelect('{$boardid}',"boardid","论坛首页","0",0);
//-->
</script>
</div>