123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?php
- $langFile = 'survey';
- $temp = $_REQUEST['temp'];
- require ('../inc/global.inc.php');
- require_once (api_get_path(LIBRARY_PATH)."/surveymanager.lib.php");
- $status = surveymanager::get_status();
- if($status==5)
- {
- api_protect_admin_script();
- }
- $cidReq = $_REQUEST['cidReq'];
- require_once (api_get_path(LIBRARY_PATH)."/course.lib.php");
- $ques = $_REQUEST['ques'];
- $ans = $_REQUEST['ans'];
- $answers = explode("|",$ans);
- $count = count($answers);
- $qtype = $_REQUEST['qtype'];
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>White Template</title>
- <link href="../survey/css_white/style.css" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- body {
- margin-left: 0px;
- margin-top: 0px;
- margin-right: 0px;
- margin-bottom: 0px;
- }
- .style5 {font-size: 12px; font-weight: bold; font-family: Arial, Helvetica, sans-serif;}
- -->
- </style>
- </head>
- <body>
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td height="85" colspan="2" align=left><img src="../cssimggray/logo_ofo.gif" border=0></td>
- </tr>
- <tr>
- <td width="66%" bgcolor="#949A9C"> <span class="text">My Portal > My Organisation</span></td>
- <td width="34%" align="right" bgcolor="#949A9C"><span class="text"></span> </td>
- </tr>
- <tr>
- <td width="66%" bgcolor="#F7EBEF" colspan="2"> <span class="text"></span></td>
-
- </tr>
- <tr>
- <td width="66%" bgcolor="949A9C"> <span class="text">My Portal > Course Home > Survey</span></td>
- <td width="34%" align="right" bgcolor="#949A9C"><span class="text"></span> </td>
- </tr>
- </table>
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr bgcolor="#FFFFFF">
- <td colspan="2" align="center" valign="top"><br>
- <br>
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="23" height="21"><img src="../survey/images_white/top-1.gif" width="23" height="21"></td>
- <td height="21" background="../survey/images_white/top-2.gif"> </td>
- <td width="20" height="21"><img src="../survey/images_white/top-3.gif" width="20" height="21"></td>
- </tr>
- <tr>
- <?
- switch ($qtype)
- {
- case "Yes/No":
- {?>
- <td height="39" background="../survey/images_white/left.gif"> </td>
- <td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
- <textarea cols="50" rows="3" disabled='true'><?echo $answers[0];?></textarea>
- <input name="radiobutton" type="radio" value="radiobutton"><br><textarea name="textfield" cols="50" rows="3" disabled='true'> <?echo $answers[1];?></textarea>
- <input name="radiobutton" type="radio" value="radiobutton"></td>
- <td background="../survey/images_white/right.gif"> </td>
- <?
- break;
- }
- case "Multiple Choice (multiple answer)":
- {?>
- <td height="39" background="../survey/images_white/left.gif"> </td>
- <td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
- <?
- $i=0;
- for($p=1;$p<$count;$i++,$p++)
- {
- ?>
- <textarea cols="50" rows="3" disabled='true'><? echo $answers[$i]; ?></textarea>
- <input type="checkbox" name="checkbox" value="checkbox"><br>
- <?
- }
- ?>
- </td>
- <td background="../survey/images_white/right.gif"> </td>
- <?
- break;
- }
- case "Multiple Choice (single answer)":
- {?>
- <td height="39" background="../survey/images_white/left.gif"> </td>
- <td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
- <?
- $i=0;
- for($p=1;$p<$count;$i++,$p++)
- {
- ?>
- <textarea cols="50" rows="3" disabled='true'><? echo $answers[$i]; ?></textarea>
- <input name="radiobutton" type="radio" value="radiobutton"><br>
- <?
- }
- ?>
- </td>
- <td background="../survey/images_white/right.gif"> </td>
- <?
- break;
- }
- case "Open":
- {?>
- <td height="39" background="../survey/images_white/left.gif"> </td>
- <td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answer: </strong><br>
- <TEXTAREA style="WIDTH: 100%" name="defaultext" rows=3 cols=60>
- </TEXTAREA>
- </td>
- <td background="../survey/images_white/right.gif"> </td>
- <?
- break;
- }
- case "Numbered":
- {?>
- <td height="39" background="../survey/images_white/left.gif"> </td>
- <td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
- <?
- $i=0;
- for($p=1;$p<$count;$i++,$p++)
- {
- ?>
- <textarea cols="50" rows="3" disabled='true'><? echo $answers[$i]; ?></textarea>
- <select>
- <option value="not applicable">Not Applicable</option>
- <option value="$i">1</option>
- <option value="$i">2</option>
- <option value="$i">3</option>
- <option value="$i">4</option>
- <option value="$i">5</option>
- <option value="$i">6</option>
- <option value="$i">7</option>
- <option value="$i">8</option>
- <option value="$i">9</option>
- <option value="$i">10</option>
- </select><br>
- <?
- }
- ?>
- </td>
- <td background="../survey/images_white/right.gif"> </td>
- <?
- break;
- }
- }
-
- ?>
-
- </tr>
- <tr>
- <td background="../survey/images_white/left.gif"> </td>
- <td><p> </p>
- </td>
- <td background="../survey/images_white/right.gif"> </td>
- </tr>
- <tr>
- <td><img src="../survey/images_white/bottom-1.gif" width="23" height="21"></td>
- <td background="../survey/images_white/bottom-2.gif"> </td>
- <td><img src="../survey/images_white/bottom-3.gif" width="20" height="21"></td>
- </tr>
- </table>
- <p><br>
- <br>
- </p>
- <p> </p>
- <p> </p></td>
- </tr>
- <tr align="right" bgcolor="#942039">
- <td height="30" align="left" class="bg-4"> <span class="text">Manager : </span><span class="text-2">user admin</span> </td>
- <td height="30" class="bg-4"><span class="text">Platform</span> <span class="text-2">Dokeos 1.6.3</span> <span class="text">© 2006 </span></td>
- </tr>
- </table>
- </body>
- </html>
|