PV.Pat File Manager

Kernel Version: Linux webm010.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64

Domains: CANT READ named.confSites Server IP: 10.127.20.10 [Bing Search] [Zone-H]

Path : /home/sptporgazz/www/_js/
File Upload :
Current File : /home/sptporgazz/www/_js/fonctionsJS.js~

var menu_actif=0;


//Les fonctions pour charger le contenu des pages


																//Sous_menus_presentation
																function charger_historique() {
																	
																	menu_actif=1;placer_menu_actif();
																	
																	
																	jQuery('.un_sous_menu').css({'font-weight':'normal'});
																	jQuery('#sous_menu11').css({'font-weight':'bold'});
																	
																	
																	
																	jQuery('.un_sous_menu').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'normal'});
																			}
																	);
																	
																	jQuery('#sous_menu11').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			}
																	);
																	
																	
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/historique.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							sliding();
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/historique.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}









																function charger_missions() {
																	
																	menu_actif=1;placer_menu_actif();
																	
																	jQuery('.un_sous_menu').css({'font-weight':'normal'});
																	jQuery('#sous_menu12').css({'font-weight':'bold'});
																	
																	
																	
																	jQuery('.un_sous_menu').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'normal'});
																			}
																	);
																	
																	jQuery('#sous_menu12').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			}
																	);
																	
																	
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/missions.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/missions.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}






																function charger_representativites() {
																	
																	menu_actif=1;placer_menu_actif();
																	
																	jQuery('.un_sous_menu').css({'font-weight':'normal'});
																	jQuery('#sous_menu13').css({'font-weight':'bold'});
																	
																	
																	
																	jQuery('.un_sous_menu').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'normal'});
																			}
																	);
																	
																	jQuery('#sous_menu13').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			}
																	);
																	
																	
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/representativites.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/representativites.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}







                               //sous_menus organisation
																function charger_conseil_admin() {
																	
																	 menu_actif=2;placer_menu_actif();
																	
																	jQuery('.un_sous_menu').css({'font-weight':'normal'});
																	jQuery('#sous_menu21').css({'font-weight':'bold'});
																	
																	
																	
																	jQuery('.un_sous_menu').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'normal'});
																			}
																	);
																	
																	jQuery('#sous_menu21').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			}
																	);
																	
																	
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/conseil_admin.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/conseil_admin.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}






																function charger_membres() {
																	
																	 menu_actif=2;placer_menu_actif();
																	
																	jQuery('.un_sous_menu').css({'font-weight':'normal'});
																	jQuery('#sous_menu22').css({'font-weight':'bold'});
																	
																	
																	
																	jQuery('.un_sous_menu').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'normal'});
																			}
																	);
																	
																	jQuery('#sous_menu22').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			}
																	);
																	
																	
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/membres.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/membres.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}









                               //sous_menus calendrier
																function charger_annee_precedente() {
																	
																	menu_actif=3;placer_menu_actif();
																	
																	jQuery('.un_sous_menu').css({'font-weight':'normal'});
																	jQuery('#sous_menu31').css({'font-weight':'bold'});
																	
																	
																	
																	jQuery('.un_sous_menu').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'normal'});
																			}
																	);
																	
																	jQuery('#sous_menu31').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			}
																	);
																	
																	
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/annee_precedente.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/annee_precedente.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}
																
																
																
																
																
																
																function charger_annee_actuelle() {
																	
																	 menu_actif=3;placer_menu_actif();
																	
																	jQuery('.un_sous_menu').css({'font-weight':'normal'});
																	jQuery('#sous_menu32').css({'font-weight':'bold'});
																	
																	
																	
																	jQuery('.un_sous_menu').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'normal'});
																			}
																	);
																	
																	jQuery('#sous_menu32').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			}
																	);
																	
																	
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/annee_actuelle.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/annee_actuelle.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}
																
																
																
																
																
																
																
																
																
																//sous_menus chiffres_cles
																function charger_chiffres_cles() {
																	
																	menu_actif=4;placer_menu_actif();
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/chiffres_cles.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/chiffres_cles.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}
																
																
																
																
																
																
																
																//sous_menus espace adherants
																function charger_comptes_rendus() {
																	
																	 menu_actif=5;placer_menu_actif();
																	
																	jQuery('.un_sous_menu').css({'font-weight':'normal'});
																	jQuery('#sous_menu51').css({'font-weight':'bold'});
																	
																	
																	
																	jQuery('.un_sous_menu').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'normal'});
																			}
																	);
																	
																	jQuery('#sous_menu51').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			}
																	);
																	
																	
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/comptes_rendus.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/comptes_rendus.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}
																
																
																
																
																function charger_status() {
																	
																	 menu_actif=5;placer_menu_actif();
																	
																	jQuery('.un_sous_menu').css({'font-weight':'normal'});
																	jQuery('#sous_menu52').css({'font-weight':'bold'});
																	
																	
																	
																	jQuery('.un_sous_menu').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'normal'});
																			}
																	);
																	
																	jQuery('#sous_menu52').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			}
																	);
																	
																	
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/status.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/status.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}
																
																
																
																
																
																
																function charger_cotisations() {
																	
																	menu_actif=5;placer_menu_actif();
																	
																	jQuery('.un_sous_menu').css({'font-weight':'normal'});
																	jQuery('#sous_menu53').css({'font-weight':'bold'});
																	
																	
																	
																	jQuery('.un_sous_menu').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'normal'});
																			}
																	);
																	
																	jQuery('#sous_menu53').hover(
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			},
																			function() {
																				jQuery(this).css({'font-weight':'bold'});
																			}
																	);
																	
																	
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/cotisations.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/cotisations.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}
																
																
																
																
																 //sous_menus contact
																function charger_contact() {
																	
																	menu_actif=6;placer_menu_actif();
																	
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/contact.php?quest=banniere',
																						success:function(msg){
																							jQuery('.centre_page_haut_droite').html(msg);
																							}
																					});
																					
																					
																					jQuery.ajax({
																						type:'GET',
																						url:'_requetes/contact.php?quest=contenu',
																						success:function(msg){
																							jQuery('.centre_page_bas_droite').html(msg);
																							}
																					});
																					
																					
																}

