<%@page info="ManageCalendar" 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.calclient.ManageCalendarViewBean" fireChildDisplayEvents="true">
<html>
<head>
<title>
<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-page-title" defaultValue="Manage Calendars - Sun&#153;ONE Unified Messaging Client"/>
</title>
<% 
   String path = request.getContextPath();  
   if( path.equals("/") )
     path="";
%>
<script language="JavaScript" src="../uwc/js/scripts.js"></script>
<script language="JavaScript" src="../uwc/js/uwcUtils.js"></script>
<script language="JavaScript" src="../uwc/js/browserVersion.js"></script>
<script type="text/javascript">
//<!--
  if (is_ie5up) // IE5
  {
   document.write("<LINK href=<jato:getModelFieldValue 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 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 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>") 
  }        
//-->     
</script>
</head>

<script>  
function handleUnsubscribe(calid)
{
  document.theForm.elements['ManageCalendar.hiddenCalInfo'].value = calid;
  document.theForm.elements['ManageCalendar.hiddenAction'].value = "unsubscribe";
  document.theForm.submit();
}

// the uwc view url
var uwcViewUrl = '<%=getContextURI(request)%>/calclient/ManageCalendar<jato:getDisplayFieldValue name="viewurl" escape="false"/>';

function getCheckedCalids() 
{
  var formElements = document.theForm.elements;
  //var calCheckBoxes = formElements['selcalid'];
  var cals = new Array();
  
  i=0;

  for (j=0; ; j++) { //Personal Cals
      cal = "ManageCalendar.PersonalCals[" + j + "].hcalinfo";        
      if (formElements[cal] == undefined)
         break;

      calCheckBox = "ManageCalendar.PersonalCals[" + j + "].selcalid";
      if(formElements[calCheckBox].checked)
        cals[i++] = formElements[cal].value;             
  }
    
  for (j=0; ; j++) { //Cal Groups
      cal="ManageCalendar.CalGroups[" + j + "].hcalinfo";
      if (formElements[cal] == undefined)
         break;      
        
      calCheckBox = "ManageCalendar.CalGroups[" + j + "].selcalid";
      if(formElements[calCheckBox].checked && formElements[cal].value != "" ) //if group doesn't have members       
       cals[i++] = formElements[cal].value; 
  }
  
  for (j=0; ; j++) { //Subscribed Cals
      cal="ManageCalendar.SubscribedCals[" + j + "].hcalinfo";
      if (formElements[cal] == undefined)
         break;
      
      calCheckBox = "ManageCalendar.SubscribedCals[" + j + "].selcalid";
      if(formElements[calCheckBox].checked)
        cals[i++] = formElements[cal].value; 
        
  }
       
  return cals;
}

function handleViewCalendar()
{  
  var calids = getCheckedCalids().join(";");
  var url = '<%=path%>/calclient/<jato:getDisplayFieldValue name="lastview" escape="false"/>';
  
  if( calids != null && calids.length > 0 ) {                  
    url += "?calid=" + calids + "&caltype=temporaryCalids";
    window.location.href = url;
  } else {
    UWCAlert('<%= getLocalizedLabel(session, "uwc-calclient-managecal-viewcal-msg", "Please select some calendars to be viewed!!")%>');
  }
}

function handleNewGroup() {
  var calids = getCheckedCalids().join("$");
 
  var url = "<%=path%>/calclient/EditCalGroup";  
  if( calids != null && calids.length > 0 ) 
    url += "?members=" + calids;
  
  MM_openBrWindow(url,'newcalgroup','scrollbars=yes,resizable=yes,width=700,height=550');
}
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="Page">
<jato:containerView name="mastHead">
  <%@include file="/uwc/common/MasterHeadNormal.jsp"%>
</jato:containerView>

<jato:form name="theForm" defaultCommandChild="/Action">
<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="Skip Masthead"></a></td>
     <td class="SkpMst"><a href=#calendarviewtabs><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="Skip Global Tabs"></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=#calendarlist><img src="../uwc/images/spacer.gif" height="1" width="1" border="0" alt="Skip to the Events List"></a></td>
	</tr>
