blank.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?php
  2. $langFile = 'survey';
  3. $temp = $_REQUEST['temp'];
  4. require ('../inc/global.inc.php');
  5. require_once (api_get_path(LIBRARY_PATH)."/surveymanager.lib.php");
  6. $status = surveymanager::get_status();
  7. if($status==5)
  8. {
  9. api_protect_admin_script();
  10. }
  11. $cidReq = $_REQUEST['cidReq'];
  12. require_once (api_get_path(LIBRARY_PATH)."/course.lib.php");
  13. $ques = $_REQUEST['ques'];
  14. $ans = $_REQUEST['ans'];
  15. $answers = explode("|",$ans);
  16. $count = count($answers);
  17. $qtype = $_REQUEST['qtype'];
  18. ?>
  19. <html>
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  22. <title>Blank template</title>
  23. <style type="text/css">
  24. <!--
  25. body {
  26. margin-left: 0px;
  27. margin-top: 0px;
  28. margin-right: 0px;
  29. margin-bottom: 0px;
  30. }
  31. .style5 {font-size: 12px; font-weight: bold; font-family: Arial, Helvetica, sans-serif;}
  32. -->
  33. </style>
  34. <link href="file:///D|/EasyPHP1-8/www/dokeosIFA/main/css/default.css" rel="stylesheet" type="text/css">
  35. </head>
  36. <body>
  37. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  38. <tr>
  39. <td width="69%" height="29" bgcolor="#264269"><font face="Verdana">&nbsp;&nbsp;<font color="#FFFFFF" size="2"><strong>My Portal - My Organisation</strong></font></font></td>
  40. <td width="31%" align="right" bgcolor="#264269" class="bg-1">&nbsp;&nbsp;</td>
  41. </tr>
  42. <tr>
  43. <td height="24" bgcolor="#90AFDD" class="bg-3">&nbsp;</td>
  44. <td height="24" align="right" bgcolor="#90AFDD" class="topBanner"><span class="text"></span>&nbsp;&nbsp;</td>
  45. </tr>
  46. <tr bordercolor="#6699FF">
  47. <td colspan="2" align="center" valign="top"><br><br>
  48. <table width="707" border="0" cellspacing="0" cellpadding="0">
  49. <tr>
  50. <?
  51. switch ($qtype)
  52. {
  53. case "Yes/No":
  54. {?>
  55. <td width="100%" bgcolor="F6F5F5"><p><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
  56. <? echo html_entity_decode($ques);?><br>
  57. <font size="2"><strong>Answers:</strong></font><br>
  58. <textarea cols="50" rows="3" disabled='true'><?echo $answers[0];?></textarea>
  59. &nbsp;
  60. <input name="radiobutton" type="radio" value="radiobutton">
  61. </font></p>
  62. <p><font face="Verdana">
  63. <textarea cols="50" rows="3" disabled='true'><?echo $answers[1];?></textarea>
  64. &nbsp;
  65. <input name="radiobutton" type="radio" value="radiobutton">
  66. </font></p></td>
  67. <td width="10" height="161" bgcolor="F6F5F5">&nbsp;</td>
  68. <?
  69. break;
  70. }
  71. case "Multiple Choice (multiple answer)":
  72. {?>
  73. <td width="100%" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
  74. <? echo $ques;?><br>
  75. <br>
  76. <strong><font size="2">Answers: </font></strong><br>
  77. <?
  78. $i=0;
  79. for($p=1;$p<$count;$i++,$p++)
  80. {
  81. ?>
  82. <textarea cols="50" rows="3" disabled='true'><? echo $answers[$i]; ?></textarea>&nbsp;
  83. <input type="checkbox" name="checkbox" value="checkbox"></font>
  84. <br>
  85. <?
  86. }
  87. ?>
  88. </td>
  89. <td width="8" height="161" bgcolor="F6F5F5">&nbsp;</td>
  90. <?
  91. break;
  92. }
  93. case "Multiple Choice (single answer)":
  94. {?>
  95. <td width="100%" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
  96. <? echo $ques;?><br>
  97. <br>
  98. <strong><font size="2">Answers: </font></strong><br>
  99. <?
  100. $i=0;
  101. for($p=1;$p<$count;$i++,$p++)
  102. {
  103. ?>
  104. <textarea cols="50" rows="3" disabled='true'><? echo $answers[$i]; ?></textarea>
  105. <input name="radiobutton" type="radio" value="radiobutton"> </font>
  106. <br>
  107. <?
  108. }
  109. ?>
  110. </td>
  111. <td width="8" height="161" bgcolor="F6F5F5">&nbsp;</td>
  112. <?
  113. break;
  114. }
  115. case "Open":
  116. {?>
  117. <td width="87" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
  118. <? echo $ques;?><br>
  119. <br>
  120. <strong><font size="2">Answers: </font></strong><br></font>
  121. <textarea style="WIDTH: 100%" name="defaultext" rows=3 cols=60>
  122. </textarea>
  123. </td>
  124. <?
  125. break;
  126. }
  127. case "Numbered":
  128. {?>
  129. <td width="144" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
  130. <? echo $ques;?><br>
  131. <br>
  132. <strong><font size="2">Answers: </font></strong><br>
  133. <?
  134. $i=0;
  135. for($p=1;$p<$count;$i++,$p++)
  136. {
  137. ?>
  138. <textarea cols="50" rows="3" disabled='true'><? echo $answers[$i]; ?></textarea>
  139. <select>
  140. <option value="not applicable">Not Applicable</option>
  141. <option value="$i">1</option>
  142. <option value="$i">2</option>
  143. <option value="$i">3</option>
  144. <option value="$i">4</option>
  145. <option value="$i">5</option>
  146. <option value="$i">6</option>
  147. <option value="$i">7</option>
  148. <option value="$i">8</option>
  149. <option value="$i">9</option>
  150. <option value="$i">10</option></font>
  151. </select>
  152. <br>
  153. <?
  154. }
  155. ?>
  156. </td>
  157. <?
  158. break;
  159. }
  160. }
  161. ?>
  162. </tr>
  163. </table>
  164. <p>&nbsp;</p></td>
  165. </tr>
  166. <tr align="right">
  167. <td height="31" align="left" bgcolor="#E5EDF9" class="bg-4"><font face="Verdana">&nbsp;&nbsp;<span class="text"><font size="2">Manager : <font color="#4171B5"><strong>user admin</strong></font></font></span> </font></td>
  168. <td height="31" bgcolor="#E5EDF9" class="bg-4"><span class="text"><font size="2" face="Verdana">Platform <font color="#4171B5"><strong>Dokeos 1.6.3</strong></font></font> <font size="2" face="Verdana">&copy; 2006</font></span>&nbsp;&nbsp;</td>
  169. </tr>
  170. </table>
  171. </body>
  172. </html>