123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <?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>Blank template</title>
- <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>
- <link href="file:///D|/EasyPHP1-8/www/dokeosIFA/main/css/default.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="69%" height="29" bgcolor="#264269"><font face="Verdana"> <font color="#FFFFFF" size="2"><strong>My Portal - My Organisation</strong></font></font></td>
- <td width="31%" align="right" bgcolor="#264269" class="bg-1"> </td>
- </tr>
- <tr>
- <td height="24" bgcolor="#90AFDD" class="bg-3"> </td>
- <td height="24" align="right" bgcolor="#90AFDD" class="topBanner"><span class="text"></span> </td>
- </tr>
- <tr bordercolor="#6699FF">
- <td colspan="2" align="center" valign="top"><br><br>
- <table width="707" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <?
- switch ($qtype)
- {
- case "Yes/No":
- {?>
- <td width="100%" bgcolor="F6F5F5"><p><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
- <? echo html_entity_decode($ques);?><br>
- <font size="2"><strong>Answers:</strong></font><br>
- <textarea cols="50" rows="3" disabled='true'><?echo $answers[0];?></textarea>
-
- <input name="radiobutton" type="radio" value="radiobutton">
- </font></p>
- <p><font face="Verdana">
- <textarea cols="50" rows="3" disabled='true'><?echo $answers[1];?></textarea>
-
- <input name="radiobutton" type="radio" value="radiobutton">
- </font></p></td>
- <td width="10" height="161" bgcolor="F6F5F5"> </td>
- <?
- break;
- }
- case "Multiple Choice (multiple answer)":
- {?>
- <td width="100%" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
- <? echo $ques;?><br>
- <br>
- <strong><font size="2">Answers: </font></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"></font>
- <br>
- <?
- }
- ?>
- </td>
- <td width="8" height="161" bgcolor="F6F5F5"> </td>
- <?
- break;
- }
- case "Multiple Choice (single answer)":
- {?>
- <td width="100%" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
- <? echo $ques;?><br>
- <br>
- <strong><font size="2">Answers: </font></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"> </font>
- <br>
- <?
- }
- ?>
- </td>
- <td width="8" height="161" bgcolor="F6F5F5"> </td>
- <?
- break;
- }
- case "Open":
- {?>
- <td width="87" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
- <? echo $ques;?><br>
- <br>
- <strong><font size="2">Answers: </font></strong><br></font>
-
- <textarea style="WIDTH: 100%" name="defaultext" rows=3 cols=60>
- </textarea>
- </td>
- <?
- break;
- }
- case "Numbered":
- {?>
- <td width="144" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
- <? echo $ques;?><br>
- <br>
- <strong><font size="2">Answers: </font></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></font>
- </select>
- <br>
- <?
- }
- ?>
- </td>
- <?
- break;
- }
- }
-
- ?>
- </tr>
- </table>
- <p> </p></td>
- </tr>
- <tr align="right">
- <td height="31" align="left" bgcolor="#E5EDF9" class="bg-4"><font face="Verdana"> <span class="text"><font size="2">Manager : <font color="#4171B5"><strong>user admin</strong></font></font></span> </font></td>
- <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">© 2006</font></span> </td>
- </tr>
- </table>
- </body>
- </html>
|