コード例 #1
0
ファイル: index.php プロジェクト: SalokineTerata/intranet
 $page_action = $page_default . "_post.php";
 $page_pdf = $page_default . "_pdf.php";
 $action = 'valider';
 //Action proposée à la page _post.php
 $method = 'POST';
 //Pour une url > 2000 caractères, ne pas utiliser utiliser GET
 $html_table = "table " . "border=1 " . "width=100% " . " ";
 $selection_proprietaire1 = Lib::getParameterFromRequest('selection_proprietaire1');
 $selection_proprietaire2 = Lib::getParameterFromRequest('selection_proprietaire2');
 $selection_marque = Lib::getParameterFromRequest('selection_marque');
 $selection_activite = Lib::getParameterFromRequest('selection_activite');
 $selection_rayon = Lib::getParameterFromRequest('selection_rayon');
 $selection_environnement = Lib::getParameterFromRequest('selection_environnement');
 $selection_reseau = Lib::getParameterFromRequest('selection_reseau');
 $selection_saisonnalite = Lib::getParameterFromRequest('selection_saisonnalite');
 $classificationModifier = ClassificationFta2Model::getClassificationModification($idUser);
 $classificationConsultation = Acl::getValueAccesRights("classification_consultation");
 if ($classificationModifier) {
     $editable = TRUE;
 } elseif ($classificationConsultation) {
     $editable = FALSE;
 }
 $isEditable = TRUE;
 if (!$selection_proprietaire1) {
     $selection_proprietaire1 = 0;
 }
 ClassificationFta2Model::initClassification($selection_proprietaire1, $selection_proprietaire2, $selection_marque, $selection_activite, $selection_rayon, $selection_environnement, $selection_reseau, $selection_saisonnalite);
 $bloc .= "<" . $html_table . "><tr class=titre>" . "<td>Proprietaire (Groupe)</td>" . "<td>Proprietaire (Enseigne)</td>" . "<td>" . HtmlResult::MARQUE . "</td>" . "<td>" . HtmlResult::ACTIVITE . "</td>" . "<td>" . HtmlResult::RAYON . "</td>" . "<td>" . HtmlResult::ENVIRONNEMENT . "</td>" . "<td>" . HtmlResult::RESEAU . "</td>" . "<td>" . HtmlResult::SAISONALITE . "</td>" . "</tr>";
 $bloc .= "<td>" . ClassificationFta2Model::getListeClassificationProprietaireGroupe($selection_proprietaire1, $isEditable) . "</td>";
 if ($selection_proprietaire1) {
     $bloc .= "<td>" . ClassificationFta2Model::getListeClassification($selection_proprietaire1, $selection_proprietaire2, ClassificationFta2Model::FIELDNAME_ID_PROPRIETAIRE_ENSEIGNE, ClassificationFta2Model::FIELDNAME_ID_PROPRIETAIRE_GROUPE, 'selection_proprietaire2', $isEditable, $selection_marque2) . "</td>";