[svn r9949] coding standards: replace <? with <?php

http://www.dokeos.com/forum/viewtopic.php?t=7570
skala
Patrick Cool 19 years ago
parent ca6e2a6e45
commit e6ebe96bfa
  1. 30
      main/survey/addanother.php
  2. 8
      main/survey/attach_existingsurvey.php
  3. 10
      main/survey/attach_question.php
  4. 12
      main/survey/attach_survey.php
  5. 16
      main/survey/blank.php
  6. 16
      main/survey/bluebreeze.php
  7. 6
      main/survey/create_from_existing_survey.php
  8. 2
      main/survey/create_new_group.php
  9. 18
      main/survey/create_new_survey.php
  10. 16
      main/survey/group_add_question.php
  11. 6
      main/survey/group_list.php
  12. 10
      main/survey/mcma.php
  13. 6
      main/survey/mcma_edit.php
  14. 4
      main/survey/mcma_view.php
  15. 10
      main/survey/mcsa.php
  16. 6
      main/survey/mcsa_edit.php
  17. 4
      main/survey/mcsa_view.php
  18. 10
      main/survey/numbered.php
  19. 4
      main/survey/numbered_edit.php
  20. 4
      main/survey/numbered_view.php
  21. 4
      main/survey/open.php
  22. 2
      main/survey/open_view.php
  23. 8
      main/survey/preview_yesno.php
  24. 2
      main/survey/question.php
  25. 8
      main/survey/question_added.php
  26. 14
      main/survey/question_list.php
  27. 6
      main/survey/question_list_new.php
  28. 16
      main/survey/question_type.php
  29. 26
      main/survey/select_question.php
  30. 8
      main/survey/select_question_group-uploaded.php
  31. 8
      main/survey/select_question_group.php
  32. 2
      main/survey/survey_blank.php
  33. 10
      main/survey/survey_edit.php
  34. 6
      main/survey/template1.php
  35. 2
      main/survey/thanks1.php
  36. 6
      main/survey/welcome_1.php
  37. 16
      main/survey/white.php
  38. 8
      main/survey/yesno.php
  39. 4
      main/survey/yesno_edit.php

@ -131,7 +131,7 @@ if(isset($group_id))
$res = api_sql_query($sql, __FILE__, __LINE__);
$obj= mysql_fetch_object($res);
?>
<div align="center"><strong><font color="#FF0000"><? echo "Group";?>&nbsp;&nbsp;<font color="#0000CC"><u><?=$obj->groupname;?></u>&nbsp;&nbsp;</font><?=get_lang('GroupCreated');?></font></strong></div>
<div align="center"><strong><font color="#FF0000"><?php echo "Group";?>&nbsp;&nbsp;<font color="#0000CC"><u><?=$obj->groupname;?></u>&nbsp;&nbsp;</font><?=get_lang('GroupCreated');?></font></strong></div>
<?
}
@ -145,16 +145,16 @@ if(isset($group_id))
<table>
<tr>
<td>
<? echo get_lang('SelectQuestionType');?>
<?php echo get_lang('SelectQuestionType');?>
</td>
<td>
<select name="add_question" >
<option value="<?=get_lang('yesno')?>" ><? echo get_lang('yesno');?></option>
<option value="<?=get_lang('MultipleChoiceSingle')?>" ><? echo get_lang('MultipleChoiceSingle');?></option>
<option value="<?=get_lang('MultipleChoiceMulti')?>" ><? echo get_lang('MultipleChoiceMulti');?></option>
<option value="<?=get_lang('Open')?>" ><? echo get_lang('Open');?></option>
<option value="<?=get_lang('numbered')?>"><? echo get_lang('numbered');?></option>
<option value="<?php echo get_lang('yesno'); ?>" ><?php echo get_lang('yesno');?></option>
<option value="<?php echo get_lang('MultipleChoiceSingle'); ?>" ><?php echo get_lang('MultipleChoiceSingle');?></option>
<option value="<?php echo get_lang('MultipleChoiceMulti'); ?>" ><?php echo get_lang('MultipleChoiceMulti');?></option>
<option value="<?php echo get_lang('Open');?>" ><?php echo get_lang('Open');?></option>
<option value="<?php echo get_lang('numbered');?>"><?php echo get_lang('numbered');?></option>
</select>
</td>
</tr>
@ -164,15 +164,15 @@ if(isset($group_id))
<tr></tr>
<tr>
<td>
<? echo get_lang('SelectGroup');?>
<?php echo get_lang('SelectGroup');?>
</td>
<td>
<?
<?php
echo SurveyManager::select_group_list($surveyid, $groupid, $extra_script);
?>
<!--<select name="select_group" >-->
<?
<?php
/*$query="SELECT * FROM $table_group WHERE survey_id='$surveyid'";
//echo $query;
$result=api_sql_query($query);
@ -184,8 +184,8 @@ if(isset($group_id))
$gname=mysql_result($result,$i,'groupname');
*/
?>
<!--<option value="<?echo $groupid;?>" ><? echo $gname;?></option>-->
<? //}
<!--<option value="<?echo $groupid;?>" ><?php echo $gname;?></option>-->
<?php //}
?>
<!--</select>-->
@ -197,12 +197,12 @@ if(isset($group_id))
<tr>
<td>&nbsp;</td>
<td>
<input type="submit" name="back" value="<? echo get_lang("back");?>">
<input type="submit" name="next" value="<? echo get_lang("next");?>">
<input type="submit" name="back" value="<?php echo get_lang("back");?>">
<input type="submit" name="next" value="<?php echo get_lang("next");?>">
</tr>
</table>
</form>
<?
<?php
Display :: display_footer();
?>

