<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>




<iman:stringtable bundle="DevResources"/>


<%-- -------------- --%>
<%-- Default Values --%>
<%-- -------------- --%>
<c:if test="${empty TimeGridEditor_readOnly}"><c:set var="TimeGridEditor_readOnly" value="false"/></c:if>




<TABLE border="0" cellpadding="0" cellspacing="0">
   <TR>
      <TD>&nbsp;</TD>
      <TD></TD>

      <TD colspan="48">
         <TABLE border="0" cellpadding="0" cellspacing="0">
            <TR>
               <TD class="available"><c:if test="${sessionScope['Browser.name']=='NSN'}">&nbsp;</c:if></TD>
               <TD width="100"><SPAN class="mediumtext">&nbsp;<iman:string key="TimeGridEditor.Avaliable"/></SPAN></TD>
               <TD class="restricted"><c:if test="${sessionScope['Browser.name']=='NSN'}">&nbsp;</c:if></TD>
               <TD width="100"><SPAN class="mediumtext">&nbsp;<iman:string key="TimeGridEditor.Restricted"/></SPAN></TD>

               <c:choose>
                  <c:when test="${TimeGridEditor_readOnly=='true'}">
                     <TD class="smalltext" nowrap>&nbsp;</TD>
                  </c:when>
                  <c:otherwise>
                     <TD nowrap><SPAN class="mediumtext">&nbsp;<iman:string key="TimeGridEditor.ShiftClickNote"/></SPAN></TD>
                  </c:otherwise>
               </c:choose>
            </TR>
         </TABLE>
      </TD>
   </TR>


	<TR>
		<TD colspan="2"></TD>
		<TD colspan="24" bgcolor="#F7F7F7" class="timeText" align="center"><iman:string key="Date.AM"/></TD>
		<TD colspan="24" bgcolor="#F7F7F7" class="timeText" align="center"><iman:string key="Date.PM"/></TD>
	</TR>
	<TR>
		<TD colspan="2">&nbsp;</TD>
      <TD width="15" colspan="2" class="smalltext">12</TD>
      <TD width="15" colspan="2" class="smalltext">1</TD>
      <TD width="15" colspan="2" class="smalltext">2</TD>
      <TD width="15" colspan="2" class="smalltext">3</TD>
      <TD width="15" colspan="2" class="smalltext">4</TD>
      <TD width="15" colspan="2" class="smalltext">5</TD>
      <TD width="15" colspan="2" class="smalltext">6</TD>
      <TD width="15" colspan="2" class="smalltext">7</TD>
      <TD width="15" colspan="2" class="smalltext">8</TD>
      <TD width="15" colspan="2" class="smalltext">9</TD>
      <TD width="15" colspan="2" class="smalltext">10</TD>
      <TD width="15" colspan="2" class="smalltext">11</TD>
      <TD width="15" colspan="2" class="smalltext">12</TD>
      <TD width="15" colspan="2" class="smalltext">1</TD>
      <TD width="15" colspan="2" class="smalltext">2</TD>
      <TD width="15" colspan="2" class="smalltext">3</TD>
      <TD width="15" colspan="2" class="smalltext">4</TD>
      <TD width="15" colspan="2" class="smalltext">5</TD>
      <TD width="15" colspan="2" class="smalltext">6</TD>
      <TD width="15" colspan="2" class="smalltext">7</TD>
      <TD width="15" colspan="2" class="smalltext">8</TD>
      <TD width="15" colspan="2" class="smalltext">9</TD>
      <TD width="15" colspan="2" class="smalltext">10</TD>
      <TD width="15" colspan="2" class="smalltext">11</TD>
	</TR>


   <% for(int rowIndex=0; rowIndex<7; rowIndex++) { %>
	<TR>
		<TD class="smalltext"><script>printDayString(<%= rowIndex %>);</script></TD>
		<TD></TD>

      <% for(int colIndex=0; colIndex<48; colIndex++) { %>
         <% int idVal = rowIndex * 48 + colIndex; %>

         <c:choose>
            <c:when test="${TimeGridEditor_readOnly=='true'}">
               <TD id="RD<%= idVal %>" class="available"></TD>
            </c:when>
            <c:otherwise>
               <TD id="RD<%= idVal %>" onclick="doSelectObject(this,event.shiftKey)" onmouseover="setSelectionColors(this)" onmouseout="resetSelectionColors(this)" class="available"><c:if test="${sessionScope['Browser.name']=='NSN' || sessionScope['Browser.name']=='MOZILLA'}">&nbsp;</c:if></TD>
            </c:otherwise>
         </c:choose>
      <% } %>

	</TR>
   <% } %>

   <c:if test="${TimeGridEditor_readOnly!='true'}">
   	<TR>
   		<TD colspan="50"><font size="2">&nbsp;</font></TD>
   	</TR>
   	<TR>
   		<TD colspan="2"></TD>
   		<TD colspan="48" class="mediumtext">
   		   <input id="rb1" type="radio" name="ADDBOOLEAN" value="true" checked ><label for="rb1"><SPAN class="mediumtext"><iman:string key="TimeGridEditor.AddOption"/></SPAN></label><br>
   	      <input id="rb2" type="radio" name="ADDBOOLEAN" value="false"><label for="rb2"><SPAN class="mediumtext"><iman:string key="TimeGridEditor.RemoveOption"/></SPAN></label>
         </TD>
   	</TR>
   	<TR>
   		<TD colspan="50"><font size="2">&nbsp;</font></TD>
   	</TR>
   	<TR>
   		<TD colspan="50"><font size="2">&nbsp;</font></TD>
   	</TR>
   	<TR>
   		<TD colspan="2"></TD>
   	   <TD colspan="48" class="smalltext2d"><iman:string key="TimeGridEditor.SaveNote"/></TD>
   	</TR>
   </c:if>

</TABLE>
