<?php require_once('includes/requirecompere.inc.php'); require_once('includes/question.inc.php'); $CMD_TMPL_NAME='questionnaireinfo'; $op=TGET('op'); $mb_id=current_mb_id(); $dataset['ADDNEW']=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']; } $DBConn->connect(true); $dataset['questionnaire_addable']=get_compere_limit($DBConn,$mb_id,'questionnaire.count')-db_count_compere_questionnaire($DBConn,$mb_id); $dataset['QUESTIONNAIRE-ADDABLE']=$dataset['questionnaire_addable']>0?array(0):array(); $dataset['ERROR-COUNT-LIMIT']=$dataset['questionnaire_addable']>0?array():array(0); ?>