<%@ Page Language="vb" AutoEventWireup="false" Codebehind="MgrLinks.aspx.vb" Inherits="AllSaints.MgrLinks1"%>
<%@ Register TagPrefix="uc1" TagName="TopPageAddRemove" Src="TopPageAddRemove.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Links Management For School Section</title>
		<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="../admins/css/default.css">
	</HEAD>
	<body style="MARGIN-TOP: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px">
		<form id="Form1" encType="multipart/form-data" method="post" runat="server">
			<BR>
			<TABLE id="Table1" border="0" cellSpacing="0" cellPadding="0" width="100%" bgColor="white">
				<TR>
					<TD><uc1:toppageaddremove id="TopPageAddRemove1" runat="server"></uc1:toppageaddremove></TD>
				</TR>
				<TR>
					<TD>
						<table border="0" cellSpacing="0" cellPadding="0" width="98%" align="center">
							<asp:panel id="pnlError" Visible="False" Runat="server">
								<TBODY>
									<TR>
										<TD>
											<P>
												<asp:Label id="lblError" Visible="True" Runat="server" ForeColor="Red"></asp:Label></P>
										</TD>
									</TR>
							</asp:panel>
							<tr>
								<td><asp:datagrid id=DG_Links runat="server" ForeColor="Black" DataSource="<%# DsViewChildPagesS1 %>" HorizontalAlign="Center" ShowFooter="True" BorderStyle="None" Font-Size="11px" Font-Names="Verdana" GridLines="Horizontal" CellPadding="0" BackColor="White" BorderWidth="1px" BorderColor="#DEDFDE" AutoGenerateColumns="False" DataMember="GetChildPages" Width="99%" DataKeyField="ID" PageSize="3">
										<SelectedItemStyle ForeColor="GhostWhite" BackColor="DarkSlateBlue"></SelectedItemStyle>
										<EditItemStyle ForeColor="#C771E6"></EditItemStyle>
										<AlternatingItemStyle BackColor="White"></AlternatingItemStyle>
										<ItemStyle Height="20px" CssClass="incell"></ItemStyle>
										<HeaderStyle Font-Bold="True" ForeColor="White" CssClass="menustrip"></HeaderStyle>
										<Columns>
											<asp:TemplateColumn>
												<HeaderStyle Width="1%"></HeaderStyle>
												<ItemTemplate>
													<asp:CheckBox id=CheckBox1 runat="server" Visible='<%# DataBinder.Eval(Container, "DataItem.CanDelete") %>' ToolTip='<%# DataBinder.Eval(Container, "DataItem.ID") %>'>
													</asp:CheckBox>&nbsp;
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn SortExpression="PageName" HeaderText="Link Name">
												<HeaderStyle Width="18%"></HeaderStyle>
												<ItemTemplate>
													<asp:Label id=lblLinkName runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PageName") %>'>
													</asp:Label>
												</ItemTemplate>
												<FooterTemplate>
													<asp:TextBox id="txtNewLinkName" Runat="Server" Width="99%"></asp:TextBox>
												</FooterTemplate>
												<EditItemTemplate>
													<asp:TextBox id=txtLinkName runat="server" Width="99%" Text='<%# DataBinder.Eval(Container, "DataItem.PageName") %>'>
													</asp:TextBox>
												</EditItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn HeaderText="URL">
												<HeaderStyle Width="30%"></HeaderStyle>
												<ItemTemplate>
													<asp:Label id=Label1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.url") %>'>
													</asp:Label>
												</ItemTemplate>
												<FooterTemplate>
													<asp:TextBox id="txtNewURL" runat="server" Width="99%">http://</asp:TextBox>
												</FooterTemplate>
												<EditItemTemplate>
													<asp:TextBox id=txtEditURL runat="server" Width="99%" Text='<%# DataBinder.Eval(Container, "DataItem.url") %>'>
													</asp:TextBox>
												</EditItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn HeaderText="Type">
												<HeaderStyle Width="5%"></HeaderStyle>
												<ItemTemplate>
													<asp:Label id=Label2 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.external_link") %>'>
													</asp:Label>
												</ItemTemplate>
												<FooterTemplate>
													<asp:DropDownList id="drpNewType" runat="server">
														<asp:ListItem Value="Internal" Selected="True">Internal</asp:ListItem>
														<asp:ListItem Value="External">External</asp:ListItem>
													</asp:DropDownList>
												</FooterTemplate>
												<EditItemTemplate>
													<asp:DropDownList id=drpType runat="server" SelectedValue='<%# DataBinder.Eval(Container, "DataItem.external_link") %>'>
														<asp:ListItem Value="Internal" Selected="True">Internal</asp:ListItem>
														<asp:ListItem Value="External">External</asp:ListItem>
													</asp:DropDownList>
												</EditItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn HeaderText="New Window">
												<HeaderStyle Width="11%"></HeaderStyle>
												<ItemTemplate>
													<asp:CheckBox id=CheckBox2 runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.samewindow") %>'>
													</asp:CheckBox>
												</ItemTemplate>
												<FooterTemplate>
													<asp:CheckBox id="chkWindow" runat="server"></asp:CheckBox>
												</FooterTemplate>
												<EditItemTemplate>
													<asp:CheckBox id=chkNewWindow runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.samewindow") %>'>
													</asp:CheckBox>
												</EditItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn HeaderText="Include in Menu">
												<HeaderStyle Width="11%"></HeaderStyle>
												<ItemTemplate>
													<asp:CheckBox id="Checkbox3" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.MenuItem") %>'>
													</asp:CheckBox>
												</ItemTemplate>
												<FooterTemplate>
													<asp:CheckBox id="chkMenu" runat="server"></asp:CheckBox>
												</FooterTemplate>
												<EditItemTemplate>
													<asp:CheckBox id="chkNewMenu" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.MenuItem") %>'>
													</asp:CheckBox>
												</EditItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn HeaderText="Up">
												<HeaderStyle Width="5%"></HeaderStyle>
												<ItemTemplate>
													<asp:ImageButton ID="ImageButtonUP" Runat="server" AlternateText="Up" ImageUrl="images/up.png" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' CommandName="Up">
													</asp:ImageButton>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn HeaderText="Down">
												<HeaderStyle Width="5%"></HeaderStyle>
												<ItemTemplate>
													<asp:ImageButton Runat="server" AlternateText="Down" ImageUrl="images/down.png" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' ID="Imagebutton1" NAME="Imagebutton1" CommandName="Down">
													</asp:ImageButton>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel&#160;" EditText="Edit&#160;&#160;">
												<ItemStyle ForeColor="#C7716E"></ItemStyle>
											</asp:EditCommandColumn>
											<asp:TemplateColumn>
												<ItemTemplate>
													<asp:LinkButton ForeColor="#C7716E" CommandName="Delete" Text="Delete" ID="btnDel" Runat="server" />
												</ItemTemplate>
												<FooterTemplate>
													<asp:LinkButton ForeColor="#C7716E" CommandName="Insert" Text="Add" ID="btnAdd" Runat="server" />
												</FooterTemplate>
											</asp:TemplateColumn>
										</Columns>
										<PagerStyle NextPageText="NEXT &amp;gt; " PrevPageText="&amp;lt; PREVIOUS" HorizontalAlign="Center"
											BackColor="PaleGoldenrod" CssClass="nav1linkoff"></PagerStyle>
									</asp:datagrid></td>
							</tr>
							<tr>
								<td height="5"></td>
							</tr>
							<tr>
								<td>
									<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:button id="delselected" Runat="server" Text="Delete Selected"></asp:button>&nbsp;&nbsp;</p>
								</td>
							</tr>
							<tr>
								<td height="10"></td>
							</tr>
							<tr>
								<td vAlign="middle" align="center"><A id="A1" class="nav1linkhigh" onclick=" if ( confirm('Do you whish to refresh the main contents, after you close this window?') ) {opener.window.location.reload(true); window.close(); opener.window.focus(); return true;} else { return false; } "
										href="#" runat="server">Close Window</A>
								</td>
							</tr>
							<tr>
								<td height="10"></td>
							</tr>
						</table>
					</TD>
				</TR>
				</TBODY></TABLE>
		</form>
	</body>
</HTML>
