<%@ Page language="c#" Codebehind="Settings.aspx.cs" AutoEventWireup="True" Inherits="DocumentRouter.Settings" %>
<%@ Register TagPrefix="cc1" Namespace="WebControls" Assembly="WebControls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>Tarvos Document Router</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR" />
		<meta content="C#" name="CODE_LANGUAGE" />
		<meta content="JavaScript" name="vs_defaultClientScript" />
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
		<link href="Data/DocumentRouter.css" rel="stylesheet" type="text/css" />
		<script language="javascript" type="text/javascript">
<!--
function ShowWait()
{
	try
	{
		document.body.style.cursor = 'wait';
		document.getElementById('waitImg').style.display = "";
	}
	catch(e)
	{
	}
}

function HideWait()
{
	try
	{
		document.body.style.cursor = 'default';
		document.getElementById('waitImg').style.display = "none";
	}
	catch(e)
	{
	}
}

// Redirect to AlchemyWeb logout page, so license is released
function HandleOnClose()
{
	try
	{
		if (event.clientY < 0)
		{
			if(sAlchemyLogout != '')
			{
				self.location.href = sAlchemyLogout;
			}
		}
	}
	catch(e)
	{
	}
}
//-->
		</script>
	</head>
	<body onbeforeunload="HandleOnClose()" topmargin="0" onload="javascript:HideWait();">
		<form id="SettingsForm" method="post" runat="server">
			<table class="MainTable" id="tblSettings" height="300" cellSpacing="0" cellPadding="0"
				align="center" runat="server">
				<tr class="Header" valign="middle">
					<td style="WIDTH: 200px"><asp:image id="Image1" runat="server" ImageUrl="/DocumentRouter/Images/logo.png"></asp:image></td>
					<td><asp:label id="lblHeader" runat="server" ForeColor="White">Settings Document Router</asp:label></td>
					<td></td>
				</tr>
				<tr>
					<td style="HEIGHT: 10px" background="Images/menuback.png" bgColor="white" colspan="4"></td>
				</tr>
				<tr>
					<td style="HEIGHT: 1px" bgColor="white" colspan="4"><asp:label id="lblError" runat="server" ForeColor="Red" Font-Size="Medium" Font-Names="Verdana"
							Visible="False">Label</asp:label></td>
				</tr>
				<tr>
					<td class="Tab" style="HEIGHT: 23px" noWrap colspan="2"><asp:button id="btnGeneral" runat="server" CausesValidation="False" CssClass="TabButton" Text="Algemeen" onclick="btnGeneral_Click"></asp:button><asp:button id="btnMail" runat="server" CausesValidation="False" CssClass="TabButton" Text="Adreslijst" onclick="btnMail_Click"></asp:button><asp:button id="btnArchive" runat="server" CausesValidation="False" CssClass="TabButton" Text="Archieven" onclick="btnArchive_Click"></asp:button><asp:button id="btnTabReport" runat="server" CausesValidation="False" CssClass="TabButton" Text="Selectie" onclick="btnTabReport_Click"></asp:button><asp:button id="btnTabProfile" runat="server" CausesValidation="False" CssClass="TabButton"
							Text="Profiel" onclick="btnTabProfile_Click"></asp:button><asp:button id="btnField" runat="server" CausesValidation="False" CssClass="TabButton" Text="Velden" onclick="btnField_Click"></asp:button><asp:button id="btnAdmin" runat="server" CausesValidation="False" CssClass="TabButton" Text="Autorisatie" onclick="btnAdmin_Click"></asp:button><asp:button id="btnSkins" runat="server" Visible="False" CausesValidation="False" CssClass="TabButton"
							Text="Skins" onclick="btnSkins_Click"></asp:button><asp:button id="btnRoles" runat="server" CausesValidation="False" CssClass="TabButton" Text="Rollen" OnClick="btnRoles_Click" Visible="False"></asp:button><asp:button id="btnLookup" runat="server" CausesValidation="False" CssClass="TabButton" Text="Lookup" OnClick="btnLookups_Click" Visible="True"></asp:button><asp:button id="btnLookupValues" runat="server" CausesValidation="False" CssClass="TabButton" Text="Lookup waarden" OnClick="btnLookupValues_Click" Visible="True"></asp:button></td>
				</tr>
				<tr height="8">
					<td style="WIDTH: 200px"></td>
					<td></td>
				</tr>
				<tr height="2">
					<td style="WIDTH: 200px"><asp:label id="lblArchive" runat="server" CssClass="ItemLabel">Archief:</asp:label></td>
					<td><asp:dropdownlist id="dpArchive" runat="server" Width="200px" AutoPostBack="True" onselectedindexchanged="dpArchive_SelectedIndexChanged"></asp:dropdownlist>
						<asp:Button id="btnInitDB" runat="server" Text="Init Database" onclick="btnInitDB_Click"></asp:Button></td>
				</tr>
				<tr height="2">
					<td style="WIDTH: 200px; HEIGHT: 16px"><asp:label id="lblProfile" runat="server" CssClass="ItemLabel">Profiel:</asp:label></td>
					<td><asp:dropdownlist id="dpProfile" runat="server" Width="200px" AutoPostBack="True" onselectedindexchanged="dpProfile_SelectedIndexChanged"></asp:dropdownlist></td>
				</tr>
				<tr height="2">
					<td><asp:label id="lblAlachemyFields" runat="server" CssClass="ItemLabel">Alchemy velden:</asp:label></td>
					<td><asp:dropdownlist id="dpAlchemyFields" runat="server" Width="200px"></asp:dropdownlist><asp:button id="btnAddAlchemyField" runat="server" Text="Veld toevoegen" onclick="btnAddAlchemyField_Click"></asp:button></td>
				</tr>
				<tr height="2">
					<td style="WIDTH: 200px; HEIGHT: 15px"><asp:label id="lblSkins" runat="server" CssClass="ItemLabel">StyleSheets:</asp:label></td>
					<td style="HEIGHT: 15px"><asp:dropdownlist id="dpSkins" runat="server" Width="200px" AutoPostBack="True" onselectedindexchanged="dpSkins_SelectedIndexChanged"></asp:dropdownlist></td>
				</tr>
				<tr height="2">
					<td style="WIDTH: 200px"><asp:label id="lblLookup" runat="server" CssClass="ItemLabel">Lookup:</asp:label></td>
					<td><asp:dropdownlist id="dpLookup" runat="server" Width="200px" AutoPostBack="True" onselectedindexchanged="dpLookup_SelectedIndexChanged"></asp:dropdownlist></td>
				</tr>
				<tr height="5">
					<td colspan="2"><asp:imagebutton id="btnRefresh" runat="server" ImageUrl="~/Images/Refresh.png" CssClass="ImgButton"></asp:imagebutton><asp:imagebutton id="btnDocRouter" runat="server" ImageUrl="~/Images/DocRouter.png" CssClass="ImgButton"></asp:imagebutton><asp:imagebutton id="btnLogOut" runat="server" ImageUrl="~/Images/exit.png" CssClass="ImgButton"></asp:imagebutton>&nbsp;&nbsp;<asp:Image id="waitImg" runat="server" ImageUrl="~/Images/icon_wait.gif"></asp:Image></td>
				</tr>
				<tr height="8">
					<td></td>
					<td></td>
				</tr>
				<tr valign="top">
					<td colspan="2" height="2"><cc1:ccdynamicgrid id="CCDynamicGrid1" runat="server" onclicknew="CCDynamicGrid1_ClickNew" onclickdelete="CCDynamicGrid1_ClickDelete" onclicksaveedit="CCDynamicGrid1_ClickSaveEdit" onclicksavenew="CCDynamicGrid1_ClickSaveNew" onclickedit="CCDynamicGrid1_ClickEdit"></cc1:ccdynamicgrid></td>
				</tr>
				<tr height="6">
					<td></td>
					<td></td>
				</tr>
				<tr valign="top">
					<td colspan="2" height="2"><cc1:ccdynamicgrid id="CCDynamicGrid2" runat="server" onclicksaveedit="CCDynamicGrid2_ClickSaveEdit" onclickedit="CCDynamicGrid2_ClickEdit" Title="Profiel volgorde" Visible="False" OnClickDelete="CCDynamicGrid2_ClickDelete"></cc1:ccdynamicgrid></td>
				</tr>
				<tr>
					<td valign="top" colspan="2"><br />
						<asp:button id="btnAddDatabases" runat="server" Text="Alle databases toevoegen" onclick="btnAddDatabases_Click"></asp:button>
						<asp:button id="btnReloadAlchemy" runat="server" Text="Herlaadt Alchemy" onclick="btnReloadAlchemy_Click"></asp:button>
						<asp:button id="btnShowLicenses" runat="server" Text="Ongebruikte licenties" onclick="btnShowLicenses_Click"></asp:button>
						<asp:button id="btnPurgeProfiles" runat="server" Text="Opschonen Profielen" onclick="btnPurgeProfiles_Click"></asp:button></td>
				</tr>
				<tr>
					<td valign="top" colspan="2"><br />
						<asp:Label ID="lblHelp" runat="server" Text="" Width="100%" CssClass="ItemLabel"></asp:Label>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
