/** * Sauvegarde des modifications */ public function save() { // Mise a jour des donnees en base $model = new Etat_model(); $model->etacdeta = $this->input->post('etacdeta'); $model->etalbeta = $this->input->post('libelle'); $model->etacdact = $this->input->post('codeActivite'); $model->update($this->db); $this->session->set_userdata('message', formatInfo('Etat mis a jour')); redirect('listetats/index'); }
/** * Sauvegarde des modifications */ public function save() { // Mise a jour des donnees en base $model = new User_model(); $model->usridusr = $this->input->post('usridusr'); $model->usrlbnom = $this->input->post('nom'); $model->usrlblgn = $this->input->post('login'); $model->usrlbpwd = $this->input->post('password'); $model->update($this->db); $model->setProjects($this->db, explode(",", $this->input->post('selectedProjectIds'))); $this->session->set_flashdata('message', formatInfo('User mis a jour')); redirect('listusers/index'); }
/** * Sauvegarde des modifications */ public function save() { // Mise a jour des donnees en base $model = new Utilisateur_model(); $model->usridusr = $this->input->post('usridusr'); $model->usrcdusr = $this->input->post('codeUser'); $model->usrlbnom = $this->input->post('nom'); $model->usrlbprn = $this->input->post('prenom'); $model->usridser = $this->input->post('service'); $model->usridres = $this->input->post('responsable'); $model->update($this->db); $this->session->set_userdata('message', formatInfo('Utilisateur mis a jour')); redirect('listutilisateurs/index'); }
/** * Sauvegarde des modifications */ public function save() { // Mise a jour des donnees en base $model = new Login_model(); $model->lgnidlgn = $this->input->post('lgnidlgn'); $model->lgnidusr = $this->input->post('utilisateur'); $model->lgnlblgn = $this->input->post('login'); $model->lgnlbpwd = $this->input->post('password'); $model->lgncdprf = $this->input->post('profil'); $model->lgnfgarc = $this->input->post('flagArchive'); $model->update($this->db); $this->session->set_userdata('message', formatInfo('Login mis a jour')); redirect('listlogins/index'); }
/** * Sauvegarde des modifications */ public function save() { // Mise a jour des donnees en base $model = new Objet_model(); $model->objidobj = $this->input->post('identifiant'); $model->objcdtri = $this->input->post('trigramme'); $model->prjidprj = $this->input->post('projet'); $model->objlblib = $this->input->post('libelle'); $model->objlbcde = $this->input->post('code'); $model->objlbdes = $this->input->post('description'); $model->update($this->db); $this->session->set_userdata('message', formatInfo('Objet mis a jour')); redirect('listobjets/index'); }
/** * Ajout d'une regle de gestion */ public function save() { $selectionRdgidrdg = $this->input->post('selectionRdgidrdg'); $cduidcdu = $this->input->post('cduidcdu'); $cdu = Cdu_model::getCdu($this->db, $cduidcdu); // Affectation des règles de gestion en remplacement des anciens schémas $cdu->setRdgIds($this->db, $selectionRdgidrdg); $this->session->set_flashdata('message', formatInfo('Modification enregistrée')); // Recharge la page avec les nouvelles infos if ($this->input->post('prjidprj') != null && $this->input->post('prjidprj') != "") { redirect('editcdu/index/' . $cduidcdu . '/' . $this->input->post('prjidprj')); } else { redirect('editcdu/index/' . $cduidcdu); } }
/** * Sauvegarde des modifications */ public function save() { // Mise a jour des donnees en base $model = new Detail_model(); $model->detiddet = $this->input->post('identifiant'); $model->detlbdes = $this->input->post('texte'); $model->actidact = $this->input->post('identifiantAction'); $model->usridres = $this->input->post('identifiantUserResponsable'); $model->detdteci = $this->input->post('dtEcheanceIni'); $model->detdtecp = $this->input->post('dtEcheancePrevue'); $model->detdtecr = $this->input->post('dtEcheanceReelle'); $model->etacdeta = $this->input->post('codeEtat'); $model->update($this->db); $this->session->set_userdata('message', formatInfo('Detail mis a jour')); redirect('listdetails/index'); }
/** * Ajout d'un schema */ public function save() { $selectionSchidsch = $this->input->post('selectionSchidsch'); $rdgidrdg = $this->input->post('rdgidrdg'); $prjidprj = $this->input->post('prjidprj'); $rdg = RdG_model::getRdG($this->db, $rdgidrdg); // Affectation des schemas en remplacement des anciens schémas $rdg->setSchemasIds($this->db, $selectionSchidsch); $this->session->set_flashdata('message', formatInfo('Modification enregistrée')); // Recharge la page avec les nouvelles infos if ($prjidprj != null && $prjidprj != '') { redirect('editrdg/index/' . $rdgidrdg . '/' . $prjidprj); } else { redirect('editrdg/index/' . $rdgidrdg); } }
/** * Sauvegarde des modifications */ public function save() { // Mise a jour des donnees en base $model = new Champ_model(); $model->chpidchp = $this->input->post('identifiant'); $model->chplbcde = $this->input->post('code'); $model->chplbnom = $this->input->post('Nom'); $model->chpfgnul = $this->input->post('peutEtreNull'); $model->chpfgcle = $this->input->post('estCle'); $model->chpcdtyp = $this->input->post('type'); $model->chplbdes = $this->input->post('description'); $model->objidobj = $this->input->post('idObjet'); $model->update($this->db); $this->session->set_userdata('message', formatInfo('Champ mis a jour')); redirect('listchamps/index'); }
/** * Sauvegarde des modifications */ public function save() { // Mise a jour des donnees en base $model = new Action_model(); $model->actidact = $this->input->post('identifiant'); $model->actidpro = $this->input->post('proprietaire'); $model->actlbtit = $this->input->post('titre'); $model->actnupri = $this->input->post('priorite'); $model->actdtcre = $this->input->post('dtCreation'); $model->actdtdem = $this->input->post('dtDemarrage'); $model->actdteci = $this->input->post('dtEcheanceIni'); $model->actdtecp = $this->input->post('dtEcheancePrevue'); $model->actdtecr = $this->input->post('dtEcheanceReelle'); $model->actfgcac = $this->input->post('cacher'); $model->update($this->db); $this->session->set_userdata('message', formatInfo('Action mis a jour')); redirect('listactions/index'); }
/** * Sauvegarde les modifications d'un scenario */ public function save() { if ($this->input->post('scnidscn') == "") { // creation d'un nouveau scenario $model = new Scenario_model(); $model->scntyscn = $this->input->post('type'); $model->scnlbscn = $this->input->post('label'); $model->scnlbres = $this->input->post('result'); $model->cduidcdu = $this->input->post('cdu'); $model->save($this->db); $actions = $this->input->post('actions'); foreach ($actions as $i => $value) { $action = new Action_model(); $action->actnuord = $i; $action->actlbact = $value; $action->scnidscn = $model->scnidscn; $action->save($this->db); } $this->session->set_flashdata('message', formatInfo('Nouveau scénario ajouté')); } else { // mise à jour du scenario $model = new Scenario_model(); $model->scnidscn = $this->input->post('scnidscn'); $model->scnlbscn = $this->input->post('label'); $model->scntyscn = $this->input->post('type'); $model->scnlbres = $this->input->post('result'); $model->cduidcdu = $this->input->post('cdu'); $model->update($this->db); $model->removeAllActions($this->db); $actions = $this->input->post('actions'); foreach ($actions as $i => $value) { $action = new Action_model(); $action->actnuord = $i; $action->actlbact = $value; $action->scnidscn = $model->scnidscn; $action->save($this->db); } $this->session->set_flashdata('message', formatInfo('Scenario "' . $model->scnlbscn . '" mis à jour')); } $prjidprj = $this->input->post('prjidprj'); redirect('editcdu/index/' . $model->cduidcdu . '/' . $prjidprj); }
/** * Sauvegarde des modifications */ public function save() { // Mise a jour des donnees en base $model = new Cdu_model(); $model->cduidcdu = $this->input->post('identifiant'); $model->cdulbdes = $this->input->post('description'); $model->cdulbtit = $this->input->post('titre'); $model->cdulbnum = $this->input->post('numero'); if ($this->input->post('project') != null && $this->input->post('project') != '') { $model->prjidprj = $this->input->post('project'); } else { $model->prjidprj = $this->input->post('masterProject'); } $model->update($this->db); $this->session->set_flashdata('message', formatInfo('Cdu mis a jour')); if ($this->input->post('masterProject') == null) { redirect('listcdus/index'); } else { redirect('editproject/index/' . $model->prjidprj . '#cdu_' . $model->cduidcdu); } }
/** * Sauvegarde les modifications d'une règle de gestion */ public function save() { // Mise à jour des données en base $model = new RdG_model(); $model->rdgidrdg = $this->input->post('rdgidrdg'); $model->rdgnurdg = $this->input->post('number'); $model->rdgtyrdg = $this->input->post('type'); $model->rdglbeno = $this->input->post('anounce'); $model->rdgdtcre = $this->input->post('rdgdtcre'); if ($this->input->post('project') != null && $this->input->post('project') != '') { $model->prjidprj = $this->input->post('project'); } else { $model->prjidprj = $this->input->post('masterProject'); } $model->update($this->db); $this->session->set_flashdata('message', formatInfo('Règle "' . $model->rdgnurdg . '" mise à jour')); if ($this->input->post('masterProject') == null) { redirect('listrdgs/index'); } else { redirect('editproject/index/' . $model->prjidprj . '#rdg_' . $model->rdgidrdg); } }
/** * Suppression d'un User * @param $usridusr identifiant a supprimer */ function delete($usridusr) { User_model::delete($this->db, $usridusr); $this->session->set_flashdata('message', formatInfo('User supprime')); redirect('listusers/index'); }
/** * Suppression d'un Champ * @param $chpidchp identifiant a supprimer */ function delete($chpidchp) { Champ_model::delete($this->db, $chpidchp); $this->session->set_userdata('message', formatInfo('Champ supprime')); redirect('listchamps/index'); }
/** * Ajout d'un Objet */ public function addobjet() { // Insertion en base d'un Objet $model = new Objet_model(); $model->prjidprj = $this->input->post('projet'); $model->objlblib = $this->input->post('libelle'); $model->objlbdes = $this->input->post('description'); // trigramme non proposé à la création: prendre les 3 premiers caractères du libellé $model->objcdtri = strtolower(substr($model->objlblib, 0, 3)); // code non proposé à la création: prendre le libellé sans espace ni majuscules $model->objlbcde = str_replace(" ", "", $model->objlblib); $model->save($this->db); $this->session->set_flashdata('message', formatInfo('Nouvel objet "' . $model->objlblib . '" ajouté')); // Recharge la page avec les nouvelles infos redirect('editproject/index/' . $model->prjidprj . '#obj_' . $model->objidobj); }
/** * Suppression d'un Detail * @param $detiddet identifiant a supprimer */ function delete($detiddet) { Detail_model::delete($this->db, $detiddet); $this->session->set_userdata('message', formatInfo('Detail supprime')); redirect('listdetails/index'); }
/** * Suppression d'un projet * @param $rdgidrdg identifiant à supprimer */ function delete($prjidprj) { Project_model::delete($this->db, $prjidprj); $this->session->set_flashdata('message', formatInfo('Projet supprimé')); redirect('listprojects/index'); }
<!-- start content-outer ........................................................................................................................START --> <div id="content-outer"> <!-- start content --> <div id="content"> <!-- start page-heading --> <div id="page-heading"> <div style="float: left; with: 390px;"> <h1>Liste des %%(self.displayName.lower())%%s</h1> </div> <div style="float: right; with: 390px;"> <?php $msg = $this->session->flashdata('msg_info'); if ($msg != "") { echo formatInfo($msg); } $msg = $this->session->flashdata('msg_confirm'); if ($msg != "") { echo formatConfirm($msg); } $msg = $this->session->flashdata('msg_warn'); if ($msg != "") { echo formatWarn($msg); } $msg = $this->session->flashdata('msg_error'); if ($msg != "") { echo formatError($msg); } ?> </div>
/** * Suppression d'un Cdu * @param $cduidcdu identifiant a supprimer */ function delete($cduidcdu) { Cdu_model::delete($this->db, $cduidcdu); $this->session->set_flashdata('message', formatInfo('Cdu supprime')); redirect('listcdus/index'); }
/** * Suppression d'un schema * @param $schidsch identifiant du schema à supprimer */ function delete($schidsch) { $this->Schema_model->delete($this->db, $schidsch); $this->session->set_flashdata('message', formatInfo('Schéma supprimé')); redirect('listschemas/index'); }
/** * Suppression d'une règle de gestion * @param $rdgidrdg identifiant de la règle de gestion à supprimer */ function delete($rdgidrdg) { RdG_model::delete($this->db, $rdgidrdg); $this->session->set_flashdata('message', formatInfo('Règle supprimée')); redirect('listrdgs/index'); }
/** * Suppression d'un Objet * @param $objidobj identifiant a supprimer */ function delete($objidobj) { Objet_model::delete($this->db, $objidobj); $this->session->set_userdata('message', formatInfo('Objet supprime')); redirect('listobjets/index'); }
/** * Export de l'objet en XML * @param int $objidobj */ public function export($objidobj) { $model = Objet_model::getObjet($this->db, $objidobj); if ($model == null) { return; } $xmlString = $model->exportXML($this->db); $resultOK = force_download($model->objlblib . ".xml", $xmlString); if (!$resultOK) { $this->session->set_flashdata('message', formatInfo('Problème lors de l\'export XML')); } redirect('editobjet/index/' . $model->objidobj); }
/** * Suppression d'un Utilisateur * @param $usridusr identifiant a supprimer */ function delete($usridusr) { Utilisateur_model::delete($this->db, $usridusr); $this->session->set_userdata('message', formatInfo('Utilisateur supprime')); redirect('listutilisateurs/index'); }
/** * Suppression d'un Action * @param $actidact identifiant a supprimer */ function delete($actidact) { Action_model::delete($this->db, $actidact); $this->session->set_userdata('message', formatInfo('Action supprime')); redirect('listactions/index'); }
/** * Suppression d'un Etat * @param $etacdeta identifiant a supprimer */ function delete($etacdeta) { Etat_model::delete($this->db, $etacdeta); $this->session->set_userdata('message', formatInfo('Etat supprime')); redirect('listetats/index'); }
/** * Suppression d'un scenario * @param $scnidscn identifiant du scenario à supprimer */ function delete($scnidscn) { Scenario_model::delete($this->db, $scnidscn); $this->session->set_flashdata('message', formatInfo('Scénario supprimé')); redirect('listscenarios/index'); }
/** * Suppression d'un Login * @param $lgnidlgn identifiant a supprimer */ function delete($lgnidlgn) { Login_model::delete($this->db, $lgnidlgn); $this->session->set_userdata('message', formatInfo('Login supprime')); redirect('listlogins/index'); }