<%@Page Language="C#" Inherits="IWMS.Pages.MemberNewsAdd"%>
<%@Register TagPrefix="WbControls" Namespace="IWMS.Controls" Assembly="IWMS_Controls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<!--#include file="inc/html_head.inc"-->
<style type="text/css">
/* 文字竖排 */
.vTxt {padding-top:20px;}
.vTxt ul {list-style:none outside none;margin:0;padding:0}
.vTxt li {width:20px;text-align:center;float:left}
</style>
<!--#include file="inc/admin_articleadd.inc" -->
<!--#include file="inc/tiny_mce.inc" -->
<script type="text/javascript" src="inc/html_preview.js"></script>
<script type="text/javascript" src="inc/gb_big5.js"></script>
<%RegisterOnSubmitStatement("dopost","dopost.show();");%>
</head>
<body>

<!--#include file="head.inc" -->
<div id="navbar">
<div class="l"></div>
<div class="r"></div>
<div class="m">
	<!--#include file="inc/navclass.inc"-->
</div>
</div>

<div id="navsub">
<div class="l"></div>
<div class="r"></div>
<div class="m">

</div>
</div>

<div id="middle">
<form id="myForm" runat="server">

<div class="mframe">
<div class="tl"></div>
<div class="tr"></div>
<div class="tm">
	<span class="tt"><asp:Literal id="ltTitle" Text="推荐" runat="server"/>新闻</span>
