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

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

	<ep:form id="frm" runat="server">
        <ex:inputfield runat="server" id="Action" validationas="Int" validationdefault="0" hidden="true" />

        <ex:CardControl runat="server" ID="Card" Action="Show">

		    <ex:header runat="server" id="hdr" Caption="Easy Office365" CaptionID="0">
                <ex:headerbutton id="hbFavorite" buttonstyle="Favorite" />
            </ex:header>

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

		    <ex:buttonbar runat="server" id="btnBar">
			    <ex:button runat="server" id="btnClose" buttonstyle="Close" />
                <ex:button runat="server" id="btnEdit" buttonstyle="Custom" Caption="Edit" CaptionID="25319" onClick="SysSet('Action', '1'); SysSubmit(1);" />
                <ex:button runat="server" id="btnSave" buttonstyle="Custom" Caption="Save" CaptionID="24522" onClick="SysSet('Action', '2'); SysSubmit(1);" />
		    </ex:buttonbar>

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

            <ex:cardrow runat="server" id="cr">
                <ex:cardcolumn runat="server" id="cc2">
                    <ex:cardsection runat="server" id="csGeneral2" caption="General" captionid="8606">
					    <ex:cardfield runat="server" id="cfDisableEmail" caption="Active" captionid="2212">
						    <ex:checkbox runat="server" id="DisableEmail" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="csLogInfoEmail" caption="Log" captionid="218" CaptionSuffix=":Information" CaptionSuffixID="8642">
						    <ex:checkbox runat="server" id="LogInfoEmail" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="cfEmailDebugLog" caption="Log" captionid="218" CaptionSuffix=":Debug" CaptionSuffixID="0">
						    <ex:checkbox runat="server" id="EmailDebugLog" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="cfUsersEmail">
						    <ex:combobox runat="server" id="UsersEmail" AllowEmpty="True" />
					    </ex:cardfield>
                    </ex:cardsection>
                </ex:cardcolumn>
            </ex:cardrow>

            <ex:cardrow runat="server" id="cr2">
                <ex:cardcolumn runat="server" id="cc22">
                    <ex:cardsection runat="server" id="csExchangeConnectionEmail" caption="Connection" captionid="27055">
                        <ex:cardfield runat="server" id="cfTenantIdEmail" caption="tenantId" captionid="0">
                            <ex:inputfield runat="server" id="ExchangeConnectionTenantIdEmail" InputSize="50" />
                        </ex:cardfield>
					    <ex:cardfield runat="server" id="cfClientIdEmail" caption="clientId" captionid="0">
						    <ex:inputfield runat="server" id="ExchangeConnectionClientIdEmail" InputSize="50" />
					    </ex:cardfield>
                        <ex:cardfield runat="server" id="cfClientSecretEmail" caption="clientSecret" captionid="0">
                            <ex:inputfield runat="server" id="ExchangeConnectionClientSecretEmail" InputSize="50" />
                        </ex:cardfield>
                        <ex:cardfield runat="server" id="cfEmailDomainEmail" caption="E-mail domein" captionid="0">
                            <ex:inputfield runat="server" id="EmailDomainEmail" InputSize="25" />
                        </ex:cardfield>
                    </ex:cardsection>
                </ex:cardcolumn>
            </ex:cardrow>

            <ex:cardrow runat="server" id="cr3">
                <ex:cardcolumn runat="server" id="cc31">
                    <ex:cardsection runat="server" id="csGeneral" caption="Folder" captionid="36930">
					    <ex:cardfield runat="server" id="cfFolder" caption="Incoming email" captionid="35825">
						    <ex:InputField runat="server" ID="ifRootFolder" ReadOnly="True" /><ex:inputfield runat="server" id="Folder" InputSize="25" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="cfOutgoingEmailEnabled" caption="Outgoing email" captionid="35826" CaptionSuffix=":Active" CaptionSuffixID="2212">
						    <ex:checkbox runat="server" id="OutgoingEmailEnabled" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="cfFolderOutgoing" caption="Outgoing email" captionid="35826">
						    <ex:InputField runat="server" ID="ifRootFolderOutgoing" ReadOnly="True" /><ex:inputfield runat="server" id="FolderOutgoing" InputSize="25" />
					    </ex:cardfield>
                    </ex:cardsection>
                </ex:cardcolumn>
            </ex:cardrow>

            <ex:cardrow runat="server" id="cr4">
                <ex:cardcolumn runat="server" id="cc41">
                    <ex:cardlistview runat="server" id="csConfiguration" showheader="True" customizecolumns="False" customizerows="False">
	                    <ex:listview runat="server" id="lstConfiguration" Caption="Configuration" CaptionID="16797" onquery="lstConfiguration_OnQuery" ongetdata="lstConfiguration_OnGetData" showwaitmessage="True" ScrollBar="None" ShowPageSize="False">
                            <Buttons>
                                <ex:button runat="server" id="btnConfig" buttonstyle="Custom" Caption="Add" CaptionID="8343" CaptionSuffix=":Configuration" CaptionSuffixID="16797" navigateURL="CSEasyO365SettingsEmailConfig.aspx?BCAction=0" />
                            </Buttons>
                            <Columns>
                                <ex:listviewcolumn runat="server" id="colConfigDescription" caption="Description" captionid="4243" />
                                <ex:listviewcolumn runat="server" id="colConfigFolder" width="15%" caption="Folder" captionid="36930" />
                                <ex:listviewcolumn runat="server" id="colConfigMarkAsRead" width="5%" caption="Mark as read" captionid="43367" />
                                <ex:listviewcolumn runat="server" id="colConfigDocType" width="15%" caption="Document type" captionid="15829" />
                                <ex:listviewcolumn runat="server" id="colConfigAllowDuplicateDocuments" width="5%" caption="Allow" captionid="451" CaptionSuffix=":Duplicate" CaptionSuffixID="2183" />
                                <ex:listviewcolumn runat="server" id="colConfigUseReplies" width="5%" caption="Use" captionid="11227" CaptionSuffix=":Replies" CaptionSuffixID="308" />
                                <ex:listviewcolumn runat="server" id="colConfigRequestType" width="15%" caption="Request type" captionid="268" />
                                <ex:listviewcolumn runat="server" id="colConfigAllowDuplicateRequests" width="5%" caption="Allow" captionid="451" CaptionSuffix=":Duplicate" CaptionSuffixID="2183" />
                                <ex:listviewcolumn runat="server" id="colConfigUpdateDocumentInRequest" width="5%" caption="Document" captionid="7226" CaptionSuffix=":Update" CaptionSuffixID="1103" />
                                <ex:listviewcolumn runat="server" id="colConfigCreateRequest" width="5%" caption="Create" captionid="20180" />
                                <ex:listviewcolumn runat="server" id="colActive" width="5%" caption="Active" captionid="2212" />
                            </Columns>
		                </ex:listview>
		                <ex:bcerrormessages runat="server" id="errNoDataFound" Mode="Notification" />
                    </ex:cardlistview>
                </ex:cardcolumn>
            </ex:cardrow>

        </ex:CardControl>
	</ep:form>
</body>
</html>