• Lunes 6 de Mayo de 2024, 07:22

Autor Tema:  Calendario con tablas.  (Leído 891 veces)

Gaug

  • Miembro activo
  • **
  • Mensajes: 26
    • Ver Perfil
Calendario con tablas.
« en: Lunes 6 de Julio de 2009, 15:46 »
0
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:

[php:3ui0gt9l]
  1.  
  2. <table align="center">
  3. <tr><td id="tagline"> <p> </p>
  4.   <p>PROGRAMACIÓN DE COSTOS </p></td></tr>
  5. <tr><td> </td></tr>
  6. </table>
  7. <table width="924" height="242" border="1" bordercolor="#FF9933">
  8.   <tr>
  9.     <th colspan="13" scope="row" class="bodyText"><div align="left">Titulo1</div></th>
  10.   </tr>
  11.   <tr>
  12.     <th colspan="13" scope="row" class="bodyText"><div align="left">Ruta </div></th>
  13.   </tr>
  14.  
  15.   <tr>
  16.     <th colspan="13" scope="row" class="bodyText"><div align="left">Actividad: <input type="text" name="actividad" id="actividad" size="50"/></div></th>
  17.   </tr>
  18.   <tr>
  19.     <th colspan="13" scope="row"> </th>
  20.   </tr>
  21.     <th width="77"  rowspan="2" scope="row"> </th>
  22.    
  23.     <td colspan="12" class="bodyText"><div align="center">2009</div></td>
  24.   </tr>
  25.   <tr class="bodyText">
  26.     <td width="77" class="bodyText">ENE</td>
  27.     <td width="77" class="bodyText">FEB</td>
  28.     <td width="77" class="bodyText">MAR</td>
  29.     <td width="77" class="bodyText">ABR</td>
  30.     <td width="77" class="bodyText">MAY</td>
  31.     <td width="77" class="bodyText">JUN</td>
  32.     <td width="77" class="bodyText">JUL</td>
  33.     <td width="77" class="bodyText">AGO</td>
  34.     <td width="77" class="bodyText">SEP</td>
  35.     <td width="77" class="bodyText">OCT</td>
  36.      <td width="77" class="bodyText">NOV</td>
  37.      <td width="77" class="bodyText">DIC</td>
  38.   </tr>
  39.   <tr>
  40.     <th scope="row" class="bodyText">CAL1</th>
  41.     <td><input name="nombre" type="text" value="12500.00" size="15"/></td>
  42.     <td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
  43.     <td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
  44.     <td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
  45.     <td> <input name="nombre" type="text" value="12500.00" size="15" /></td>
  46.     <td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
  47.     <td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
  48.     <td> <input name="nombre" type="text" value="12500.00" size="15"/></td>
  49.     <td> <input name="nombre" type="text" value="12500.00" size="15" /></td>
  50.     <td> <input name="nombre" type="text" value="12500.00" size="15" /></td>
  51.     <td> <input name="nombre" type="text" value="12500.00" size="15" /></td>
  52.     <td> <input name="nombre" type="text" value="12500.00" size="15" /></td>
  53.   </tr>
  54.   <tr>
  55.     <th scope="row" class="bodyText">CAL2</th>
  56.     <td><input name="nombre" type="text" value="13500.00" size="15"/></td>
  57.     <td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
  58.     <td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
  59.     <td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
  60.     <td> <input name="nombre" type="text" value="13500.00" size="15" /></td>
  61.     <td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
  62.     <td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
  63.     <td> <input name="nombre" type="text" value="13500.00" size="15"/></td>
  64.     <td> <input name="nombre" type="text" value="13500.00" size="15" /></td>
  65.     <td> <input name="nombre" type="text" value="13500.00" size="15" /></td>
  66.     <td> <input name="nombre" type="text" value="13500.00" size="15" /></td>
  67.     <td> <input name="nombre" type="text" value="13500.00" size="15" /></td>
  68.   </tr>
  69. </table>
  70.  
[/php:3ui0gt9l]

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í:

[php:3ui0gt9l]
  1.  
  2. $fechainicio= "15-Feb-09";
  3. $fechatermino= "24-Ene-10";
  4.  
[/php:3ui0gt9l]

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.