<html>

<%@page info="Events" 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"%>
<script src="../uwc/js/uwcUtils.js" type="text/javascript"> </script><noscript></noscript>

<jato:useViewBean className="com.sun.uwc.calclient.EventsViewBean">

<head>
<title><%= getLocalizedLabel(session, "uwc-calclient-events-title", "Events - Sun&#153;ONE Unified Messaging Client") %></title>

<script src="../uwc/js/browserVersion.js" type="text/javascript"> </script><noscript></noscript>
<script src="../uwc/js/scripts.js" type="text/javascript"> </script><noscript></noscript>
<script src="../uwc/js/uwcUtils.js" type="text/javascript"> </script><noscript></noscript>
<script src="../uwc/js/date_utils.js" type="text/javascript"> </script><noscript></noscript>
<script type="text/javascript">
//<!--
  if (is_ie5up) // IE5
  {
   document.write("<LINK href=<%= getLocalizedLabel(session, "skinModel", "Style-Sheet-IE", "../uwc/css/css_ie5win.css") %> type=text/css rel=stylesheet>")
  }
  else if (is_gecko) // Netscape 6/7 or Mozilla
  {
   document.write("<LINK href=<%= getLocalizedLabel(session, "skinModel", "Style-Sheet-NN", "../uwc/css/css_ns6up.css") %> type=text/css rel=stylesheet>")
  }
  else  // All others
  {
   document.write("<LINK href=<%= getLocalizedLabel(session, "skinModel", "Style-Sheet-NN", "../uwc/css/css_ns6up.css") %> type=text/css rel=stylesheet>")
  }
//-->
</script><noscript></noscript>
</head>