//Fin des fonctions pour charger le contenu des pages






//Pour le facebox de connexion 


function start_facebox() {
	jQuery('a[rel*=facebox]').facebox();

}


//Fin facebox




//Pour le plan de contact


function centreMap(string)
{
	
	
	var icone_parking=new GIcon();
  icone_parking.image='_images/icon-parking.jpg';
  icone_parking.iconsize=new GSize(16,14);
  icone_parking.shadowSize=new GSize(5,10);
  icone_parking.iconAnchor=new GPoint(16,14);
  icone_parking.infoWindowAnchor=new GPoint(10,3);
  icone_parking.infoShadowAnchor=new GPoint(16,14);
	
	
	var tab = new Array();
			jQuery('.centre_page_haut_droite').jmap('SearchAddress', {
				'query': string,
				'returnType': 'getLocations'
				
			}, function(result, options)
			{
				var valid = Mapifies.SearchCode(result.Status.code);
				
							if (valid.success) {
							jQuery.each(result.Placemark, function(i, point){
								tab[1] = point.Point.coordinates[1];
								tab[0] = point.Point.coordinates[0];
								//Apparition de la div 
								
											//Réinitialisation de la map au bon endroit
											jQuery('.centre_page_haut_droite').jmap('init',
																{
																'mapType':G_HYBRID_MAP,
																'mapControl':'small',
																'mapEnableType':true,
																'mapEnableSmoothZoom':true,
																'mapCenter':[tab[1], tab[0]],
																'mapZoom': 15
																												}
												);
												//Marquage de l'adresse
												jQuery('.centre_page_haut_droite').jmap('AddMarker',{
													'pointLatLng':[tab[1], tab[0]],
													'pointHTML':'<span style="color:#004773;font-size:15px;">'+point.address+'</span>'
												});
												
												jQuery('.centre_page_haut_droite').jmap('AddMarker',{
													'pointLatLng':[48.8763644, 2.301036],
													'pointHTML':'<span style="color:#004773;font-size:14px;">Parking SPTP</span>',
													'pointIcon':icone_parking
												});
							});
		}
	});			
}




//fin pour le plan de contact





























