|
@@ -101,9 +101,6 @@ switch($tipo){
|
|
|
$fecha_fin_new = date("Y-m-d", strtotime($fecha_new))." ".$duracion_tiempo;
|
|
|
$dia_new = date('w', strtotime($fecha_new));
|
|
|
|
|
|
- $fecha_cambio = DateTime::createFromFormat('d/m/Y', $fecha_cambio)->format('Y-m-d');
|
|
|
- $dia_falta = date('w', strtotime($fecha_cambio));
|
|
|
-
|
|
|
$fecha_nueva = date('d/m/Y', strtotime($fecha_new));
|
|
|
$fecha_clase = date('d/m/Y', strtotime($fecha_cambio));
|
|
|
break;
|
|
@@ -185,34 +182,14 @@ try{
|
|
|
$db->query("SELECT * from fi_solicitud($query)", $db_params);
|
|
|
}catch(Exception $e){
|
|
|
echo "ERROR Cambio<br>".$e->getMessage();
|
|
|
- echo $query;
|
|
|
- print_r($db_params);
|
|
|
- //header("Location: ".$pag."?error=1");
|
|
|
+ //echo $query;
|
|
|
+ //print_r($db_params);
|
|
|
+ header("Location: ".$pag."?error=1");
|
|
|
exit();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
MandaCorreos::enviarCorreo($db, $asunto, $texto, $user->facultad["facultad_id"], MandaCorreos::COORDINADOR);
|
|
|
|
|
|
-/*if($to!= "" && ENVIO_CORREOS){
|
|
|
- $texto .= "<p>Ingresa al <a href='https://paad.lci.ulsa.mx'>sistema PAAD</a> para autorizarlo.</p>";
|
|
|
- $asunto = "Reposición nueva - solicitud";
|
|
|
- //crear plantilla
|
|
|
- $texto = '<body >
|
|
|
- <img src="https://paad.lci.ulsa.mx/imagenes/logo_lasalle.png" alt="La Salle" style="margin-bottom:60px">
|
|
|
- '.$texto.'
|
|
|
- </body>';
|
|
|
-
|
|
|
- require_once('../include/phpmailer/PHPMailerAutoload.php');
|
|
|
- if($_ENV['DB_NAME'] == "paad_pruebas"){
|
|
|
- $asunto = "PRUEBAS-".$asunto;
|
|
|
- Mailer::enviarCorreo("alejandro.lara@lasalle.mx", $asunto, $texto, true);
|
|
|
- }else{
|
|
|
- Mailer::enviarCorreo($to, $asunto, $texto, true);
|
|
|
- }
|
|
|
-
|
|
|
-}*/
|
|
|
-
|
|
|
header("Location: ".$pag."?ok=0");
|
|
|
exit();
|
|
|
?>
|