mcsa_view.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?php
  2. $langFile = 'survey';
  3. require ('../inc/global.inc.php');
  4. require_once (api_get_path(LIBRARY_PATH)."/surveymanager.lib.php");
  5. $status = surveymanager::get_status();
  6. if($status==5)
  7. {
  8. api_protect_admin_script();
  9. }
  10. $cidReq = $_REQUEST['cidReq'];
  11. require_once (api_get_path(LIBRARY_PATH)."/course.lib.php");
  12. $table_category = Database :: get_main_table(MAIN_CATEGORY_TABLE);
  13. $table_survey = Database :: get_course_table('survey');
  14. $table_group = Database :: get_course_table('survey_group');
  15. $table_question = Database :: get_course_table('questions');
  16. $tool_name = get_lang('ViewQuestions');
  17. $header1 = get_lang('SurveyName');
  18. $header2 = get_lang('GroupName');
  19. $header3 = get_lang('Type');
  20. $ques_id = $_GET['qid'];
  21. $ques_type = $_GET['qtype'];
  22. $db_name = $_REQUEST['db_name'];
  23. $table_question = Database :: get_course_table('questions');
  24. $sql = "SELECT * FROM $db_name.questions where qid=$ques_id";
  25. $res = api_sql_query($sql);
  26. $obj = mysql_fetch_object($res);
  27. ?>
  28. <html>
  29. <head>
  30. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  31. <title>White Template</title>
  32. <link href="../survey/css_white/style.css" rel="stylesheet" type="text/css">
  33. <style type="text/css">
  34. <!--
  35. body {
  36. margin-left: 0px;
  37. margin-top: 0px;
  38. margin-right: 0px;
  39. margin-bottom: 0px;
  40. }
  41. .style5 {font-size: 12px; font-weight: bold; font-family: Arial, Helvetica, sans-serif;}
  42. -->
  43. </style>
  44. </head>
  45. <body>
  46. <table width="100%" cellpadding="0" cellspacing="1" bordercolor="#000000" bgcolor="#000000">
  47. <tr>
  48. <td width="66%" bgcolor="#FFFFFF" class="bg-3">&nbsp;&nbsp;<span class="text">My Portal &gt; Course Home &gt; Survey</span></td>
  49. <td width="34%" align="right" bgcolor="#FFFFFF" class="bg-3"><span class="text"></span>&nbsp;</td>
  50. </tr>
  51. <tr bgcolor="#FFFFFF">
  52. <td colspan="2" align="center" valign="top"><br>
  53. <br>
  54. <table width="600" border="0" cellspacing="0" cellpadding="0">
  55. <tr>
  56. <td width="23" height="21"><img src="../survey/images_white/top-1.gif" width="23" height="21"></td>
  57. <td height="21" background="../survey/images_white/top-2.gif">&nbsp;</td>
  58. <td width="20" height="21"><img src="../survey/images_white/top-3.gif" width="20" height="21"></td>
  59. </tr>
  60. <tr>
  61. <td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
  62. <td><strong>Question: </strong><br><? echo $obj->caption;?><br><br><strong>Answers: </strong><br>
  63. <?
  64. for($i=1;$i<10;$i++)
  65. {
  66. $temp = "a".$i;
  67. if(empty($obj->$temp))
  68. break;
  69. else
  70. {
  71. ?>
  72. <textarea cols="50" rows="3" disabled='true'><? echo $obj->$temp;?></textarea>
  73. <input name="radiobutton" type="radio" value="radiobutton"><br>
  74. <?
  75. }
  76. }
  77. ?>
  78. </td>
  79. <td background="../survey/images_white/right.gif">&nbsp;</td>
  80. </tr>
  81. <tr>
  82. <td background="../survey/images_white/left.gif">&nbsp;</td>
  83. <td><p>&nbsp;</p>
  84. </td>
  85. <td background="../survey/images_white/right.gif">&nbsp;</td>
  86. </tr>
  87. <tr>
  88. <td><img src="../survey/images_white/bottom-1.gif" width="23" height="21"></td>
  89. <td background="../survey/images_white/bottom-2.gif">&nbsp;</td>
  90. <td><img src="../survey/images_white/bottom-3.gif" width="20" height="21"></td>
  91. </tr>
  92. </table>
  93. <p><br>
  94. <br>
  95. </p>
  96. <p>&nbsp;</p>
  97. <p>&nbsp; </p></td>
  98. </tr>
  99. <tr align="right" bgcolor="#FFFFFF">
  100. <td height="30" align="left" class="bg-4">&nbsp;&nbsp;<span class="text">Manager : </span><span class="text-2">user admin</span> </td>
  101. <td height="30" class="bg-4"><span class="text">Platform</span> <span class="text-2">Dokeos 1.6.3</span> <span class="text">&copy; 2006&nbsp;&nbsp;</span></td>
  102. </tr>
  103. </table>
  104. </body>
  105. </html>