|    
			
				11/09/2008, 08:23
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: septiembre-2007 
						Mensajes: 101
					 Antigüedad: 18 años, 1 mes Puntos: 0 |  | 
  |  Respuesta: Problema con calendario fechas  
  y este es el principal por ejemplo de asignacionmaquinas<?php
 include('../sesion.php');
 include('../conexion.php');
 include('../comun.php');
 ?>
 <link	rel=stylesheet type="text/css" href="formularios.css">
 <?
 $link=Conectarse();
 if ($enviar){
 if($finicio>$ffin){ ?>
 <script language="JavaScript">
 alert("La fecha de inicio debe ser menor que la fecha de fin");
 </script>
 <?}
 else{
 $sql="SELECT id_empleado FROM empleados WHERE id_empleado='".$id_empleado."'";
 $resultado=mysql_query($sql);
 $filas=mysql_num_rows($resultado);
 $finicio=cambiaf_a_mysql($finicio);
 $ffin=cambiaf_a_mysql($ffin);
 $sql="INSERT INTO emplea_cliente_maquina (id_empleado,id_maquina,id_cliente,f_inicio,
 f_fin,observaciones) VALUES
 ('$id_empleado','$id_maquina','$id_cliente','$fini  cio','$ffin',upper('$observaciones'))";
 $resultado=mysql_query($sql);
 echo mysql_error();?>
 <script language="JavaScript">
 alert("LA ASIGNACIÓN ENTRE EMPLEADO/MÁQUINA/CLIENTE SE HA REALIZADO CORRECTAMENTE.");
 document.location.href='../comienzo.php';
 </script>
 
 <?php
 }
 
 }
 
 Y DENTRO DEL FORMULARIO EN LSO CAMPOS DE FECHAS TENGO LO SIGUIENTE:
 
 <tr>
 
 <td><span class="Estilo1">Fecha inicio </span></td>
 <td width="17%"><input name="finicio" type="text" id="finicio" size="10" maxlength="10" />
 <button type="button" onClick="window.open('../calendario/popup.html?destino=empleamaquinacliente.finicio', '_blank', 'width=267,height=167')">
 <img src="../imagenes/calen.gif" width="20" height="20">
 </button>
 </td>
 <td width="11%"><span class="Estilo1">Fecha fin </span></td>
 <td width="56%"><input name="ffin" type="text" id="ffin" size="10" maxlength="10" />
 <button type="button" onClick="window.open('../calendario/popup.html?destino=empleamaquinacliente.ffin', '_blank', 'width=267,height=167')">
 <img src="../imagenes/calen.gif" width="20" height="20">
 </button>
 </td>
 </tr>
 
 GRACIAS
     |