<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="CSEasyScriptSections.aspx.vb" Inherits="CSEasyScript.CSEasyScriptSections" %>
<%@ register tagprefix="ex" namespace="Exact.Web.UI.Controls" assembly="Exact.Web.UI.Controls" %>

<html>
<head>
	<meta name="save" content="history" />
	<link rel="stylesheet" type="text/css" href="Exact.css" />

    <script type="text/javascript">
		function ChangeActiveState(id) {
			SysSet('ChangeState', id);
			SysSubmit(1);
        }
    </script>
</head>
<body>

<ep:form id="frm" runat="server">
	<ex:InputField runat="server" ID="ChangeState" CreateClientControl="True" Hidden="True" ValidationAs="Guid" />

    <ex:CardControl runat="server" ID="Card" Action="Show">
		<ex:header runat="server" id="hdr" Caption="Easy Script" CaptionID="0" CaptionSuffix="-Sections" CaptionSuffixID="18537">
			<ex:headerbutton id="hbFavorite" buttonstyle="Favorite" />
			<ex:headerbutton id="hbExcel" buttonstyle="ExcelExport" />
			<ex:headerbutton id="hbPrint" buttonstyle="Printable" />
		</ex:header>

		<ex:headerproperties runat="server" id="hdrProps" headerpropertiesstyle="Custom" />

		<ex:buttonbar runat="server" id="btnBar">
			<ex:button runat="server" id="btnRefresh" buttonstyle="Refresh" buttontype="Submit" />
			<ex:button runat="server" id="btnNew" buttonstyle="AddNew" />
			<ex:button runat="server" id="btnClose" buttonstyle="Close" />
		</ex:buttonbar>

        <ex:bcerrormessages runat="server" id="errMsg" />

        <ex:cardrow runat="server" id="crFilter">
            <ex:cardcolumn runat="server" id="ccFilter1">
		        <ex:cardsection runat="server" id="csFilter1" caption="Filter" captionid="1378">
				    <ex:cardfield runat="server" id="cfFilterEnabled" caption="Enabled" captionid="9086">
                        <ex:combobox runat="server" id="FilterEnabled" validationas="int" allowempty="true">
                            <ex:listitem caption="Yes" captionid="1014" value="1" />
                            <ex:listitem caption="No" captionid="1015" value="0" />										
					    </ex:combobox> 
				    </ex:cardfield>
                    <ex:cardfield runat="server" id="cfFilterTitle" caption="Title" captionid="10189">
                        <ex:imagebuttonlist runat="server" id="FilterTitleOperator" appearance="Toggle" validationas="int" validationdefault="5" imageheight="">
					        <ex:listitem value="5" caption="Starts with" captionid="390" image="startwith.svg"  />
					        <ex:listitem value="6" caption="Contains" captionid="16440" image="wildcard.svg" />
					        <ex:listitem value="0" caption="Equal to" captionid="371" image="equalto.svg" />
				        </ex:imagebuttonlist>
					    <ex:inputfield runat="server" id="FilterTitle" />
				    </ex:cardfield>
                    <ex:cardfield runat="server" id="cfFilterModified" caption="Modified" captionid="53">
					    <ex:daterange runat="server" id="FilterModified" validationas="DateTime" ShowQuickSelect="True" />
				    </ex:cardfield>
                </ex:cardsection>
            </ex:cardcolumn>
			<ex:cardcolumn runat="server" id="ccFilter2">
		        <ex:cardsection runat="server" id="csFilter2" caption="Filter" captionid="1378">
					<ex:cardfield runat="server" id="cfFilterSectionType" caption="Type" captionid="3801">
                        <ex:combobox runat="server" id="FilterSectionType" allowempty="true">
                            <ex:listitem caption="Section" captionid="11133" value="S" />
                            <ex:listitem caption="Tab" captionid="15938" value="T" />
							<ex:listitem caption="Script" captionid="0" value="J" />
					    </ex:combobox> 
				    </ex:cardfield>
					<ex:cardfield runat="server" id="cfFilterTabPage" caption="Parent" captionid="275" CaptionSuffix=":Tab" CaptionSuffixID="0">
                        <ex:combobox runat="server" id="FilterTabPage" allowempty="true" />
				    </ex:cardfield>
					<ex:cardfield runat="server" id="cfFilterPage" caption="Page" captionid="8435">
                        <ex:combobox runat="server" id="FilterPage" allowempty="true" AutoPostBack="True" />
				    </ex:cardfield>
                </ex:cardsection>
            </ex:cardcolumn>
        </ex:cardrow>

        <ex:cardrow runat="server" id="crData">
            <ex:cardcolumn runat="server" id="ccData">
                <ex:cardlistview runat="server" id="csDefinitions" showheader="True" customizecolumns="False" customizerows="False">
	                <ex:listview runat="server" id="List" Caption="Sections" CaptionID="18537" onquery="List_OnQuery" ongetdata="List_OnGetData" showwaitmessage="True" DefaultSortColumn="colModified" DefaultSortDescending="True" Autopostback="True" enablesetting="true" ScrollBar="None" ShowPageSize="False">
                        <Columns>
				            <ex:listviewcolumn runat="server" id="colCaption" width="20%" caption="Title" captionid="10189" EnableSorting="True"/>
                            <ex:listviewcolumn runat="server" id="colDescription" width="20%" caption="Description" captionid="4243" EnableSorting="True"/>
							<ex:listviewcolumn runat="server" id="colPage" width="15%" caption="Page" captionid="8435" EnableSorting="True"/>
							<ex:listviewcolumn runat="server" id="colType" width="5%" caption="Type" captionid="3801" EnableSorting="True"/>
							<ex:listviewcolumn runat="server" id="colParent" width="10%" caption="Parent" captionid="275" CaptionSuffix=":Tab" CaptionSuffixID="0" EnableSorting="True"/>
                            <ex:listviewcolumn runat="server" id="colCriteria" width="10%" caption="Criteria" captionid="9822" EnableSorting="True"/>
				            <ex:listviewcolumn runat="server" id="colEnabled" width="5%" caption="Enabled" captionid="9086" EnableSorting="True"/>
							<ex:listviewcolumn runat="server" id="colFullRow" width="5%" caption="Row" captionid="2655" CaptionSuffix=":Complete" CaptionSuffixID="8471" EnableSorting="True"/>
                            <ex:listviewcolumn runat="server" id="colModified" captionid="53" caption="Modified" width="10%" EnableSorting="True" />
                        </Columns>
		            </ex:listview>
		            <ex:bcerrormessages runat="server" id="errNoDataFound" Mode="Notification" />
                </ex:cardlistview>
            </ex:cardcolumn>
        </ex:cardrow>
    </ex:CardControl>
</ep:form>

</body>
</html>