<%@page info="vacation settings" language="java" pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %>
<%@taglib uri="/WEB-INF/jato.tld" prefix="jato" %>

<%@include file="/uwc/js/resourceBundleUtils.js"%>

<jato:useViewBean className="com.sun.uwc.MailPreferencesLayoutViewBean">
<HTML>
<HEAD>
<TITLE><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-global-title" defaultValue="Sun&#153;ONE Affinity - Options - Mail"/></TITLE>
<SCRIPT language="JavaScript" src="../uwc/js/scripts.js"></SCRIPT>
<SCRIPT src="../uwc/js/browserVersion.js" ></SCRIPT>
<script src="../uwc/js/uwcUtils.js" type="text/javascript"> </script>
<SCRIPT >
  if (is_ie5up) // IE5
  {
   document.write('<LINK href=<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="skinModel" lookInSession="true" name="Style-Sheet-IE" defaultValue="../uwc/css/css_ie5win.css"/> type=text/css rel=stylesheet>')
  }
  else if (is_gecko) // Netscape 6/7 or Mozilla
  {
   document.write('<LINK href=<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="skinModel" lookInSession="true" name="Style-Sheet-NN" defaultValue="../uwc/css/css_ns6up.css"/> type=text/css rel=stylesheet>')
  }
  else  // All others
  {
   document.write('<LINK href=<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="skinModel" lookInSession="true" name="Style-Sheet-NN" defaultValue="../uwc/css/css_ns6up.css"/> type=text/css rel=stylesheet>')
  }

var dirtyCache = 0;

  function setDirtyCache() {
    dirtyCache = 1;
  }
  
