Пример #1
0
} else {
    Html::simpleHeader($LANG['plugin_formcreator']['name2'], array(__('Authentication') => "../../../index.php?co=1", __('FAQ') => "../../../front/helpdesk.faq.php", $LANG['plugin_formcreator']['name2'] => "./formlist.php"), "chargement({$cache}, {$affiche})");
}
echo "<div class='center'>" . "\n\r";
$form = $helpdesk->getForm($formID);
echo "<p class='h1'>" . $form['name'] . "</p>";
echo "<p class='h6'>" . $form['content'] . "</p><br />";
if (!empty($verifQuestion)) {
    echo '<form action="' . $CFG_GLPI["root_doc"] . '/plugins/formcreator/front/helpdesk.form.php" 
         enctype="multipart/form-data" id="form_ticket" name="form_ticket" method="post">';
    echo '<input type="hidden" name="id" value="' . $form['id'] . '" />';
    $sections = $helpdesk->getSection($formID);
    $listequestion = "'";
    $boolMultiplication = 0;
    foreach ($sections as $section_id => $section_value) {
        $questions = $helpdesk->getQuestionBySection($section_id);
        if (!empty($questions)) {
            echo "<div class='spaced' id='sec_" . $section_id . "'>";
            echo "<table class='tab_cadre_fixe fix_tab_height'>";
            echo "<tr>";
            echo "<th colspan='5'>" . $section_value['name'] . "</th>";
            echo "</tr>";
            if (!empty($section_value['content'])) {
                echo "<tr>";
                echo "<td colspan='4' class='center'>" . nl2br($section_value['content']) . '</td>';
                echo "</tr>";
            }
            foreach ($questions as $question_id => $question_value) {
                echo "<tr id='" . $question_id . "'>";
                if ($question_value['type'] != "10") {
                    // empeche de mettre le nom de la question sur le formulaire pour liste déraoulante utlisateur