<?php require_once('includes/requirecompere.inc.php'); require_once('includes/options.inc.php'); $cs_id=TGET('cs_id'); $mb_id=current_mb_id(); $DBConn->connect(true); $dataset+=prepare_options_dataset($DBConn,null,$mb_id,null,array('for_course_detail'=>false,'is_cs_owner'=>true)); $o_addable_count=get_compere_limit($DBConn,$mb_id,'option.count')-db_count_compere_option($DBConn,$mb_id); $dataset['ADDABLE']=$o_addable_count>0?array(0):array(); $dataset['addable_count']=$o_addable_count; ?>