='$row[AR7Fecha1]' OR AR9Fecha2= '')","","","",""); $rowTAR = mysql_fetch_array($tar); $DiasMesMax = $rowTAR[AR9Cant6]; $DiasMesMin = $rowTAR[AR9Cant5]; $DiaSemanaMax = $rowTAR[AR9Cant4]; $DiasSemanaMin = $rowTAR[AR9Cant3]; $FechaEntregaMaxMes = date("d/m/Y", strtotime("$row[AR7Fecha1] +$DiasMesMax day")); $fechaauxiliar=explode("-", $row[AR7Fecha2]); $FechaEntrega =$fechaauxiliar[2]."/".$fechaauxiliar[1]."/".$fechaauxiliar[0]; if ($vengoDe=="Apertura"){ $regreso="document.location.href='versup.php?$COKO"."Operaciones/ingresoContrato.htm'"; } else{ $regreso="history.back()"; } $cantP=LeerStd($pagos,"410PAG","*","PAGLinea13 = '$row[AR7Linea13]'","","","",""); $rowP=mysql_fetch_array($pagos); // echo ""; // echo ""; if ($ciudad1!=$ciudad2){ echo ""; } else{ $fechaauxiliar=explode("/", $FechaEntrega); $fecha1 =$fechaauxiliar[2]."-".$fechaauxiliar[1]."-".$fechaauxiliar[0]; $fechaauxiliar=explode("/", $FechaEntregaMaxMes); $fecha2 =$fechaauxiliar[2]."-".$fechaauxiliar[1]."-".$fechaauxiliar[0]; if ($fecha1 > $fecha2){ $tFechaEstimada = $FechaEntregaMaxMes; } else { $tFechaEstimada = $FechaEntrega; } if($cantCTR > 0){ echo ""; } else { if ($row[AR7Lista3]!="CX - Cancelado"){ if ($row[AR7Lista3]!="SN - Confirmado o Vendido" && $row[AR7Lista3] != "PR - Prepagada/Local"){ if ($row[AR7Lista3]=="LNP - Lista de Espera Prepago" && $cantP<=0 && $row[AR7Lista2] != '02 - Reservas Receptivas'){ echo ""; } else if ($cantP>0 || $row[AR7Lista2] == '02 - Reservas Receptivas'){ if ($FechaHoy==$row[AR7Fecha1]){ $link="versup.php?$COKO"."Operaciones/ingresoContratoPorReserva.htm"; echo "
"; $linea="document.contratos.submit();"; echo ""; } else if ($FechaHoy > $row[AR7Fecha1] AND $contingReser == 1){ $link="versup.php?$COKO"."Operaciones/ingresoContratoPorReserva.htm"; echo ""; $linea="document.contratos.submit();"; echo ""; } else { echo ""; } } else{ echo ""; } } else{ if ($FechaHoy==$row[AR7Fecha1]){ $link="versup.php?$COKO"."Operaciones/ingresoContratoPorReserva.htm"; echo ""; $linea="document.contratos.submit();"; echo ""; } else if ($FechaHoy > $row[AR7Fecha1] AND $contingReser == 1){ $link="versup.php?$COKO"."Operaciones/ingresoContratoPorReserva.htm"; echo ""; $linea="document.contratos.submit();"; echo ""; } else { echo ""; } } } else{ echo ""; } } //Cierre el ELSE if($cantCTR > 0){ } ?>