tieneRol("4")){ header("Location: aplicacion.php?e=permiso"); exit; } include_once("html/cabecera.php"); include_once("Objects/HTML.php"); include_once("Objects/Calendario.php"); $mes_hoy=date("m"); if($_GET['mes']!="") $mes_hoy=$_GET['mes']; if($_POST['mes']!="") $mes_hoy=$_POST['mes']; $ano_hoy=date("Y"); if($_GET['anio']!="") $ano_hoy=$_GET['anio']; if($_POST['anio']!="") $ano_hoy=$_POST['anio']; $back="administracion_festivos.php"; switch ($_POST['action'] ) { case "actualizar":// recorremos todos los días para ver cual está on try{ for($mesVer=1;$mesVer<=12;$mesVer++){ $diasFestivos=array(); $calendarioAct=new Calendario($usuario,$mesVer,$ano_hoy,array(),"",$locale); for($diaVer=1;$diaVer<=31;$diaVer++){ if($_POST[$ano_hoy."-".$mesVer."-".$diaVer]=="on"){ $diasFestivos[]=$diaVer; } } $calendarioAct->setFestivosNacional($diasFestivos); $msg=$locale['2312'].$locale['2303']; $tipo="ok"; } } catch (Exception $e){ $msg=$e->getMessage(); $tipo="error"; } break; default: break; } ?>
".$msg.""; } ?>