|
@@ -20,29 +20,34 @@
|
|
|
/**
|
|
|
* @package dokeos.survey
|
|
|
* @author
|
|
|
-* @version $Id: select_question_type.php 10549 2006-12-24 16:08:47Z pcool $
|
|
|
+* @version $Id: select_question_type.php 10584 2007-01-02 15:09:21Z pcool $
|
|
|
*/
|
|
|
|
|
|
// name of the language file that needs to be included
|
|
|
$language_file = 'survey';
|
|
|
|
|
|
- require_once ('../inc/global.inc.php');
|
|
|
- api_protect_admin_script();
|
|
|
- $add_question12=$_REQUEST['add_question'];
|
|
|
- require_once ('select_question.php');
|
|
|
- require_once (api_get_path(LIBRARY_PATH).'/fileManage.lib.php');
|
|
|
- require_once (api_get_path(CONFIGURATION_PATH) ."/add_course.conf.php");
|
|
|
- require_once (api_get_path(LIBRARY_PATH)."/add_course.lib.inc.php");
|
|
|
- require_once (api_get_path(LIBRARY_PATH)."/surveymanager.lib.php");
|
|
|
- $cidReq=$_GET['cidReq'];
|
|
|
- $tool_name = get_lang('AddQuestion');
|
|
|
- $interbreadcrumb[] = array ("url" => "survey.php", "name" => get_lang('CreateSurvey'));
|
|
|
- $group_name=$_GET['groupname'];
|
|
|
- $surveyid=$_REQUEST['surveyid'];
|
|
|
- $groupid=$_REQUEST['groupid'];
|
|
|
- $questtype=$_POST['add_question'];
|
|
|
- Display::display_header($tool_name);
|
|
|
- api_display_tool_title($tool_name);
|
|
|
- select_question_type($add_question12,$groupid,$surveyid,$cidReq);
|
|
|
- Display :: display_footer();
|
|
|
+// including the global dokeos file
|
|
|
+require_once ('../inc/global.inc.php');
|
|
|
+
|
|
|
+// including additional libraries
|
|
|
+/** @todo check if these are all needed */
|
|
|
+/** @todo check if the starting / is needed. api_get_path probably ends with an / */
|
|
|
+require_once ('select_question.php');
|
|
|
+require_once (api_get_path(LIBRARY_PATH).'/fileManage.lib.php');
|
|
|
+require_once (api_get_path(CONFIGURATION_PATH) ."/add_course.conf.php");
|
|
|
+require_once (api_get_path(LIBRARY_PATH)."/add_course.lib.inc.php");
|
|
|
+require_once (api_get_path(LIBRARY_PATH)."/surveymanager.lib.php");
|
|
|
+
|
|
|
+$add_question12=$_REQUEST['add_question'];
|
|
|
+$cidReq=$_GET['cidReq'];
|
|
|
+$tool_name = get_lang('AddQuestion');
|
|
|
+$interbreadcrumb[] = array ("url" => "survey.php", "name" => get_lang('CreateSurvey'));
|
|
|
+$group_name=$_GET['groupname'];
|
|
|
+$surveyid=$_REQUEST['surveyid'];
|
|
|
+$groupid=$_REQUEST['groupid'];
|
|
|
+$questtype=$_POST['add_question'];
|
|
|
+Display::display_header($tool_name);
|
|
|
+api_display_tool_title($tool_name);
|
|
|
+select_question_type($add_question12,$groupid,$surveyid,$cidReq);
|
|
|
+Display :: display_footer();
|
|
|
?>
|