<!-- 

	All content on this website (including text, images, source
	code and any other original works), unless otherwise noted,
	is licensed under a Creative Commons License.
	
	http://creativecommons.org/licenses/by-nc-sa/2.5/
	
	Copyright (C) Open-Xchange Inc., 2006-2011
	Mail: info@open-xchange.com 
	
	@author Jan Finsel <jan.finsel@open-xchange.com>

 -->

<div xmlns:ox="http://localhost/html/dtd/ox.dtd" id="config_mail" style="display: none;" ox:align="stretch">
	<div ox:align="top" ox:size="27px">
		<table cellpadding="0" cellspacing="0" border="0" class="headercontenttable border-color-design"> 
			<tr>
				<td id="cm_header" class="headercontentarea font-style-headline" style="width:100%">&#160;</td>
			</tr>
		</table>
	</div>
	<div ox:padding="0px 4px 8px 0px" ox:align="bottom" ox:size="1.6em" class="cpbottom-color smallpopupborderbottom border-color-design" />
	
	<div id="tabMailPanelsConfig" ox:align="top" ox:size="2.2em" ox:margin="0px 0px 1px 0px" class="cpbody-color tabPanelBackground background-color-additional-content border-color-design">
		<div id="tabMailConfigCommon" class="tabPanelFirst tabPanelColors font-color-disabled background-color-additional-content border-color-design font-weight-default" onClick="changeTab('contentMailConfigCommon','tabMailConfigCommon')"><span class="configurationCommonTab">&#xa0;</span><span ox:i18n="">Common</span></div>
		<div id="tabMailConfigCompose" class="tabPanel tabPanelColors font-color-disabled background-color-additional-content border-color-design font-weight-default" onClick="changeTab('contentMailConfigCompose','tabMailConfigCompose')">&#xa0;<span ox:i18n="">Compose</span></div>
		<div id="tabMailConfigDisplay" class="tabPanel tabPanelColors font-color-disabled background-color-additional-content border-color-design font-weight-default" onClick="changeTab('contentMailConfigDisplay','tabMailConfigDisplay')">&#xa0;<span ox:i18n="">Display</span></div>
		<div class="cleaner"></div>
	</div>
	
	<div id="contentMailConfig" ox:align="stretch" style="overflow: auto; overflow-x: hidden;" class="cpbody-color">
	
		<!-- E-Mail Content Common -->
		<div id="contentMailConfigCommon" style="overflow-y: auto; overflow-x: hidden;">
			<br />
			<table style="width: 100%; table-layout: fixed">
				<colgroup valign="top" align="left">
					<col width="38%" />
					<col width="62%" />
				</colgroup>
				<tr>
					<td ox:i18n="" class="height16 paddingleft20px">Default view:</td>
					<td>
						<div style="width:22em;" id="cm_default_level1"></div> 
					</td>
				</tr>
				<tr id="cm_default_level2_parent" style="display: none">
					<td ox:i18n="" class="height16 paddingleft20px">Default view for Spam folder:</td>
					<td>
						<div style="width:22em;" id="cm_default_level2"></div> 
					</td>
				</tr>
				<tr>
					<td ox:i18n="" class="height16 paddingleft20px">Enable E-Mail Hover?</td>
					<td>
						<table cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td><input id="cm_enablehovermail:1" type="radio" class="noborder" name="cm_enablehovermail" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="1" checked="checked"/></td>
								<td ox:i18n="" class="padding7px">Yes</td>
								<td class="paddingLeft7px"><input id="cm_enablehovermail:0" type="radio" class="noborder" name="cm_enablehovermail" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="0"/></td>
								<td class="padding7px" ox:i18n="">No</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr id="cm_emailSelectFirstMessage">
                       <td class="height16 paddingleft20px" ox:i18n="">Automatically select first E-Mail?</td>
                       <td>
                           <table cellpadding="0" cellspacing="0" border="0">
                               <tr>
                                   <td><input id="cm_emailSelectFirstMessage:1" type="radio" class="noborder" name="cm_emailSelectFirstMessage" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="1" checked="checked"/></td>
                                   <td ox:i18n="" class="padding7px">Yes</td>
                                   <td class="paddingLeft7px"><input id="cm_emailSelectFirstMessage:0" type="radio" class="noborder" name="cm_emailSelectFirstMessage" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="0"/></td>
                                   <td class="padding7px" ox:i18n="">No</td>
                               </tr>
                           </table>
                       </td>
                   </tr>		
				<tr>
					<td class="height16 paddingleft20px" ox:i18n="">Permanently remove deleted E-Mails?</td>
					<td>
						<table cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td><input id="cm_deletemail:1" type="radio" class="noborder" name="cm_deletemail" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="1" checked="checked"/></td>
								<td ox:i18n="" class="padding7px">Yes</td>
								<td class="paddingLeft7px"><input id="cm_deletemail:0" type="radio" class="noborder" name="cm_deletemail" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="0"/></td>
								<td class="padding7px" ox:i18n="">No</td>
							</tr>
						</table>
					</td>
				</tr>
	 			<tr>
					<td ox:i18n="" class="height16 paddingleft20px">Notify on delivery receipt?</td>
					<td>
						<table cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td><input id="cm_notifyacknoledge:1" type="radio" class="noborder" name="cm_notifyacknoledge" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="1" checked="checked"/></td>
								<td ox:i18n="" class="padding7px">Yes</td>
								<td class="paddingLeft7px"><input id="cm_notifyacknoledge:0" type="radio" class="noborder" name="cm_notifyacknoledge" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="0"/></td>
								<td class="padding7px" ox:i18n="">No</td>
							</tr>
						</table>
					</td>
				</tr>
                <tr>
                    <td ox:i18n="" class="height16 paddingleft20px">Show sender image?</td>
                    <td>
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td><input id="cm_showimage:1" type="radio" class="noborder" name="cm_showimage" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="1" checked="checked"/></td>
                                <td ox:i18n="" class="padding7px">Yes</td>
                                <td class="paddingLeft7px"><input id="cm_showimage:0" type="radio" class="noborder" name="cm_showimage" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="0"/></td>
                                <td class="padding7px" ox:i18n="">No</td>
                            </tr>
                        </table>
                    </td>
                </tr>

                   <tr id="cm_emailCollectionContent0">
                       <td style="width: 30em; vertical-align: top; padding-top: 1.6em;" class="height16 paddingleft20px font-color-default font-weight-high font-style-low" colspan="3" id="cm_emailCollection_text">&#160;</td>
                   </tr>
				<tr id="cm_emailCollectionContent1" style="display: none">
                    <td class="height16 paddingleft20px" ox:i18n="">Collect while sending E-Mails?</td>
                    <td>
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td><input id="cm_contactCollectOnMailTransport:1" type="radio" class="noborder" name="cm_contactCollectOnMailTransport" onclick="triggerEvent('OX_Configuration_Settings_Changed_Modules')" value="1" checked="checked"/></td>
                                <td ox:i18n="" class="padding7px">Yes</td>
                                <td class="paddingLeft7px"><input id="cm_contactCollectOnMailTransport:0" type="radio" class="noborder" name="cm_contactCollectOnMailTransport" onclick="triggerEvent('OX_Configuration_Settings_Changed_Modules')" value="0"/></td>
                                <td class="padding7px" ox:i18n="">No</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr id="cm_emailCollectionContent2" style="display: none">
                       <td class="height16 paddingleft20px" ox:i18n="">Collect while reading E-Mails?</td>
                       <td>
                           <table cellpadding="0" cellspacing="0" border="0">
                               <tr>
                                   <td><input id="cm_contactCollectOnMailAccess:1" type="radio" class="noborder" name="cm_contactCollectOnMailAccess" onclick="triggerEvent('OX_Configuration_Settings_Changed_Modules')" value="1" checked="checked"/></td>
                                   <td ox:i18n="" class="padding7px">Yes</td>
                                   <td class="paddingLeft7px"><input id="cm_contactCollectOnMailAccess:0" type="radio" class="noborder" name="cm_contactCollectOnMailAccess" onclick="triggerEvent('OX_Configuration_Settings_Changed_Modules')" value="0"/></td>
                                   <td class="padding7px" ox:i18n="">No</td>
                               </tr>
                           </table>
                       </td>
                   </tr>	                
			</table>
		</div>
	</div>
	
	<!-- E-Mail Content Compose -->
	<div id="contentMailConfigCompose" ox:align="stretch" style="overflow-y: auto; overflow-x: hidden; display:none" class="cpbody-color">
		<br />
		<table style="width: 100%; table-layout: fixed">
			<colgroup valign="top" align="left">
				<col width="38%" />
				<col width="62%" />
			</colgroup>			
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Insert the original E-Mail text to a reply?</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td><input id="cm_appendmailtext:1" type="radio" class="noborder" name="cm_appendmailtext" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="1" checked="checked"/></td>
							<td ox:i18n="" class="padding7px">Yes</td>
							<td class="paddingLeft7px"><input id="cm_appendmailtext:0" type="radio" class="noborder" name="cm_appendmailtext" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="0"/></td>
							<td class="padding7px" ox:i18n="">No</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Append vcard?</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td><input id="cm_appendvcard:1" type="radio" class="noborder" name="cm_appendvcard" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="1" checked="checked"/></td>
							<td ox:i18n="" class="padding7px">Yes</td>
							<td class="paddingLeft7px"><input id="cm_appendvcard:0" type="radio" class="noborder" name="cm_appendvcard" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="0"/></td>
							<td class="padding7px" ox:i18n="">No</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Enable auto completion of E-Mail addresses?</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td><input id="cm_autocomplete:1" type="radio" class="noborder" name="cm_autocomplete" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="1" checked="checked"/></td>
							<td ox:i18n="" class="padding7px">Yes</td>
							<td class="paddingLeft7px"><input id="cm_autocomplete:0" type="radio" class="noborder" name="cm_autocomplete" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="0"/></td>
							<td class="padding7px" ox:i18n="">No</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Forward E-Mails as:</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td><input id="cm_forwardmessage:1" type="radio" class="noborder" name="cm_forwardmessage" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="Inline" checked="checked"/></td>
							<td ox:i18n="" class="padding7px">Inline</td>
							<td class="paddingLeft7px"><input id="cm_forwardmessage:0" type="radio" class="noborder" name="cm_forwardmessage" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="Attachment"/></td>
							<td class="padding7px" ox:i18n="">Attachment</td>
						</tr>
					</table>
				</td>
			</tr>
			

			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">When "Reply all":</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td><input id="cm_replyallcc:0" type="radio" class="noborder" name="cm_replyallcc" onclick="triggerEvent('OX_Configuration_Settings_Changed_Modules')" value="0" checked="checked"/></td>
							<td ox:i18n="" class="padding7px">Add sender and recipients to "To", Cc to "Cc"</td>
							<td class="paddingLeft7px"><input id="cm_replyallcc:1" type="radio" class="noborder" name="cm_replyallcc" onclick="triggerEvent('OX_Configuration_Settings_Changed_Modules')" value="1"/></td>
							<td class="padding7px" ox:i18n="">Add sender to "To", recipients to "Cc"</td>
						</tr>
					</table>
				</td>
			</tr>
			
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Format E-Mails as:</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td><input id="cm_formatmessage:1" type="radio" class="noborder" name="cm_formatmessage" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="TEXT/HTML" checked="checked"/></td>
							<td ox:i18n="" class="padding7px">HTML</td>
							<td class="paddingLeft7px"><input id="cm_formatmessage:0" type="radio" class="noborder" name="cm_formatmessage" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="TEXT/PLAIN"/></td>
							<td class="padding7px" ox:i18n="">Plain text</td>
							<td class="paddingLeft7px"><input id="cm_formatmessage:2" type="radio" class="noborder" name="cm_formatmessage" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="ALTERNATIVE"/></td>
							<td class="padding7px" ox:i18n="">HTML and plain text</td>
						</tr>
					</table>
				</td>
			</tr>
			
               <tr>
                   <td ox:i18n="" class="height16 paddingleft20px">Editor feature set:</td>
                   <td>
                       <div style="width:30em;" id="cm_editor_featureset"></div> 
                   </td>
               </tr>

			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Default E-Mail font?</td>
				<td>
					<div style="width:30em;" id="cm_default_mail_font"></div> 
				</td>
			</tr>		
			
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Default E-Mail font size?</td>
				<td>
					<div style="width:10em;" id="cm_default_mail_font_size"></div> 
				</td>
			</tr>	
			
			<tr>
				<td class="height16 paddingleft20px" ox:i18n="">Line wrap after:</td>
		       	<td style="width: 19em;white-space:nowrap">
       				<div style="width: 4em;float:left"><input id="cm_linewrap" type="text" name="cm_linewrap" style="width:100%" onchange="cm_linewrap_changed()"/></div>
					<div ox:i18n="" style="width: 8em;float:left;padding-left:7px">characters</div>
				</td>
			</tr>
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Default sender address:</td>
				<td>
					<div style="width:30em;" id="cm_default_sendaddress"></div> 
				</td>
			</tr>
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Auto-save E-Mail drafts?</td>
				<td>
					<div style="width:30em;" id="cm_auto_save_mail_drafts"></div> 
				</td>
			</tr>
		</table>
	</div>
	
	<!-- E-Mail Content Display -->
	<div id="contentMailConfigDisplay" ox:align="stretch" style="overflow-y: auto; overflow-x: hidden; display:none" class="cpbody-color">
		<br />
		<table style="width: 100%; table-layout: fixed">
			<colgroup valign="top" align="left">
				<col width="38%" />
				<col width="62%" />
			</colgroup>			
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Allow html formatted E-Mails?</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td><input id="cm_inlineattachments:1" type="radio" class="noborder" name="cm_inlineattachments" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="1" checked="checked"/></td>
							<td ox:i18n="" class="padding7px">Yes</td>
							<td class="paddingLeft7px"><input id="cm_inlineattachments:0" type="radio" class="noborder" name="cm_inlineattachments" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="0"/></td>
							<td class="padding7px" ox:i18n="">No</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Block pre-loading of externally linked images?</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td><input id="cm_preloadimages:1" type="radio" class="noborder" name="cm_preloadimages" onclick="triggerEvent('OX_Configuration_Settings_Changed_Modules')" value="0" checked="checked"/></td>
							<td ox:i18n="" class="padding7px">Yes</td>
							<td class="paddingLeft7px"><input id="cm_preloadimages:0" type="radio" class="noborder" name="cm_preloadimages" onclick="triggerEvent('OX_Configuration_Settings_Changed_Modules')" value="1"/></td>
							<td class="padding7px" ox:i18n="">No</td>
						</tr>
					</table>
				</td>
			</tr>				
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Display emoticons as graphics?</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td><input id="cm_emoticons:1" type="radio" class="noborder" name="cm_emoticons" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="1" checked="checked"/></td>
							<td ox:i18n="" class="padding7px">Yes</td>
							<td class="paddingLeft7px"><input id="cm_emoticons:0" type="radio" class="noborder" name="cm_emoticons" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="0"/></td>
							<td class="padding7px" ox:i18n="">No</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td ox:i18n="" class="height16 paddingleft20px">Color quoted lines:</td>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td><input id="cm_colorquoted:1" type="radio" class="noborder" name="cm_colorquoted" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="1" checked="checked"/></td>
							<td ox:i18n="" class="padding7px">Yes</td>
							<td class="paddingLeft7px"><input id="cm_colorquoted:0" type="radio" class="noborder" name="cm_colorquoted" onclick="triggerEvent('OX_Configuration_Settings_Changed_Mail')" value="0"/></td>
							<td class="padding7px" ox:i18n="">No</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
                   <td ox:i18n="" class="height16 paddingleft20px">Show name instead of mail address:</td>
                   <td>
                       <table cellpadding="0" cellspacing="0" border="0">
                           <tr>
                               <td><input id="cm_showname:1" type="radio" class="noborder" name="cm_showname" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="1" checked="checked"/></td>
                               <td ox:i18n="" class="padding7px">Yes</td>
                               <td class="paddingLeft7px"><input id="cm_showname:0" type="radio" class="noborder" name="cm_showname" onclick="triggerEvent('OX_Configuration_Settings_Changed_GUI')" value="0"/></td>
                               <td class="padding7px" ox:i18n="">No</td>
                           </tr>
                       </table>
                   </td>
               </tr>
		</table>			
	</div>
</div>