// JavaScript Document
ListeExposant=function(table , database)
{
	this.database=database;
	this.table=table;
	
	
	// me :
	this.me=$('<div/>');
	
	// table :
	content=$('<table/>');
	
	//
	var exposant=new Exposant();
	
	

	makeListe=function(reponse , arg2)
	{		
		$.each(reponse.boutons , creerBouton);
	}
	
	creerBouton=function(i , bouton)
	{
		if (bouton.name != 'reserve') 
		{
			var newBouton=new BoutonListe(i%2 , bouton.idElement , bouton.name , table , database)
			content.append(newBouton.me);
		}
	}
	
	
	
	$.getJSON(ModeleInteraction.root+"elements/contenus/ListeExposant/getListe.php",
			  {langue:ModeleInteraction.getLangue() , table:this.table , database:this.database},
			  makeListe);
	this.me.append(content);
}