</div>
<div class="wrapper">
<div class="ml"></div>
<div class="mr"></div>
<div class="mm">
	<asp:ValidationSummary 
		 DisplayMode="BulletList" 
		 EnableClientScript="true"
		 ShowSummary="false"
		 ShowMessageBox="true"                        
		 HeaderText="请正确填写以下内容"
		 runat="server"/>
	<asp:Label id="myLabel" style="display:block;text-align:center;padding:5px" EnableViewState="false" runat="server"/>
	<asp:Panel id="mainPanel" runat="server">
	 <table cellpadding="0" cellspacing="0" width="100%">
	  <tr> 
	   <td class="tdbg" height="120">
	   	<table align="center" width="90%" >
	   	<tr><td width="70">
			新闻分类： 
		</td><td>
			<input type="hidden" id="ClassID"
				runat="server"/>
			<a href="###" onclick="icmenu.pop(this,'<%=ClassID.ClientID%>',0)" class="clink"><asp:Literal id="ClassName" Text="请选择分类" runat="server"/></a>
			
			&nbsp;|&nbsp; 所属专题：
			<asp:TextBox id="Topic" size="18" Readonly="true" runat="server"/>
			<input type="hidden" id="TopicID" value="0" runat="server"/>
			<a href="javascript:OpenTopic()"><u>选择专题</u></a>
			&nbsp; <a href="###" onclick="document.getElementById('<%=Topic.ClientID%>').value='';document.getElementById('<%=TopicID.ClientID%>').value=0" style="text-decoration:underline">无专题</a><br/>
		
		

		</td></tr>
		<tr><td>
			新闻标题：
		</td><td>
			<asp:TextBox id="nTitle"
				maxlength="100"
				size="80"
				runat="server"/>
			<asp:RequiredFieldValidator
				ControlToValidate="nTitle"
				ErrorMessage="标题必须填写"
				Display="None"
				runat="server"/><br/>
		</td></tr>
		<tr><td>
			标题图片：
		</td><td>
			<asp:TextBox id="TitleImg"
				maxlength="200"
				size="30"
				runat="server"/>
			<span onmouseover="DispTitleImg(true);" onmouseout="DispTitleImg(false);" style="background:#eee;color:ddd;padding:0 5px">预览</span>
			<a href="javascript:OpenUpload(true);" style="text-decoration:underline">上传</a>
			（填写此项成为图片新闻，可以为图片或flash）<br/>
			<span id="ylTitleImg" style="position:absolute;background:#eed;padding:3px;border:1px solid #993;overflow:auto;display:none"></span>
			<input type="hidden" id="Upload" runat="server"/>
		</td></tr>
		<tr><td>
			分页标题：
		</td><td>
			<asp:TextBox id="pageTitle" size="25" runat="server"/>
			第<asp:Literal id="pageIndex" text="1" runat="server"/>页
			<asp:Button id="pagePrev" text="上一页" onClick="pagePrev_OnClick" runat="server"/>
			<asp:DropDownList id="pageJump" OnSelectedIndexChanged="pageJump_OnChange" AutoPostBack="True" runat="server"/>
			<asp:Button id="pageNext" text="下一页" onClick="pageNext_OnClick" runat="server"/>
			<asp:Button id="pageInsert" text="插入页" onClick="pageInsert_OnClick" runat="server"/>
			<asp:Button id="pageRemove" text="删除页" onClick="pageRemove_OnClick" runat="server"/>
			<asp:Button id="pageClear" text="清除" onClick="pageClear_OnClick" runat="server"/>
		</td></tr>
		<tr><td valign="top">
			新闻内容：
			
			<div class="vTxt">
			<ul><li>
			<asp:CheckBox id="imgWithMark" Text="图片加水印" title="自动下载的图片是否加水印" runat="server"/>
			</li>
			<li>
			<asp:CheckBox id="downImg" Text="下载站外图片" title="是否程序自动下载其它网站图片" runat="server"/>
			</li>
			<li>
			<asp:CheckBox id="autoTitleImg" Text="生成标题图片" Checked="true" title="自动取新闻内图片生成标题图片" runat="server"/>
			</li></ul>
			</div>
		</td><td>
			<asp:TextBox id="Body" TextMode="multiline" CssClass="mceContent" runat="server"/>
		</td></tr>
		<tr><td valign="top">
			新闻简介：
		</td><td>
			&nbsp; <a href="###" onclick="iwms.setSummary()">↓↓从内容中截取简介↓↓</a><a href="###" onclick="OpenUpload()" style="margin-left:240px">↑↑上传附件及加强图片上传</a>
		</td></tr>
		<tr>
		<td></td>
		<td>
			<asp:TextBox id="Summary" TextMode="multiline" CssClass="mceSummary" runat="server"/>
			<asp:CustomValidator
				ControlToValidate="Summary"
				ClientValidationFunction="ClientValidate"
				OnServerValidate="Summary_validation"
				ErrorMessage="简介最多2000字"
				Display="None"
				runat="server" />
			<script type="text/javascript" language="javascript">
			<!--
			function ClientValidate(source, arguments)
			{
				if (arguments.Value.length>2000)
					arguments.IsValid=false;
				else
					arguments.IsValid=true;
			}
			-->
			</script>
		</td></tr>
		<tr><td>
			相关标签：
		</td><td>
			<asp:TextBox id="Key"
				maxlength="50"
				size="30"
				runat="server"/>
			<a href="javascript:OpenKey()" style="text-decoration:underline">选择标签</a>
			（多个标签用“,”分隔）
		</td></tr>
		<tr><td>
			　　作者：
		</td><td>
			<div style="width:320px;float:left">
			<asp:TextBox id="Author"
				MaxLength="50"
				size="30"
				runat="server"/>
			<script type="text/javascript">
			<!--
			function setAuthor(str){
				var obj=document.<%=myForm.ClientID%>.<%=Author.ClientID%>;
				obj.value=str;
			}
			-->
			</script>
			<select onchange="if(this.value!==''){setAuthor(this.value);}">
			<option value="">&larr;</option>
			<option value="未知">未知</option>
			<option value="佚名">佚名</option>
			</select>
			</div>
			信箱：
			<asp:TextBox id="AuthorEmail"
				MaxLength="100"
				size="30"
				runat="server"/>
		</td></tr>
		<tr><td>
			　　来源：
		</td><td>
			<div style="width:320px;float:left;">
			<asp:TextBox id="Source"
				MaxLength="50"
				size="30"
				runat="server"/>
			</div>
			网址：
			<asp:TextBox id="SourceUrl"
				MaxLength="255"
				size="30"
				runat="server"/>
		</td></tr>
		<%if (config.MakeStatic){%>
		<tr><td>
			静态页面：
		</td><td>
			<asp:CheckBox id="staticDefault" checked="true" Text="重新生成首页" runat="server"/>
			<asp:CheckBox id="staticSort" checked="false" Text="重新生成分类页" runat="server"/>
			<asp:CheckBox id="staticTopic" checked="false" Text="重新生成专题页" runat="server"/>
		</td></tr>
		<%}%>
		<tr><td>
			签收会员：
		</td><td>
			<asp:TextBox id="signIn"
				size="60"
				title="iwms企业版功能"
				runat="server"/>
			<asp:RegularExpressionValidator
				ControlToValidate="signIn"
				ValidationExpression="[^,]+(,[^,]+)*"
				ErrorMessage="签收会员格式错误"
				Display="None"
				runat="server"/>
				（多个会员名请用“,”分隔）
		</td></tr>
		<tr><td colspan="2">
			<asp:Button id="Submit" text="添 加" onclick="Submit_OnClick" runat="server"/>
			&nbsp; <a href="javascript:s2t();">简&rarr;繁</a>&nbsp; <a href="javascript:t2s();">繁&rarr;简</a>
		</td></tr>
	   	</table>
	   </td>
	  </tr>
	 </table>
	
	</asp:Panel>	
</div>
</div>
<div class="bl"></div>
<div class="br"></div>
<div class="bm"></div>
</div>
</form>
</div>
<!--#include file="foot.inc"-->
</body>
</html>