open_view.php 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. $header2 = get_lang('GroupName');
  18. $header3 = get_lang('Type');
  19. $ques_id = $_GET['qid'];
  20. $gname=surveymanager::ques_id_group_name($ques_id);
  21. $ques_type = $_GET['qtype'];
  22. $sql = "SELECT * FROM $db_name.questions where qid='$ques_id'";
  23. $res = api_sql_query($sql);
  24. $obj = mysql_fetch_object($res);
  25. ?>
  26. <html>
  27. <head>
  28. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  29. <title>White Template</title>
  30. <link href="../survey/css_white/style.css" rel="stylesheet" type="text/css">
  31. <style type="text/css">
  32. <!--
  33. body {
  34. margin-left: 0px;
  35. margin-top: 0px;
  36. margin-right: 0px;
  37. margin-bottom: 0px;
  38. }
  39. .style5 {font-size: 12px; font-weight: bold; font-family: Arial, Helvetica, sans-serif;}
  40. -->
  41. </style>
  42. </head>
  43. <body>
  44. <table width="100%" cellpadding="0" cellspacing="1" bordercolor="#000000" bgcolor="#000000">
  45. <tr>
  46. <td width="66%" bgcolor="#FFFFFF" class="bg-3">&nbsp;&nbsp;<span class="text">My Portal &gt; Course Home &gt; Survey</span></td>
  47. <td width="34%" align="right" bgcolor="#FFFFFF" class="bg-3"><span class="text"></span>&nbsp;</td>
  48. </tr>
  49. <tr bgcolor="#FFFFFF">
  50. <td colspan="2" align="center" valign="top"><br>
  51. <br>
  52. <table width="600" border="0" cellspacing="0" cellpadding="0">
  53. <tr>
  54. <td width="23" height="21"><img src="../survey/images_white/top-1.gif" width="23" height="21"></td>
  55. <td height="21" background="../survey/images_white/top-2.gif">&nbsp;</td>
  56. <td width="20" height="21"><img src="../survey/images_white/top-3.gif" width="20" height="21"></td>
  57. </tr>
  58. <tr>
  59. <td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
  60. <td><strong>Question: </strong><br><? echo $obj->caption;;?><br><br><strong>Answer: </strong><br>
  61. <TEXTAREA style="WIDTH: 100%" name="defaultext" rows=3 cols=60>
  62. </TEXTAREA>
  63. </td>
  64. <td background="../survey/images_white/right.gif">&nbsp;</td>
  65. </tr>
  66. <tr>
  67. <td background="../survey/images_white/left.gif">&nbsp;</td>
  68. <td><p>&nbsp;</p>
  69. </td>
  70. <td background="../survey/images_white/right.gif">&nbsp;</td>
  71. </tr>
  72. <tr>
  73. <td><img src="../survey/images_white/bottom-1.gif" width="23" height="21"></td>
  74. <td background="../survey/images_white/bottom-2.gif">&nbsp;</td>
  75. <td><img src="../survey/images_white/bottom-3.gif" width="20" height="21"></td>
  76. </tr>
  77. </table>
  78. <p><br>
  79. <br>
  80. </p>
  81. <p>&nbsp;</p>
  82. <p>&nbsp; </p></td>
  83. </tr>
  84. <tr align="right" bgcolor="#FFFFFF">
  85. <td height="30" align="left" class="bg-4">&nbsp;&nbsp;<span class="text">Manager : </span><span class="text-2">user admin</span> </td>
  86. <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>
  87. </tr>
  88. </table>
  89. </body>
  90. </html>