"survey.php", "name" => get_lang('CreateSurvey')); $groupid=$_REQUEST['groupid']; $surveyid=$_REQUEST['surveyid']; $qdeleted=0; //$cidReqdb = $dbNamePrefix.$_REQUEST['cidReq']; //echo "dsfgdsgfsdgdsfg".$groupid; if (isset($_POST['addanother'])) { $groupid = $_POST['groupid']; $surveyid = $_POST['surveyid']; $cidReq=$_REQUEST['cidReq']; header("Location:addanother.php?groupid=$groupid&surveyid=$surveyid&cidReq=$cidReq"); //header("Location:select_question_type.php?groupid=$groupid&surveyid=$surveyid&cidReq=$cidReq"); exit; } if (isset($_POST['addanotherg'])) { $groupid = $_POST['groupid']; $surveyid = $_POST['surveyid']; $cidReq=$_REQUEST['cidReq']; header("Location:create_new_group.php?groupid=$groupid&surveyid=$surveyid&cidReq=$cidReq"); exit; } if(isset($_POST['delete'])) { if(isset($_POST['qid'])) { $endloop=count($_POST['qid']); $qid1=$_POST['qid']; for($i=0;$i<$endloop;$i++) { $qid2=$qid1[$i]; $query="DELETE FROM $table_question WHERE qid='$qid2'"; api_sql_query($query); } $qdeleted=1; } } if (isset($_POST['finish'])) { $cidReq=$_REQUEST['cidReq']; header("Location:survey_list.php?cidReq=$cidReq"); exit; } $query="SELECT * FROM $table_survey WHERE survey_id='$surveyid'"; $result=api_sql_query($query); $survey_name=@mysql_result($result,0,'title'); $author=@mysql_result($result,0,'author'); $tool_name = get_lang('QuestionsAdded'); Display :: display_header($tool_name); $survey_name=get_lang('SurveyName').$survey_name; $author=get_lang('author').$author; api_display_tool_title($survey_name); api_display_tool_title($tool_name); if($qdeleted) { ?>
'; ?> "> "> "> "> /* ============================================================================== FOOTER ============================================================================== */ Display :: display_footer(); ?>