"index.php", "name" => get_lang('AdministrationTools')); $coursePathWeb = api_get_path(WEB_COURSE_PATH); $coursePathSys = api_get_path(SYS_COURSE_PATH); //define("NEW_SURVEY", 1); //define("EXISTING_SURVEY", 2); $newsurvey = '0'; //$existingsurvey = '1'; /* if ($_POST['action'] == 'add_survey') { $sql = "SELECT * FROM $table_survey WHERE id='".intval($_POST['id'])."'"; $res = api_sql_query($sql,__FILE__,__LINE__); $id = mysql_fetch_object($res); $code = trim(strtoupper(stripslashes($_POST['code']))); //$author_name = $_POST['author']; //$title = $_POST['title']; //$language = trim(stripslashes($_POST['lang'])); //$datefrom = $_POST['datefrom']; //$datetill = $_POST['datetill']; if (empty ($code)) $error_message = get_lang('PleaseEnterSurveyCode'); } */ if ($_POST['action'] == 'add_survey') { $survey = $_POST['survey']; //$existingsurvey = trim(stripslashes($_POST['existingsurvey'])); if ($survey==0) { header("location:create_new_survey.php"); exit; } else { header("location:create_ex_survey.php"); exit; } } Display::display_header($tool_name); api_display_tool_title($tool_name); ?>