<script>
<!--

  var dirtyCache = 0;
  var doNotShowSaveConfirmAlert = 0;

  function setDirtyCache() {
    dirtyCache = 1;
  }

  function setDoNotShowSaveConfirmAlert() {
    doNotShowSaveConfirmAlert = 1;
  }

  function handleGo() {
    var monthOptions = document.EventsInputForm.elements["monthSelect"].options;
    var theMonth = monthOptions.selectedIndex;
    var theDay = document.EventsInputForm.elements["daySelect"].value;
    var theYear = document.EventsInputForm.elements["yearSelect"].value;
 
    if(false == isValidDate(theDay ,theMonth, theYear)) {
      UWCAlert('<%= getLocalizedLabel(session, "uwc-calclient-events-invalid-date", "Invalid dates selected in events View section!") %>');
      return false;
    }
 
    return true;
  }

  function handleFilterSelection(){

    var monthOptions = document.EventsInputForm.elements["monthSelect"].options;
    var theMonth = monthOptions.selectedIndex;
    var theDay = document.EventsInputForm.elements["daySelect"].value;
    var theYear = document.EventsInputForm.elements["yearSelect"].value;
    if(false == isValidDate(theDay ,theMonth, theYear)) {
      UWCAlert('<%= getLocalizedLabel(session, "uwc-calclient-events-invalid-date", "Invalid dates selected in events View section!") %>');
      return false;
    }
    document.EventsInputForm.elements["GoButton"].click();  
  }

  function handleBackDate() {
    document.EventsInputForm.submitType.value = "BackDate";
    document.EventsInputForm.elements["GoButton"].click();  
  }

  function handleForwardDate() {
    document.EventsInputForm.submitType.value = "ForwardDate";
    document.EventsInputForm.elements["GoButton"].click(); 
  }

  function getDeleteConfirm() {
    if(false == isAnyEventsExists()) {
      UWCAlert("<%= getLocalizedLabel(session, "uwc-calclient-events-alertMessage-NoeventsExistsToDelete", "No events exists - Nothing to delete!") %>");
      return false;
    }
    if(false == isAnyEventsSelected()) {
      UWCAlert("<%= getLocalizedLabel(session, "uwc-calclient-events-alertMessage-SelectEventsToDelete", "Please select some events to delete!") %>");
      return false;
    }
    return UWCConfirm("<%= getLocalizedLabel(session, "uwc-calclient-events-DeleteEventsConfirmQuestion", "Are you sure you want to delete the selected events?") %>");
  }

  function getSaveConfirm() {
    setDoNotShowSaveConfirmAlert();
    if(false == isAnyEventsExists()) {
      UWCAlert("<%= getLocalizedLabel(session, "uwc-calclient-events-alertMessage-NoEventsExistsToSave", "No events exists - Nothing to save!") %>");
      return false;
    }
    if(1 == dirtyCache) {
      return UWCConfirm("<%= getLocalizedLabel(session, "uwc-calclient-events-SaveEventsConfirmQuestion", "Are you sure you want to save the changed events?") %>");
    }
    else {
      UWCAlert("<%= getLocalizedLabel(session, "uwc-calclient-events-alertMessage-NoEventsChangedToSave", "No events changed - Nothing to save!") %>");
      return false;
    }
  }

  function unloadPage() {
    if(0 == doNotShowSaveConfirmAlert) {
      if((isAnyEventsExists()) && (1 == dirtyCache)) {
        document.EventsInputForm.elements["Events.Save"].click();
      }
    }
  }

  function handleEnter(event) {
    if(is_ie5up) {
      if(13 == event.keyCode) {
        document.EventsInputForm.elements["search"].click();
        return false;
      }
    }
    else {
      if(13 == event.which) {
        document.EventsInputForm.elements["search"].click();
        return false;
      }
    }

    return true;
  }


  function handleSearch() {
    document.EventsInputForm.EnableSearchMode.value = "true";

    var inputText = document.EventsInputForm.elements["Events.SearchText"].value;
    if((null == inputText) || ("" == trim(inputText))) {
      return UWCConfirm("<%= getLocalizedLabel(session, "uwc-calclient-events-BlankSearchTextConfirmQuestion", "The search text entered by you is blank. Are you sure you want to proceed with searching the events?") %>");
    }

    return true;
  }

  function handleSave() {
    document.EventsInputForm.elements["Events.Save"].click();
  }

  function isAnyEventsExists() {
    var elementArray = document.EventsInputForm.elements;
    for(var i=0; i < elementArray.length; i++) 
    {
      if("checkbox" == elementArray[i].type) {
        if(-1 != elementArray[i].name.indexOf("SelectEvent")) {
          return true;
        }
      }
    }
    return false;
  }

  function isAnyEventsSelected() {
    var elementArray = document.EventsInputForm.elements;
    for(var i=0; i < elementArray.length; i++) 
    {
      if("checkbox" == elementArray[i].type) {
        if(-1 != elementArray[i].name.indexOf("SelectEvent")) {
          if(elementArray[i].checked) {
            return true;
          }
        }
      }
    }
    return false;
  }

  function selectEvents(isChecked) {
    var elementArray = document.EventsInputForm.elements;
    for(var i=0; i < elementArray.length; i++) 
    {
      if("checkbox" == elementArray[i].type) {
        if(-1 != elementArray[i].name.indexOf("SelectEvent")) {
          elementArray[i].checked = isChecked;
        }
      }
    }
  }

  var SORT_CRITERIA_TITLE_ASCENDING = "TitleAscending";
  var SORT_CRITERIA_TITLE_DECENDING = "TitleDescending";
  var SORT_CRITERIA_START_DATE_ASCENDING = "StartDateAscending";
  var SORT_CRITERIA_START_DATE_DECENDING = "StartDateDescending";
  
  function getSortCriteria() {
    var sortCriteria = document.EventsInputForm.elements["Events.SortCriteria"].value;
    sortCriteria = trim(sortCriteria);
    return sortCriteria;
  }

  function setSortCriteria(theCriteria) {
    theCriteria = trim(theCriteria);
    document.EventsInputForm.elements["Events.SortCriteria"].value = theCriteria;
  }

  
  function titleSort() {
    var sortCriteria = getSortCriteria();
    if(SORT_CRITERIA_TITLE_DECENDING == sortCriteria) {
      setSortCriteria(SORT_CRITERIA_TITLE_ASCENDING);
    }
    else if(SORT_CRITERIA_TITLE_ASCENDING == sortCriteria) {
      setSortCriteria(SORT_CRITERIA_TITLE_DECENDING);
    }
    else {
      setSortCriteria(SORT_CRITERIA_TITLE_ASCENDING);
    }
    document.EventsInputForm.submitType.value = "Sorting";
    document.EventsInputForm.elements["GoButton"].click();  
  }

  function startDateSort() {
    var sortCriteria = getSortCriteria();
    if(SORT_CRITERIA_START_DATE_DECENDING == sortCriteria) {
      setSortCriteria(SORT_CRITERIA_START_DATE_ASCENDING);
    }
    else if(SORT_CRITERIA_START_DATE_ASCENDING == sortCriteria) {
      setSortCriteria(SORT_CRITERIA_START_DATE_DECENDING);
    }
    else {
      setSortCriteria(SORT_CRITERIA_START_DATE_ASCENDING);
    }
    document.EventsInputForm.submitType.value = "Sorting";
    document.EventsInputForm.elements["GoButton"].click();  
  }

  
