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

<html>
<head>
<title><%=getLocalizedLabel(session, "i18nModel", "uwc-calclient-task-view-buttons", "View Task Buttons")%></title>

<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=../<%=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>
<% 
  String canEdit = request.getParameter("edit"); 
  String canDelete = request.getParameter("delete");
  String completedTask = request.getParameter("completed");
%>   
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="theForm" method="post">
  <table class="FormInputTable" width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td><img src="../../uwc/images/spacer.gif" width="1" height="10"></td>
    </tr>
    <tr> 
      <td class="SectionDivider"><img src="../../uwc/images/spacer.gif" width="1" height="2"></td>
    </tr>
    <tr> 
      <td><img src="../../uwc/images/spacer.gif" width="1" height="5"></td>
    </tr>
    <tr> 
      <td> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td>
            <% if( canEdit != null && canEdit.equalsIgnoreCase("true")) { %>
               <%  if( completedTask == null || (completedTask != null && !completedTask.equalsIgnoreCase("true"))) { %>
	      <input class="Btn2" type="button" name="complete" id="complete" value=" <%=getLocalizedLabel(session,"i18nModel","uwc-calclient-task-complete","Complete Task")%> " onMouseOver="if (this.disabled==0) this.className='Btn2Hov'" onFocus="if (this.disabled==0) this.className='Btn2Hov'" onMouseOut="if (this.disabled==0) this.className='Btn2'" onBlur="if (this.disabled==0) this.className='Btn2'" onClick="javascript:parent.tasktop.handleCompleteTask()" title='<%=getLocalizedLabel(session,"i18nModel","uwc-calclient-task-complete","Complete Task")%>' tabindex="4">
               <% } %>
              <input class="Btn2" type="button" name="edit" id="edit" value=" <%=getLocalizedLabel(session,"i18nModel","uwc-common-edit","Edit")%> " onMouseOver="if (this.disabled==0) this.className='Btn2Hov'" onFocus="if (this.disabled==0) this.className='Btn2Hov'" onMouseOut="if (this.disabled==0) this.className='Btn2'" onBlur="if (this.disabled==0) this.className='Btn2'" onClick="javascript:parent.tasktop.handleOpenEditTask()" title='<%=getLocalizedLabel(session,"i18nModel","uwc-calclient-tasks-Edit-title", "Edit Task")%>' tabindex="5">
            <% } %>
            <% if( canDelete != null && canDelete.equalsIgnoreCase("true")) { %>
              <input class="Btn2" type="button" name="delete" id="delete" value=" <%=getLocalizedLabel(session,"i18nModel","uwc-common-delete","Delete")%> " onMouseOver="if (this.disabled==0) this.className='Btn2Hov'" onFocus="if (this.disabled==0) this.className='Btn2Hov'" onMouseOut="if (this.disabled==0) this.className='Btn2'" onBlur="if (this.disabled==0) this.className='Btn2'" onClick="javascript:parent.tasktop.handleDeleteTask()" title="<%=getLocalizedLabel(session,"i18nModel","uwc-calclient-task-delete-alt", "Delete Task")%>" tabindex="6">
            <% } %>
            </td>
            <td align="right"> 
              <input class="Btn1" type="button" name="close" id="close" value=" <%=getLocalizedLabel(session,"i18nModel","uwc-common-close","Close")%> " 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="parent.close()" title='<%=getLocalizedLabel(session,"i18nModel","uwc-common-Close-title", "Close Window")%>' tabindex="2">
              <input class="Btn2" type="button" name="help" id="help" value=" <%=getLocalizedLabel(session,"i18nModel","uwc-common-help","Help")%> " onMouseOver="if (this.disabled==0) this.className='Btn2Hov'" onFocus="if (this.disabled==0) this.className='Btn2Hov'" onMouseOut="if (this.disabled==0) this.className='Btn2'" onBlur="if (this.disabled==0) this.className='Btn2'" onClick="javascript:openUWCHelpWindow('<%= getHelpCtxUrl(session, request, "/calendar/viewtask.html") %>'); return false;" title='<%=getLocalizedLabel(session,"i18nModel","uwc-common-help","Help")%>' tabindex="3">
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td><img src="../../uwc/images/spacer.gif" width="1" height="20"></td>
    </tr>
  </table>
</form>
</body>
</html>
