123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?php // $Id: index.php,v 1.44 2005/07/01 10:03:36 olivierb78 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
- ==============================================================================
- */
- /**
- ==============================================================================
- * Index of the admin tools
- *
- * @package dokeos.admin
- ==============================================================================
- */
- $langFile='survey_answer';
- $cidReset=true;
- $lang = $_REQUEST['lang'];
- $_SESSION["user_language_choice"]=$lang;
- 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)."/course.lib.php");
- //$tool_name=get_lang("AdministrationTools");
- $surveyid = $_REQUEST['surveyid'];
- $uid1 = $_REQUEST['uid1'];
- $db_name = $_REQUEST['db_name'];
- $temp = $_REQUEST['temp'];
- $user_table = Database :: get_main_table(MAIN_USER_TABLE);
- $survey_user_info_table = Database :: get_main_table(MAIN_SURVEY_USER_TABLE);
- $sql_uname= "SELECT * FROM $survey_user_info_table WHERE id = $uid1";
- $res_uname = api_sql_query($sql_uname,__FILE__,__LINE__);
- $obj= @mysql_fetch_object($res_uname);
- $username = $obj->firstname;
- $sql_sname= "SELECT * FROM $db_name.survey WHERE survey_id = $surveyid";
- $res_sname = api_sql_query($sql_sname,__FILE__,__LINE__);
- $obj_sname= @mysql_fetch_object($res_sname);
- $surveyname = $obj_sname->title;
- $lang = $obj_sname->lang;
- Display::display_header($tool_name);
- api_display_tool_title($tool_name);
- ?>
- <link href="../css/survey_white.css" rel="stylesheet" type="text/css">
- <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F6F5F5">
- <table width="727" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F6F5F5">
- <tr>
- <td width="23" height="21" class="form-top-1"> </td>
- <td height="21" class="form-top-2"> </td>
- <td width="20" height="21" class="form-top-3"> </td>
- </tr>
- <tr>
- <td class="form-left"> </td>
- <td valign="top"><table width="100%" height="132" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="2" align="center" class="text">
- <br>
- <?=$obj_sname->surveythanks;?>
- <br>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="center" class="text"><input type="button" name="exit" value="<? if($lang=='french')echo 'Quitter'; else if($lang=='dutch') echo 'Verlaten'; else echo 'Exit';?>" onclick="document.location.href='<?php echo api_get_path(WEB_PATH) ?>'">
- </td>
- </tr>
- </table></td>
- <td class="form-right"> </td>
- </tr>
- <tr>
- <td class="form-bottom-1"> </td>
- <td class="form-bottom-2"> </td>
- <td class="form-bottom-3"> </td>
- </tr>
- </table>
- <?php
- /*
- ==============================================================================
- FOOTER
- ==============================================================================
- */
- Display::display_footer();
- ?>
|