//-->
</script><noscript></noscript>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="Page" onUnload="return unloadPage();">

<jato:form name="EventsInputForm" method="post" defaultCommandChild="/Search">

<table cellspacing=0 cellpadding=0 width="100%" border=0 bgcolor="#CCCCFF">
    <tr>
    	<td class="SkpMst"><a href=#tabs><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="<%=getLocalizedLabel(session, "i18nModel", "uwc-common-skiplink-Masthead-message", "Skip Masthead")%>"></a></td>
		<td class="SkpMst"><a href=#calendarviewtabs><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="<%=getLocalizedLabel(session, "i18nModel", "uwc-common-skiplink-GlobalTabs-message", "Skip Global Tabs")%>"></a></td>
		<td class="SkpMst"><a href=#toolbar><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="<%=getLocalizedLabel(session, "i18nModel", "uwc-common-skiplink-CalendarViewTabs-message", "Skip Calendar View Tabs")%>"></a></td>
		<td class="SkpMst"><a href=#searchevents><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="<%=getLocalizedLabel(session, "i18nModel", "uwc-common-skiplink-SearchEvents-message", "Search for Events")%>"></a></td>
		<td class="SkpMst"><a href=#jumptomenus><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="<%=getLocalizedLabel(session, "i18nModel","uwc-common-skiplink-jumpToDayMonthYear", "Jump to a day, month or year")%>"></a></td>
		<td class="SkpMst"><a href=#calendargrid><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="<%=getLocalizedLabel(session, "i18nModel","uwc-common-skiplink-calendarGrid","Skip to calendar grid")%>"></a></td>
    	<td class="SkpMst"><a href=#quickaddevent><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="<%=getLocalizedLabel(session, "i18nModel","uwc-common-skiplink-quickAdd","Skip to Quick Add Event")%>"></a></td>
	</tr>
</table>

<input type="hidden" name="EnableSearchMode" value="false">
<input type="hidden" name="submitType">
<jato:hidden name="SelectedDateInUTC"/>
<jato:hidden name="TimeZone"/>
<jato:hidden name="SortCriteria"/>
<script>
var uwcViewUrl = "<%= getContextURI(request) %>/calclient/Events?<jato:text name='ContextQueryString' escape='false'/>" 
</script><noscript></noscript>
<jato:containerView name="MasterHead">
  <%@include file="/uwc/common/MasterHeadNormal.jsp"%>
</jato:containerView>

<jato:containerView name="CalApplBar">
  <%@include file="/uwc/calclient/CalApplBarNormal.jsp"%>
</jato:containerView>

