コード例 #1
0
 public static function getHiddenFormHtml($action, $identifiant, $buttonText)
 {
     $htmlCode = FormManager::beginForm("post", $action);
     $htmlCode .= FormManager::addHiddenInput("login", "login", html_entity_decode($identifiant->getLogin(), ENT_QUOTES, "UTF−8"));
     $htmlCode .= FormManager::addHiddenInput("mdp", "mdp", html_entity_decode($identifiant->getMdp(), ENT_QUOTES, "UTF−8"));
     $htmlCode .= FormManager::addSubmitButton($buttonText, "class=\"sansLabel\"");
     $htmlCode .= FormManager::endForm();
     return $htmlCode;
 }
コード例 #2
0
 public static function getHiddenFormHTML($action, $commentaire, $buttonText)
 {
     $htmlCode = FormManager::beginForm("POST", $action);
     $htmlCode .= FormManager::addHiddenInput("Contenu", "Contenu", HTMLUtilities::decode($commentaire->getContenu()));
     $htmlCode .= '<div class="submitWrapper">';
     $htmlCode .= FormManager::addSubmitButton();
     $htmlCode .= '</div>';
     $htmlCode .= FormManager::endForm($buttonText);
     return $htmlCode;
 }
コード例 #3
0
 public static function getFormHtml($action, $commentaire)
 {
     $htmlCode = FormManager::beginForm("post", $action);
     $htmlCode .= FormManager::addHiddenInput("idArticle", "idArticle", html_entity_decode($commentaire->getIdArticle(), ENT_QUOTES, "UTF-8")) . "<br/>";
     $htmlCode .= FormManager::addTextInput("Login", "login", "login", "50", html_entity_decode($commentaire->getLogin(), ENT_QUOTES, "UTF-8")) . "<br/>";
     $htmlCode .= FormManager::addTextAreaInput("Texte", "texte", "texte", "5", "100", html_entity_decode($commentaire->getTexte(), ENT_QUOTES, "UTF-8")) . "<br/>";
     $htmlCode .= FormManager::addSubmitButton("Envoyer", "class =\"sansLabel \"") . "<br/>";
     $htmlCode .= FormManager::endForm();
     return $htmlCode;
 }
コード例 #4
0
 public static function getFormHTML($action, $article)
 {
     $htmlCode = FormManager::beginForm("post", $action);
     $htmlCode .= FormManager::addTextInput("Titre de l'article", "Titre", "Titre", 100, html_entity_decode($article->getTitre, ENT_QUOTES, "UTF-8")) . "<br/>";
     $htmlCode .= FormManager::addTextInput("Chemin de l'image", "Image", "Image", 100, html_entity_decode($article->getImage, ENT_QUOTES, "UTF-8")) . "<br/>";
     $htmlCode .= FormManager::addTextAreaInput("Texte de l'article", "Contenu", "Contenu", 50, 100, html_entity_decode($article->getTitre, ENT_QUOTES, "UTF-8")) . "<br/>";
     $htmlCode .= FormManager::addSubmitButton("Envoyer", "class=\"sansLabel\"");
     $htmlCode .= FormManager::endForm();
     return $htmlCode;
 }
コード例 #5
0
 public static function getLoginForm()
 {
     $htmlCode = "";
     if (!isset($_SERVER['HTTPS']) || ($_SERVER['HTTPS'] = "off")) {
         $htmlCode .= "<p><strong>Attention</strong>, votre connexion n'est pas chiffrée.</p>";
     }
     $htmlCode .= FormManager::beginForm("POST", "?action=validateAuth");
     $htmlCode .= FormManager::addTextInput("login", "login", "login", "25");
     $htmlCode .= FormManager::addPasswordInput("mot de passe", "password", "password", "25");
     $htmlCode .= FormManager::addSubmitButton("Connexion");
     $htmlCode .= FormManager::endForm();
     return $htmlCode;
 }
コード例 #6
0
 public static function getHiddenFormHtml($action, $personnage, $buttonText)
 {
     $htmlCode = FormManager::beginForm("post", $action);
     $htmlCode .= FormManager::addHiddenInput("numDocteur", "numDocteur", html_entity_decode($personnage->getNumDocteur(), ENT_QUOTES, "UTF−8"));
     $htmlCode .= FormManager::addHiddenInput("anneeDebut", "anneeDebut", html_entity_decode($personnage->getAnneeDebut(), ENT_QUOTES, "UTF−8"));
     $htmlCode .= FormManager::addHiddenInput("anneeFin", "anneeFin", html_entity_decode($personnage->getAnneeFin(), ENT_QUOTES, "UTF−8"));
     $htmlCode .= FormManager::addHiddenInput("acteur", "acteur", html_entity_decode($personnage->getActeur(), ENT_QUOTES, "UTF−8"));
     $htmlCode .= FormManager::addHiddenInput("expFav", "expFav", html_entity_decode($personnage->getExpFav(), ENT_QUOTES, "UTF−8"));
     $htmlCode .= FormManager::addHiddenInput("desc", "desc", html_entity_decode($personnage->getDesc(), ENT_QUOTES, "UTF−8"));
     $htmlCode .= FormManager::addHiddenInput("urlImage", "urlImage", html_entity_decode($personnage->getUrlImage(), ENT_QUOTES, "UTF−8"));
     $htmlCode .= FormManager::addSubmitButton($buttonText, "class=\"sansLabel\"");
     $htmlCode .= FormManager::endForm();
     return $htmlCode;
 }
コード例 #7
0
 public static function getFormErrorsHtmlEdition($action, $article, $dataErrors)
 {
     $htmlCode = FormManager::beginForm("post", $action);
     $htmlCode .= self::addErrorMsg($dataErrors, "id");
     $htmlCode .= FormManager::addHiddenInput("Id", "id", "id", "4", html_entity_decode($article->getId(), ENT_QUOTES, "UTF-8")) . "<br/>";
     $htmlCode .= self::addErrorMsg($dataErrors, "titre");
     $htmlCode .= FormManager::addTextInput("Titre", "titre", "titre", "50", html_entity_decode($article->getTitre(), ENT_QUOTES, "UTF-8")) . "<br/>";
     $htmlCode .= self::addErrorMsg($dataErrors, "urlImage");
     $htmlCode .= FormManager::addTextInput("UrlImage", "urlImage", "urlImage", "50", html_entity_decode($article->getUrlImage(), ENT_QUOTES, "UTF-8")) . "<br/>";
     $htmlCode .= self::addErrorMsg($dataErrors, "texte");
     $htmlCode .= FormManager::addTextAreaInput("Texte", "texte", "texte", "5", "100", html_entity_decode($article->getTexte(), ENT_QUOTES, "UTF-8")) . "<br/>";
     $htmlCode .= FormManager::addSubmitButton("Envoyer", "class=\"sansLabel\"") . "<br/>";
     $htmlCode .= FormManager::endForm();
     return $htmlCode;
 }