<html>
<%@page info="WeekViewPrint" 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"%>

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

<head>
<title><%= getLocalizedLabel(session, "uwc-calclient-view-weekview-Title", "Calendar Week View - Communications Express") %></title>
<link rel="stylesheet" href="../uwc/css/css_ie5win.css" type="text/css">
<style type="text/css">
#searchON { display: "inline"; }
#searchControlOn { display: "inline"; }
</style>

<script language="JavaScript" src="../uwc/js/scripts.js"></script>
<script src="../uwc/js/browserVersion.js" type="text/javascript"></script>
<script type="text/javascript">

self.focus();
  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>

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="Page">
<form name="form_main" method="post" action="">
<table cellspacing=0 cellpadding=0 width="100%" border=0 class="MstTbl">
    <tr>
	  <td class="SkpMst"><a href=#tabs><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="Skip Masthead"></a></td>
	  <td class="SkpMst"><a href=#toolbar><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="Skip Calendar View Tabs"></a></td>

	  <td class="SkpMst"><a href=#calendargrid><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="Skip to calendar grid"></a></td>
	</tr>
 </table>

   <jato:containerView name="MasterHead">
      <%@include file="/uwc/common/MasterHeadPrintable.jsp"%>
   </jato:containerView>

   <!-- JSP include for application toolbar -->
   <jato:containerView name="ApplnBar">
    <%@include file="/uwc/calclient/CalApplBarPrintable.jsp" %>
   </jato:containerView>


  <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="Table that contains the Main Calendar Grid">
    <tr>
	  <td colspan="4"><img src="../uwc/images/spacer.gif" width="1" height="13"><a name="calendargrid"></a></td>
      <td align="center" valign="top" class="sidebarCopy" width="1%">&nbsp;</td>
      <td valign="top" width="98%">&nbsp;</td>
      <td width="1%">&nbsp;</td>
    </tr>
    <tr> 
      <td align="center" valign="top" class="sidebarCopy" width="1%"><img src="../uwc/images/spacer.gif" alt="" width="10" height="1"></td>
      <td valign="top" width="98%"> 
        <table width="100%" cellspacing="0" cellpadding="0" class="CalGrid">
          <tr> 
            <td colspan=8  class="GridHdr">&nbsp;
		    <span class="BlockHeaderText">            
			<jato:getDisplayFieldValue escape="false" name="displayWeek" />
		    </span>
            </td>
          </tr>
          <tr> 
		     <td class="PrntClr" width="9%">&nbsp;</td>
            <jato:tiledView name="dayNamesOfWeek" type="com.sun.uwc.calclient.WeekDisplayTiledView">
             <td class="PrntClr" scope="col" nowrap width="13%"><strong><jato:getDisplayFieldValue escape="false" name="day"/>&nbsp;<jato:getDisplayFieldValue name="date"/> </strong> </td>
            </jato:tiledView>
          </tr>

		<tr>
		  <td class="PrntClr" align="right" scope="row" nowrap><strong>All Day</strong></td>

			<jato:tiledView name="allDayDisplay" type="com.sun.uwc.calclient.WeekAllDayDisplayTiledView">

				<jato:content name="emptyevent">
					<td class="PrntClr">&nbsp;</td>
				</jato:content>

				<jato:content name="event">
					<td class="ContainPr">
						<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
							<jato:tiledView name="allDayEvents" type="com.sun.uwc.calclient.WeekEventsTiledView">
								<tr colspan="1">
									<uwc:WeekViewEvent name="allDayEvents" modelName="weekAllDayEvents" printable="true" allDay="true" anon="false"/>

								</tr>
							</jato:tiledView>
						</table>
					</td>
				</jato:content>
			</jato:tiledView>
		</tr>

		
		<jato:tiledView name="timeSlotTileView" type="com.sun.uwc.calclient.WeekViewTimeSlotTiledView">
		  <tr >
		   <td scope="row" nowrap class="PrintClr" align="right" ><span class="Lbl2"><jato:getDisplayFieldValue name="timeslot"/></span><span class="Lbl5"><jato:getDisplayFieldValue escape="false" name="ampm"/></span> </td>

			  <jato:tiledView name="weekViewTiledView" type="com.sun.uwc.calclient.WeekViewTiledView">
				<jato:content name="emptyevent">
					<td class="PrntClr">&nbsp;</td>
				</jato:content>

				<jato:content name="event"> 
				  <jato:content name="ConflictingOwnedCalendar">
				    <td rowspan="<jato:getDisplayFieldValue name='span'/>" class="ConflictPr" >
				  </jato:content>
				  
				  <jato:content name="ConflictingNonOwnedCalendar">
				     <td rowspan="<jato:getDisplayFieldValue name='span'/>" class="ConflictPr" >
				   </jato:content>
				   
				   <jato:content name="NonConflictingOwnedCalendar">
				      <td rowspan="<jato:getDisplayFieldValue name='span'/>" class="ContainPr" >
					</jato:content>
					
					<jato:content name="NonConflictingNonOwnedCalendar">
					   <td rowspan="<jato:getDisplayFieldValue name='span'/>" class="ContainPr" >
					</jato:content>

						<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
							<jato:tiledView name="nonAllDayEvents" type="com.sun.uwc.calclient.WeekEventsTiledView">

								<tr>
								    <uwc:WeekViewEvent name="nonAllDayEvents" modelName="weekNonAllDayEvents" printable="true" allDay="false" anon="false"/>


								</tr>
							</jato:tiledView>
						</table>
					</td>
				</jato:content>
			</jato:tiledView>
		  </tr>
	</jato:tiledView>
		 
	   </table>
	</td>
   </tr>
  </table>

</jato:useViewBean> 
</body>
</html>