<!-- Calendar view tabs are starting from here -->
<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="18"><img src="../uwc/images/spacer.gif" width="1" height="10" alt=""></td>
      </tr>
      <tr> 
        <td colspan="9"><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="4"><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-calclient-toolbar-tooltip-Day", "Calendar Day View") %>" href="<%= getContextURI(request) %>/calclient/DayView?<jato:text name='ContextQueryString' escape='false'/>" class="TabLblNormal" onmouseout="status=';'"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Day", "Day") %></a></div>
        </td>
        <td><img src="../uwc/images/dividerbar.gif" alt="" width="24" height="20"></td>
        <td class="Tab2NotSel"> 
          <div class="Tab2NotSel"><a title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Week", "Calendar Week View") %>" href="<%= getContextURI(request) %>/calclient/WeekView?<jato:text name='ContextQueryString' escape='false'/>" class="TabLblNormal" onmouseout="status=';'"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Week", "Week") %></a></div>
        </td>
        <td><img src="../uwc/images/dividerbar.gif" alt="" width="24" height="20"></td>
        <td class="Tab2NotSel"> 
          <div class="Tab2NotSel"><a title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Month", "Calendar Month View") %>" href="<%= getContextURI(request) %>/calclient/MonthView?<jato:text name='ContextQueryString' escape='false'/>" class="TabLblNormal" onmouseout="status=';'"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Month", "Month") %></a></div>
        </td>
        <td><img src="../uwc/images/dividerbar.gif" width="24" height="20" alt=""></td>
        <td class="Tab2NotSel"> 
          <div class="Tab2NotSel"><a title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Year", "Calendar Year View") %>" href="<%= getContextURI(request) %>/calclient/YearView?<jato:text name='ContextQueryString' escape='false'/>" class="TabLblNormal"  onmouseout="status=';'"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Year", "Year") %></a></div>
        </td>
		<td><img src="../uwc/images/dividerbar.gif" width="10" height="1" alt=""></td>
		<td class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="12" 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="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Events", "Event List") %>"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Events", "Events") %></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="12" alt=""></td>
        <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
        <td class="Tab2NotSel"> 
          <div class="Tab2NotSel">
          <jato:content name="showInvitations">
              <a title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Invitations", "Invitations List") %>" href="<%= getContextURI(request) %>/calclient/Invitations?<jato:text name='ContextQueryString' escape='false'/>" class="TabLblNormal" onmouseout="status=';'">
         </jato:content> 
        <%= getLocalizedLabel(session, "uwc-calclient-toolbar-Invitations", "Invitations") %>
        <jato:content name="showInvitations">
          </a>
        </jato:content>
        </div>
		</td>
		<td><img src="../uwc/images/dividerbar.gif"  width="24" height="20" alt=""></td>
        <td class="Tab2NotSel" width="90%"> 
          <div class="Tab2NotSel"><a title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Tasks", "Tasks List") %>" href="<%= getContextURI(request) %>/calclient/Tasks?<jato:text name='ContextQueryString' escape='false'/>" class="TabLblNormal"  onmouseout="status=';'"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Tasks", "Tasks") %></a></div>
        </td>
       </tr>
      <tr> 
        <td class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
        <td colspan="9" class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
        <td colspan="3"><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>

<!-- Error pagelet -->
<jato:containerView name="errorPlugin">
  <%@include file="/uwc/common/error.jsp"%>
</jato:containerView>

<!-- Page Title with Save Button -->
<div class="TtlTxtDiv">
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
  <tbody>
    <TR> 
     <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
     <TD width="100%"><SPAN class="TtlTxt"><%= getLocalizedLabel(session, "uwc-calclient-events-banner", "Events") %></SPAN></TD>
    </tr>
    <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>
   </tbody>
</TABLE>
</div>

<jato:containerView name="CalToolBar">
  <%@include file="/uwc/calclient/CalToolBarNormal.jsp"%>
</jato:containerView>

<div class="SearchDiv"> 
<table border="0" cellspacing="0" cellpadding="0" summary="Table that contains Task Search">
  <tr> 
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td><label for="eventSearch"><span class="Lbl2"><%= getLocalizedLabel(session, "uwc-calclient-events-SearchEventsLabel", "Search for Events:") %></span></label> 
      <jato:textField name="SearchText" elementId="eventSearch" size="40" tabIndex="1" onKeyPress="return handleEnter(event);"/>
      <jato:button styleClass="Btn1" name="Search" elementId="search" defaultValue="Search" onMouseOver="if (this.disabled==0) this.className='Btn1Hov'" onFocus="if (this.disabled==0) this.className='Btn1Hov'" onMouseOut="if (this.disabled==0) this.className='Btn1'" onBlur="if (this.disabled==0) this.className='Btn1'" onClick="return handleSearch();" tabIndex="2"/>
    </td>
  </tr>
</table>
</div>

