Ver Mensaje Individual
  #6 (permalink)  
Antiguo 23/07/2009, 09:02
no_se_me_ocurre
 
Fecha de Ingreso: junio-2009
Mensajes: 4
Antigüedad: 14 años, 10 meses
Puntos: 1
Respuesta: Agenda para el manejo de eventos

Lo mejore un poquito y salio andando
Aca dejo el codigo

Código HTML:
<% int factor = 10; %>
<% int height = 8; %>
<table width="100%" cellspacing="0" cellpadding="1" border="1">
	<tbody>
		<tr>
			<td width="166" valign="top" align="right" rowspan="2">
				<table width="166"  cellspacing="0" cellpadding="0" border="0">
					<tbody>					
						<tr height="40">
							<th width="166" bgcolor="#9999FF">Horas</th>
						</tr>
						<%
						{
							for (int i = 0; i < 24; i++) {
								%>
								<tr height="<%=height*factor%>">
									<td width="166" bgcolor="<%=(i%2==0)?"#336699":"#C0C0C0"%>"><%=height*factor%> <%=i %> </td>
								</tr>
								
								<%
							}
						}
						%>
						</tbody>
				</table>
			</td>			
			<td width="100%" valign="top" align="right" rowspan="2">											  	
				<table width="100%"  cellspacing="0" cellpadding="0" border="0">
					<tbody>
						<tr height="40">
							<th width="166" bgcolor="#9999FF">Lugar</th>
							<th width="166" bgcolor="#9999FF">Hora Inicio</th>
							<th width="166" bgcolor="#9999FF">Hora Fin</th>				
						</tr>
						<% 
						{
							for (Iterator iterator = events.iterator(); iterator.hasNext();) {
									i++;
									SchedullerEvents eachEvents = (SchedullerEvents) iterator.next();
							heightParam = eachEvents.getSize()*factor;
							%>
							<tr height="<%=heightParam%>">				
								<td width="100%" bgcolor="<%=(i%2==0)?"#336699":"#C0C0C0"%>"> Lugar:<%=lugar%></td>
								<td width="100%" bgcolor="<%=(i%2==0)?"#336699":"#C0C0C0"%>">Hora Inicio<%=horaInicio%></td>
								<td width="100%" bgcolor="<%=(i%2==0)?"#336699":"#C0C0C0"%>">Hora Fin <%=horaFin%></td>
								
							</tr>
							
							<%
							}						 
						}				
						%>
					</tbody>				
				</table>
			</td>
		</tr>
	</tbody>
</table>