Programación Web y Scripting > PHP
Calendario con tablas.
(1/1)
Gaug:
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] <table align="center"><tr><td id="tagline"> <p> </p> <p>PROGRAMACIÓN DE COSTOS </p></td></tr><tr><td> </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"> </th> </tr> <th width="77" rowspan="2" scope="row"> </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> [/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] $fechainicio= "15-Feb-09";$fechatermino= "24-Ene-10"; [/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.
Navegación
Ir a la versión completa