<div class="ViewDiv">
<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 nowrap width="100%"><label for="monthSelect"><span class="Lbl2"><%= getLocalizedLabel(session, "uwc-calclient-events-ViewLabel", "View:") %></span></label> 
      <jato:combobox name="CurrentMonth" elementId="monthSelect" tabIndex="6"/>
      <label for="daySelect"></label>
      <jato:combobox name="CurrentDay" elementId="daySelect" tabIndex="7"/>
      <label for="yearSelect"></label>
      <jato:combobox name="CurrentYear" elementId="yearSelect" tabIndex="8"/>
      &nbsp;<label for="TaskView"><span class="Lbl2"><%= getLocalizedLabel(session, "uwc-calclient-events-ShowLabel", "Show:") %></span></label> 
      <jato:combobox name="ViewContext" elementId="TaskView" tabIndex="3"/>
      &nbsp;<label for="EventType"><span class="Lbl2"><%= getLocalizedLabel(session, "uwc-calclient-events-TypeLabel", "Type:") %></span></label> 
      <jato:combobox name="ViewCategory" elementId="EventType" tabIndex="4"/>
      <label for="GoButton"></label>
      <jato:button styleClass="Btn1" name="Go" elementId="GoButton" defaultValue=" Go " onMouseOver="if (this.disabled==0) this.className='Btn1Hov'" onFocus="if (this.disabled==0) this.className='Btn1Hov'" onMouseOut="if (this.disabled==0) this.className='Btn1'" onBlur="if (this.disabled==0) this.className='Btn1'" onClick="return handleGo();" tabIndex="5"/>
    </td>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
  </tr>
</table>
</div>

