Gracias por tu respuesta. Aquí esta mi código
Código PHP:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" media="all" href="../Javascript/JSCal/skins/tiger/theme.css"/>
<script type="text/javascript" src="../Javascript/JSCal/calendar.js"></script>
<script type="text/javascript" src="../Javascript/JSCal/lang/calendar-es.js"></script>
<script type="text/javascript" src="../Javascript/JSCal/calendar-setup.js"></script>
<title>Listado de Bimestres</title>
</head>
<body>
<div>
<h2>Listado Bimestres </h2>
<form id="bimestre" name="bimestre" method="post" action="pruebaindex2.php?controlador=Bimestre&accion=modificarBimestre">
<fieldset>
<legend>Modificar Bimestre</legend>
<?php
// $resultado es una variable asignada desde el controlador ControladorBimestre.
$identificador;
$alias;
$fechainicio;
$fechatermino;
$comentario;
foreach ($resultado as $object) {
$identificador = $object->getIdentificador();
$alias = $object->getAlias();
$fechainicio = $object->getFechaInicio();
$fechatermino = $object->getFechaTermino();
$comentario = $object->getComentario();
}
echo "<table width='437' border='0' align='left'>
<tr>
<th width='112' align='left' scope='row'><label for='bimestre_identificador'>Identificador:</label></th>
<td width='315'><input type='text' id='bimestre_identificador' name='bimestre_identificador' maxlength='30' value='" . $identificador . "' readonly='readonly'></td>
</tr>
<tr>
<th scope='row' align='left'><label for='bimestre_alias'>Alias:</label></th>
<td><input type='text' id='bimestre_alias' name='bimestre_alias' maxlength='30' value='" . $alias . "'></td>
</tr>
<tr>
<th scope='row' align='left'><label for='bimestre_fecha_inicio'>Fecha Inicio:</label></th>
<td> <input type='text' id='bimestre_fecha_inicio' name='bimestre_fecha_inicio'value='" . $fechainicio . "' readonly='readonly'/>
<img src='/reservas/CSS/Img/calendar.png' id='trigger'/></td>
</tr>
<tr>
<th scope='row' align='left'><label for='bimestre_fecha_termino'>Fecha Termino:</label></th>
<td><input type='text' id='bimestre_fecha_termino' name='bimestre_fecha_termino' value='" . $fechatermino . "' readonly='readonly'/>
<img src='/reservas/CSS/Img/calendar.png' id='trigger2'/></td>
</tr>
<tr>
<th scope='row' align='left'><label for='bimestre_comentario'>Comentario:</label></th>
<td><textarea name='bimestre_comentario' id='bimestre_comentario' cols='45' rows='5'>" .$comentario. "</textarea></td>
</tr>
</table>
"; ?>
<script type='text/javascript'>
Calendar.setup(
{
inputField : 'bimestre_fecha_inicio', // ID of the input field
ifFormat: '%Y-%m-%d', // the date format
button : 'trigger' ,
weekNumbers: false,
showsTime : false // ID of the button
}
);
</script>
<script type='text/javascript'>
Calendar.setup(
{
inputField : 'bimestre_fecha_termino', // ID of the input field
ifFormat : '%Y-%m-%d', // the date format
button : 'trigger2', // ID of the button
weekNumbers: false,
showsTime : false
}
);
</script>
</div>
</body>
</html>
Basicamente estoy colocando los calendarios en bimestre_fecha_inicio y bimestre_fecha_termino y los ejecuto presionando trigger1 y trigger2.