. */ /* */ /*************************************************************************************/ require_once(__DIR__."/FichierAdminBase.class.php"); class DocumentsAdmin extends FichierAdminBase { const NOMBRE_UPLOAD = 1; public function __construct($typeobjet, $idobjet, $lang) { parent::__construct("Document", self::NOMBRE_UPLOAD, $typeobjet, $idobjet, $lang); } public function action($action) { switch($action){ case 'ajouterdoc' : $this->ajouter($_REQUEST['id'], "doc", array(), "uploaddocument"); break; case 'modifierdoc' : $this->modifier($_REQUEST['id_document'], $_REQUEST['titredoc'], $_REQUEST['chapodoc'], $_REQUEST['descriptiondoc']); break; case 'supprimerdoc' : $this->supprimer($_REQUEST['id_document']); break; case 'modclassementdoc' : $this->modclassement($_REQUEST['id_document'],$_REQUEST['type']); break; } } protected function chemin_objet($fichier) { return sprintf("../client/document/%s", $fichier); } public function bloc_transfert() { ?>
form_hidden_fieds(); ?>
table where $this->typeobjet='$this->idobjet' order by classement"; $resul =$document->query($query); while($resul && $row = $document->fetch_object($resul)) { $document = new Document(); $documentdesc = new Documentdesc(); $documentdesc->charger($row->id, $this->lang); ?>
form_hidden_fieds(); ?>