function unloadPage() {
    if(0 != dirtyCache) {
      if(UWCConfirm("<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-save-page" defaultValue="Save changes you made in this tabbed pane?"/>")) {
        document.forms[0].submit();
      }
    }
  }
  


</SCRIPT>
</HEAD>

<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="Page" >
<jato:form name="MailPreferencesLayout" method="post" >

<!-- Pagelet for branding -->
  <jato:containerView name="MasterHead">
    <%@include file="/uwc/common/MasterHeadNormal.jsp"%>
  </jato:containerView>
  <%@include file="/uwc/common/OptionsApplBarPagelet.jsp"%>
<!-- Secondary Row of Tabs -->
<div class="Tab2">
<TABLE border="0" cellspacing="0" cellpadding="0" class="Tab2Tbl" width="100%" summary="Table that contains the Calendar View Tabs">
  <tr> 
    <td colspan="13"><img src="../uwc/images/spacer.gif" width="1" height="10" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td colspan="5" class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td colspan="5"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
  </tr>
  <tr>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td class="Tab2NotSel"> 
        <div class="Tab2NotSel"><a title='<%=getLocalizedLabel(session, "uwc-common-tooltip-global", "Global Option")%>' href="<%= getContextURI(request) %>/base/UserPreferencesSettings" class="TabLblNormal" onMouseOver="return true;" onMouseOut="status=';'" target="_parent"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-global" defaultValue="Global"/></a> 
        </div>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td class="Tab2Sel"><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td class="Tab2Sel"> 
      <DIV class="Tab2Sel"><SPAN class="TabLblSel" title="<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-tooltip-mail" defaultValue="Mail Options"/>"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-mail" defaultValue="Mail"/></span></div>
    </td>
    <td class="Tab2Sel"><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
   <jato:content name="CalendarTab">
      <td nowrap><div class="Tab2NotSel"><A title="<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-tooltip-calendar" defaultValue="Calendar Options"/>" href="<%= getContextURI(request) %>/base/CalendarPreferences" class="TabLblNormal" onMouseOver="return true;" onMouseOut="status=';'" target="_parent"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-calendar" defaultValue="Calendar"/></a></div></td>
      <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
</jato:content>
    <td width="90%"> 
      <div class="Tab2NotSel"><A title="<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-tooltip-addressbook" defaultValue="Address Book Options"/>" href="<%= getContextURI(request) %>/base/ABPreferences" class="TabLblNormal" onMouseOver="status='Address Book Options'; return true;" onMouseOut="status=';'" target="_parent"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-addressbook" defaultValue="Address Book"/></a></div>
           </td>
  </tr>
  <tr> 
    <td class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td colspan="3" class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td colspan="3" class="Tab2Sel"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td colspan="5" class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
  </tr>
</table>
</div>
<!-- Third Level of Tabs -->
<div class="Tab3"> 
<table class="Tab3Tbl" width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <tr>
    <td><img src="../uwc/images/spacer.gif" width=1 height=10 alt=""></td>
  </tr>
</table>
<table class="Tab3Tbl" border="0" cellspacing="0" cellpadding="0" title="">
  <tr> 
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
      <td>
      <div class="Tab3"><a href="<%= getContextURI(request) %>/base/MailPreferencesPersonal" class="TabLblNormal" title="<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-tooltip-personal" defaultValue="Personal Information"/>"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-personal" defaultValue="Personal Information"/></a></div> 
       </td>
    <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
    <td>
    <div class="Tab3"><a href="<%= getContextURI(request) %>/base/MailPreferencesSettings" class="TabLblNormal" title="<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-tooltip-settings" defaultValue="Settings"/>"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-settings" defaultValue="Settings"/></a></div> 
      </td>
    <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
    <td> 
    <div class="Tab3"><span class="TabLblSel" title="<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-tooltip-layout" defaultValue="Layout"/>"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout" defaultValue="Layout"/></span></div>
    </td>
        <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
    <td> 
      <div class="Tab3"><a href="<%= getContextURI(request) %>/base/MailPreferencesVacation" class="TabLblNormal" title="<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-tooltip-vacation" defaultValue="Vacation"/>"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-vacation" defaultValue="Vacation"/></a></div> 
    </td>
    <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
     <td> 
      <div class="Tab3"><a href="<%= getContextURI(request) %>/base/MailPreferencesSieve" class="TabLblNormal" title="<jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-tooltip-seieve" defaultValue="Mail Filters"/>"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-sieve" defaultValue="Mail Filters"/></a></div> 
	</td>
  </tr>
</table>
</div>
<!-- Error information pagelet -->
   <jato:containerView name="errorPlugin">
        <%@include file="/uwc/common/error.jsp"%>
   </jato:containerView> 
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD colspan="4">&nbsp;</TD>
  </TR>
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
      <TD width="100%"><SPAN class="TtlTxt"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-title" defaultValue="Options - Mail Layout" /></SPAN></TD>
      <TD align="right">&nbsp;</TD>
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
  </TR>
</TABLE>
<!-- Horizontal Top/Bottom of Page Line -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
    <TD class="TtlLin" width="100%"><IMG src="../uwc/images/spacer.gif" width="1" height="1" alt=""></TD>
  </TR>
</TABLE>
<!-- Form fill-in -->
<table class="FormInputTableOptions" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD colspan="2"><IMG src="../uwc/images/spacer.gif" width="1" height="15" alt=""></TD>
  </TR>
  <tr> 
    <td class="PropLabel"><span class="Lbl2"><label for="messagesPerPage"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-viewsize-heading" defaultValue="Messages per Page" />:</label></span></td>
    <td class="PropInput"> 
     <jato:combobox name="messagesPerPage" onChange="setDirtyCache()" />
    </td>
  </tr>
  <tr>
    <td class="PropLabel" valign="top"><span class="Lbl2"><label for="sortOrder"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-sortorder-heading" defaultValue="Sort Order" />:</label></span></td>
    <td class="PropInput"><label for="draftMessages"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-sortorder-desc" defaultValue="Messages sorted by" />:</label> 
      <jato:combobox name="sortOrder" onChange="setDirtyCache()" />
    </td>
  </tr>
  <tr> 
    <td class="PropLabel" valign="top"><span class="Lbl2"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-displaycolumns-heading" defaultValue="Columns to Display" />:</span></td>
    <td class="PropInput"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-displaycolumns-desc" defaultValue="Select columns to display in the Inbox, Drafts, Trash, all Personal Folders" />:</td>
  </tr>
  <tr> 
    <td class="PropLabel" valign="top">&nbsp;</td>
    <td class="PropInput"> 
      <table border="0" cellspacing="0" cellpadding="0" title="">
        <tr> 
          <td class="PropLabel"><span class="Lbl3"><label for="column1"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-displaycolumn-0" defaultValue="Column 1" />:</label></span></td>
          <td class="PropInput"> <jato:combobox name="column1" onChange="setDirtyCache()" /></td>
        </tr>
        <tr> 
          <td class="PropLabel"><span class="Lbl3"><label for="column2"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-displaycolumn-1" defaultValue="Column 2" />:</label></span></td>
          <td class="PropInput"> <jato:combobox name="column2" onChange="setDirtyCache()" /></td>
        </tr>
        <tr> 
          <td class="PropLabel"><span class="Lbl3"><label for="column3"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-displaycolumn-2" defaultValue="Column 3" />:</label></span></td>
          <td class="PropInput"><jato:combobox name="column3" onChange="setDirtyCache()" /></td>
        </tr>
        <tr> 
          <td class="PropLabel"><span class="Lbl3"><label for="column4"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-displaycolumn-3" defaultValue="Column 4" />:</label></span></td>
          <td class="PropInput"><jato:combobox name="column4" onChange="setDirtyCache()" /></td>
        </tr>
        <tr> 
          <td class="PropLabel"><span class="Lbl3"><label for="column5"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-displaycolumn-4" defaultValue="Column 5" />:</label></span></td>
          <td class="PropInput"> <jato:combobox name="column5" onChange="setDirtyCache()" /></td>
        </tr>
        <tr> 
          <td class="PropLabel"><span class="Lbl3"><label for="column6"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-displaycolumn-5" defaultValue="Column  6" />:</label></span></td>
          <td class="PropInput"> <jato:combobox name="column6" onChange="setDirtyCache()" /></td>
        </tr>
        <tr>
          <td class="PropLabel"><span class="Lbl3"><label for="column7"><jato:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout-displaycolumn-6" defaultValue="Column  7" />:</label></span></td>
          <td class="PropInput"> <jato:combobox name="column7" onChange="setDirtyCache()" /></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<!-- Spacer -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="1" height="20" alt=""></TD>
  </TR>
</TABLE>
<!-- Horizontal Top/Bottom of Page Line -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
    <TD class="TtlLin" width="100%"><IMG src="../uwc/images/spacer.gif" width="1" height="1" alt=""></TD>
  </TR>
</TABLE>
<!-- Bottom of Page Buttons -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD colspan="3"><IMG src="../uwc/images/spacer.gif" width="1" height="5" alt=""></TD>
  </TR>
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
    <TD align="right" width="100%"> 
     <jato:button styleClass="Btn1"  name="Save" defaultValue=" Save " onClick="dirtyCache=0;" onFocus="if (this.disabled==0) this.className='Btn1Hov'" onMouseOver="if (this.disabled==0) this.className='Btn1Hov'" onMouseOut="if (this.disabled==0) this.className='Btn1'" onBlur="if (this.disabled==0) this.className='Btn1'" tabIndex="18" extraHtml='<%= getTitleForExtraHtml(session, "uwc-mail-options-save-tooltip","Save Changes to  Mail Options") %>' />
    </TD>
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
  </TR>
</TABLE>
<!-- Spacer -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="1" height="20" alt=""></TD>
  </TR>
</TABLE>
</jato:form>
</BODY>
</HTML>
</jato:useViewBean>
