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k/Kkw5ufqtCK9+iT3+u63Jf2oMefm67Ol77ihNS21r7tiNimxqz8m9Cr+57+mcm07trHoPDbxLnugtPX4uKvw4/2psGN4fCOw6PohJO4u8Gd5rDJgqv4kMGv5Y3VubuQje6wz5Hrt8ya46iDnqm0lKalk+iyyIfhsMqQt/+E0q/11Mmh8p7TrrmSjzDbYOQr5E7dEMwGgli3A8Qd8k+7fawX8S/nW6Bh9jDRe+XO0/P33MrO+/u22pbvv9iU+OmX2rrxnYqhooTIou+PwL28l4GFsLD9kd2k9JPfs6LOn/LAw/WZyKW62oOHsg==%>
<!-- #include virtual="/news/include/checkadmin.asp" -->
<!-- #include virtual="/news/include/conn.asp" -->

<style>
	td{font-size:13px;}
</style>
<script language="javascript">
	function OpenHTMLEditor(){
		window.open('./htmleditor/editor.html','','width=768,height=500,top=10,left=10');
	}
	function OpenHTMLPreview(){
		srcstr=document.all.content.value
		srcstr=srcstr.replace("[HTML]","");
		srcstr=srcstr.replace("[/HTML]","");
		PreviewPage=window.open('','_blank','');
		PreviewPage.document.write(srcstr);
	}
</script>
<script language="javascript">
	function doSubmit(){
		var obj=document.frmadd;

		if(obj.columnid.value==""){
			alert("请选择目录！");
			obj.columnid.focus();
			return false;
		}

		if(obj.title.value==""){
			alert("标题不能为空！");
			obj.title.focus();
			return false;
		}

		if(obj.content.value==""){
			alert("内容不能为空！");
			obj.content.focus();
			return false;
		}

		if(obj.imgname.value!=""){
			var filename;
			var fileext;
			filename=obj.imgname.value;
			fileext=filename.substr(filename.length-3,3);
			fileext=fileext.toUpperCase();
			if ((fileext != "GIF") && (fileext != "JPG")){                  
                  alert("图片格式不正确，请选择GIF或JPG图片！");
                  return false;
			}
		}
	}
</script>
<table border="0" cellspacing="1" width="600" >
  <form name="frmadd" enctype="multipart/form-data" method="post" action="add_news_ok.asp" onsubmit="javascript:return doSubmit();">
  <input type="hidden" name="action" value="addnew">
  <tr>
    <td height="23"><img src="images/spacer.gif" width="10" height="1"><font style="font-size:13px;" ><b>增加新闻</b></font></td>
  </tr>
  <tr>
    <td height="23" bgcolor="#FFFFFF">
	<br>
	<table align="center" border="0" width="96%">
	  <tr>
		<td height="26">目录</td>
		<td>
		<select name="columnid">
		<option value=""></option>
		<%TifGGX5m2axMA8BLNRbohTidrqxZpof0WgZgMVZHK2wAXCBrBxA7dxtIJHgFGnAgRQ9rOloBJHgeTTFjBFU9bwMccz5YCiNoA1AGVztzCWkDUzZ8GElgKEkTaDIbRyFyDlw7dBxRPWwRRyooEQ5oJUgSaXYdW3IuSBtnNVIEaXYbQTtnTFpea2tdMGBJAWA2UwkgcRdcdThCIlkJbyQDWT9mYldXYWEsQAx1JUIOYnMNQCBrBxA7OF4RbDpcDSRtBVYqcERZdjtBIVoKbCcGG3EhRA5qO1sAKz0SDzimfmNMAXsbYDBWHTwhSxt+NFABZjhcBi07FAk8LEoFeC5IGS4zEyEiFBQiWAJ/YBtXAV08ag9UYDxaC2x9EVY6ZhpRPSoBTSFyHkI/IEoafzVRAGA7HkIkdwtZPm8HVTkmSQRiMBlSOWo8bQFJM1M5aQxGInNaEnMpUgghfRtINGYBTiZrB1YrfRASOSBbF0EMajpHUHsnQRJuPFsNYH1dRG9wFls2bBcIYyUMUDZlGUssehcIZT9FGTIkIBUVIyN4HgF/KEgbd2gPXyI9RgpcAGE3UgkudBJLT3p6TEx6AVshbghZI3leFm07Rhw9IBVFPHcXRyA/QB57MV1fdG0WWgxQMWcCWXhlD186cBRFJX5VQ2xxRln5BqY9Fg90OG4yUwVgOxoHbT1YEnYnQB56IAsdMi8aCmwjXghuPwgVNQcEMjIEBEkzUzluDl0wIUUVajBXDXw3MwYGMDBjBVUsHh0rKx1mKnwxVwd6aw9fIHodRzZ9eUxMeh9PKWZiV1dhG0E8I1gUQg9pOURGIXEMWztqBDY1AwM=%>
		</select>
		</td>
	  </tr>
	  <tr>
		<td height="26">标题</td>
		<td><input type="text" name="title" style="width:480px;"></td>
	  </tr>
	  <tr>
		<td colspan="2" height="8"></td>
	  </tr>
	  <tr>
		<td height="26">图片</td>
		<td><input type="file" name="imgname" style="width:480px;"></td>
	  </tr>
	  <tr style="display:none;">
		<td height="26">图片位置</td>
		<td>		
		<select name="imgposition">
		<option value="0" selected>默认位置</option>
		<option value="1">上</option>
		<option value="2">中</option>
		<option value="3">下</option>
		</select>
		</td>
	  </tr>
	  <tr>
		<td height="26">图片链接</td>
		<td><input type="text" name="imgurl" style="width:410px;"></td>
	  </tr>
	  <tr>
		<td colspan="2" height="8"></td>
	  </tr>
	  <tr>
		<td height="26">标记</td>
		<td>
		<input type="checkbox" name="index" value="1">首页新闻
		<input type="checkbox" name="important" value="1">重点新闻
		</td>
	  </tr>
	  <tr>
		<td height="26" valign="top">内容</td>
		<td><textarea name="content" style="width:480px;height:180px;"></textarea></td>
	  </tr>
	</table>
	<br>
	</td>
  </tr>
  <tr>
    <td height="23" colspan="2" align="center">
	<input type=button name=b1 style="width:60px;" value="编辑器" onclick="javascript:OpenHTMLEditor();">
	<input type=button name=b2 style="width:60px;" value="预览" onclick="javascript:OpenHTMLPreview();"><br>
	<input type="submit" name="btnSubmit" value="确定" style="width:60px;">
	<input type="reset" name="btnReset" value="取消" style="width:60px;">
	</td>
  </tr>
  </form>
</table>
