%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/devcapijob/public_html/site/Templates/js/
Upload File :
Create Path :
Current File : /home/devcapijob/public_html/site/Templates/js/region_rubrique_accueil-no.js

$(function(){blink();$('.inline_reg').click(function(){$('#inline_region').modal({show:true});})
$('.inline').click(function(){$('#inline_domaine').modal({show:true});})
$(".check_select").click(function(){
	var str="";
	$(".check_select:checked").each(function(){
		str+=$(this).attr("alt")+"<br/>";});
});
$(".check_domaines").click(function(){
	var count=0;var 
	domaine=this.id;
	if($(this).prop("checked")){
		$("input[rel=\""+domaine+"\"]").prop("checked",true);
	}else{
		$("input[rel=\""+domaine+"\"]").prop("checked",false);
	}
var rel=$(this).attr('id');$("."+rel+"").html('');
$("input[rel=\""+rel+"\"]:checked").each(function(){
	count+=1;
	$("."+rel+"").html('('+count+')');
});
});
$(".chk_reg").click(function(){
	var reg=this.id;
	if($(this).prop("checked")){
	if(reg=="reg_0"){
		$(".chk_dep").prop("checked",true);
		$(".chk_unique_reg").prop("checked",false);
		$(".chk_unique_reg").prop("disabled",true);
	}else{
		$("input[rel=\""+reg+"\"]").prop("checked",true);
	}
   }else{
   	if(reg=="reg_0"){
   		$(".chk_dep").prop("checked",false);
   		$(".chk_unique_reg").prop("checked",false);
   		$(".chk_unique_reg").prop("disabled",false);
   	}else{
   		$("input[rel=\""+reg+"\"]").prop("checked",false);
   	}}});
$(".chk_dep").click(function(){
	var rel=$(this).attr("rel");
	var nb=0;
	var chked=0;
	$("input[rel=\""+rel+"\"]").each(function(){
		nb++;
		if($(this).prop("checked")){
			chked++;
		}});
	if(nb==chked){
		$("#"+rel).prop("checked",true);
	}else{
		$("#"+rel).prop("checked",false);
	}});
$(".check_region").click(function(){var str="";var str_r="";var id_value_region=$("#id_value_region").val();$(".check_region:checked").each(function(){str_r+=$(this).attr("alt")+",";if($(this).attr("name")!="region[]"){str+="<input type=\"hidden\" name=\"depart[]\" value=\""+$(this).attr("value")+"\">";}else{str+="<input type=\"hidden\" name=\"region[]\" value=\""+$(this).attr("value")+"\">";}});$("#value_regions").val(str_r);$("#values_regions_id").html(str);});$(".check_rubrique").click(function(){var str="";var str_r="";var count=0;$(".check_rubrique:checked").each(function(){str_r+=$(this).attr("alt")+",";if($(this).attr("name")!="domaine[]"){str+="<input type=\"hidden\" name=\"rubrique[]\" value=\""+$(this).attr("value")+"\">";}else{str+="<input type=\"hidden\" name=\"domaine[]\" value=\""+$(this).attr("value")+"\">";}});$("#value_postes").val(str_r);$("#values_postes_id").html(str);var rel=$(this).attr('rel');$("input[id=\""+rel+"\"]").prop("checked",false);$("."+rel+"").html('');$("input[rel=\""+rel+"\"]:checked").each(function(){count+=1;$("."+rel+"").html('('+count+')');});});$(".check_rubrique").each(function(){var count=0;var rel=$(this).attr('rel');$("."+rel+"").html('');$("input[rel=\""+rel+"\"]:checked").each(function(){count+=1;$("."+rel+"").html('('+count+')');});});$(".check_pays").click(function(){var str="";$('.check_region').prop("disabled",false)
$(".check_pays:checked").each(function(){str+=$(this).attr("alt")+",";$('.check_region').prop("disabled",true);str+="<input type=\"hidden\" name=\"pays[]\" value=\""+$(this).attr("value")+"\">";});$("#value_region").html(str);});});function blink(){$(".clignotement").animate({opacity:0},1000).animate({opacity:1},1000);setTimeout("blink()",4000);}

Zerion Mini Shell 1.0