Parque Cultural del Maestrazgo
$linea = "#A3242F"; //linea de color
$calendar_language = "es"; //The extension of the calendar language file.
$content_background_color = "#E8E3E9"; //Background color of the column
$content_font_color = "#000000"; //The font color
$content_font_size = 10; //Font-size in pixels
$content_font_style = "normal"; //Set to italic or normal
$content_font_weight = "normal"; //Set to bold or normal
$today_background_color = "white"; //Background color of the column
$today_font_color = "#ccff99"; //The font color
$today_font_size = 11; //Font-size in pixels
$today_font_style = "normal"; //Set to italic or normal
$today_font_weight = "bold"; //Set to bold or normal
$dia_ocupado_color_fondo = "#7ADD5C";
$dia_ocupado_color_letra = "#000000";
$dia_ocupado_tamano_letra = 10;
$dia_ocupado_fondo = "images/diaprog_naranja.jpg";
$event_background_color = "#CECEFF"; //Background color of the column
$event_background_color2 = "#FFFFFF"; //Background color of the 2nd column (event popup)
$event_font_color = "#CCFF99"; //The font color
$event_font_size = 10; //Font-size in pixels
$event_font_style = "normal"; //Set to italic or normal
$event_font_weight = "bold"; //Set to bold or normal
$event_popup_width = "250"; //Width of the popup for the events
$event_popup_height = "350"; //Height of the popup for the events
$head_background_color = "#A6B8B8"; //Background color of the column
$head_font_color = "#FFFFFF"; //The font color
$head_font_size = 11; //Font-size in pixels
$head_font_style = "normal"; //Set to italic or normal
$head_font_weight = "bold"; //Set to bold or normal
//CSS OPTIONS FOR WEEK DAYS
$days_head_background_color = "#AEACAD"; //Background color of the column
$days_head_font_color = "#FFFFFF"; //The font color
$days_head_font_size = 10; //Font-size in pixels
$days_head_font_style = "normal"; //Set to italic or normal
$days_head_font_weight = "bold"; //Set to bold or normal
$table_border = 0; //The border of the table
$table_cellspacing = 1; //Cellspacing of the table 1
$table_cellpadding = 2; //Cellpadding of the table 2
$table_width = '155px'; //Table width in pixels or %'s
$table_height = ''; //Table height in pixels or %'s
$head_link_color = "#FFFFFF"; //The color of the link for previous/next month
$head_link_backcolor = "#A6B8B8";
$font_family = "Verdana";
//$events_from_database = false; //Set to true if you want to retrieve events
//$database = "ecoturismoaragon"; //Name of the database within the event_table
//$server = "localhost"; //Name of the server
//$username = "jorge"; //MySQL username
//$password = "jorge"; //MySQL password
//$event_table = "agenda"; //Name of the calendar_events
//Load the language into usable variables
//$language_file = "calendar." . $calendar_language; //Language file into variable
//$fd = fopen( $language_file, "r" ); //Open the language file
//$fd = fread( $fd, filesize( $language_file ) ); //Read the opened file
//$language_array = explode( "\n" , $fd ); //Put file info into array
$language_array=array('Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre');
//$dayname = array_slice($language_array,0,7); //The names of the days
$monthname = array_slice($language_array,0); //The rest of the language file are the monthnames
//Use the date to build up the calendar. From the Query_string or the current date
//
if(isset($fecha) && !isset($_GET['date'])){
list($aux,$month,$year)=explode("-", $fecha);
}else{
if( isset( $_GET['date'] ) )
list($month,$year) = explode("-", $_GET['date']);
else
{
$month = date("m");
$year = date("Y");
}
}
///////////////////////////////////////////////
$date_string = mktime(0,0,0,$month,1,$year); //The date string we need for some info... saves space ^_^
$day_start = date("w",$date_string); //The number of the 1st day of the week
//modificación para que empiece en lunes la semana
if ($day_start==0) {
$day_start=6;
} else {
$day_start--;
}
//Filter the current $_GET['date'] from the QUERY_STRING
$QUERY_STRING = ereg_replace("&date=".$month."-".$year,"",$_SERVER['QUERY_STRING']);
//Calculate the previous/next month/year
if( $month < 12 )
{
$previous_month=$month-1;
$next_month = $month+1;
$next_date = $next_month."-".$year;
}
else
{
$previous_month=11;
$next_year = $year+1;
$next_date = "1-".$next_year;
$next_month = 1;
}
if( $month > 1 )
{
$previous_month = $month-1;
$next_month = $month+1;
if($next_month==13) {
$next_month=1;
}
$previous_date = $previous_month."-".$year;
}
else
{
$previous_year = $year-1;
$previous_date = "12-".$previous_year;
$previous_month = 12;
$next_month=$month + 1;
}
// darussol: DEFINITION OF THETRANSLATED MONTH+YEAR TO BE USED IN THE TABLE AND INFO-TITLES (18 May 2004)
// e-man : USING THE VALUES OF THE PREVIOUS AND NEXT MONTH FOR THE TITLE DAY (19 May 2004);
$table_caption_prev = $monthname[$previous_month-1] ; // previous
$table_caption = $monthname[date("n",$date_string)-1]; // current
$table_caption_foll = $monthname[$next_month-1] ; // following
//Print the calendar css code
echo "
"; ?>