<%@ Page Language="C#" validateRequest="false" Inherits="SiteServer.BackgroundPages.Design.ContentAdd" Trace="false"%>
<%@ Register TagPrefix="bairong" Namespace="BaiRong.Controls" Assembly="BaiRong.Controls" %>
<%@ Register TagPrefix="user" Namespace="UserCenter.Controls" Assembly="UserCenter.Pages" %>
<%@ Register TagPrefix="site" Namespace="SiteServer.Controls" Assembly="SiteServer.Controls" %>

<HTML>
<HEAD>
<!--#include file="../inc/html_head.inc"-->
<user:custom type="style" runat="server"></user:custom>
<title>添加内容</title>
<bairong:Code type="Calendar" runat="server" />
<bairong:Code type="Prototype" runat="server" />
<bairong:Code type="Scriptaculous" runat="server" />
<script language="javascript" src="../Inc/auxiliary.js"></script>

<meta http-equiv="content-type" content="text/html;charset=gb2312">
</HEAD><body>
<user:custom type="showpopwin" runat="server" />
<form id="MyForm" runat="server">
	<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" >
      <tr align="left" id="MessageLabelRow" runat="server">
		<td colspan="3"><asp:Label width="100%" id="MessageLabel" Style="TEXT-ALIGN:center; color:#FF0000" runat="server" /></td>
      </tr>
	  <tr height="120"> 
	   <td class="tdbg">
	   	<table width="98%" align="center" cellpadding="3" cellspacing="3">
	   	<tr id="RowNodeID" runat="server"><td width="150">
			<bairong:help HelpText="包含此信息的栏目名称" Text="栏目名：" runat="server" ></bairong:help>
		</td>
	   	<td colspan="2">
			<asp:DropDownList ID="NodeIDDropDownList" AutoPostBack="true" OnSelectedIndexChanged="NodeIDDropDownList_SelectedIndexChanged" runat="server">
		  </asp:DropDownList>
		</td></tr>
		<site:AuxiliarySingleControl ID="Title" runat="server"/>
		<tr id="RowSubTitle" runat="server"><td width="150">
			<bairong:help id="HelpSubTitle" runat="server" ></bairong:help>
		</td>
		<td colspan="2">
			<asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="SubTitle"
				MaxLength="500"
				Size="60"
				runat="server"/>
		</td>
        <td rowspan="3" align="left" width="320">&nbsp;<IMG src="<%=PreviewImageSrc%>" class="preview" alt=图片预览 name="preview_ImageUrl" id="preview_ImageUrl" align="absmiddle"></td>
        </tr>
		<tr id="RowImageUrl" runat="server"><td width="150">
			<bairong:help id="HelpImageUrl" runat="server" ></bairong:help>
		</td>
		<td>
			<nobr><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="ImageUrl"
				MaxLength="100"
				Size="40"
				runat="server"/>
			<asp:HyperLink ID="SelectImage" NavigateUrl="javascript:undefined;" runat="server" style="text-decoration:underline">选择</asp:HyperLink> <asp:HyperLink ID="UploadImage" NavigateUrl="javascript:undefined;" runat="server" style="text-decoration:underline">上传</asp:HyperLink></nobr>
		</td></tr>
		<tr id="RowCheckBoxList" runat="server"><td width="150">
			<bairong:help HelpText="设置此信息的显示属性。“推荐”表示此信息为推荐信息；“头条”表示此信息为头条信息；“标题醒目”表示此信息为标题醒目信息；“分类固顶”表示设置此信息的位置在顶端。" Text="显示属性：" runat="server" ></bairong:help>
		</td>
		<td>
			<asp:CheckBox ID="IsRecommend" runat="server" Text="推荐"></asp:CheckBox>
			<asp:CheckBox ID="IsHot" runat="server" Text="热点"></asp:CheckBox>
			<asp:CheckBox ID="IsColor" runat="server" Text="醒目"></asp:CheckBox>
			<asp:CheckBox ID="IsTop" runat="server" Text="置顶"></asp:CheckBox>
		</td></tr>
		<tr id="RowLinkUrl" runat="server"><td width="150">
			<bairong:help id="HelpLinkUrl" runat="server" ></bairong:help>
		</td>
		<td colspan="2">
			<asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="LinkUrl"
				maxlength="200"
				Size="40"
				runat="server"/>(如填写此项则打开内容为该链接) 
		</td></tr>
		<tr id="RowFileUrl" runat="server"><td width="150">
			<bairong:help id="HelpFileUrl" runat="server" ></bairong:help>
		</td><td colspan="2">
			<img src="../Pic/icon/attachment.gif" border="0"> <span id="add_FileUrl" runat="server"></span><span id="del_FileUrl" runat="server"></span>
			<input type="hidden" id="FileUrl" value="" runat="server"/>
		</td></tr>
		
		<site:AuxiliarySingleControl ID="Content" runat="server"/>
		
		<tr id="RowAuthor" runat="server"><td width="150">
			<bairong:help id="HelpAuthor"  runat="server" ></bairong:help>
		</td><td colspan="2">
			<asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="Author"
				MaxLength="50" Size="60" runat="server"/>
		</td></tr>
		<tr id="RowSource" runat="server"><td width="150">
			<bairong:help id="HelpSource" runat="server" ></bairong:help>
		</td><td colspan="2">
			<asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="Source"
				MaxLength="50" Size="60" runat="server"/>
		</td></tr>
		<tr id="RowSummary" runat="server"><td width="150">
			<bairong:help id="HelpSummary" runat="server" ></bairong:help>
		</td><td colspan="2">
			<asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="Summary"
				TextMode="MultiLine"
				Columns="60"
				Rows="5"
				runat="server" />
		</td></tr>
		<tr id="RowAddDate" runat="server"><td width="150">
			<bairong:help id="HelpAddDate" runat="server" ></bairong:help>
		</td><td colspan="2">
			<user:DateTimeTextBox class="colorblur" id="AddDate" ShowTime="true" Now="true" Size="30" runat="server"/>
		</td></tr>
		
        <site:AuxiliaryControl ID="ControlForAuxiliary" FormatTextEditor="<tr><td colspan='4' align='left'>{0}</td></tr><tr><td colspan='4' align='left'>{1}</td></tr>" FormatImage="<tr height='80' valign='middle'><td>{0}</td><td colspan='3'>{1}</td></tr>" FormatDefault="<tr><td>{0}</td><td colspan='3'>{1}</td></tr>" runat="server"/>
		
		<tr><td colspan="3">
			  <bairong:help HelpText="此信息所属的内容组" Text='所属内容组：<input type="checkbox" id="check_groups" onClick=_checkAll(document.getElementById("ContentGroup"),this.checked);><label for="check_groups">全选</label>'  runat="server" ></bairong:help>
			  <span id="ContentGroup">
			 <asp:CheckBoxList ID="ContentGroupNameCollection" RepeatDirection="Horizontal" RepeatLayout="Flow" runat="server"/>
			 </span>
		</td></tr>
		<tr><td colspan="3" align="center" height="40" valign="middle">
			<asp:Button class="button" id="Submit" text="添 加" onclick="Ok_OnClick" runat="server"/>&nbsp;&nbsp;
			<asp:Button class="button" id="Cancel" text="返 回" runat="server"/>
		</td></tr>
	   	</table>
	   </td>
	  </tr>
	 </table>
</form>
</body>
</HTML>
