44 lines
1.2 KiB
PHP
44 lines
1.2 KiB
PHP
<?php
|
|
if (!defined("LIBFOURNISSEURS_INC")){
|
|
define(LIBFOURNISSEURS_INC,1);
|
|
|
|
class Fournisseur {
|
|
var $_id;
|
|
var $_nom;
|
|
var $_adresse;
|
|
var $_famille;
|
|
var $_tel;
|
|
var $_fax;
|
|
var $_siret;
|
|
var $_siren;
|
|
|
|
function Fournisseur($id,$nom, $adresse, $famille, $tel, $fax, $siret, $siren){
|
|
$this->_nom = $nom;
|
|
$this->_adresse = $adresse;
|
|
$this->_famille = $famille;
|
|
$this->_tel = $tel;
|
|
$this->_fax = $fax;
|
|
$this->_siret = $siret;
|
|
$this->_siren = $siren;
|
|
$this->_id = $id;
|
|
}
|
|
|
|
function toHTML(){
|
|
// affichage
|
|
$content="";
|
|
$content.="<input type=\"checkbox\" "
|
|
."id=\"box_fourn[]\" "
|
|
."name=\"box_fourn[]\" "
|
|
."value=\"".$this->_id."\" />\n";
|
|
$content.="<span class=\"id_fourn\">".$this->_id."</span>\n";
|
|
$content.="<span class=\"nom_fourn\">".$this->_nom."</span>\n";
|
|
$content.="<span class=\"adresse_fourn\">".$this->_adresse."</span>\n";
|
|
$content.="<span class=\"tel_fourn\">".$this->_tel."</span>\n";
|
|
$content.="<span class=\"fax_fourn\">".$this->_fax."</span>\n";
|
|
$content.="<span class=\"siret_fourn\">".$this->_siret."</span>\n";
|
|
$content.="<span class=\"siren_fourn\">".$this->_siren."</span>\n";
|
|
return $content;
|
|
}
|
|
}
|
|
}
|
|
?>
|