</table>
<!-- Main tabs with Calendar drop-down -->
<jato:containerView name="CalApplBar">
  <%@include file="/uwc/calclient/CalApplBarNormal.jsp"%>
</jato:containerView>

<div class="Tab2">
<a name="calendarviewtabs"></a>
<table border="0" cellspacing="0" cellpadding="0" class="Tab2Tbl" width="100%" title="">
  <tbody><tr> 
    <td colspan="14"><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="13"><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 href="<%=path%>/calclient/DayView<jato:getDisplayFieldValue name="viewurl"/>" title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Day", "Calendar Day View")%>" class="TabLblNormal"><%= 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 href="<%=path%>/calclient/WeekView<jato:getDisplayFieldValue name="viewurl"/>" title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Week", "Calendar Week View")%>" class="TabLblNormal"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Week", "Week")%></jato:href></div>
        </td>
        <td><img src="../uwc/images/dividerbar.gif" alt="" width="24" height="20"></td>
        <td class="Tab2NotSel"> 
          <div class="Tab2NotSel"><a href="<%=path%>/calclient/MonthView<jato:getDisplayFieldValue name="viewurl"/>" title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Month", "Calendar Month View")%>" class="TabLblNormal"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Month", "Month")%></a></div>
        </td>
        <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
        <td class="Tab2NotSel"> 
          <div class="Tab2NotSel"><a href="<%=path%>/calclient/YearView<jato:getDisplayFieldValue name="viewurl"/>" title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Year", "Calendar Year View")%>" class="TabLblNormal"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Year", "Year")%></jato:href></div>
        </td>
        <td><img src="../uwc/images/dividerbar.gif" alt="" width="24" height="20"></td>
        <td class="Tab2NotSel"> 
          <div class="Tab2NotSel"><a href="<%=path%>/calclient/Events<jato:getDisplayFieldValue name="viewurl"/>" title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Events", "Events List")%>" class="TabLblNormal"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Events", "Events")%></jato:href></div>
        </td>
        <td><img src="../uwc/images/dividerbar.gif" alt="" width="24" height="20"></td>
        <td class="Tab2NotSel"> 
          <div class="Tab2NotSel" title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Invitations", "Invitations List")%>">
            <jato:content name="showInvitations">
             <a href="<%= getContextURI(request)%>/calclient/Invitations<jato:getDisplayFieldValue name="viewurl"/>" class="TabLblNormal">
           </jato:content>
            <%= getLocalizedLabel(session, "i18nModel", "uwc-calclient-view-month-InvitationsHrefLabel", "Invitations") %>
            <!--  (<jato:getDisplayFieldValue name="count" />) -->
           <jato:content name="showInvitations">
            </a>
           </jato:content>
        </td>
        <td><img src="../uwc/images/dividerbar.gif" alt="" width="24" height="20"></td>
        <td class="Tab2NotSel" width="90%"> 
          <div class="Tab2NotSel"><a href="<%=path%>/calclient/Tasks<jato:getDisplayFieldValue name="viewurl"/>" title="<%= getLocalizedLabel(session, "uwc-calclient-toolbar-tooltip-Tasks", "Tasks List")%>" class="TabLblNormal"><%= getLocalizedLabel(session, "uwc-calclient-toolbar-Tasks","Tasks")%></jato:href></div>
        </td>
      </tr>
  <tr> 
    <td class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td colspan="13" class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
  </tr>
</tbody></table>
</div>
<!-- Error information pagelet -->
<jato:containerView name="errorPlugin">
  <%@include file="/uwc/common/error.jsp"%>   
</jato:containerView>
<!-- Page Title -->
<div class="TtlTxtDiv">
<table width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <tbody><tr> 
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td class="TtlTxt" width="100%"><span class="TtlTxt"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-title" defaultValue="Manage Calendars" escape="false"/></span></td>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></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>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
  </tr>
</tbody></table>
</div>
<jato:containerView name="CalToolBar">
    <%@include file="/uwc/calclient/CalToolBarNormal.jsp"%>