jQuery.getDocHeight = function(){
				  return Math.max(
// 				      jQuery(document).height(),
				      jQuery(window).height(),
				      /* For opera: */
				      document.documentElement.clientHeight
				  );
			};


			jQuery.getDocWidth = function(){
				  return Math.max(
				      //jQuery(document).width(),
				      jQuery(window).width(),
				      /* For opera: */
				      document.documentElement.clientWidth
				  );
			};
			
			
			




	      function resize_fond() {

			  var client_height = jQuery.getDocHeight(); //alert(client_height);

				var client_width = jQuery.getDocWidth(); //alert(client_height);

					  //calcul hauteur centre_page
					  var haut_centre = client_height-260; //120 pour menu 120 pour footer ET 10+10 en marges
						  jQuery('.centre_page').css({'min-height':haut_centre+'px'});
	      }
	      
	      
	      
	     
	     
	     
	     function recheck_menu() {
				 e='rien';
						//Si on passe la souris sur le menu
							jQuery('.un_menu').hover(
							
											function() {
								
																	
																	switch(menu_actif)
																		{
																			case 2:
																				var e = 'menu_organisation';
																				el = e;
																				break;
																				
																			case 3:
																				var e = 'menu_calendrier';
																				el = e;
																				break;
																			case 4:
																				var e = 'menu_chiffres';
																				el="";
																				break;
																			case 5:
																				var e = 'menu_adherants';
																				el = e;
																				break;
																			case 6:
																				var e = 'menu_contact';
																				el="";
																				break;
																			case 1:
																				var e = 'menu_presentation';
																				el = e;
																				break;
																		}
																		
																		
																		
																		   
																	           jQuery('.un_menu').css({'background':'none','color':'gray'});
																			 
																							
																							jQuery('#'+e).css({'background':'#999999','color':'white'});
																				
																				
																					
																											if(jQuery(this).attr('id')!=e) {
																												
																												jQuery(this).css({'background':'#999999','color':'white'});
																												
																													jQuery(this).children('.interieur_un_menu').animate({
																													'top':'10px'
																													}, 300, function() {
																														// Animation complete.
																														
																																	
																														
																														//charger_historique();
																														
																														
																													});
																													
																											} else {
																												jQuery(this).children('.interieur_un_menu').css({'top:':'10px'});
																												jQuery(this).css({'background':'#999999','color':'white'});
																											}
											},
											function() {
																	
																		
																	switch(menu_actif)
																		{
																			case 2:
																				var e = 'menu_organisation';
																				el = e;
																				break;
																				
																			case 3:
																				var e = 'menu_calendrier';
																				el = e;
																				break;
																			case 4:
																				var e = 'menu_chiffres';
																				el="";
																				break;
																			case 5:
																				var e = 'menu_adherants';
																				el = e;
																				break;
																			case 6:
																				var e = 'menu_contact';
																				el="";
																				break;
																			case 1:
																				var e = 'menu_presentation';
																				el = e;
																				break;
																		}
																		
																		
																		
																				
																	
																															
																												jQuery('#'+e).css({'background':'#999999','color':'white'});
																																			
																					
																						
																												var par = jQuery(this);
																												
																												if(jQuery(this).attr('id')!=e) {
																													
																													
																														
																													
																													jQuery(this).children('.interieur_un_menu').animate({
																														'top':'75px'
																														}, 300, function() {
																															// Animation complete.
																															
																															//charger_historique();
																															
																															
																															par.css({'background':'none','color':'gray'});
																															
																														});
																														
																														
																														if((jQuery(this).attr('id')=='menu_chiffres')||(jQuery(this).attr('id')=='menu_contact')) {
																															par.css({'background':'none','color':'gray'});
																														}
																														
																														
																												} else {
																													jQuery(this).children('.interieur_un_menu').css({'top:':'10px'});
																													jQuery(this).css({'background':'#999999','color':'white'});
																												}
											}
											
							);
			 }
	      
	      
	      function placer_menu_actif() {
					
					          jQuery('.un_menu').children('.interieur_un_menu').css({'top':'75px'});
										jQuery('.un_menu').children('.interieur_un_menu_2').css({'top':'75px'});
										jQuery('.un_menu').css({'background':'none','color':'gray'});
										
										var el="";
										
										switch(menu_actif)
										{
											case 2:
												var e = jQuery('#menu_organisation');
												el = e;
												break;
												
											case 3:
												var e = jQuery('#menu_calendrier');
												el = e;
												break;
											case 4:
												var e = jQuery('#menu_chiffres');
												break;
											case 5:
												var e = jQuery('#menu_adherants');
												el = e;
												break;
											case 6:
												var e = jQuery('#menu_contact');
												break;
											case 1:
												var e = jQuery('#menu_presentation');
												el = e;
												break;
										}
										
										
										
										if(e) {
													e.css({'background':'#999999','color':'white'});
													
													e.hover(
																			function() {																						
																					jQuery(this).css({'background':'#999999','color':'white'});
																			},
																			function() {
																					jQuery(this).css({'background':'#999999','color':'white'});
																			}
													);
										}
										
										
										if(el!="") {
											el.children('.interieur_un_menu').css({'top':'10px'});
											el.hover(
																function() {																						
																		el.children('.interieur_un_menu').css({'top':'10px'});
																},
																function() {
																		el.children('.interieur_un_menu').css({'top':'10px'});
																}
											);
										}
										
					
					
				}
				
				
				
				
	      
	      
	      
	      
