Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/07/2009, 17:34
Gaug
 
Fecha de Ingreso: junio-2009
Mensajes: 250
Antigüedad: 14 años, 11 meses
Puntos: 1
Calendario con tablas.

Hola.

Trataré de ser lo más explícito posible con el problema que tengo, quiero hacer un calendario con tablas.

Digamos que éste es el código:

Código PHP:
<table align="center">
<
tr><td id="tagline"> <p>&nbsp;</p>
  <
p>PROGRAMACIÓN DE COSTOS </p></td></tr>
<
tr><td>&nbsp;</td></tr>
</
table>
<
table width="924" height="242" border="1" bordercolor="#FF9933">
  <
tr>
    <
th colspan="13" scope="row" class="bodyText"><div align="left">Titulo1</div></th>
  </
tr>
  <
tr>
    <
th colspan="13" scope="row" class="bodyText"><div align="left">Ruta </div></th>
  </
tr>

  <
tr>
    <
th colspan="13" scope="row" class="bodyText"><div align="left">Actividad: <input type="text" name="actividad" id="actividad" size="50"/></div></th>
  </
tr>
  <
tr>
    <
th colspan="13" scope="row">&nbsp;</th>
  </
tr>
    <
th width="77"  rowspan="2" scope="row">&nbsp;</th>
    
    <
td colspan="12" class="bodyText"><div align="center">2009</div></td>
  </
tr>
  <
tr class="bodyText">
    <
td width="77" class="bodyText">ENE</td>
    <
td width="77" class="bodyText">FEB</td>
    <
td width="77" class="bodyText">MAR</td>
    <
td width="77" class="bodyText">ABR</td>
    <
td width="77" class="bodyText">MAY</td>
    <
td width="77" class="bodyText">JUN</td>
    <
td width="77" class="bodyText">JUL</td>
    <
td width="77" class="bodyText">AGO</td>
    <
td width="77" class="bodyText">SEP</td>
    <
td width="77" class="bodyText">OCT</td>
     <
td width="77" class="bodyText">NOV</td>
     <
td width="77" class="bodyText">DIC</td>
  </
tr>
  <
tr>
    <
th scope="row" class="bodyText">CAL1</th>
    <
td><input name="nombre" type="text" value="12500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15" /></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15" /></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15" /></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15" /></td>
    <
td> <input name="nombre" type="text" value="12500.00" size="15" /></td>
  </
tr>
  <
tr>
    <
th scope="row" class="bodyText">CAL2</th>
    <
td><input name="nombre" type="text" value="13500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15" /></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15" /></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15" /></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15" /></td>
    <
td> <input name="nombre" type="text" value="13500.00" size="15" /></td>
  </
tr>
</
table
Ahí sólo aparece de ENERO a DICIEMBRE del 2009, lo que yo busco es que dependiendo de una variable que contiene una fecha de inicio y otra que tiene una fecha de término, que recibo desde otra página, digamos que las variables están así:

Código PHP:
$fechainicio"15-Feb-09";
$fechatermino"24-Ene-10"
Que me aparezca el calendario en tablas como el que puse arriba, pero en vez que sea de Enero a Diciembre del 2009, aparezca de Febrero del 2009 a Enero del 2010, dependiendo obviamente del valor de las variables.

¿Hay alguna forma de realizar esto?

Les agradezco de antemano su ayuda.

Saludos.