<%@ Register TagPrefix="cc1" Namespace="EasyWebEditorControl" Assembly="EasyWebEditorControl" %>
<%@ Register TagPrefix="uc1" TagName="TopPage" Src="TopPage.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="addNews.aspx.vb" Inherits="AllSaints.addNews" validateRequest="false"%>
<%@ Register TagPrefix="FredCK" Namespace="FredCK" Assembly="FredCK.FCKeditor" %>
<%@ Register TagPrefix="uc1" TagName="LeftPage" Src="LeftPage.ascx" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>News</title> 
		<!-- Sohaib Akram -->
		<!--<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">-->
		<!--<th style="padding-top: 2px; padding-bottom: 1px; padding-left:1px; FONT-SIZE: 12px; font-weight: bold;">Date</th>-->
		<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
		<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK rel="STYLESHEET" type="text/css" href="css/default.css">
		<LINK rel="STYLESHEET" type="text/css" href="css/cal.css">
		<script type="text/javascript" language="JavaScript" src="js/CalendarPopup.js"></script>
		<script type="text/javascript" language="JavaScript" src="FCKeditor/FCKeditor.js"></script>
		<script type="text/javascript" language="JavaScript">
			var cal = new CalendarPopup("date_calendar");
			cal.setCssPrefix("TEST");
			
			function ResetFields()
			{
				var Title = document.getElementById('<%=titleTB.ClientID%>');
				var sourceLink = document.getElementById('<%=sourceLinkTB.ClientID%>');
				var Date = document.getElementById('<%=dateTB.ClientID%>');
				var summary = document.getElementById('<%=summaryTB.ClientID%>');
				var fckedit = document.getElementById('<%=FCKeditor1.ClientID%>');
				
				Title.value = "";
				sourceLink.value = "";
				Date.value = "";
				summary.value = "";
			}
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<div id="date_calendar" style="Z-INDEX: 1000; POSITION: absolute; BACKGROUND-COLOR: white; VISIBILITY: hidden; layer-background-color: white"></div>
		<iframe id="DivHolder" style="Z-INDEX: 100; POSITION: absolute; BACKGROUND-COLOR: #000000; DISPLAY: none; COLOR: #ffffff"
			src="about:blank"></iframe>
		<form id="NewsForm" method="post" runat="server">
			<table id="Table1" border="0" cellSpacing="0" cellPadding="0" width="100%">
				<tr>
					<td bgColor="white" colspan="2"><uc1:toppage id="TopPage1" runat="server"></uc1:toppage></td>
				</tr>
				<tr>
					<td style="width:210px; padding-left:10px; padding-bottom:10px;" valign="top" bgcolor="#ffffff" align="left">
						<table cellpadding="0" cellspacing="0" width="100%">
							<tr>
								<td valign="top" class="LeftLinksTd">
									<uc1:leftpage id="Toppage2" runat="server"></uc1:leftpage>
								</td>
							</tr>
						</table>
					</td>
					<td style="width:100%; padding:10px;" valign=top bgcolor="#ffffff">
						<table cellpadding="0" cellspacing="0" align=left width="100%">
							<tr>
								<td style="TEXT-ALIGN: left" bgColor="#ffffff" width="100%">
									<table cellpadding="0" cellspacing="0" width="100%">
										<tr>
											<td style="TEXT-ALIGN: center; FONT-SIZE: 12px">
												<asp:Label ID="Message" Runat="server"></asp:Label>
											</td>
										</tr>
										<tr>
											<td>
												<table id="NewsTable" class="NewsTableClass" cellSpacing="0" cellPadding="0" width="98%"
													align="center" runat="server">
													<tr>
														<td id="addNewsHeading" runat="server" class="headerRowClass" colspan="2"></td>
													</tr>
													<tr>
														<td width="25%" class="dataRowClass TPad">News Title:<span style="COLOR: red">*</span></td>
														<td width="75%" class="dataRowClass TPad">
															<asp:TextBox ID="titleTB" Runat="server" CssClass="NewsTextBox"></asp:TextBox>
															<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="titleTB" ErrorMessage="Required!"
																EnableClientScript="True" Font-Size="9pt" Display="Dynamic"></asp:RequiredFieldValidator>
														</td>
													</tr>
													<tr>
														<td class="dataRowClass TPad">News Source Link:</td>
														<td class="dataRowClass TPad">
															<asp:TextBox ID="sourceLinkTB" Runat="server" CssClass="NewsTextBox"></asp:TextBox>
														</td>
													</tr>
													<tr>
														<td class="dataRowClass TPad">News Date:<span style="COLOR: red">*</span></td>
														<td class="dataRowClass TPad">
															<asp:TextBox ID="dateTB" Runat="server" CssClass="NewsTextBox"></asp:TextBox>
															<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" Font-Size="9pt" ControlToValidate="dateTB"
																EnableClientScript="True" Display="Dynamic" ErrorMessage="Invalid Date" ValidationExpression="(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d"></asp:RegularExpressionValidator>
															<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="dateTB" ErrorMessage="Required!"
																EnableClientScript="True" Font-Size="9pt" Display="Dynamic"></asp:RequiredFieldValidator>
														</td>
													</tr>
													<tr>
														<td class="dataRowClass TPad" valign="top">News Summary:<span style="COLOR: red">*</span></td>
														<td class="dataRowClass" valign="top">
															<asp:TextBox ID="summaryTB" Runat="server" CssClass="NewsTextBox2" TextMode="MultiLine" Rows="4"></asp:TextBox>
															<asp:RequiredFieldValidator ID="Requiredfieldvalidator1" runat="server" ControlToValidate="summaryTB" ErrorMessage="Required!"
																EnableClientScript="True" Font-Size="9pt" Display="Dynamic"></asp:RequiredFieldValidator>
														</td>
													</tr>
													<tr>
														<td class="dataRowClass TPad" valign="top">News Details:<span style="COLOR: red">*</span></td>
														<td class="dataRowClass" style="PADDING-BOTTOM: 1px; PADDING-LEFT: 2px; PADDING-RIGHT: 0px; PADDING-TOP: 2px">
															<!--<cc1:easywebedit id="detailEWE" runat="server" Visible="True" ImagesLocation="../images/webeditnewpics/"
																BackColor="#CDCB9B" AllowFileDeletion="True" AllowFileUpload="True" DesignStyle="Classic" AllowDirectoryCreation="True"
																CallContentChangedFunction="False" MaxUploadSize="50000"></cc1:easywebedit>-->
															<asp:TextBox id="DetailsTB" TextMode="MultiLine" Rows="10" Columns="10" runat="server" width="95%"></asp:TextBox>
															<!--<fredck:FCKeditor id="FCKeditor1" runat="server" width="95%" BasePath="/allsaints.cc/FCKeditor/"></fredck:FCKeditor>-->
														</td>
													</tr>
													<tr>
														<td class="dataRowClass TPad">News Type:<span style="COLOR: red">*</span></td>
														<td class="dataRowClass TPad">
															<asp:DropDownList ID="NewsTypeDDL" Runat="server">
																<asp:ListItem Selected="True" Value="boosters">Boosters</asp:ListItem>
																<asp:ListItem Value="home">Home</asp:ListItem>
																<asp:ListItem Value="school">School</asp:ListItem>
																<asp:ListItem Value="church">Church</asp:ListItem>
																<asp:ListItem Value="cevent">Church Events</asp:ListItem>
																<asp:ListItem Value="sevent">School Events</asp:ListItem>
																<asp:ListItem Value="both">All</asp:ListItem>
															</asp:DropDownList>
														</td>
													</tr>
													<tr>
														<td></td>
														<td>
															<asp:Button ID="SaveBtn" Runat="server" Text="Save"></asp:Button>
														</td>
													</tr>
												</table>
												<br>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
