Hello.
I'll try to be as explicit as possible with the problem I have, I have a calendar with tables.
Let's say that this is the code:
PHP Code:
<table align="center">
<tr><td id="tagline"> <p> </p>
<p>COSTS </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">Activity: <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">JAN</td>
<td width="77" class="bodyText">FEB</td>
<td width="77" class="bodyText">MAR</td>
<td width="77" class="bodyText">APR</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">AUG</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">DEC</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>
There appears only from January to December 2009, which I seek is that depending on a variable that contains a start date and one that has an end date, which I receive from a previous page, say that the variables are the following ones:
PHP Code:
$startdate= "15-Feb-09";
$enddate= "24-Jan-10";
I see the calendar on the table as I put up, but instead it is from January to December 2009, I want it to appear from February 2009 to January 2010, obviously depending on the value of variables.
Is there any way to do this?
I thank you in advance for your help.
Greetings.