<table border="0" cellpadding="0" cellspacing="0" width="100%" summary="Table used for layout only">
  <tr>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td width="98%"> 
      <div class="TableDiv"> 
        <table border="0" cellpadding="0" cellspacing="0" class="Tbl" bordercolor="#cccccc" width="100%" summary="Table contains list of Events.">
          <tbody> 
          <tr> 
            <td scope="col" class="TblTtlTd" colspan="7"><span class="TblTtlTxt"><%= getLocalizedLabel(session, "uwc-calclient-events-banner", "Events") %></span>&nbsp;&nbsp;&nbsp; 
              <a href="javascript: void(0)" onmouseout="status=';'" onClick="handleBackDate(); return false;" title="<jato:text name="EventsForPrevCtx"/>" ><img src="<%= getLocalizedLabel(session, "skinModel", "uwc-calclient-Back-Arrow-image", "../uwc/images/back.gif") %>" width="13" height="13" align="absmiddle" title="<jato:text name="EventsForPrevCtx"/>" alt="<jato:text name="EventsForPrevCtx"/>" border="0" tabindex="11"></a>&nbsp; 
              <span class="TblTtlTxt"><jato:text name="ContextName"/>:&nbsp;<jato:text name="ContextDuration"/></span>&nbsp; 
              <a href="javascript: void(0)"  onmouseout="status=';'" onClick="handleForwardDate(); return false;" title="<jato:text name="EventsForNextCtx"/>" ><img src="<%= getLocalizedLabel(session, "skinModel", "uwc-calclient-Forward-Arrow-image", "../uwc/images/forward.gif") %>" width="13" height="13" align="absmiddle" title="<jato:text name="EventsForNextCtx"/>" alt="<jato:text name="EventsForNextCtx"/>" border="0" tabindex="12"></a></td>
          </tr>
          <tr> 
            <td scope="col" class="TblActTd" colspan="5" align="left">
            <jato:content name="isNonEmptyEvents">
              <jato:button styleClass="Btn1" name="Delete" defaultValue=" Delete " 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'" onClick="return getDeleteConfirm();"/>
            </jato:content>
            <jato:content name="isEmptyEvents">
              <jato:button styleClass="Btn1Dis" name="Delete" defaultValue=" Delete " disabled="true" 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'" onClick="return getDeleteConfirm();"/>
            </jato:content>
            <img src="<%= getLocalizedLabel(session, "skinModel", "uwc-calclient-events-separator-image","../uwc/Separator_dark_plus10_centered.gif") %>" width="22" height="12" alt=""><label for="eventsFilter"><span class=Lbl2><%= getLocalizedLabel(session, "uwc-calclient-events-filter", "Filter:") %></span></label>
          <jato:combobox name="EventsFilter" elementId="eventsFilter" onChange="handleFilterSelection(); return false;" />
          </td>
          </tr>
          <jato:content name="IsNonEmptyEvents">
          <tr> 
            <th width="1%" nowrap class="TblTdCl1"> 
              <div align="center"> 
                <input name="Submit" type="image" value="Submit" src="<%= getLocalizedLabel(session, "skinModel", "uwc-calclient-Select-All-image","../uwc/images/check_all.gif") %>" alt="<%= getLocalizedLabel(session, "uwc-common-SelectAll-title", "Select All Items Displayed in Table") %>" align="top" width="15" height="13" border="0" title="<%= getLocalizedLabel(session, "uwc-common-SelectAll-title", "Select All Items Displayed in Table") %>" onclick="selectEvents(true); return false;"  onmouseout="status=';'">
                <input name="Submit" type="image" value="Submit" src="<%= getLocalizedLabel(session, "skinModel", "uwc-calclient-DeSelect-All-image","../uwc/images/uncheck_all.gif") %>" alt="<%= getLocalizedLabel(session, "uwc-common-DeselectAll-title", "Deselect All Items Displayed in Table") %>" align="top" width="15" height="13" border="0" title="<%= getLocalizedLabel(session, "uwc-common-DeselectAll-title", "Deselect All Items Displayed in Table") %>" onclick="selectEvents(false); return false;" onmouseout="status=';'">
              </div>
            </th>
            <th  <jato:content name="StartDateHdrColumnStyle"/> scope="col" nowrap><a href="#" onClick="startDateSort(); return false;" class="TblHdrLnk"  title="<jato:content name="StartDateColumnTitle"/>" onmouseout="status=';'"><%= getLocalizedLabel(session, "uwc-calclient-tasks-StartDate", "Start Date") %><img src="<jato:content name="StartDateColumnImage"/>" width="27" height="6" border="0" align="bottom" alt="<jato:content name="StartDateColumnTitle"/>" title="<jato:content name="StartDateColumnTitle"/>"></a></th>
            <th <jato:content name="TitleHdrColumnStyle"/> scope="col" nowrap><a href="#" onClick="titleSort(); return false;" class="TblHdrLnk" title="<jato:content name="TitleColumnTitle"/>" onmouseout="status=';'"><%= getLocalizedLabel(session, "uwc-calclient-events-Title", "Title") %><img src="<jato:content name="TitleColumnImage"/>" width="27" height="6" border="0" alt="<jato:content name="TitleColumnTitle"/>" title="<jato:content name="TitleColumnTitle"/>"></a></th>
            <th scope="col" nowrap><%= getLocalizedLabel(session, "uwc-calclient-events-Type", "Type") %></th>
            <th scope="col"><%= getLocalizedLabel(session, "uwc-calclient-events-Actions", "Actions") %></th>
          </tr>
    </jato:content>
    <jato:content name="isEmptyEvents">
      <tr> 
       <th width="1%" nowrap class="TblTdCl1"> 
         <div align="center"> 
         </div>
       </th>
       <th scope="col" nowrap><%= getLocalizedLabel(session, "uwc-calclient-tasks-StartDate","Start Date") %></th>
       <th scope="col" nowrap><%= getLocalizedLabel(session, "uwc-calclient-events-Title","Title") %></th>
       <th scope="col" nowrap><%= getLocalizedLabel(session, "uwc-calclient-events-Type", "Type") %></th>
       <th scope="col"><%= getLocalizedLabel(session, "uwc-calclient-events-Actions", "Actions") %></th>
     </tr>
    </jato:content>
    <jato:content name="IsNonEmptyEvents">
      <jato:tiledView name="EventsTiledView" type="com.sun.uwc.calclient.EventsTileView">
          <jato:hidden name="EventCalID"/>
          <jato:hidden name="EventUID"/>
          <jato:hidden name="EventRID"/>
          <tr> 
            <td align="center" <jato:content name="SelectColumn"/> > 
                <jato:content name="CanDelete">
                  <label for="SelectEvent"></label>
                  <jato:checkbox name="SelectEvent" elementId="SelectEvent"/>
                </jato:content>
            </td>
            <td  <jato:content name="StartDateColumnStyle"/>><jato:text name="StartDate"/>
               <jato:content name="NonAllDayEventInformation">
                  <jato:text name="StartTime"/>&nbsp;<jato:text name="DurationHrs"/>
               </jato:content>
            </td>
            <td  <jato:content name="TitleColumnStyle"/> >
             <jato:content name="ShowEventsLink">
                 <a href="javascript: void(0)" class="LnkBold" onClick="openWinAutoHeight('<jato:text name="ViewEventUrl" escape="false"/>','','scrollbars=yes,resizable=yes,width=700')">
             </jato:content>
            <jato:text name="Title"/>
            <jato:content name="ShowEventsLink"></a></jato:content><br>
              <jato:content name="HasAlarm">
                <img src="<%= getLocalizedLabel(session, "skinModel", "uwc-calclient-NotifyImage", "../uwc/images/LrlNotify_1.gif") %>" width="12" height="12" border="0" hspace="2" align="absmiddle" alt="<%= getLocalizedLabel(session, "uwc-calclient-events-Notify", "Notify") %>" title="<%= getLocalizedLabel(session, "uwc-calclient-events-Notify", "Notify") %>">
              </jato:content>
              <jato:content name="IsRecurring">
                <img src="<%= getLocalizedLabel(session, "skinModel", "uwc-calclient-RecurringImage", "../uwc/images/LrlRecur_1.gif") %>" width="12" height="12" border="0" align="absmiddle" hspace="2" title="<%= getLocalizedLabel(session, "uwc-calclient-events-Recurring", "Recurring") %>" alt="<%= getLocalizedLabel(session, "uwc-calclient-events-Recurring", "Recurring") %>">
              </jato:content>
              <jato:content name="IsPublic">
                <img src="<%= getLocalizedLabel(session, "skinModel", "uwc-calclient-PublicImage", "../uwc/images/LrlPrvPub_1.gif") %>" width="12" height="12" border="0" hspace="2" title="<%= getLocalizedLabel(session, "uwc-calclient-events-Public", "Public") %>" alt="<%= getLocalizedLabel(session, "uwc-calclient-events-Public", "Public") %>"> 
              </jato:content>
               <br>
              <%= getLocalizedLabel(session, "uwc-calclient-Location", "Location") %>:&nbsp;<jato:text name="Location"/>
              <jato:content name="IsExternal">
                <br>
                [<jato:text name="OwnerName"/>&nbsp;(<jato:text name="CalendarName"/>)]
              </jato:content>
            </td>
            <td <jato:content name="NormalColumnStyle"/> ><jato:text name="Category" escape="false"/></td>
            <jato:content name="IsWritable">
              <td <jato:content name="NormalColumnStyle"/> ><img src="../uwc/images/table-act-sep.gif" width="1" height="11" alt="">&nbsp;&nbsp;<a href="javascript:void(0)" title="<%= getLocalizedLabel(session, "uwc-calclient-events-Edit-title", "Edit Task") %>" onClick="openWinAutoHeight('<jato:text name="EditEventUrl" escape="false"/>','','scrollbars=yes,resizable=yes,width=600')" onmouseout="window.status=''; return true" onblur="window.status=''; return true" onfocus="window.status='<%= getLocalizedLabel(session, "uwc-calclient-events-Edit-title", "Edit Task") %>'; return true" class="TblActLnk"><%= getLocalizedLabel(session, "uwc-calclient-events-Edit", "Edit") %></a>&nbsp;&nbsp;<img src="../uwc/images/table-act-sep.gif" width="1" height="11" alt=""></td>
            </jato:content>
            <jato:content name="IsNotWritable">
              <td <jato:content name="NormalColumnStyle"/> >&nbsp;</td>
            </jato:content>
          </tr>
      </jato:tiledView>
          <tr> 
            <td class="TblActTdLst" colspan="2"> 
              <jato:button styleClass="Btn1" name="Delete" defaultValue=" Delete " 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'" onClick="return getDeleteConfirm();"/>
            </td>
            <td class="TblActTdLst" colspan="5" align="right" nowrap>&nbsp;</td>
          </tr>
    </jato:content>
    <jato:content name="isEmptyEvents">
      <tr> 
        <td scope="col" class="TblTdCl1Lst" colspan="4"><%= getLocalizedLabel(session, "uwc-calclient-events-noevents", "This view does not have any events to display. Choose another filteror search for events") %>
        </td>
       </tr>
     </jato:content>
          </tbody> 
        </table>
      </div>
    </td>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td> 
    <div class="QaddDiv">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  		<tr>
    		<td>&nbsp;</td>
		</tr>
	</table>
   </jato:form>
   <jato:form name="QuickAddInputForm" method="post" defaultCommandChild="/quickadd/quickeventadd">
   	<jato:containerView name="quickadd">
    	<%@include file="/uwc/calclient/quickaddevent.jsp"%>
    </jato:containerView>
    <div>
	</jato:form>
    </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>
</body>
</jato:useViewBean>

</html>
