. */ /* */ /*************************************************************************************/ require_once(__DIR__."/FichierAdminBase.class.php"); class ImagesAdmin extends FichierAdminBase { const NOMBRE_UPLOAD = 5; public function __construct($typeobjet, $idobjet, $lang) { parent::__construct("Image", self::NOMBRE_UPLOAD, $typeobjet, $idobjet, $lang); } public function action($action) { switch($action){ case 'ajouterphoto' : $this->ajouter($_REQUEST['id'], "photo", array("jpg", "gif", "png", "jpeg"), "uploadimage"); break; case 'modifierphoto' : $this->modifier($_REQUEST['id_photo'], $_REQUEST['titre_photo'], $_REQUEST['chapo_photo'], $_REQUEST['description_photo']); break; case 'supprimerphoto' : $this->supprimer($_REQUEST['id_photo']); break; case 'modclassementphoto' : $this->modclassement($_REQUEST['id_photo'],$_REQUEST['type']); break; } } protected function chemin_objet($fichier) { return sprintf("../client/gfx/photos/$this->typeobjet/%s", $fichier); } public function bloc_transfert() { ?>
form_hidden_fieds(); ?>
table where $this->typeobjet='$this->idobjet' order by classement"; $resul = $image->query($query); while($resul && $row = $image->fetch_object($resul)) { $imagedesc = new Imagedesc(); $imagedesc->charger($row->id,$this->lang); ?>
form_hidden_fieds(); ?>