<?php require_once('includes/requirecompere.inc.php'); require_once('includes/question.inc.php'); $CMD_TMPL_NAME='questionnaireinfo'; $qn_id=TGET('qn_id'); $op=TGET('op'); $mb_id=current_mb_id(); if (!$qn_id) { redirect("./"); return; } $DBConn->connect(true); $questionnaire=db_load_questionnaire_by_id($DBConn,$qn_id,$mb_id); if ($questionnaire['mb_id_owner']!=$mb_id) { redirect("./"); return; } $dataset['MODIFY']=array(0); $dataset['ENTERING']=array(0); if ($op=='revise' && $_SESSION['reserv.inputcache.domain']=='questionnaire.addnew') { $dataset+=$_SESSION['reserv.inputcache.data']; $dataset+=$_SESSION['reserv.inputcache.errorareas']; } else $dataset+=$questionnaire; ?>