コード例 #1
0
ファイル: invites.controller.php プロジェクト: Jatax/TKS
 /**
  * Créer la Popup d'édition
  * @param Invites $p_oInvite
  * @return string Code HTML
  */
 private function createEditPopup($p_oInvite)
 {
     //Création de la popup d'édition
     $oPopup = new View('popup');
     $oPopup->addData('id', $p_oInvite->getCode());
     $oPopup->addData('buttonstyle', 'btn-primary');
     $oPopup->addData('buttonicon', 'fa-edit');
     $oPopup->addData('buttontext', 'Editer');
     $oPopup->addData('title', 'Edition de l\'invitation');
     //Création du formulaire
     $oFormEdit = new FormGenerator();
     $oFormEdit->setAction('index.php?p=invites&edit=' . $p_oInvite->getCode());
     $oFormEdit->addInput('Parrain', 'user', true, false, 'text', '', $p_oInvite->getParrainLogin());
     $oFormEdit->addInput('Code', 'code', true, false, 'text', '', $p_oInvite->getCode());
     $oFormEdit->addCheckbox('Supprimer', 'delete');
     $oFormEdit->create();
     $oPopup->addData('content', $oFormEdit->getCode());
     $oPopup->create();
     return $oPopup->getCode();
 }