Пример #1
0
}
while ($cache[0] == ":") {
    $cache = substr($cache, 1, 0);
}
while ($affiche[0] == ":") {
    $affiche = substr($affiche, 1, 0);
}
$cache .= "\"";
$affiche .= "\"";
if (Session::getLoginUserID()) {
    Html::header($LANG['plugin_formcreator']['name'], $_SERVER['PHP_SELF'], "plugins", "formcreator", "form", "chargement({$cache}, {$affiche})");
} 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>";