//Classification Controle de Gestion if (!$suivant_classification_arborescence_article_categorie) { $bloc .= "<{$html_table}>\n <tr class=titre><td>Code de regroupement controle de gestion\n </td></tr>\n <tr><td>\n <{$html_table}>\n <tr><td>\n " . mysql_field_desc("classification_arborescence_article", "FAMILLE_ARTICLE") . "\n </td><td>\n <input type=\"text\" name=\"FAMILLE_ARTICLE\" size=\"20\" />\n <a href=l:rp_data.mdb target=_blank>\n <img src=../lib/images/bouton_aide_point_interrogation.gif width=25 height=26 border=0 /> </a>\n </td></tr>\n <tr><td>\n " . mysql_field_desc("classification_arborescence_article", "FAMILLE_MKTG") . "\n </td><td>\n <input type=\"text\" name=\"FAMILLE_MKTG\" size=\"20\" />\n <a href=l:rp_data.mdb target=_blank>\n <img src=../lib/images/bouton_aide_point_interrogation.gif width=25 height=26 border=0 /> </a>\n </td></tr>\n </table>\n </td></tr>\n "; } $action = "valider"; $page_action = $page_default . "_post.php"; break; case "modifier": $titre = "Modification de l'élément"; $submit_label = "Modifier"; //Classification Controle de Gestion $classificationArborescenceArticleModel = new ClassificationArborescenceArticleModel($id_classification_arborescence_article); $id_classification_arborescence_article_categorie_contenu = $classificationArborescenceArticleModel->getDataField(ClassificationArborescenceArticleModel::FIELDNAME_ID_CLASSIFICATION_ARBORESCENCE_ARTICLE_CATEGORIE_CONTENU)->getFieldValue(); $classificationArborescenceArticleCategorieContenuModel = new ClassificationArborescenceArticleCategorieContenuModel($id_classification_arborescence_article_categorie_contenu); $id_classification_arborescence_article_categorie = $classificationArborescenceArticleCategorieContenuModel->getDataField(ClassificationArborescenceArticleCategorieContenuModel::FIELDNAME_ID_CLASSIFICATION_ARBORESCENCE_ARTICLE_CATEGORIE)->getFieldValue(); $classificationArborescenceArticleCategorieModel = new ClassificationArborescenceArticleCategorieModel($id_classification_arborescence_article_categorie); $suivant_classification_arborescence_article_categorie = $classificationArborescenceArticleCategorieModel->getDataField(ClassificationArborescenceArticleCategorieModel::FIELDNAME_SUIVANT_CLASSIFICATION_ARBORESCENCE_ARTICLE_CATEGORIE)->getFieldValue(); if (!$suivant_classification_arborescence_article_categorie) { $bloc .= "<" . $html_table . ">\n <tr class=titre><td>Code de regroupement controle de gestion\n </td></tr>\n <tr><td>\n <" . $html_table . ">\n <tr><td>\n " . mysql_field_desc("classification_arborescence_article", "FAMILLE_ARTICLE") . "\n </td><td>\n <input type=\"text\" name=\"FAMILLE_ARTICLE\" size=\"20\" value=\"{$FAMILLE_ARTICLE}\" />\n <a href=l:rp_data.mdb target=_blank>\n <img src=../lib/images/bouton_aide_point_interrogation.gif width=25 height=26 border=0 /> </a>\n </td></tr>\n <tr><td>\n " . mysql_field_desc("classification_arborescence_article", "FAMILLE_MKTG") . "\n </td><td>\n <input type=\"text\" name=\"FAMILLE_MKTG\" size=\"20\" value=\"{$FAMILLE_MKTG}\" />\n <a href=l:rp_data.mdb target=_blank>\n <img src=../lib/images/bouton_aide_point_interrogation.gif width=25 height=26 border=0 /> </a>\n </td></tr>\n </table>\n </td></tr>\n "; $action = "modifier"; $page_action = $page_default . "_post.php"; } else { $bloc .= " Il n'y a rien à modifier pour cet élément."; $submit_label = "Annuler"; $page_action = "index.php?liste_id={$liste_id}"; } break; } /* Sélection du mode d'affichage */
$page_query = $_SERVER['QUERY_STRING']; $page_action = $page_default . '.php'; $page_pdf = $page_default . '_pdf.php'; $method = 'POST'; //Pour une url > 2000 caractères, ne pas utiliser utiliser GET $html_table = 'table ' . 'border=0 ' . 'width=100% ' . 'class=contenu '; $paramIdClaasifElement = Lib::getParameterFromRequest(ClassificationArborescenceArticleCategorieModel::KEYNAME); if ($paramIdClaasifElement) { $globalConfig = new GlobalConfig(); $globalConfig->refreshTableInDatabaseDescription(ClassificationArborescenceArticleCategorieContenuModel::TABLENAME); $titre = UserInterfaceMessage::FR_CLASSIFICATION_ADD_ELEMENT_MESSAGE; $htmlTableClassificationElement = ClassificationArborescenceArticleCategorieContenuModel::getHtmlTableClassificationElement($paramIdClaasifElement); } else { $titre = UserInterfaceMessage::FR_CLASSIFICATION_ELEMENT_MESSAGE; } $listeDesClassifElement = ClassificationArborescenceArticleCategorieModel::getListeDeroulanteClassifElement($paramIdClaasifElement, Chapitre::EDITABLE); $bloc = $listeDesClassifElement . $htmlTableClassificationElement; /* Sélection du mode d'affichage */ switch ($output) { /* * *********** Début Code PDF * *********** */ case 'pdf': //Constructeur $pdf = new XFPDF(); //Déclaration des variables de formatages $police_standard = 'Arial'; $t1_police = $police_standard; $t1_style = 'B';