jQuery(document).ready(function(){
	
							resize_fond();
							
							
							
// 							//page accueil
// 							jQuery('.un_menu').css({'background':'white','color':'gray'});
// 																	jQuery('#menu_presentation').css({'background':'#999999','color':'white'});
// 																	
// 																	
// 																	jQuery('.un_menu').hover(
// 																			function() {
// 																				jQuery(this).css({'background':'#999999','color':'white'});
// 																			},
// 																			function() {
// 																				jQuery(this).css({'background':'white','color':'gray'});	
// 																			}
// 																	);
// 													
// 													
// 													
// 													jQuery('#menu_presentation').hover(
// 																			function() {
// 																				jQuery(this).css({'background':'#999999','color':'white'});
// 																			},
// 																			function() {
// 																				jQuery(this).css({'background':'#999999','color':'white'});	
// 																			}
// 																	);
// 																	
// 							jQuery('.interieur_un_menu').animate({
// 									'top':'75px'
// 									}, 200, function() {
// 														// Animation complete.
// 														jQuery('#interieur_presentation').animate({
// 															'top':'0px'
// 															}, 300, function() {
// 																// Animation complete.
// 																
// 																charger_historique();
// 																
// 																
// 														});
// 										
// 								});
// 								
// 								
// 								//Fin page accueil
								
								
								
								
							
							
							
								recheck_menu();
								placer_menu_actif();
																	
																	
							
							
							
							
							
							//Si on clique sur presentation
							jQuery('#menu_presentation .titre_un_menu').click(function() {
																
																menu_actif=1;
																recheck_menu();
																placer_menu_actif();
																//charger_historique();									
									
							});
							
							
							//Si on clique sur organisation
							jQuery('#menu_organisation .titre_un_menu').click(function() {
																
																menu_actif=2;
																recheck_menu();
																placer_menu_actif();
																//charger_conseil_admin();									
									
							});
							
							
							
							
							//Si on clique sur calendrier
							jQuery('#menu_calendrier .titre_un_menu').click(function() {								
																				
													menu_actif=3;	
													recheck_menu();
													placer_menu_actif();
													//charger_annee_actuelle();													
									
							});
							
							
							
							
							
							//Si on clique sur chiffres clés
							jQuery('#menu_chiffres .titre_un_menu').click(function() {
								
												menu_actif=4;
												recheck_menu();
												placer_menu_actif();
												//charger_chiffres_cles();												
									
							});
							
							
							
							
							//Si on clique sur espace adherants
							jQuery('#menu_adherants .titre_un_menu').click(function() {
													menu_actif=5;
													recheck_menu();
													placer_menu_actif();
													//charger_comptes_rendus();
									
									
							});
							      
							
							
							//Si on clique sur contact
							jQuery('#menu_contact .titre_un_menu').click(function() {
												menu_actif=6;
												recheck_menu();
												placer_menu_actif();
												//charger_contact();
									
									
							});
							
							
							
							jQuery('.un_menu').click(function() {
								
											jQuery.ajax({
													type:'GET',
													url:'_requetes/menu_clicked.php',
													success:function(msg){
													}
												});
							});
							
							
	
});

WiTcH hUnT3r Plugin 2018