Пример #1
0
//anonyme or not ?
Session::checkLoginUser();
//onload
$helpdesk = new PluginFormcreatorHelpdesk();
$formID = $_GET['form'];
$verifQuestion = $helpdesk->getQuestionByForm($formID);
if (!empty($verifQuestion)) {
    $cache = "\"";
    $affiche = "\"";
    foreach ($verifQuestion as $question_id => $question_value) {
        $x = $y = 0;
        if ($question_value['type'] == 8) {
            $tab = PluginFormcreatorQuestion::_unserialize($question_value['data']);
            foreach ($tab['value'] as $value_id => $value) {
                if ($x != 0) {
                    $cache .= $helpdesk->creationTabDyna($tab['question'][$value_id]);
                    if (strlen($cache) > 2) {
                        $cache .= ":";
                    }
                } else {
                    if (isset($tab['question'][$value_id])) {
                        $affiche .= $helpdesk->creationTabDyna($tab['question'][$value_id]);
                        if (strlen($affiche) > 2) {
                            $affiche .= ":";
                        }
                    }
                    $x = 1;
                }
            }
        } else {
            if ($question_value['type'] == 9) {