@ -210,7 +210,7 @@ window.open(inf+".htm", 'popup', 'width=600,height=600,toolbar = no, status = no
<td><?php echo get_lang('availablefrom'); ?>&nbsp;</td>
<td>
<select name="fday">
<?
<?php
for($i=1;$i<=31;$i++){
if($i<=9) $val = "0".$i;
else $val = $i;
@ -238,7 +238,7 @@ december -->
?>
</select>
<select name="fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $curr_year)
echo "<option value=\"$i\" selected>$i</option>\n";
@ -254,7 +254,7 @@ december -->
<td><?php echo get_lang('availabletill'); ?>&nbsp;</td>
<td>
<select name="end_fday">
<? for($i=1;$i<=31;$i++){
<?php for($i=1;$i<=31;$i++){
if($i<=9)
$val = "0".$i;
else
@ -283,7 +283,7 @@ december -->
?>
</select>
<select name="end_fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $curr_year+1)
echo "<option value=\"$i\" selected>$i</option>\n";

@ -223,7 +223,7 @@ window.open(inf+".htm", 'popup', 'width=900,height=800,toolbar = no, status = no
<td><?php echo get_lang('availablefrom'); ?>&nbsp;</td>
<td>
<select name="fday">
<?
<?php
for($i=1;$i<=31;$i++){
if($i<=9) $val = "0".$i;
else $val = $i;
@ -251,7 +251,7 @@ december -->
?>
</select>
<select name="fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $curr_year)
echo "<option value=\"$i\" selected>$i</option>\n";
@ -267,7 +267,7 @@ december -->
<td><?php echo get_lang('availabletill'); ?>&nbsp;</td>
<td>
<select name="end_fday">
<? for($i=1;$i<=31;$i++){
<?php for($i=1;$i<=31;$i++){
if($i<=9)
$val = "0".$i;
else
@ -296,7 +296,7 @@ december -->
?>
</select>
<select name="end_fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $curr_year+1)
echo "<option value=\"$i\" selected>$i</option>\n";
@ -355,7 +355,7 @@ december -->
</table>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="back" value="<? echo get_lang('back');?>"></td>
<td><input type="submit" name="back" value="<?php echo get_lang('back');?>"></td>
<td><input type="submit" name="saveandexit" value="<?php echo get_lang('createlater'); ?>"></td>
<td><input type="submit" name="next" value="<?php echo get_lang('next'); ?>"></td>
</tr>

@ -220,7 +220,7 @@ window.open(inf+".htm", 'popup', 'width=900,height=800,toolbar = no, status = no
<td><?php echo get_lang('availablefrom'); ?>&nbsp;</td>
<td>
<select name="fday">
<?
<?php
for($i=1;$i<=31;$i++){
if($i<=9) $val = "0".$i;
else $val = $i;
@ -248,7 +248,7 @@ december -->
?>
</select>
<select name="fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $curr_year)
echo "<option value=\"$i\" selected>$i</option>\n";
@ -264,7 +264,7 @@ december -->
<td><?php echo get_lang('availabletill'); ?>&nbsp;</td>
<td>
<select name="end_fday">
<? for($i=1;$i<=31;$i++){
<?php for($i=1;$i<=31;$i++){
if($i<=9)
$val = "0".$i;
else
@ -278,7 +278,7 @@ december -->
<!-- month: january ->
december -->
<select name="end_fmonth">
<?
<?php
for($i=1;$i<count($MonthsLong);$i++)
{
if($i<=9)
@ -293,7 +293,7 @@ december -->
?>
</select>
<select name="end_fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $curr_year+1)
echo "<option value=\"$i\" selected>$i</option>\n";
@ -352,7 +352,7 @@ december -->
</table>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="back" value="<? echo get_lang('back');?>"></td>
<td><input type="submit" name="back" value="<?php echo get_lang('back');?>"></td>
<td><input type="submit" name="saveandexit" value="<?php echo get_lang('createlater'); ?>"></td>
<td><input type="submit" name="next" value="<?php echo get_lang('next'); ?>"></td>
</tr>

@ -60,7 +60,7 @@ body {
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>
<?php 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>
&nbsp;
@ -78,7 +78,7 @@ body {
case "Multiple Choice (multiple answer)":
{?>
<td width="100%" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
<? echo $ques;?><br>
<?php echo $ques;?><br>
<br>
<strong><font size="2">Answers: </font></strong><br>
@ -87,7 +87,7 @@ body {
for($p=1;$p<$count;$i++,$p++)
{
?>
<textarea cols="50" rows="3" disabled='true'><? echo $answers[$i]; ?></textarea>&nbsp;
<textarea cols="50" rows="3" disabled='true'><?php echo $answers[$i]; ?></textarea>&nbsp;
<input type="checkbox" name="checkbox" value="checkbox"></font>
<br>
<?
@ -101,7 +101,7 @@ body {
case "Multiple Choice (single answer)":
{?>
<td width="100%" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
<? echo $ques;?><br>
<?php echo $ques;?><br>
<br>
<strong><font size="2">Answers: </font></strong><br>
@ -110,7 +110,7 @@ body {
for($p=1;$p<$count;$i++,$p++)
{
?>
<textarea cols="50" rows="3" disabled='true'><? echo $answers[$i]; ?></textarea>
<textarea cols="50" rows="3" disabled='true'><?php echo $answers[$i]; ?></textarea>
<input name="radiobutton" type="radio" value="radiobutton"> </font>
<br>
<?
@ -124,7 +124,7 @@ body {
case "Open":
{?>
<td width="87" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
<? echo $ques;?><br>
<?php echo $ques;?><br>
<br>
<strong><font size="2">Answers: </font></strong><br></font>
@ -137,7 +137,7 @@ body {
case "Numbered":
{?>
<td width="144" bgcolor="F6F5F5"><font face="Verdana"><strong><font size="2">Question:</font> </strong><br>
<? echo $ques;?><br>
<?php echo $ques;?><br>
<br>
<strong><font size="2">Answers: </font></strong><br>
@ -146,7 +146,7 @@ body {
for($p=1;$p<$count;$i++,$p++)
{
?>
<textarea cols="50" rows="3" disabled='true'><? echo $answers[$i]; ?></textarea>
<textarea cols="50" rows="3" disabled='true'><?php echo $answers[$i]; ?></textarea>
<select>
<option value="not applicable">Not Applicable</option>
<option value="$i">1</option>

@ -74,7 +74,7 @@ body {
case "Yes/No":
{?>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php 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 cols="50" rows="3" disabled='true'><?echo $answers[1];?></textarea>
<input name="radiobutton" type="radio" value="radiobutton"></td>
@ -85,13 +85,13 @@ body {
case "Multiple Choice (multiple answer)":
{?>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php 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>
<textarea cols="50" rows="3" disabled='true'><?php echo $answers[$i]; ?></textarea>
<input type="checkbox" name="checkbox" value="checkbox"><br>
<?
}
@ -104,13 +104,13 @@ body {
case "Multiple Choice (single answer)":
{?>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php 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>
<textarea cols="50" rows="3" disabled='true'><?php echo $answers[$i]; ?></textarea>
<input name="radiobutton" type="radio" value="radiobutton"><br>
<?
}
@ -123,7 +123,7 @@ body {
case "Open":
{?>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answer: </strong><br>
<td><strong>Question: </strong><br><?php echo $ques;?><br><br><strong>Answer: </strong><br>
<TEXTAREA style="WIDTH: 100%" name="defaultext" rows=3 cols=60>
</TEXTAREA>
</td>
@ -134,13 +134,13 @@ body {
case "Numbered":
{?>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php 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>
<textarea cols="50" rows="3" disabled='true'><?php echo $answers[$i]; ?></textarea>
<select>
<option value="not applicable">Not Applicable</option>
<option value="$i">1</option>

@ -156,9 +156,9 @@ if( isset($error_message) )
?>
<table>
<tr>
<td><input type="submit" name="back" value="<? echo get_lang('back');?>"></td>
<td><input type="submit" name="view" value="<? echo get_lang('ViewQues');?>"></td>
<td><input type="submit" name="import" value="<? echo get_lang('ImportGroups');?>"></td>
<td><input type="submit" name="back" value="<?php echo get_lang('back');?>"></td>
<td><input type="submit" name="view" value="<?php echo get_lang('ViewQues');?>"></td>
<td><input type="submit" name="import" value="<?php echo get_lang('ImportGroups');?>"></td>
</tr>
</table>
</form>

@ -133,7 +133,7 @@ if ($_POST['action'] == 'new_group')
Display::display_header($tool_name1);
?>
<tr>
<td><? api_display_tool_title($header1) ?></td>
<td><?php api_display_tool_title($header1); ?></td>
</tr>
<?
if( isset($error_message) )

@ -186,7 +186,7 @@ $template = $obj->template;
<td><?php echo get_lang('availablefrom'); ?>&nbsp;</td>
<td>
<select name="fday">
<?
<?php
for($i=$todate;$i<=31;$i++){
if($i<=9)
@ -217,7 +217,7 @@ december -->
?>
</select>
<select name="fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $avail_year_from)
echo "<option value=\"$i\" selected>$i</option>\n";
@ -233,7 +233,7 @@ december -->
<td><?php echo get_lang('availabletill'); ?>&nbsp;</td>
<td>
<select name="end_fday">
<? for($i=1;$i<=31;$i++){
<?php for($i=1;$i<=31;$i++){
if($i<=9)
$val = "0".$i;
else
@ -262,7 +262,7 @@ december -->
?>
</select>
<select name="end_fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $avail_year_till)
echo "<option value=\"$i\" selected>$i</option>\n";
@ -276,7 +276,7 @@ december -->
<tr>
<td valign="top"><?php echo get_lang('IsShareSurvey'); ?>&nbsp;</td>
<td>
<input type="radio" name="isshare" value="1" <? if($obj->is_shared=='1') echo "checked";?>>Yes&nbsp;<input type="radio" name="isshare" value="0" <? if($obj->is_shared=='0') echo "checked";?>>No
<input type="radio" name="isshare" value="1" <?php if($obj->is_shared=='1') echo "checked";?>>Yes&nbsp;<input type="radio" name="isshare" value="0" <?php if($obj->is_shared=='0') echo "checked";?>>No
</td>
</tr>
<tr><td valign="top"><?php echo get_lang('surveyintroduction'); ?>&nbsp;</td>
@ -450,7 +450,7 @@ window.open(inf+".htm", 'popup', 'width=600,height=600,toolbar = no, status = no
<td><?php echo get_lang('availablefrom'); ?>&nbsp;</td>
<td>
<select name="fday">
<?
<?php
for($i=1;$i<=31;$i++){
if($i<=9) $val = "0".$i;
else $val = $i;
@ -478,7 +478,7 @@ december -->
?>
</select>
<select name="fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $curr_year)
echo "<option value=\"$i\" selected>$i</option>\n";
@ -494,7 +494,7 @@ december -->
<td><?php echo get_lang('availabletill'); ?>&nbsp;</td>
<td>
<select name="end_fday">
<? for($i=1;$i<=31;$i++){
<?php for($i=1;$i<=31;$i++){
if($i<=9)
$val = "0".$i;
else
@ -523,7 +523,7 @@ december -->
?>
</select>
<select name="end_fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $curr_year+1)
echo "<option value=\"$i\" selected>$i</option>\n";

@ -92,8 +92,8 @@ $name = surveymanager :: get_groupname($gid);
<!--<input type="hidden" name="cidReq" value="<?=$_REQUEST['cidReq']?>">-->
<table>
<tr>
<td><? api_display_tool_title($GName);?></td>
<td><? api_display_tool_title($name);?></td>
<td><?php api_display_tool_title($GName);?></td>
<td><?php api_display_tool_title($name);?></td>
</tr>
<?
if( isset($error_message) )
@ -104,7 +104,7 @@ if( isset($error_message) )
?>
<tr>
<td>
<input name="radiobutton" type="radio" value="1" checked><? echo get_lang('CreateNew');?>
<input name="radiobutton" type="radio" value="1" checked><?php echo get_lang('CreateNew');?>
</td>
</tr>
<tr>
@ -113,17 +113,17 @@ if( isset($error_message) )
</tr>
<tr>
<td>
<strong><? echo get_lang('GetFromDB');?></strong>
<strong><?php echo get_lang('GetFromDB');?></strong>
</td>
</tr>
<tr>
<td>
<input name="radiobutton" type="radio" value="2"><? echo get_lang('ByQuestion');?>
<input name="radiobutton" type="radio" value="2"><?php echo get_lang('ByQuestion');?>
</td>
</tr>
<tr>
<td>
<input name="radiobutton" type="radio" value="3"><? echo get_lang('ByGroup');?>
<input name="radiobutton" type="radio" value="3"><?php echo get_lang('ByGroup');?>
</td>
</tr>
<tr>
@ -132,8 +132,8 @@ if( isset($error_message) )
</tr>
<tr>
<td>
<input type="submit" name= 'back' value="<? echo get_lang('back');?>">
<input type="submit" name= 'next' value="<? echo get_lang('next');?>"></td>
<input type="submit" name= 'back' value="<?php echo get_lang('back');?>">
<input type="submit" name= 'next' value="<?php echo get_lang('next');?>"></td>
</tr>
</table>
</form>

@ -122,9 +122,9 @@ $table_group = Database :: get_course_table('survey_group');
?>
<table>
<tr>
<td><input type="submit" name="back1" value="<? echo get_lang('back');?>"></td>
<td><input type="submit" name="view" value="<? echo get_lang('ViewQues');?>"></td>
<td><input type="submit" name="import" value="<? echo get_lang('Import');?>"></td>
<td><input type="submit" name="back1" value="<?php echo get_lang('back');?>"></td>
<td><input type="submit" name="view" value="<?php echo get_lang('ViewQues');?>"></td>
<td><input type="submit" name="import" value="<?php echo get_lang('Import');?>"></td>
</tr>
</table>
</form>

@ -182,10 +182,10 @@ select_question_type($add_question12,$groupid,$surveyid,$cidReq,$curr_dbname);
<table>
<tr>
<td>
<? api_display_tool_title($Add);?>
<?php api_display_tool_title($Add);?>
</td>
<td>
<? api_display_tool_title($Multi);?>
<?php api_display_tool_title($Multi);?>
</td>
</tr>
</table>
@ -427,7 +427,7 @@ function checkLength(form){
?>
<tr class="form_bg" id="0">
<td width="16" height="30" align="left" class="form_text">
<? echo $sn;?>
<?php echo $sn;?>
</td>
<td class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?=$post_text[$k]?></textarea>
</td>
@ -467,7 +467,7 @@ function checkLength(form){
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<? echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<?php echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
</tr>
<? }
}
@ -514,7 +514,7 @@ function checkLength(form){
<? if(isset($_POST['add_question']))
{
?> <input type="hidden" name="add_question" value="<? echo $_POST['add_question'];?>" >
?> <input type="hidden" name="add_question" value="<?php echo $_POST['add_question'];?>" >
<? }
$sql = "SELECT * FROM $curr_dbname.survey WHERE survey_id='$surveyid'";

@ -288,7 +288,7 @@ if( isset($error_message) )
?>
<tr class="form_bg" id="0">
<td width="16" height="30" align="left" class="form_text">
<? echo $sn;?>
<?php echo $sn;?>
</td>
<td class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?=$post_text?></textarea>
</td>
@ -328,7 +328,7 @@ if( isset($error_message) )
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<? echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<?php echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
</tr>
<? }
}
@ -367,7 +367,7 @@ if( isset($error_message) )
<? if(isset($_POST['add_question']))
{
?> <input type="hidden" name="add_question" value="<? echo $_POST['add_question'];?>" >
?> <input type="hidden" name="add_question" value="<?php echo $_POST['add_question'];?>" >
<? }
$sql = "SELECT * FROM $curr_dbname.survey WHERE survey_id='$surveyid'";
$res=api_sql_query($sql);

@ -64,7 +64,7 @@ body {
<tr>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $obj->caption;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php echo $obj->caption;?><br><br><strong>Answers: </strong><br>
<?
for($i=1;$i<10;$i++)
{
@ -74,7 +74,7 @@ body {
else
{
?>
<textarea cols="50" rows="3" disabled='true'><? echo $obj->$temp; ?></textarea>
<textarea cols="50" rows="3" disabled='true'><?php echo $obj->$temp; ?></textarea>
<input type="checkbox" name="checkbox" value="checkbox"><br>
<?
}

@ -175,10 +175,10 @@ select_question_type($add_question12,$groupid,$surveyid,$cidReq,$curr_dbname);
<table>
<tr>
<td>
<? api_display_tool_title($Add);?>
<?php api_display_tool_title($Add);?>
</td>
<td>
<? api_display_tool_title($Multi);?>
<?php api_display_tool_title($Multi);?>
</td>
</tr>
</table>
@ -393,7 +393,7 @@ $start=1;$end=5;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
?>
<tr class="form_bg" id="0">
<td width="16" height="30" align="left" class="form_text">
<? echo $sn;?>
<?php echo $sn;?>
</td>
<td class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?=$post_text[$k]?></textarea>
</td>
@ -431,7 +431,7 @@ $start=1;$end=5;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
<? }
?>
<td width="30" align="center" class="form_text">
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<? echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<?php echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
</tr>
<? }
}
@ -462,7 +462,7 @@ $start=1;$end=5;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
<? if(isset($_POST['add_question']))
{
?> <input type="hidden" name="add_question" value="<? echo $_POST['add_question'];?>" >
?> <input type="hidden" name="add_question" value="<?php echo $_POST['add_question'];?>" >
<? }
$sql = "SELECT * FROM $curr_dbname.survey WHERE survey_id='$surveyid'";

@ -274,7 +274,7 @@ $start=1;$end=$check;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
?>
<tr class="form_bg" id="0">
<td width="16" height="30" align="left" class="form_text">
<? echo $sn;?>
<?php echo $sn;?>
</td>
<td class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?=$post_text?></textarea>
</td>
@ -312,7 +312,7 @@ $start=1;$end=$check;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
<? }
?>
<td width="30" align="center" class="form_text">
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<? echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<?php echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
</tr>
<? }
}
@ -343,7 +343,7 @@ $start=1;$end=$check;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
<? if(isset($_POST['add_question']))
{
?> <input type="hidden" name="add_question" value="<? echo $_POST['add_question'];?>" >
?> <input type="hidden" name="add_question" value="<?php echo $_POST['add_question'];?>" >
<? }
$sql = "SELECT * FROM $curr_dbname.survey WHERE survey_id='$surveyid'";
$res=api_sql_query($sql);

@ -61,7 +61,7 @@ body {
</tr>
<tr>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $obj->caption;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php echo $obj->caption;?><br><br><strong>Answers: </strong><br>
<?
for($i=1;$i<10;$i++)
{
@ -71,7 +71,7 @@ body {
else
{
?>
<textarea cols="50" rows="3" disabled='true'><? echo $obj->$temp;?></textarea>
<textarea cols="50" rows="3" disabled='true'><?php echo $obj->$temp;?></textarea>
<input name="radiobutton" type="radio" value="radiobutton"><br>
<?
}

@ -152,10 +152,10 @@ select_question_type($add_question12,$groupid,$surveyid,$cidReq,$curr_dbname);
<table>
<tr>
<td>
<? api_display_tool_title($Add);?>
<?php api_display_tool_title($Add);?>
</td>
<td>
<? api_display_tool_title($Multi);?>
<?php api_display_tool_title($Multi);?>
</td>
</tr>
</table>
@ -408,7 +408,7 @@ function checkLength(form){
<tr class="form_bg" id="0" >
<td width="16" height="30" align="left" class="form_text">
<? echo $sn;?>
<?php echo $sn;?>
</td>
<td class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?=$post_text[$k]?></textarea>
@ -449,7 +449,7 @@ function checkLength(form){
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<? echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<?php echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
</tr>
<? }
@ -493,7 +493,7 @@ function checkLength(form){
<? if(isset($_POST['add_question']))
{
?> <input type="hidden" name="add_question" value="<? echo $_POST['add_question'];?>" >
?> <input type="hidden" name="add_question" value="<?php echo $_POST['add_question'];?>" >
<? }
$sql = "SELECT * FROM $curr_dbname.survey WHERE survey_id='$surveyid'";

@ -256,7 +256,7 @@ $start=1;$end=$check;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
?>
<tr class="form_bg" id="0">
<td width="16" height="30" align="left" class="form_text">
<? echo $sn;?>
<?php echo $sn;?>
</td>
<td class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?=$post_text?></textarea>
</td>
@ -289,7 +289,7 @@ $start=1;$end=$check;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
<? }
?>
<td width="30" align="center" class="form_text">
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<? echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<?php echo "id".$i;?>" value="<?=$end;?>" onclick="this.form.submit();">
</tr>
<? }
}

@ -59,7 +59,7 @@ body {
</tr>
<tr>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $obj->caption;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php echo $obj->caption;?><br><br><strong>Answers: </strong><br>
<?
for($i=1;$i<10;$i++)
{
@ -69,7 +69,7 @@ body {
else
{
?>
<textarea cols="50" rows="3" disabled="true"><? echo $obj->$temp; ?></textarea>
<textarea cols="50" rows="3" disabled="true"><?php echo $obj->$temp; ?></textarea>
<select>
<option value="$i">1</option>
<option value="$i">2</option>

@ -111,10 +111,10 @@ select_question_type($add_question12,$groupid,$surveyid,$cidReq,$curr_dbname);
<table>
<tr>
<td>
<? api_display_tool_title($Add);?>
<?php api_display_tool_title($Add);?>
</td>
<td>
<? api_display_tool_title($Multi);?>
<?php api_display_tool_title($Multi);?>
</td>
</tr>

@ -59,7 +59,7 @@ body {
</tr>
<tr>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $obj->caption;;?><br><br><strong>Answer: </strong><br>
<td><strong>Question: </strong><br><?php echo $obj->caption;;?><br><br><strong>Answer: </strong><br>
<TEXTAREA style="WIDTH: 100%" name="defaultext" rows=3 cols=60>
</TEXTAREA>
</td>

@ -101,13 +101,13 @@ $ques_type = $_GET['qtype'];
<td><?php api_display_tool_title($surveyname)?></td>
</tr>
<tr>
<td><? api_display_tool_title($header2) ?></td>
<td><?php api_display_tool_title($header2); ?></td>
<?php $groupname = surveymanager::get_groupname($groupid); ?>
<td><?php api_display_tool_title($groupname) ?></td>
<td><?php api_display_tool_title($groupname); ?></td>
</tr>
<tr>
<td><? api_display_tool_title($header3) ?></td>
<td><?php api_display_tool_title($qid)?></td>
<td><?php api_display_tool_title($header3); ?></td>
<td><?php api_display_tool_title($qid); ?></td>
</tr>
<tr>
<td><?php echo get_lang('question'); ?></td>

@ -65,7 +65,7 @@ body {
</tr>
<tr>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php echo $ques;?><br><br><strong>Answers: </strong><br>
<textarea name="textfield" cols="50" rows="3" disabled='true'><?echo $obj->a1;?></textarea>
<input name="radiobutton" type="radio" value="radiobutton"><br><textarea name="textfield" cols="50" rows="3" disabled='true'><?echo $obj->a2;?></textarea>
<input name="radiobutton" type="radio" value="radiobutton"></td>

@ -144,10 +144,10 @@ if($qdeleted)
Display :: display_sortable_table($table_header, $courses, array (), array (), $parameters);
//echo '</form>';
?>
<input type="submit" name="delete" value="<? echo get_lang("Delete");?>">
<input type="submit" name="addanother" value="<?echo get_lang("AddAnotherQuestion");?>">
<input type="submit" name="addanotherg" value="<?echo get_lang("AddAnotherGroup");?>">
<input type="submit" name="finish" value="<? echo get_lang("finishsurvey");?>">
<input type="submit" name="delete" value="<?php echo get_lang("Delete");?>">
<input type="submit" name="addanother" value="<?php echo get_lang("AddAnotherQuestion");?>">
<input type="submit" name="addanotherg" value="<?php echo get_lang("AddAnotherGroup");?>">
<input type="submit" name="finish" value="<?php echo get_lang("finishsurvey");?>">
</form>
<?
/*

@ -110,13 +110,13 @@ function displayTemplate(url){
<?php
api_display_tool_title($tool_name);
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="action" value="add_survey"/>
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="gid1" value="<?=$str?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<?
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="gid1" value="<?php echo $str; ?>">
<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
<?php
$questions = array ();
$cidReq=$_GET['cidReq'];
$endloop=count($gid1);
@ -178,7 +178,7 @@ function displayTemplate(url){
<table>
<tr>
<td><input type="submit" name="back" value="Back"></td>
<td><input type="submit" name="importquestion" value="<? echo get_lang('ImportQuestion');?>"></td>
<td><input type="submit" name="importquestion" value="<?php echo get_lang('ImportQuestion');?>"></td>
</tr>
</table>
</form>

@ -169,7 +169,7 @@ function displayTemplate(url) {
<table>
<tr>
<td><strong><? echo get_lang('SurveyName'); ?></strong></td>
<td><strong><?php echo get_lang('SurveyName'); ?></strong></td>
<td><?echo $sname;?></td>
</tr>
<tr><td></td></tr>
@ -186,7 +186,7 @@ function displayTemplate(url) {
<input type="hidden" name="gid1" value="<?=$str?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname;?>">
<?
<?php
$questions = array ();
$cidReq=$_GET['cidReq'];
$endloop=count($gid1);
@ -240,7 +240,7 @@ function displayTemplate(url) {
<table>
<tr>
<td><input type="submit" name="back" value="<?echo get_lang("back");?>"></td>
<td><input type="submit" name="importquestion" value="<? echo get_lang('ImportQuestion');?>"></td>
<td><input type="submit" name="importquestion" value="<?php echo get_lang('ImportQuestion');?>"></td>
</tr>
</table>
</form>

@ -78,17 +78,17 @@ if( isset($error_message) )
<table>
<tr>
<td>
<? echo get_lang('Selectype');?>
<?php echo get_lang('Selectype');?>
</td>
<td>
<select name="add_question">
<option value="0"><? echo get_lang('Select');?></option>
<option value="<? echo get_lang('yesno');?>" <? if(isset($_POST['add_question'])){if($_POST['add_question']=="1")echo "selected";}?>><? echo get_lang('yesno');?></option>
<option value="<? echo get_lang('MultipleChoiceSingle');?>" <? if(isset($_POST['add_question'])){if($_POST['add_question']=="2")echo "selected";}?>><? echo get_lang('MultipleChoiceSingle');?></option>
<option value="<? echo get_lang('MultipleChoiceMulti');?>" <? if(isset($_POST['add_question'])){if($_POST['add_question']=="3")echo "selected";}?>><? echo get_lang('MultipleChoiceMulti');?></option>
<option value="<? echo get_lang('Open');?>" <? if(isset($_POST['add_question'])){if($_POST['add_question']=="4")echo "selected";}?>><? echo get_lang('Open');?></option>
<option value="<? echo get_lang('numbered');?>" <? if(isset($_POST['add_question'])){if($_POST['add_question']=="5")echo "selected";}?>><? echo get_lang('numbered');?></option>
<option value="0"><?php echo get_lang('Select');?></option>
<option value="<?php echo get_lang('yesno');?>" <?php if(isset($_POST['add_question'])){if($_POST['add_question']=="1")echo "selected";}?>><?php echo get_lang('yesno');?></option>
<option value="<?php echo get_lang('MultipleChoiceSingle');?>" <?php if(isset($_POST['add_question'])){if($_POST['add_question']=="2")echo "selected";}?>><?php echo get_lang('MultipleChoiceSingle');?></option>
<option value="<?php echo get_lang('MultipleChoiceMulti');?>" <?php if(isset($_POST['add_question'])){if($_POST['add_question']=="3")echo "selected";}?>><?php echo get_lang('MultipleChoiceMulti');?></option>
<option value="<?php echo get_lang('Open');?>" <?php if(isset($_POST['add_question'])){if($_POST['add_question']=="4")echo "selected";}?>><?php echo get_lang('Open');?></option>
<option value="<?php echo get_lang('numbered');?>" <?php if(isset($_POST['add_question'])){if($_POST['add_question']=="5")echo "selected";}?>><?php echo get_lang('numbered');?></option>
</select>
</td>
</tr>
@ -96,7 +96,7 @@ if( isset($error_message) )
<tr>
<td></td>
<td>
<input type="submit" name= 'next' value="<? echo get_lang('next');?>">
<input type="submit" name= 'next' value="<?php echo get_lang('next');?>">
</td>
</tr>
</table>

@ -41,8 +41,8 @@ function select_question_type($add_question12,$groupid,$surveyid,$cidReq,$curr_d
<table>
<tr>
<td><? api_display_tool_title('Group Name :'); ?></td>
<td><?api_display_tool_title($group_name); ?></td>
<td><?php api_display_tool_title('Group Name :'); ?></td>
<td><?php api_display_tool_title($group_name); ?></td>
</tr>
</table>
<?
@ -52,23 +52,23 @@ if( isset($error_message) )
}
?>
<form name="question" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<!--<input type="hidden" name="cidReq" value="<?=$cidReq?>">-->
<input type="hidden" name="groupid" value="<?php echo $groupid?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname?>">
<!--<input type="hidden" name="cidReq" value="<?php echo $cidReq?>">-->
<table>
<tr>
<td>
<? echo get_lang('Selectype');?>
<?php echo get_lang('Selectype');?>
</td>
<td>
<select name="add_question" onChange="javascript:this.form.submit();">
<option value="0"><? echo get_lang('Select');?></option>
<option value="<?=get_lang('yesno')?>" <? if($add_question12==get_lang('yesno'))echo "selected";?>><? echo get_lang('yesno');?></option>
<option value="<?=get_lang('MultipleChoiceSingle')?>" <? if($add_question12==get_lang('MultipleChoiceSingle')) { echo " selected ";}?>><? echo get_lang('MultipleChoiceSingle');?></option>
<option value="<?=get_lang('MultipleChoiceMulti')?>" <? if($add_question12==get_lang('MultipleChoiceMulti')) { echo " selected ";}?>><? echo get_lang('MultipleChoiceMulti');?></option>
<option value="<?=get_lang('Open')?>" <? if($add_question12==get_lang('Open')) { echo "selected";}?>><? echo get_lang('Open');?></option>
<option value="<?=get_lang('numbered')?>" <? if($add_question12==get_lang('numbered')) { echo "selected";}?>><? echo get_lang('numbered');?></option>
<option value="0"><?php echo get_lang('Select');?></option>
<option value="<?=get_lang('yesno')?>" <?php if($add_question12==get_lang('yesno'))echo "selected";?>><?php echo get_lang('yesno');?></option>
<option value="<?=get_lang('MultipleChoiceSingle')?>" <?php if($add_question12==get_lang('MultipleChoiceSingle')) { echo " selected ";}?>><?php echo get_lang('MultipleChoiceSingle');?></option>
<option value="<?=get_lang('MultipleChoiceMulti')?>" <?php if($add_question12==get_lang('MultipleChoiceMulti')) { echo " selected ";}?>><?php echo get_lang('MultipleChoiceMulti');?></option>
<option value="<?=get_lang('Open')?>" <?php if($add_question12==get_lang('Open')) { echo "selected";}?>><?php echo get_lang('Open');?></option>
<option value="<?=get_lang('numbered')?>" <?php if($add_question12==get_lang('numbered')) { echo "selected";}?>><?php echo get_lang('numbered');?></option>
</select>
</td>
</tr>

@ -357,11 +357,11 @@ if(!empty($courses))
SurveyManager :: display_sortable_table($groupid,$surveyid,$curr_dbname,$table_header, $courses, array (), array (), $parameters);
?>
<!--<input type="submit" name="delete" value="<? echo get_lang("Delete");?>">-->
<!--<input type="submit" name="delete" value="<?php echo get_lang("Delete");?>">-->
<!--<input type=button value="Back" onClick="history.go(-1)">-->
<input type="submit" name="addanother" value="<?echo get_lang("AddAnotherQuestion");?>">
<input type="submit" name="addanotherg" value="<?echo get_lang("AddNewGroup");?>">
<input type="submit" name="finish" value="<? echo get_lang("finishsurvey");?>">
<input type="submit" name="addanother" value="<?php echo get_lang("AddAnotherQuestion");?>">
<input type="submit" name="addanotherg" value="<?php echo get_lang("AddNewGroup");?>">
<input type="submit" name="finish" value="<?php echo get_lang("finishsurvey");?>">
<?
}
else

@ -379,11 +379,11 @@ if(!empty($courses))
SurveyManager :: display_sortable_table($groupid,$surveyid,$curr_dbname,$table_header, $courses, array (), array (), $parameters);
?>
<!--<input type="submit" name="delete" value="<? echo get_lang("Delete");?>">-->
<!--<input type="submit" name="delete" value="<?php echo get_lang("Delete");?>">-->
<!--<input type=button value="Back" onClick="history.go(-1)">-->
<input type="submit" name="addanother" value="<?echo get_lang("AddAnotherQuestion");?>">
<input type="submit" name="addanotherg" value="<?echo get_lang("AddNewGroup");?>">
<input type="submit" name="finish" value="<? echo get_lang("finishsurvey");?>">
<input type="submit" name="addanother" value="<?php echo get_lang("AddAnotherQuestion");?>">
<input type="submit" name="addanotherg" value="<?php echo get_lang("AddNewGroup");?>">
<input type="submit" name="finish" value="<?php echo get_lang("finishsurvey");?>">
<?
}
else

@ -785,7 +785,7 @@ if ($numb=mysql_num_rows($res) > 0)
<tr>
<td align="center">
<? if($num > "1"){
<?php if($num > "1"){
echo "<input type=\"button\" name=\"Back\" value=\"Back\" onClick=\"location.href('".$phpself."?temp=$temp&cidReq=$cidReq&db_name=$db_name&surveyid=$surveyid&num=".($num-1)."');\">";
} else{

@ -196,7 +196,7 @@ $lang=$obj->lang;
<td><?php echo get_lang('availablefrom'); ?>&nbsp;</td>
<td>
<select name="fday">
<? for($i=1;$i<=31;$i++){
<?php for($i=1;$i<=31;$i++){
if($i<=9)
$val = "0".$i;
else
@ -225,7 +225,7 @@ december -->
?>
</select>
<select name="fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $avail_year_from)
echo "<option value=\"$i\" selected>$i</option>\n";
@ -241,7 +241,7 @@ december -->
<td><?php echo get_lang('availabletill'); ?>&nbsp;</td>
<td>
<select name="end_fday">
<? for($i=1;$i<=31;$i++){
<?php for($i=1;$i<=31;$i++){
if($i<=9)
$val = "0".$i;
else
@ -270,7 +270,7 @@ december -->
?>
</select>
<select name="end_fyear">
<?
<?php
for($i=$curr_year;$i<=$curr_year+10;$i++){
if($i == $avail_year_till)
echo "<option value=\"$i\" selected>$i</option>\n";
@ -284,7 +284,7 @@ december -->
<tr>
<td valign="top"><?php echo get_lang('IsShareSurvey'); ?>&nbsp;</td>
<td>
<input type="radio" name="isshare" value="1" <? if($obj->is_shared=='1') echo "checked";?>>Yes&nbsp;<input type="radio" name="isshare" value="0" <? if($obj->is_shared=='0') echo "checked";?>>No
<input type="radio" name="isshare" value="1" <?php if($obj->is_shared=='1') echo "checked";?>>Yes&nbsp;<input type="radio" name="isshare" value="0" <?php if($obj->is_shared=='0') echo "checked";?>>No
</td>
</tr>

@ -187,15 +187,15 @@ Display::display_error_message($error_message);
<input type="hidden" name="uid1" value="<?=$uid1;?>">
<tr>
<td width="32%" class="text"><?if($lang=='french')echo 'Prénom :'; else if($lang=='dutch')echo 'Voornaam :'; else echo 'First Name :' ;?></td>
<td width="68%"><input type="text" name="firstname" maxlength="40" value="<? echo mysql_result($res,0,"firstname");?>"></td>
<td width="68%"><input type="text" name="firstname" maxlength="40" value="<?php echo mysql_result($res,0,"firstname");?>"></td>
</tr>
<tr>
<td class="text"><?if($lang=='french')echo 'Nom :'; else if($lang=='dutch')echo 'Naam :'; else echo ' Last Name :' ;?></td>
<td><input name="lastname" type="text" id="lastname" maxlength="40" value="<? echo mysql_result($res,0,"lastname");?>"></td>
<td><input name="lastname" type="text" id="lastname" maxlength="40" value="<?php echo mysql_result($res,0,"lastname");?>"></td>
</tr>
<tr>
<td class="text"><?if($lang=='french')echo 'Email :'; else if($lang=='dutch')echo 'Email :'; else echo 'EMail :' ;?></td>
<td class="text"><? echo $mail;?></td>
<td class="text"><?php echo $mail;?></td>
</tr>
<tr>
<td class="text"><?if($lang=='french')echo 'Organisation :'; else if($lang=='dutch')echo 'Organisatie :'; else echo 'Organization :' ;?></td>

@ -79,7 +79,7 @@ api_display_tool_title($tool_name);
</td>
</tr>
<tr>
<td colspan="2" align="center" class="text"><input type="button" name="exit" value="<? if($lang=='french')echo 'Quitter'; else if($lang=='dutch') echo 'Verlaten'; else echo 'Exit';?>" onclick="document.location.href='<?php echo api_get_path(WEB_PATH) ?>'">
<td colspan="2" align="center" class="text"><input type="button" name="exit" value="<?php if($lang=='french')echo 'Quitter'; else if($lang=='dutch') echo 'Verlaten'; else echo 'Exit';?>" onclick="document.location.href='<?php echo api_get_path(WEB_PATH) ?>'">
</td>
</tr>
</table></td>

@ -149,12 +149,12 @@ Display::display_error_message($error_message);
<tr><td>&nbsp;</td></tr>
<tr>
<td align="center">
<? if($num > "1"){?>
<input type="button" name="Back" value="<? if($lang=='french')echo 'Précédent'; else if($lang=='dutch')echo 'Terug'; else echo 'Back';?>" onClick="location.href('<?=$phpself?>?temp=<?=$temp?>&db_name=<?=$db_name?>&mail=<?=$mail?>&surveyid=<?=$surveyid?>&uid1=<?=$uid1?>&num=<?($num-1)?>');">
<?php if($num > "1"){?>
<input type="button" name="Back" value="<?php if($lang=='french')echo 'Précédent'; else if($lang=='dutch')echo 'Terug'; else echo 'Back';?>" onClick="location.href('<?=$phpself?>?temp=<?=$temp?>&db_name=<?=$db_name?>&mail=<?=$mail?>&surveyid=<?=$surveyid?>&uid1=<?=$uid1?>&num=<?($num-1)?>');">
<?
} else{
?>
<input type="button" name="Back" value="<? if($lang=='french')echo 'Précédent'; else if($lang=='dutch') echo 'Terug'; else echo 'Back';?>" onClick="location.href('template1.php?temp=<?=$temp?>&db_name=<?=$db_name?>&uid1=<?=$uid1?>&mail=<?=$mail?>&surveyid=<?=$surveyid?>');">
<input type="button" name="Back" value="<?php if($lang=='french')echo 'Précédent'; else if($lang=='dutch') echo 'Terug'; else echo 'Back';?>" onClick="location.href('template1.php?temp=<?=$temp?>&db_name=<?=$db_name?>&uid1=<?=$uid1?>&mail=<?=$mail?>&surveyid=<?=$surveyid?>');">
<?
}
?>

@ -74,7 +74,7 @@ body {
case "Yes/No":
{?>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php 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>
@ -85,13 +85,13 @@ body {
case "Multiple Choice (multiple answer)":
{?>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php 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>
<textarea cols="50" rows="3" disabled='true'><?php echo $answers[$i]; ?></textarea>
<input type="checkbox" name="checkbox" value="checkbox"><br>
<?
}
@ -104,13 +104,13 @@ body {
case "Multiple Choice (single answer)":
{?>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php 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>
<textarea cols="50" rows="3" disabled='true'><?php echo $answers[$i]; ?></textarea>
<input name="radiobutton" type="radio" value="radiobutton"><br>
<?
}
@ -123,7 +123,7 @@ body {
case "Open":
{?>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answer: </strong><br>
<td><strong>Question: </strong><br><?php echo $ques;?><br><br><strong>Answer: </strong><br>
<TEXTAREA style="WIDTH: 100%" name="defaultext" rows=3 cols=60>
</TEXTAREA>
</td>
@ -134,13 +134,13 @@ body {
case "Numbered":
{?>
<td height="39" background="../survey/images_white/left.gif">&nbsp;</td>
<td><strong>Question: </strong><br><? echo $ques;?><br><br><strong>Answers: </strong><br>
<td><strong>Question: </strong><br><?php 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>
<textarea cols="50" rows="3" disabled='true'><?php echo $answers[$i]; ?></textarea>
<select>
<option value="not applicable">Not Applicable</option>
<option value="$i">1</option>

@ -132,10 +132,10 @@ select_question_type($add_question12,$groupid,$surveyid,$cidReq,$curr_dbname);
<table>
<tr>
<td>
<? api_display_tool_title($Add);?>
<?php api_display_tool_title($Add);?>
</td>
<td>
<? api_display_tool_title($Multi);?>
<?php api_display_tool_title($Multi);?>
</td>
</tr>
@ -328,7 +328,7 @@ function checkLength(form){
?>
<tr class="form_bg" id="0">
<td width="16" height="30" align="left" class="form_text">
<? echo $sn;?>
<?php echo $sn;?>
</td>
<td class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?=$post_text[$k]?></textarea>
</td>
@ -377,7 +377,7 @@ function checkLength(form){
<?
if(isset($_POST['add_question']))
{
?> <input type="hidden" name="add_question" value="<? echo $_POST['add_question'];?>" >
?> <input type="hidden" name="add_question" value="<?php echo $_POST['add_question'];?>" >
<? }
$sql = "SELECT * FROM $curr_dbname.survey WHERE survey_id='$surveyid'";

@ -322,7 +322,7 @@ if( isset($error_message) )
?>
<tr class="form_bg" id="0">
<td width="16" height="30" align="left" class="form_text">
<? echo $sn;?>
<?php echo $sn;?>
</td>
<td class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?=$post_text?></textarea>
</td>
@ -373,7 +373,7 @@ if( isset($error_message) )
<?
if(isset($_POST['add_question']))
{
?> <input type="hidden" name="add_question" value="<? echo $_POST['add_question'];?>" >
?> <input type="hidden" name="add_question" value="<?php echo $_POST['add_question'];?>" >
<? }
$sql = "SELECT * FROM $curr_dbname.survey WHERE survey_id='$surveyid'";
$res=api_sql_query($sql);

Loading…
Cancel
Save