</jato:containerView>

<!-- Table of all Personal, Subscribed, and My Favorites Calendars -->
<a name="calendarlist"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%" title="">
  <tbody><tr>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td width="100%"> 
      <div class="TableDiv"> 
          <table border="0" cellpadding="0" cellspacing="0" class="Tbl" width="100%" summary="Table that contains Personal, Subscribed, and My Favorites Calendars">
            <tbody> 
            <tr> 
              <td class="TblTtlTd" colspan="6"><span class="TblTtlTxt"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-calendars-caption" defaultValue="Calendars" escape="false"/></span></td>
            </tr>
            <tr> 
              <td class="TblActTd" colspan="6"> 
                <input class="Btn1" type="button" name="view_calendars" value="<%= getLocalizedLabel(session, "uwc-calclient-managecal-view-calendar", "View Calendar")%>" 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="javascript:handleViewCalendar();" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-view-calendar-title" defaultValue="View Selected Calendar(s)" escape="false"/>">
                &nbsp;<img src="../uwc/images/Separator_dark_plus10_centered.gif" alt="" width="22" height="12">&nbsp; 
                <input class="Btn1" type="button" name="new_calendar" value="<%= getLocalizedLabel(session, "uwc-calclient-managecal-new-calendar", "New Calendar...") %>" 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="MM_openBrWindow('<%=path%>/calclient/NewCalendar','newcalendar','scrollbars=yes,resizable=yes,width=700,height=550')" title="<%= getLocalizedLabel(session, "uwc-calclient-managecal-new-calendar", "New Calendar...") %>">
                <input class="Btn1" type="button" name="subscribe" value="<%= getLocalizedLabel(session, "uwc-calclient-managecal-subscribe", "Subscribe...")%>" 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="openWinAutoHeight('<%=path%>/calclient/SearchCalendar?searchMode=subscribe','subscribe','scrollbars=yes,resizable=yes,width=700')" title="<%= getLocalizedLabel(session, "uwc-calclient-managecal-subscribe-calendar-title", "Subscribe to Calendar") %>">
                &nbsp;<img src="../uwc/images/Separator_dark_plus10_centered.gif" alt="" width="22" height="12">&nbsp;
                <input class="Btn1" type="button" name="new_group" value="<%= getLocalizedLabel(session, "uwc-calclient-managecal-new-group", "New Calendar Group...")%>" 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="javascript:handleNewGroup();" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-new-group-title" defaultValue="New Calendar Group" escape="false"/>">
              </td>
            </tr>
            <tr> 
              <th width="2%" nowrap class="TblThCl1"> 
                <div style="text-align: center;"> 
                  <input type="image" src="../uwc/images/check_all.gif" onclick="checkAll(document.theForm.elements['selcalid'], true); return false;" alt="Select All Items Displayed in Table" align="top" width="15" height="13" border="0" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-SelectAll-title" defaultValue="Select All Items Displayed in Table" escape="false"/>">
                  <input type="image" src="../uwc/images/uncheck_all.gif" alt="Deselect All Items Displayed in Table" align="top" width="15" height="13" border="0" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-DeselectAll-title" defaultValue="Deselect All Items Displayed in Table" escape="false"/>" onclick="checkAll(document.theForm.selcalid, false); return false;">
                </div>
              </th>
              <th scope="col" width="30%"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-name" defaultValue="Name" escape="false"/></th>
              <th scope="col" width="35%"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-description" defaultValue="Description" escape="false"/></th>
              <th scope="col" width="15%"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-owner-caption" defaultValue="Owner" escape="false"/></th>
              <th scope="col" width="10%"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-properties-caption" defaultValue="Properties" escape="false"/></th>
              <th scope="col" width="8%"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-action-caption" defaultValue="Action" escape="false"/></th>
            </tr>
            <tr> 
              <td class="TblTdCl1">&nbsp;</td>
              <td><img src="../uwc/images/LrlPerCal_1.gif" width="16" height="16" align="absmiddle" alt="Personal Calendars" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-currentcalendar-PersonalCalendar" defaultValue="Personal Calendars" escape="false"/>">&nbsp;<span class="Lbl4"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-currentcalendar-PersonalCalendar" defaultValue="Personal Calendars" escape="false"/></span>
              </td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <jato:tiledView name="PersonalCals" type="com.sun.uwc.calclient.ManageCalendarTiledViewBean">            
            <tr>                     
              <td class="TblTdCl1" align="center">
              <jato:hidden name="hcalinfo" defaultValue=""/>
              <jato:checkbox name="selcalid" elementId="selcalid"/></td>                                          
              <td><jato:text name="calname"/></td>
              <td><jato:text name="caldesc"/></td>
              <td><jato:text name="calowner"/></td>
              <td nowrap>              
                <jato:content name="EditView">
                <img src="../uwc/images/table-act-sep.gif" alt="" width="1" height="11">&nbsp;
                <jato:href anchor="javascript:void(0)" name="vieweditlink" styleClass="TblActLnk"><jato:text name="vieweditcaption"/></jato:href>                
                <img src="../uwc/images/table-act-sep.gif" alt="" width="1" height="11"> 
                </jato:content>               
              </td>
              <td nowrap>&nbsp;</td>
            </tr>
            </jato:tiledView>             
            <tr> 
              <td class="TblTdCl1">&nbsp;</td>
              <td><img src="../uwc/images/LrlGrpCal_1.gif" width="16" height="16" align="absmiddle" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-currentcalendar-CalendarGroups" defaultValue="Calendar Groups" escape="false"/>" alt="Calendar Groups">&nbsp;<span class="Lbl4"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-currentcalendar-CalendarGroups" defaultValue="Calendar Groups" escape="false"/></span></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <jato:tiledView name="CalGroups" type="com.sun.uwc.calclient.ManageCalendarTiledViewBean">                        
            <tr>                
              <td class="TblTdCl1" align="center">              
              <jato:checkbox name="selcalid" elementId="selcalid"/></td>                                          
              <td><jato:text name="calname"/></td>
              <td><jato:text name="caldesc"/></td>
              <td><jato:text name="calowner"/></td>
              <td nowrap>                                
                <jato:content name="EditView">
                <img src="../uwc/images/table-act-sep.gif" alt="" width="1" height="11">&nbsp;
                <jato:href anchor="javascript:void(0)" name="vieweditlink" styleClass="TblActLnk"><jato:text name="vieweditcaption"/></jato:href>                
                <img src="../uwc/images/table-act-sep.gif" alt="" width="1" height="11"> 
                </jato:content>               
              </td>              
              <jato:hidden name="hcalinfo" defaultValue=""/>
              <td nowrap>&nbsp;</td>
            </tr>
            </jato:tiledView> 
            <jato:content name="emptyCalGroup">
            <tr> 
              <td class="TblTdCl1" align="center">&nbsp; </td>
              <td><%= getLocalizedLabel(session, "uwc-calclient-managecal-nocalgroup", "No calendar groups to display")%></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            </jato:content>
            <tr> 
              <td class="TblTdCl1">&nbsp;</td>
              <td><img src="../uwc/images/LrlSubCal_1.gif" width="16" height="16" align="absmiddle" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-currentcalendar-SubscribedCalendars" defaultValue="Subscribed Calendars" escape="false"/>" alt="Subscribed Calendars">&nbsp;<span class="Lbl4"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-currentcalendar-SubscribedCalendars" defaultValue="Subscribed Calendars" escape="false"/></span></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <jato:tiledView name="SubscribedCals" type="com.sun.uwc.calclient.ManageCalendarTiledViewBean">            
            <tr>                 
              <td class="<jato:getDisplayFieldValue name="TdCl1Class" defaultValue="TblTdCl1"/>" align="center">                                                          
              <jato:hidden name="hcalinfo" defaultValue=""/><jato:checkbox name="selcalid" elementId="selcalid"/></td>                                  
              <td <jato:getDisplayFieldValue name="TdClass" defaultValue=""/>><jato:text name="calname"/></td>
              <td <jato:getDisplayFieldValue name="TdClass" defaultValue=""/>><jato:text name="caldesc"/></td>
              <td <jato:getDisplayFieldValue name="TdClass" defaultValue=""/>><jato:text name="calowner"/></td>
              <td nowrap <jato:getDisplayFieldValue name="TdClass" defaultValue=""/>>
              <jato:content name="EditView">
                <img src="../uwc/images/table-act-sep.gif" alt="" width="1" height="11">&nbsp;
                <jato:href anchor="javascript:void(0)" name="vieweditlink" styleClass="TblActLnk"><jato:text name="vieweditcaption"/></jato:href>                
                <img src="../uwc/images/table-act-sep.gif" alt="" width="1" height="11"> 
              </jato:content>
              </td>              
              <td <jato:getDisplayFieldValue name="TdClass" defaultValue=""/> nowrap>
                <img src="../uwc/images/table-act-sep.gif" alt="" width="1" height="11">&nbsp;                
                <jato:href name="Unsubscribe" title="Unsubscribe Calendar" styleClass="TblActLnk"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-unsubscribe" defaultValue="Unsubscribe" escape="false"/></jato:href>&nbsp;
                <img src="../uwc/images/table-act-sep.gif" alt="" width="1" height="11">                
              </td>
            </tr>
            </jato:tiledView>                               
            <jato:content name="emptySubscribedCal">
            <tr>
              <td class="TblTdCl1" align="center">&nbsp; </td>
              <td><%= getLocalizedLabel(session, "uwc-calclient-managecal-nosubscribedcal", "No subscribed calendars to display")%></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            </jato:content> 
            <tr> 
              <td class="TblActTdLst" colspan="6"> 
                <input class="Btn1" type="button" name="view_calendars" value="<%= getLocalizedLabel(session, "uwc-calclient-managecal-view-calendar", "View Calendar")%>" 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="javascript:handleViewCalendar();" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-view-calendar-title" defaultValue="View Selected Calendar(s)" escape="false"/>">
                &nbsp;<img src="../uwc/images/Separator_dark_plus10_centered.gif" alt="" width="22" height="12">&nbsp; 
                <input class="Btn1" type="button" name="new_calendar" value="<%= getLocalizedLabel(session, "uwc-calclient-managecal-new-calendar", "New Calendar...") %>" 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="MM_openBrWindow('<%=path%>/calclient/NewCalendar','newcalendar','scrollbars=yes,resizable=yes,width=700,height=550')" title="<%= getLocalizedLabel(session, "uwc-calclient-managecal-new-calendar", "New Calendar...") %>">
                <input class="Btn1" type="button" name="subscribe" value="<%= getLocalizedLabel(session, "uwc-calclient-managecal-subscribe", "Subscribe...")%>" 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="openWinAutoHeight('<%=path%>/calclient/SearchCalendar?searchMode=subscribe','subscribe','scrollbars=yes,resizable=yes,width=700')" title="<%= getLocalizedLabel(session, "uwc-calclient-managecal-subscribe-calendar-title", "Subscribe to Calendar") %>">
                &nbsp;<img src="../uwc/images/Separator_dark_plus10_centered.gif" alt="" width="22" height="12">&nbsp;
                <input class="Btn1" type="button" name="new_group" value="<%= getLocalizedLabel(session, "uwc-calclient-managecal-new-group", "New Calendar Group...")%>" 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="javascript:handleNewGroup();" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-managecal-new-group-title" defaultValue="New Calendar Group" escape="false"/>">
              </td>
            </tr>
            </tbody> 
          </table>
      </div>
    </td>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
  </tr>
</tbody>
</table>
<jato:hidden name="hiddenCalInfo"/>              
<jato:hidden name="hiddenAction"/> 
<!-- This action button is to invoke the handler in server when the form is submitted -->
<div style="visibility:hidden">
<jato:button style="width:0;height:0" name="Action" elementId="Action"/>
</div>
</jato:form>
</body>
</html>
</jato:useViewBean>
