<html>

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

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

<jato:useViewBean className="com.sun.uwc.calclient.DayViewViewBean">
<head>
<title>
<%= getLocalizedLabel(session, "uwc-calclient-dayview-Title", "Calendar Day View - Communications Express") %>
</title>
</head>
<script language="JavaScript" src="../uwc/js/scripts.js">
</script>
<script src="../uwc/js/browserVersion.js" type="text/javascript"> </script>
<script src="../uwc/js/uwcUtils.js" type="text/javascript"> </script>
<script type="text/javascript">
//<!--
  if (is_ie5up) // IE5
  {
   document.write("<LINK href=../uwc/css/css_ie5win.css type=text/css rel=stylesheet>") 
  }
  else if (is_gecko) // Netscape 6/7 or Mozilla
  {
   document.write("<LINK href=../uwc/css/css_ns6up.css type=text/css rel=stylesheet>") 
  }
  else  // All others
  {
   document.write("<LINK href=../uwc/css/css_ns6up.css type=text/css rel=stylesheet>") 
  }
//-->
</script>

<script>
<!--
var search_click = 0;

var CANCEL = "Cancle";
var THIS_INSTANCE_ONLY = "ThisInstanceOnly";
var THIS_AND_FUTURE_INSTANCES = "ThisAndFutureInstances";

function clearSearch() {
	if (search_click < 1) {
	  document.form_main.search_field.value = "";
	  search_click = 1;
	  }
	}

function handleDeleteEvent(calid,eventid,isrecurring,eventrid) {
	
  document.forms[0].elements["DayView.calid"].value=calid;
  document.forms[0].elements["DayView.eventuid"].value=eventid;
  document.forms[0].elements["DayView.eventrid"].value=eventrid;
  document.forms[0].elements["DayView.isrecurring"].value=isrecurring;
  document.forms[0].elements["DayView.action"].value="deleteevent";
    
  if(isrecurring == "true") 
  {
  	window.open('../../uwc/js/DeleteEventConfirmRepeatSelection.jsp', 'RepeatingSelection', 'scrollbars=yes,resizable=yes,width=500,height=175');
    
  }
  else if(window.confirm("<%= getLocalizedLabel(session, "uwc-calclient-event-DeleteEventConfirmQuestion", "Are you sure you want to delete this event?") %>"))
  {
    document.forms[0].elements["Dayviewsubmit"].click();
    
  }
  else 
  
  {
    return 0;
  }
  
}

function setRepeatingSelectionModifier(theSelection) {
	if(CANCEL == theSelection) {
    return;
  }
  document.forms[0].elements["DayView.modifier"].value=theSelection;
  document.forms[0].elements["Dayviewsubmit"].click();
}

//-->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="Page">
<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>
	</tr>
</table>
<jato:form name="DayViewViewForm" method="post">

<jato:hidden name="action" defaultValue=""/>
<jato:hidden name="calid" defaultValue=""/>
<jato:hidden name="eventuid" defaultValue=""/>
<jato:hidden name="eventrid" defaultValue=""/>
<jato:hidden name="modifier" defaultValue=""/>
<jato:hidden name="isrecurring" defaultValue=""/>

<!-- Pagelet for branding -->
   <jato:containerView name="MasterHead">
      <%@include file="/uwc/common/MasterHeadAnon.jsp"%>
   </jato:containerView> 

<!-- JSP include for application toolbar -->
  <jato:containerView name="CalApplBar">
   <%@include file="/uwc/calclient/CalApplBarAnon.jsp"%> 
  </jato:containerView> 
 
<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><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="12"><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="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-Day","Calendar Day View") %>'><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" escape="false" name="uwc-calclient-toolbar-Day" defaultValue="Day" /></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"><a title='<%= getLocalizedLabel(session,"uwc-calclient-toolbar-tooltip-Week","Calendar Week View") %>' href="<%= getContextURI(request) %>/calclient/WeekView?date=<jato:getDisplayFieldValue name='urlcontextdate' />&calid=<jato:getDisplayFieldValue name='urlcalid'/>&caltype=<jato:getDisplayFieldValue name='urlcaltype'/>&viewctx=<jato:getDisplayFieldValue name='viewCtx' />&category=<jato:getDisplayFieldValue name='category' />&anon=<jato:getDisplayFieldValue name='isanon' />" class="TabLblNormal"  onmouseout="status=';'"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" escape="false" name="uwc-calclient-view-invitations-WeekHrefLabel" defaultValue="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?date=<jato:getDisplayFieldValue name='urlcontextdate' />&calid=<jato:getDisplayFieldValue name='urlcalid'/>&caltype=<jato:getDisplayFieldValue name='urlcaltype'/>&viewctx=<jato:getDisplayFieldValue name='viewCtx' />&category=<jato:getDisplayFieldValue name='category' />&anon=<jato:getDisplayFieldValue name='isanon' />" class="TabLblNormal" onmouseout="status=';'"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" escape="false" name="uwc-calclient-view-invitations-MonthHrefLabel" defaultValue="Month" /></a></div>
    </td>
    <td><img src="../uwc/images/dividerbar.gif" 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?date=<jato:getDisplayFieldValue name='urlcontextdate' />&calid=<jato:getDisplayFieldValue name='urlcalid'/>&caltype=<jato:getDisplayFieldValue name='urlcaltype'/>&viewctx=<jato:getDisplayFieldValue name='viewCtx' />&category=<jato:getDisplayFieldValue name='category' />&anon=<jato:getDisplayFieldValue name='isanon' />" class="TabLblNormal"  onmouseout="status=';'"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" escape="false" name="uwc-calclient-view-invitations-YearHrefLabel" defaultValue="Year" /></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-Events","Event List") %>' href="<%= getContextURI(request) %>/calclient/Events?date=<jato:getDisplayFieldValue name='urlcontextdate' />&calid=<jato:getDisplayFieldValue name='urlcalid'/>&caltype=<jato:getDisplayFieldValue name='urlcaltype'/>&viewctx=<jato:getDisplayFieldValue name='viewCtx' />&category=<jato:getDisplayFieldValue name='category' />&anon=<jato:getDisplayFieldValue name='isanon' />" class="TabLblNormal"  onmouseout="status=';'"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" escape="false" name="uwc-calclient-view-invitations-EventsHrefLabel" defaultValue="Events" /></a></div>
    </td>
    <td class="Tab2NotSel" width="90%"> 
      <div class="Tab2NotSel"></div>
    </td>
    </tr>
  <tr> 
    <td colspan="2" 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="13" class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
  </tr>
</table>
</div>
<jato:containerView name="FullPageErrorPlugin">
  <%@include file="/uwc/common/FullPageError.jsp"%>
</jato:containerView>
<div class="Tab1Gutter" style="visibility: hidden;">
  <jato:button styleClass="Btn1" name="Dayviewsubmit" elementId="Dayviewsubmit" defaultValue=" "/>
</div>
</jato:form>
</body>
</jato:useViewBean> 

