123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?php
- // $Id: course_add.php,v 1.10 2005/05/30 11:46:48 bmol Exp $
- /*
- ==============================================================================
- Dokeos - elearning and course management software
- Copyright (c) 2004 Dokeos S.A.
- Copyright (c) 2003 University of Ghent (UGent)
- Copyright (c) 2001 Universite catholique de Louvain (UCL)
- Copyright (c) Olivier Brouckaert
- For a full list of contributors, see "credits.txt".
- The full license can be read in "license.txt".
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
- See the GNU General Public License for more details.
- Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
- ==============================================================================
- */
- /**
- ==============================================================================
- * @package dokeos.admin
- ==============================================================================
- */
- /*
- ==============================================================================
- INIT SECTION
- ==============================================================================
- */
- $langFile = 'survey';
- require_once ('../inc/global.inc.php');
- api_protect_admin_script();
- 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");
- require_once (api_get_path(LIBRARY_PATH)."/usermanager.lib.php");
- $table_survey = Database :: get_main_table(MAIN_SURVEY_TABLE);
- $table_group = Database :: get_main_table(MAIN_GROUP_TABLE);
- $table_question = Database :: get_main_table(MAIN_SURVEYQUESTION_TABLE);
- $tool_name = get_lang('SelectQuestionByType');
- $interbredcrump[] = array ("url" => "index.php", "name" => get_lang('Survey'));
- //$questtype=$_POST['add_question'];
- Display::display_header($tool_name);
- api_display_tool_title($tool_name);
- ?>
- <SCRIPT LANGUAGE="JavaScript" src="set_default_value.js"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript" src="validatelibraryitems.js"></script>
- <table>
- <tr>
- <td>
- <?api_display_tool_title($group_name);?>
- </td>
- </tr>
- </table>
- <?
- if( isset($error_message) )
- {
- Display::display_error_message($error_message);
- }
- ?>
- <form name="question" method="post" action="question_bytype.php">
- <table>
- <tr>
- <td>
- <? echo get_lang('Selectype');?>
- </td>
- <td>
- <select name="add_question">
- <option value="0"><? echo get_lang('Select');?></option>
- <option value="<? echo get_lang('yesno');?>" <? if(isset($_POST['add_question'])){if($_POST['add_question']=="1")echo "selected";}?>><? echo get_lang('yesno');?></option>
- <option value="<? echo get_lang('MultipleChoiceSingle');?>" <? if(isset($_POST['add_question'])){if($_POST['add_question']=="2")echo "selected";}?>><? echo get_lang('MultipleChoiceSingle');?></option>
- <option value="<? echo get_lang('MultipleChoiceMulti');?>" <? if(isset($_POST['add_question'])){if($_POST['add_question']=="3")echo "selected";}?>><? echo get_lang('MultipleChoiceMulti');?></option>
- <option value="<? echo get_lang('Open');?>" <? if(isset($_POST['add_question'])){if($_POST['add_question']=="4")echo "selected";}?>><? echo get_lang('Open');?></option>
- <option value="<? echo get_lang('numbered');?>" <? if(isset($_POST['add_question'])){if($_POST['add_question']=="5")echo "selected";}?>><? echo get_lang('numbered');?></option>
- </select>
- </td>
- </tr>
- <tr></tr>
- <tr>
- <td></td>
- <td>
- <input type="submit" name= 'next' value="<? echo get_lang('next');?>">
- </td>
- </tr>
- </table>
- </form>
- <?php
- Display :: display_footer();
- ?>
|