[svn r9953] coding standards

* replace <?= with <?php echo
* replace $phpself with $_SERVER['PHP_SELF']
* language variables
possibly incomplete
skala
Patrick Cool 18 years ago
parent 3f03898b68
commit 5fb10e8473
  1. 14
      main/survey/addanother.php
  2. 10
      main/survey/attach_existingsurvey.php
  3. 14
      main/survey/attach_question.php
  4. 8
      main/survey/attach_survey.php
  5. 14
      main/survey/choose_language.php
  6. 14
      main/survey/create_from_existing_survey.php
  7. 10
      main/survey/create_new_group.php
  8. 10
      main/survey/create_new_survey.php
  9. 8
      main/survey/existing_surveys_new.php
  10. 12
      main/survey/group_add_question.php
  11. 10
      main/survey/group_edit.php
  12. 12
      main/survey/group_list.php
  13. 26
      main/survey/mcma.php
  14. 26
      main/survey/mcma_edit.php
  15. 26
      main/survey/mcsa.php
  16. 26
      main/survey/mcsa_edit.php
  17. 24
      main/survey/numbered.php
  18. 26
      main/survey/numbered_edit.php
  19. 18
      main/survey/open.php
  20. 18
      main/survey/open_edit.php
  21. 4
      main/survey/preview_mcma.php
  22. 4
      main/survey/preview_open.php
  23. 4
      main/survey/preview_yesno.php
  24. 8
      main/survey/question_added.php
  25. 14
      main/survey/question_list_new.php
  26. 12
      main/survey/select_question.php
  27. 22
      main/survey/select_question_group-uploaded.php
  28. 22
      main/survey/select_question_group.php
  29. 6
      main/survey/survey.php
  30. 8
      main/survey/survey_all_courses.php
  31. 32
      main/survey/survey_blank.php
  32. 4
      main/survey/survey_edit.php
  33. 20
      main/survey/survey_list.php
  34. 16
      main/survey/survey_white.php
  35. 28
      main/survey/template1.php
  36. 2
      main/survey/thanks1.php
  37. 20
      main/survey/welcome_1.php
  38. 26
      main/survey/yesno.php
  39. 32
      main/survey/yesno_edit.php

@ -131,17 +131,17 @@ if(isset($group_id))
$res = api_sql_query($sql, __FILE__, __LINE__);
$obj= mysql_fetch_object($res);
?>
<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>
<div align="center"><strong><font color="#FF0000"><?php echo "Group";?>&nbsp;&nbsp;<font color="#0000CC"><u><?php echo $obj->groupname;?></u>&nbsp;&nbsp;</font><?php echo get_lang('GroupCreated');?></font></strong></div>
<?
}
?>
<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="newgroupid" value="<?=$group_id?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<!--<input type="hidden" name="cidReq" value="<?=$cidReq?>">-->
<form name="question" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="newgroupid" value="<?php echo $group_id; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<!--<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">-->
<table>
<tr>
<td>

@ -166,10 +166,10 @@ window.open(inf+".htm", 'popup', 'width=600,height=600,toolbar = no, status = no
</script>
<script src=tbl_change.js type="text/javascript" language="javascript"></script>
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<form name="new_calendar_item" 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="<?=$oldsurveyid?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<input type="hidden" name="surveyid" value="<?php echo $oldsurveyid; ?>">
<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
<table>
<tr>
<td><?php echo get_lang('surveycode'); ?></td>
@ -177,11 +177,11 @@ window.open(inf+".htm", 'popup', 'width=600,height=600,toolbar = no, status = no
</tr>
<tr>
<td><?php echo get_lang('surveytitle'); ?></td>
<td><input type="text" name="survey_title" size="40" maxlength="79" value="<?php echo $surveytitle ?>"></td>
<td><input type="text" name="survey_title" size="40" maxlength="79" value="<?php echo $surveytitle; ?>"></td>
</tr>
<tr>
<td><?php echo get_lang('surveysubtitle'); ?></td>
<td><input type="text" name="survey_subtitle" size="40" maxlength="79" value="<?php echo $surveysubtitle ?>"></td>
<td><input type="text" name="survey_subtitle" size="40" maxlength="79" value="<?php echo $surveysubtitle; ?>"></td>
</tr>
<tr>
<?php

@ -177,12 +177,12 @@ window.open(inf+".htm", 'popup', 'width=900,height=800,toolbar = no, status = no
</script>
<script src=tbl_change.js type="text/javascript" language="javascript"></script>
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="action" value="add_survey">
<input type="hidden" name="qids" value="<?=$qids?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$oldsurveyid?>">
<input type="hidden" name="qids" value="<?php echo $qids; ?>">
<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $oldsurveyid; ?>">
<table>
<tr>
<td><?php echo get_lang('surveycode'); ?></td>
@ -190,11 +190,11 @@ window.open(inf+".htm", 'popup', 'width=900,height=800,toolbar = no, status = no
</tr>
<tr>
<td><?php echo get_lang('surveytitle'); ?></td>
<td><input type="text" name="survey_title" size="40" maxlength="79" value="<?php echo $surveytitle ?>"></td>
<td><input type="text" name="survey_title" size="40" maxlength="79" value="<?php echo $surveytitle; ?>"></td>
</tr>
<tr>
<td><?php echo get_lang('surveysubtitle'); ?></td>
<td><input type="text" name="survey_subtitle" size="40" maxlength="79" value="<?php echo $surveysubtitle ?>"></td>
<td><input type="text" name="survey_subtitle" size="40" maxlength="79" value="<?php echo $surveysubtitle; ?>"></td>
</tr>
<tr>
<?php

@ -175,11 +175,11 @@ window.open(inf+".htm", 'popup', 'width=900,height=800,toolbar = no, status = no
</script>
<script src=tbl_change.js type="text/javascript" language="javascript"></script>
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<form name="new_calendar_item" 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="<?=$oldsurveyid?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<input type="hidden" name="gids" value="<?=$gids?>">
<input type="hidden" name="surveyid" value="<?php echo $oldsurveyid; ?>">
<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
<input type="hidden" name="gids" value="<?php echo $gids; ?>">
<table>
<tr>
<td><?php echo get_lang('surveycode'); ?></td>

@ -102,13 +102,13 @@ Display::display_error_message($error_message);
<td valign="top">
<table width="100%" height="132" border="0" cellpadding="0" cellspacing="0" bgcolor="#F6F5F5">
<form method="GET" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<input type="hidden" name="uid" value="<?=$uid;?>">
<input type="hidden" name="db_name" value="<?=$db_name;?>">
<input type="hidden" name="temp" value="<?=$temp;?>">
<input type="hidden" name="email" value="<?=$email;?>">
<input type="hidden" name="mail" value="<?=$mail;?>">
<input type="hidden" name="uid1" value="<?=$uid1;?>">
<input type="hidden" name="code_survey" value="<?=$code_survey;?>">
<input type="hidden" name="uid" value="<?php echo $uid;?>">
<input type="hidden" name="db_name" value="<?php echo $db_name;?>">
<input type="hidden" name="temp" value="<?php echo $temp;?>">
<input type="hidden" name="email" value="<?php echo $email;?>">
<input type="hidden" name="mail" value="<?php echo $mail;?>">
<input type="hidden" name="uid1" value="<?php echo $uid1;?>">
<input type="hidden" name="code_survey" value="<?php echo $code_survey;?>">
Select in which language you want to see this survey :
<select name="lang">
<?php

@ -111,15 +111,15 @@ if( isset($error_message) )
}
?>
<form action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>" method="POST" name="frm1">
<input type="submit" name="importexistingsurvey" value="<?=get_lang('ImportExistingSurvey')?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<form action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>" method="POST" name="frm1">
<input type="submit" name="importexistingsurvey" value="<?php echo get_lang('ImportExistingSurvey'); ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
</form>
<form method="POST" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>" name="frm2">
<form method="POST" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>" name="frm2">
<input type="hidden" name="action" value="add_survey">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
<?php
$nameTools=get_lang('CreateFromExistingSurveys');
$table_group = Database :: get_course_table('survey_group');

@ -207,12 +207,12 @@ $table_group = Database :: get_course_table('survey_group');
api_display_tool_title($tool_name);
?>
<script src=tbl_change.js type="text/javascript" language="javascript"></script>
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="action" value="new_group">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<!--<input type="hidden" name="cidReq" value="<?=$_REQUEST['cidReq']?>">-->
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<!--<input type="hidden" name="cidReq" value="<?php echo $_REQUEST['cidReq']; ?>">-->
<table>
<tr>
<td><?php echo get_lang('groupname'); ?></td>

@ -147,8 +147,8 @@ $avail_day_till = $arr_avail_till['2'];
$template = $obj->template;
?>
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="action" value="update_survey">
<table>
<tr>
@ -406,10 +406,10 @@ window.open(inf+".htm", 'popup', 'width=600,height=600,toolbar = no, status = no
</script>
<script src=tbl_change.js type="text/javascript" language="javascript"></script>
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="action" value="add_survey">
<input type="hidden" name="page" value="<?=$page?>">
<!--<input type="hidden" name="cidReq" value="<?=$cidReq?>">-->
<input type="hidden" name="page" value="<?php echo $page; ?>">
<!--<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">-->
<table>
<tr>
<td><?php echo get_lang('surveycode'); ?></td>

@ -77,9 +77,9 @@ function displayTemplate(url) {
</td>
</tr>
</table>
<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="surveyid" value="<?php echo $surveyid; ?>">
<?php
$surveyid=$_REQUEST['surveyid'];
$nameTools=get_lang('CreateFromExistingSurveys');
@ -147,8 +147,8 @@ function displayTemplate(url) {
if($flag=='1')
{echo get_lang('SurveyNotShared');}
?>
<form action="select_question_group.php?cidReq=<?=$cidReq?>&db_name=<?=$db_name?>&surveyid=<?=$surveyid?>&curr_dbname=<?=$curr_dbname?>" method="post">
<input type="submit" name="back1" value="<?=get_lang('back')?>">
<form action="select_question_group.php?cidReq=<?php echo $cidReq; ?>&db_name=<?php echo $db_name; ?>&surveyid=<?php echo $surveyid; ?>&curr_dbname=<?php echo $curr_dbname; ?>" method="post">
<input type="submit" name="back1" value="<?php echo get_lang('Back'); ?>">
</form>
<?
Display :: display_footer();

@ -86,10 +86,10 @@ $GName = get_lang('groupname');
api_display_tool_title($tool_name);
$name = surveymanager :: get_groupname($gid);
?>
<form name="radiobutton" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<!--<input type="hidden" name="cidReq" value="<?=$_REQUEST['cidReq']?>">-->
<form name="radiobutton" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<!--<input type="hidden" name="cidReq" value="<?php echo $_REQUEST['cidReq']; ?>">-->
<table>
<tr>
<td><?php api_display_tool_title($GName);?></td>
@ -167,11 +167,11 @@ function g_redirect($url,$mode)
header("Refresh: 0; URL=\"$url\"");
exit;
case 'META':
?><meta http-equiv="refresh" content="0;url=<?=$url?>" /><?
?><meta http-equiv="refresh" content="0;url=<?php echo $url; ?>" /><?
exit;
default: /* -- JavaScript */
?><script type="text/javascript">
window.location.href='<?=$url?>';
window.location.href='<?php echo $url; ?>';
</script><?
}
exit;

@ -125,12 +125,12 @@ $obj = mysql_fetch_object($res);
$groupname= $obj->groupname;
$introduction = $obj->introduction;
?>
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="action" value="new_group">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<!--<input type="hidden" name="cidReq" value="<?=$_REQUEST['cidReq']?>">-->
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<!--<input type="hidden" name="cidReq" value="<?php echo $_REQUEST['cidReq']; ?>">-->
<table>
<tr>
<td><?php echo get_lang('groupname'); ?></td>

@ -78,13 +78,13 @@ $table_group = Database :: get_course_table('survey_group');
{
$surveys = array ();
?>
<form method="POST" action="question_list_new.php?cidReq=<?=$cidReq?>">
<form method="POST" action="question_list_new.php?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="action" value="add_survey">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="sid" value="<?=$sid?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname;?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="sid" value="<?php echo $sid; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname;?>">
<?
$gnames = array();
while ($obj = mysql_fetch_object($res))

@ -204,12 +204,12 @@ function checkLength(form){
return true;
}
</SCRIPT>
<form method="POST" name ="mcma" id="myForm" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>&add_question=<?=$add_question?>&groupid=<?=$groupid?>&surveyid=<?=$surveyid?>&curr_dbname=<?=$curr_dbname?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="questtype" value="<?=$add_question12?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<!--<input type="hidden" name="cidReq" value="<?=$cidReq?>">-->
<form method="POST" name ="mcma" id="myForm" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>&add_question=<?php echo $add_question; ?>&groupid=<?php echo $groupid; ?>&surveyid=<?php echo $surveyid; ?>&curr_dbname=<?php echo $curr_dbname; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="questtype" value="<?php echo $add_question12; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<!--<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">-->
<input type="hidden" name="action" value="addquestion" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="outerBorder_innertable">
<tr><td>
@ -429,7 +429,7 @@ function checkLength(form){
<td width="16" height="30" align="left" class="form_text">
<?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 class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?php echo $post_text[$k]; ?></textarea>
</td>
<td width="10" class="form_text"><img src="../img/blank.gif" width="10" height="8">
</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="<?php 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="<?php echo $end;?>" onclick="this.form.submit();">
</tr>
<? }
}
@ -509,7 +509,7 @@ function checkLength(form){
<!--
<input type="hidden" name="type" value="mcma">-->
<input type="HIDDEN" name="end1" value="<?=$end?>">
<input type="HIDDEN" name="end1" value="<?php echo $end; ?>">
<? if(isset($_POST['add_question']))
@ -540,10 +540,10 @@ function checkLength(form){
}
?>
<input type="submit" name="back" value="<?=get_lang("back");?>">
<input type="submit" name="saveandexit" value="<?=get_lang("saveandexit");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('mcma','<?=$temp?>','<?=$Multi?>')">
<input type="submit" name="next" value="<?=get_lang("next");?>">
<input type="submit" name="back" value="<?php echo get_lang('Back'); ?>">
<input type="submit" name="saveandexit" value="<?php echo get_lang('SaveAndExit');?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('mcma','<?php echo $temp; ?>','<?php echo $Multi; ?>')">
<input type="submit" name="next" value="<?php echo get_lang("Next"); ?>">
</div>
<!--this partcular field helps in identify the item to be add at the itemadd.php-->

@ -104,13 +104,13 @@ if( isset($error_message) )
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<div id=content>
<form method="POST" name="mcma"" id="myForm" action="<?php echo $_SERVER['PHP_SELF'];?>?qid=<?=$qid?>&cidReq=<?=$cidReq?>&groupid=<?=$groupid?>&surveyid=<?=$surveyid?>&curr_dbname=<?=$curr_dbname?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="questtype" value="<?=$add_question12?>">
<input type="hidden" name="qid" value="<?=$qid?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<!--<input type="hidden" name="cidReq" value="<?=$cidReq?>">-->
<form method="POST" name="mcma"" id="myForm" action="<?php echo $_SERVER['PHP_SELF'];?>?qid=<?php echo $qid; ?>&cidReq=<?php echo $cidReq; ?>&groupid=<?php echo $groupid; ?>&surveyid=<?php echo $surveyid; ?>&curr_dbname=<?php echo $curr_dbname; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="questtype" value="<?php echo $add_question12; ?>">
<input type="hidden" name="qid" value="<?php echo $qid; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<!--<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">-->
<input type="hidden" name="action" value="addquestion" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="outerBorder_innertable">
<tr><td>
@ -290,7 +290,7 @@ if( isset($error_message) )
<td width="16" height="30" align="left" class="form_text">
<?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 class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?php echo $post_text; ?></textarea>
</td>
<td width="10" class="form_text"><img src="../img/blank.gif" width="10" height="8">
</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="<?php 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="<?php echo $end; ?>" onclick="this.form.submit();">
</tr>
<? }
}
@ -362,7 +362,7 @@ if( isset($error_message) )
<br>
<div align="center">
<input type="HIDDEN" name="end1" value="<?=$end?>">
<input type="HIDDEN" name="end1" value="<?php echo $end; ?>">
<? if(isset($_POST['add_question']))
@ -392,9 +392,9 @@ if( isset($error_message) )
}
?>
<input type="submit" name="back" value="<?=get_lang("back");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('mcma','<?=$temp?>','<?=$Multi?>')">
<input type="submit" name="update" value="<?=get_lang("update");?>">
<input type="submit" name="back" value="<?php echo get_lang('Back'); ?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('mcma','<?php echo $temp; ?>','<?php echo $Multi; ?>')">
<input type="submit" name="update" value="<?php echo get_lang('Update'); ?>">
</div>

@ -197,13 +197,13 @@ function checkLength(form){
return true;
}
</SCRIPT>
<form method="POST" name="mcsa" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>&add_question=<?=$add_question?>&groupid=<?=$groupid?>&surveyid=<?=$surveyid?>&curr_dbname=<?=$curr_dbname?>">
<form method="POST" name="mcsa" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>&add_question=<?php echo $add_question; ?>&groupid=<?php echo $groupid; ?>&surveyid=<?php echo $surveyid; ?>&curr_dbname=<?php echo $curr_dbname; ?>">
<input type="hidden" name="action" value="addquestion">
<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="questtype" value="<?=$add_question12?>">
<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; ?>">-->
<input type="hidden" name="questtype" value="<?php echo $add_question12; ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="outerBorder_innertable">
<tr><td>
@ -395,7 +395,7 @@ $start=1;$end=5;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
<td width="16" height="30" align="left" class="form_text">
<?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 class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?php echo $post_text[$k]; ?></textarea>
</td>
<td width="10" class="form_text"><img src="../img/blank.gif" width="10" height="8">
@ -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="<?php 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="<?php echo $end; ?>" onclick="this.form.submit();">
</tr>
<? }
}
@ -458,7 +458,7 @@ $start=1;$end=5;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
<br>
<div align="center">
<input type="HIDDEN" name="end1" value="<?=$end?>">
<input type="HIDDEN" name="end1" value="<?php echo $end; ?>">
<? if(isset($_POST['add_question']))
{
@ -487,10 +487,10 @@ $start=1;$end=5;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
break;
}
?>
<input type="submit" name="back" value="<?=get_lang("back");?>">
<input type="submit" name="saveandexit" value="<?=get_lang("saveandexit");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('mcsa','<?=$temp?>','<?=$Multi?>')">
<input type="submit" name="next" value="<?=get_lang("next");?>">
<input type="submit" name="back" value="<?php echo get_lang('Back'); ?>">
<input type="submit" name="saveandexit" value="<?php echo get_lang('SaveAndExit');?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('mcsa','<?php echo $temp; ?>','<?php echo $Multi; ?>')">
<input type="submit" name="next" value="<?php echo get_lang('Next'); ?>">
</div>
<!--this partcular field helps in identify the item to be add at the itemadd.php-->

@ -110,14 +110,14 @@ if( isset($error_message) )
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<div id=content>
<form method="POST" name="mcsa" action="<?php echo $_SERVER['PHP_SELF'];?>?qid=<?=$qid?>&cidReq=<?=$cidReq?>&groupid=<?=$groupid?>&surveyid=<?=$surveyid?>&curr_dbname=<?=$curr_dbname?>" name="frmitemchkboxmulti">
<form method="POST" name="mcsa" action="<?php echo $_SERVER['PHP_SELF'];?>?qid=<?php echo $qid; ?>&cidReq=<?php echo $cidReq; ?>&groupid=<?php echo $groupid; ?>&surveyid=<?php echo $surveyid; ?>&curr_dbname=<?php echo $curr_dbname; ?>" name="frmitemchkboxmulti">
<input type="hidden" name="action" value="addquestion">
<input type="hidden" name="qid" value="<?=$qid?>">
<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="questtype" value="<?=$add_question12?>">
<input type="hidden" name="qid" value="<?php echo $qid; ?>">
<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; ?>">-->
<input type="hidden" name="questtype" value="<?php echo $add_question12; ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="outerBorder_innertable">
<tr><td>
@ -276,7 +276,7 @@ $start=1;$end=$check;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
<td width="16" height="30" align="left" class="form_text">
<?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 class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?php echo $post_text; ?></textarea>
</td>
<td width="10" class="form_text"><img src="../img/blank.gif" width="10" height="8">
@ -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="<?php 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="<?php echo $end; ?>" onclick="this.form.submit();">
</tr>
<? }
}
@ -339,7 +339,7 @@ $start=1;$end=$check;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
<br>
<div align="center">
<input type="HIDDEN" name="end1" value="<?=$end?>">
<input type="HIDDEN" name="end1" value="<?php echo $end; ?>">
<? if(isset($_POST['add_question']))
{
@ -368,9 +368,9 @@ $start=1;$end=$check;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
}
?>
<input type="submit" name="back" value="<?=get_lang("back");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('mcsa','<?=$temp?>','<?=$Multi?>')">
<input type="submit" name="update" value="<?=get_lang("update");?>">
<input type="submit" name="back" value="<?php echo get_lang('Back'); ?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('mcsa','<?php echo $temp; ?>','<?php echo $Multi; ?>')">
<input type="submit" name="update" value="<?php echo get_lang('Update'); ?>">
</div>
<!--this partcular field helps in identify the item to be add at the itemadd.php-->

@ -174,11 +174,11 @@ function checkLength(form){
return true;
}
</SCRIPT>
<form method="POST" name="numbered" name="frmitemchkboxmulti" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>&add_question=<?=$add_question?>&groupid=<?=$groupid?>&surveyid=<?=$surveyid?>&curr_dbname=<?=$curr_dbname?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="questtype" value="<?=$add_question12?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<form method="POST" name="numbered" name="frmitemchkboxmulti" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>&add_question=<?php echo $add_question; ?>&groupid=<?php echo $groupid; ?>&surveyid=<?php echo $surveyid; ?>&curr_dbname=<?php echo $curr_dbname; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="questtype" value="<?php echo $add_question12; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<input type="hidden" name="action" value="addquestion" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="outerBorder_innertable">
@ -411,7 +411,7 @@ function checkLength(form){
<?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 class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?php echo $post_text[$k]; ?></textarea>
</td>
<td width="10" class="form_text"><img src="../img/blank.gif" width="10" height="8">
@ -449,7 +449,7 @@ function checkLength(form){
<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();">
<input type="image" src="../img/delete.gif" width="24" height="24" border="0" style="cursor:hand" name="<?php echo "id".$i;?>" value="<?php echo $end; ?>" onclick="this.form.submit();">
</tr>
<? }
@ -489,7 +489,7 @@ function checkLength(form){
<div align="center">
<input type="HIDDEN" name="end1" value="<?=$end?>">
<input type="HIDDEN" name="end1" value="<?php echo $end; ?>">
<? if(isset($_POST['add_question']))
{
@ -518,10 +518,10 @@ function checkLength(form){
break;
}
?>
<input type="submit" name="back" value="<?=get_lang("back");?>">
<input type="submit" name="saveandexit" value="<?=get_lang("saveandexit");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('numbered','<?=$temp?>','<?=$Multi?>')">
<input type="submit" name="next" value="<?=get_lang("next");?>">
<input type="submit" name="back" value="<?php echo get_lang('Back'); ?>">
<input type="submit" name="saveandexit" value="<?php echo get_lang('SaveAndExit'); ?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('numbered','<?php echo $temp; ?>','<?php echo $Multi; ?>')">
<input type="submit" name="next" value="<?php echo get_lang('Next'); ?>">
</div>
<!--this partcular field helps in identify the item to be add at the itemadd.php-->

@ -104,14 +104,14 @@ if( isset($error_message) )
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<div id=content>
<form method="POST" name='numbered' action="<?php echo $_SERVER['PHP_SELF'];?>?qid=<?=$qid?>&cidReq=<?=$cidReq?>&groupid=<?=$groupid?>&surveyid=<?=$surveyid?>&curr_dbname=<?=$curr_dbname?>" name="frmitemchkboxmulti">
<form method="POST" name='numbered' action="<?php echo $_SERVER['PHP_SELF'];?>?qid=<?php echo $qid; ?>&cidReq=<?php echo $cidReq; ?>&groupid=<?php echo $groupid; ?>&surveyid=<?php echo $surveyid; ?>&curr_dbname=<?php echo $curr_dbname; ?>" name="frmitemchkboxmulti">
<input type="hidden" name="action" value="addquestion">
<input type="hidden" name="qid" value="<?=$qid?>">
<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="questtype" value="<?=$add_question12?>">
<input type="hidden" name="qid" value="<?php echo $qid; ?>">
<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; ?>">-->
<input type="hidden" name="questtype" value="<?php echo $add_question12; ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="outerBorder_innertable">
<tr>
@ -258,7 +258,7 @@ $start=1;$end=$check;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
<td width="16" height="30" align="left" class="form_text">
<?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 class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?php echo $post_text; ?></textarea>
</td>
<? if($i>$start)
{
@ -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="<?php 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="<?php echo $end;?>" onclick="this.form.submit();">
</tr>
<? }
}
@ -339,10 +339,10 @@ $start=1;$end=$check;$upx=2;$upy=1;$dwnx=0;$dwny=1;$jd=0;$sn=1;
}
?>
<input type="HIDDEN" name="end1" value="<?=$end?>">
<input type="submit" name="back" value="<?=get_lang("back");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('numbered','<?=$temp?>','<?=$Multi?>')">
<input type="submit" name="update" value="<?=get_lang("update");?>">
<input type="HIDDEN" name="end1" value="<?php echo $end; ?>">
<input type="submit" name="back" value="<?php echo get_lang('Back'); ?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('numbered','<?php echo $temp; ?>','<?php echo $Multi; ?>')">
<input type="submit" name="update" value="<?php echo get_lang('Update'); ?>">
</div>
<!--this partcular field helps in identify the item to be add at the itemadd.php-->

@ -130,11 +130,11 @@ function checkLength(form){
}
</SCRIPT>
<DIV id=content>
<FORM name="frmitemchkboxmulti" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>" method="POST">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="questtype" value="<?=$add_question12?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<FORM name="frmitemchkboxmulti" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>" method="POST">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="questtype" value="<?php echo $add_question12; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<input type="hidden" name="action" value="addquestion" >
<BR>
<TABLE class=outerBorder_innertable cellSpacing=0 cellPadding=0 width="100%"
@ -197,10 +197,10 @@ border=0>
<BR>
<DIV align=center>
<input type="submit" name="back" value="<?=get_lang("back");?>">
<input type="submit" name="saveandexit" value="<?=get_lang("saveandexit");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('this.form','<?=$temp?>','<?=$Multi?>')">
<input type="submit" name="next" value="<?=get_lang("next");?>">
<input type="submit" name="back" value="<?php echo get_lang('Back');?>">
<input type="submit" name="saveandexit" value="<?php echo get_lang("saveandexit"); ?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('this.form','<?php echo $temp; ?>','<?php echo $Multi; ?>')">
<input type="submit" name="next" value="<?php echo get_lang('Next'); ?>">
</DIV></FORM></DIV>
<DIV id=bottomnav align=center></DIV>
</BODY></HTML>

@ -88,13 +88,13 @@ if( isset($error_message) )
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<BODY id=surveys>
<DIV id=content>
<FORM name="frmitemchkboxmulti" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>" method=post>
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="questtype" value="<?=$add_question12?>">
<FORM name="frmitemchkboxmulti" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>" method=post>
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="questtype" value="<?php echo $add_question12; ?>">
<input type="hidden" name="action" value="addquestion" >
<input type="hidden" name="qid" value="<?=$qid?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<input type="hidden" name="qid" value="<?php echo $qid; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="outerBorder_innertable">
<tr class="white_bg">
<td height="30" class="form_text1">
@ -154,9 +154,9 @@ border=0>
<BR>
<DIV align=center>
<input type="submit" name="back" value="<?=get_lang("back");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('this.form','<?=$temp?>','<?=$Multi?>')">
<input type="submit" name="update" value="<?=get_lang("update");?>">
<input type="submit" name="back" value="<?php echo get_lang('Back');?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('this.form','<?php echo $temp; ?>','<?php echo $Multi; ?>')">
<input type="submit" name="update" value="<?php echo get_lang('Update'); ?>">
</DIV></FORM></DIV>
<DIV id=bottomnav align=center></DIV>

@ -86,8 +86,8 @@ Display::display_header($tool_name);
?>
<form name="question" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
<input type="hidden" name="action" value="add_question">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<table>
<tr>
<td><?php api_display_tool_title($header1) ?></td>

@ -84,8 +84,8 @@ Display::display_header($tool_name);
?>
<form name="question" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
<input type="hidden" name="action" value="add_question">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<table>
<tr>
<td><?php api_display_tool_title($header1) ?></td>

@ -92,8 +92,8 @@ $ques_type = $_GET['qtype'];
<form name="question" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
<input type="hidden" name="action" value="add_question">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<table>
<tr>
<td><?php api_display_tool_title($header1) ?></td>

@ -108,10 +108,10 @@ if($qdeleted)
<?php
}
?>
<form 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="cidReq" value="<?=$cidReq?>">-->
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<!--<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">-->
<?php
$sql="SELECT * FROM $table_group WHERE survey_id='$surveyid'";
$res = api_sql_query($sql,__FILE__,__LINE__);

@ -178,14 +178,14 @@ function displayTemplate(url) {
<?php
echo get_lang('SelectQuestion');
?>
<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="sid" value="<?=$sid?>">
<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="curr_dbname" value="<?=$curr_dbname;?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="sid" value="<?php echo $sid; ?>">
<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; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname;?>">
<?php
$questions = array ();
$cidReq=$_GET['cidReq'];

@ -51,7 +51,7 @@ if( isset($error_message) )
Display::display_error_message($error_message);
}
?>
<form name="question" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<form name="question" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $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?>">
@ -64,11 +64,11 @@ if( isset($error_message) )
<td>
<select name="add_question" onChange="javascript:this.form.submit();">
<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>
<option value="<?php echo get_lang('YesNo'); ?>" <?php if($add_question12==get_lang('yesno'))echo "selected";?>><?php echo get_lang('yesno');?></option>
<option value="<?php echo get_lang('MultipleChoiceSingle'); ?>" <?php if($add_question12==get_lang('MultipleChoiceSingle')) { echo " selected ";}?>><?php echo get_lang('MultipleChoiceSingle');?></option>
<option value="<?php echo get_lang('MultipleChoiceMulti'); ?>" <?php if($add_question12==get_lang('MultipleChoiceMulti')) { echo " selected ";}?>><?php echo get_lang('MultipleChoiceMulti');?></option>
<option value="<?php echo get_lang('Open'); ?>" <?php if($add_question12==get_lang('Open')) { echo "selected";}?>><?php echo get_lang('Open');?></option>
<option value="<?php echo get_lang('Numbered'); ?>" <?php if($add_question12==get_lang('numbered')) { echo "selected";}?>><?php echo get_lang('numbered');?></option>
</select>
</td>
</tr>

@ -269,13 +269,13 @@ if(isset($messege) && $messege )
<?
}
?>
<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="selectquestion_group">
<input type="hidden" name="newsurveyid" value="<?=$surveyid;?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname;?>">
<input type="hidden" name="cidReq" value="<?=$_REQUEST['cidReq']?>">
<!--<input type="hidden" name="qid" value="<?=$_REQUEST['qid']?>">
<input type="hidden" name="direction" value="<?=$_REQUEST['direction']?>">-->
<input type="hidden" name="newsurveyid" value="<?php echo $surveyid;?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname;?>">
<input type="hidden" name="cidReq" value="<?php echo $_REQUEST['cidReq']; ?>">
<!--<input type="hidden" name="qid" value="<?php echo $_REQUEST['qid']; ?>">
<input type="hidden" name="direction" value="<?php echo $_REQUEST['direction']; ?>">-->
<table>
<tr>
<td valign="top"></td>
@ -345,11 +345,11 @@ $result=api_sql_query($query);*/
}
}
?>
<form 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="page" value="<?=$page;?>">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $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="page" value="<?php echo $page; ?>">
<?
if(!empty($courses))
{

@ -269,13 +269,13 @@ if(isset($messege) && $messege )
<?
}
?>
<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="selectquestion_group">
<input type="hidden" name="newsurveyid" value="<?=$surveyid;?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname;?>">
<input type="hidden" name="cidReq" value="<?=$_REQUEST['cidReq']?>">
<!--<input type="hidden" name="qid" value="<?=$_REQUEST['qid']?>">
<input type="hidden" name="direction" value="<?=$_REQUEST['direction']?>">-->
<input type="hidden" name="newsurveyid" value="<?php echo $surveyid;?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<input type="hidden" name="cidReq" value="<?php echo $_REQUEST['cidReq']; ?>">
<!--<input type="hidden" name="qid" value="<?php echo $_REQUEST['qid']; ?>">
<input type="hidden" name="direction" value="<?php echo $_REQUEST['direction']; ?>">-->
<table>
<tr>
<td valign="top"></td>
@ -367,11 +367,11 @@ $result=api_sql_query($query);*/
}
}
?>
<form 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="page" value="<?=$page;?>">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $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="page" value="<?php echo $page; ?>">
<?
if(!empty($courses))
{

@ -103,8 +103,8 @@ api_display_tool_title($tool_name);
//echo "</pre>";
//echo $survey_table = Database :: get_course_table('survey');
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>" name="mainForm">
<input type="hidden" name="cidReq" value="<?=$cidReq?>">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>" name="mainForm">
<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">
<!--<input type="hidden" value="add_survey">-->
<table>
<tr>
@ -126,7 +126,7 @@ $extra_script = "OnChange=\"javascript:document.mainForm.survey[1].checked=true;
<tr>
<td></td>
<td><input type="submit" name="back" value="<?php echo get_lang('back');?>">&nbsp;<input type="submit" name="action" value="<?php echo get_lang('Ok1'); ?>"></td>
<td><input type="hidden" name="newsurveyid" value="<?=$newsurvey_id;?>"></td>
<td><input type="hidden" name="newsurveyid" value="<?php echo $newsurvey_id; ?>"></td>
<td></td>
</tr>
</table>

@ -69,9 +69,9 @@ function displayTemplate(url) {
</td>
</tr>
</table>
<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="surveyid" value="<?php echo $surveyid; ?>">
<?php
$rsDbs = mysql_list_dbs();
$db_list = array();
@ -151,8 +151,8 @@ function displayTemplate(url) {
if($flag=='1')
{echo get_lang('SurveyNotShared');}
?>
<form action="survey.php?cidReq=<?=$cidReq?>&db_name=<?=$db_name?>" method="post">
<input type="submit" name="back1" value="<?=get_lang('back')?>">
<form action="survey.php?cidReq=<?php echo $cidReq; ?>&db_name=<?php echo $db_name; ?>" method="post">
<input type="submit" name="back1" value="<?php echo get_lang('Back'); ?>">
</form>
<?
Display :: display_footer();

@ -119,13 +119,13 @@ if ($numb=mysql_num_rows($res) > 0)
<tr>
<td>&nbsp;</td>
<td valign="top">
<form method="post" action="<?=$phpself?>?num=<?=$num+1?>">
<input type="hidden" name="uid1" value="<?=$uid1;?>">
<input type="hidden" name="surveyid" value="<?=$surveyid;?>">
<input type="hidden" name="db_name" value="<?=$db_name;?>">
<input type="hidden" name="temp" value="<?=$temp;?>">
<input type="hidden" name="mail" value="<?=$mail;?>">
<input type="hidden" name="username" value="<?=$username;?>">
<form method="post" action="<?php echo $_SERVER['PHP_SELF']?>?num=<?php echo $num+1; ?>">
<input type="hidden" name="uid1" value="<?php echo $uid1;?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid;?>">
<input type="hidden" name="db_name" value="<?php echo $db_name;?>">
<input type="hidden" name="temp" value="<?php echo $temp;?>">
<input type="hidden" name="mail" value="<?php echo $mail;?>">
<input type="hidden" name="username" value="<?php echo $username;?>">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<?
$users = array ();
@ -773,14 +773,14 @@ if ($numb=mysql_num_rows($res) > 0)
<tr>
<td class="form-left">&nbsp;</td>
<td valign="top">
<form method="post" action="<?=$phpself?>?num=<?=$num+1?>&cidReq=<?=$cidReq?>">
<input type="hidden" name="uid1" value="<?=$uid1;?>">
<input type="hidden" name="surveyid" value="<?=$surveyid;?>">
<input type="hidden" name="db_name" value="<?=$db_name;?>">
<input type="hidden" name="cidReq" value="<?=$cidReq;?>">
<input type="hidden" name="temp" value="<?=$temp;?>">
<input type="hidden" name="mail" value="<?=$mail;?>">
<input type="hidden" name="username" value="<?=$username;?>">
<form method="post" action="<?php echo $_SERVER['PHP_SELF']?>?num=<?php echo $num+1; ?>&cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="uid1" value="<?php echo $uid1;?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid;?>">
<input type="hidden" name="db_name" value="<?php echo $db_name;?>">
<input type="hidden" name="cidReq" value="<?php echo $cidReq;?>">
<input type="hidden" name="temp" value="<?php echo $temp;?>">
<input type="hidden" name="mail" value="<?php echo $mail;?>">
<input type="hidden" name="username" value="<?php echo $username;?>">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
@ -797,7 +797,7 @@ if ($numb=mysql_num_rows($res) > 0)
<?}
else{ $sub_name = "Next";
?>
<input type="submit" name="submit" value="<?=$sub_name?>">&nbsp;<input type="button"
<input type="submit" name="submit" value="<?php echo $sub_name; ?>">&nbsp;<input type="button"
value="Print" onClick="printpage()"></td>
<?}?>
</tr>

@ -158,8 +158,8 @@ $template = $obj->template;
$lang=$obj->lang;
?>
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="action" value="update_survey">
<table>
<tr>

@ -98,8 +98,8 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced')
api_display_tool_title($tool_name);
?>
<form method="get" action="survey_list.php">
<input type="hidden" name="cidReq" value="<?=$cidReq?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">
<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
<table>
<tr>
<td>
@ -161,12 +161,12 @@ else
CourseManager :: delete_course($_GET['delete_course']);
}
?>
<form method="get" action="survey_list.php?cidReq=<?=$cidReq?>">
<input type="hidden" name="cidReq" value="<?=$cidReq?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<form method="get" action="survey_list.php?cidReq=<?php echo $cidReq; ?>">
<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">
<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
<input type="text" name="keyword" value="<?php echo $_GET['keyword']; ?>"/>
<input type="submit" value="<?php echo get_lang('Search'); ?>"/>
<a href="survey_list.php?cidReq=<?=$cidReq?>&search=advanced&db_name=<?=$db_name?>"><?php echo get_lang('AdvancedSearch'); ?></a>
<a href="survey_list.php?cidReq=<?php echo $cidReq; ?>&search=advanced&db_name=<?php echo $db_name; ?>"><?php echo get_lang('AdvancedSearch'); ?></a>
</form>
<?php
$table_survey = Database :: get_course_table('survey');
@ -289,10 +289,10 @@ else
if(!isset ($_GET['search']))
{
?>
<form action="survey.php?cidReq=<?=$_SESSION[_course][id]?>" method="post">
<input type="submit" name="newsurvey" value="<?=get_lang('CreateSurvey')?>">
<input type="hidden" name="cidReq" value="<?=$cidReq?>">
<input type="hidden" name="db_name" value="<?=$db_name?>">
<form action="survey.php?cidReq=<?php echo $_SESSION[_course][id]; ?>" method="post">
<input type="submit" name="newsurvey" value="<?php echo get_lang('CreateSurvey'); ?>">
<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">
<input type="hidden" name="db_name" value="<?php echo $db_name; ?>">
</form>
<?php
}

@ -258,14 +258,14 @@ echo '</td></tr></table>';
?>
<br /><br />
<form method="get" action="<?=$_SERVER['PHP_SELF']?>">
<input type="hidden" name="surveyid" value="<?=$surveyid;?>">
<input type="hidden" name="db_name" value="<?=$db_name;?>">
<input type="hidden" name="temp" value="<?=$temp;?>">
<input type="hidden" name="cidReq" value="<?=$_GET['cidReq'];?>">
<input type="hidden" name="group_offset" value="<?=$group_offset;?>">
<input type="hidden" name="question_offset" value="<?=$question_offset;?>">
<input type="hidden" name="indiceQuestion" value="<?=$indiceQuestion;?>">
<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid;?>">
<input type="hidden" name="db_name" value="<?php echo $db_name;?>">
<input type="hidden" name="temp" value="<?php echo $temp;?>">
<input type="hidden" name="cidReq" value="<?php echo $_GET['cidReq'];?>">
<input type="hidden" name="group_offset" value="<?php echo $group_offset;?>">
<input type="hidden" name="question_offset" value="<?php echo $question_offset;?>">
<input type="hidden" name="indiceQuestion" value="<?php echo $indiceQuestion;?>">
<table width="100%" border="0" cellpadding="0" cellspacing="0">

@ -177,14 +177,14 @@ Display::display_error_message($error_message);
<table width="100%" height="132" border="0" cellpadding="0" cellspacing="0" bgcolor="#F6F5F5">
<form method="POST" action="<?php echo $_SERVER['PHP_SELF'];?>">
<!--<form method="post" action="surveytemp_white.php">-->
<input type="hidden" name="uid" value="<?=$uid;?>">
<input type="hidden" name="surveyid" value="<?=$surveyid;?>">
<input type="hidden" name="db_name" value="<?=$db_name;?>">
<input type="hidden" name="temp" value="<?=$temp;?>">
<input type="hidden" name="email" value="<?=$email;?>">
<input type="hidden" name="mail" value="<?=$mail;?>">
<input type="hidden" name="lang" value="<?=$lang;?>">
<input type="hidden" name="uid1" value="<?=$uid1;?>">
<input type="hidden" name="uid" value="<?php echo $uid;?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid;?>">
<input type="hidden" name="db_name" value="<?php echo $db_name;?>">
<input type="hidden" name="temp" value="<?php echo $temp;?>">
<input type="hidden" name="email" value="<?php echo $email;?>">
<input type="hidden" name="mail" value="<?php echo $mail;?>">
<input type="hidden" name="lang" value="<?php echo $lang;?>">
<input type="hidden" name="uid1" value="<?php echo $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="<?php echo mysql_result($res,0,"firstname");?>"></td>
@ -229,8 +229,8 @@ Display::display_error_message($error_message);
{
$name=$names[$i];
?>
<option value='<?=$name;?>'>
<?=$names[$i];?>
<option value='<?php echo $name;?>'>
<?php echo $names[$i];?>
</option>
<?
}
@ -244,8 +244,8 @@ Display::display_error_message($error_message);
{
$name=$names[$i];
?>
<option value='<?=$name;?>'>
<?=$names[$i];?>
<option value='<?php echo $name;?>'>
<?php echo $names[$i];?>
</option>
<?
}
@ -256,8 +256,8 @@ Display::display_error_message($error_message);
{
$name=$names[$i];
?>
<option value='<?=$name;?>'>
<?=$names[$i];?>
<option value='<?php echo $name;?>'>
<?php echo $names[$i];?>
</option><?
}
}

@ -74,7 +74,7 @@ api_display_tool_title($tool_name);
<tr>
<td colspan="2" align="center" class="text">
<br>
<?=$obj_sname->surveythanks;?>
<?php echo $obj_sname->surveythanks;?>
<br>
</td>
</tr>

@ -131,14 +131,14 @@ Display::display_error_message($error_message);
<table width="100%" height="132" border="0" cellpadding="0" cellspacing="0" bgcolor="#F6F5F5">
<form method="POST" action="<?php echo $_SERVER['PHP_SELF'];?>">
<!--<form method="post" action="surveytemp_white.php">-->
<input type="hidden" name="uid" value="<?=$uid;?>">
<input type="hidden" name="surveyid" value="<?=$surveyid;?>">
<input type="hidden" name="db_name" value="<?=$db_name;?>">
<input type="hidden" name="temp" value="<?=$temp;?>">
<input type="hidden" name="email" value="<?=$email;?>">
<input type="hidden" name="mail" value="<?=$mail;?>">
<input type="hidden" name="uid1" value="<?=$uid1;?>">
<input type="hidden" name="lang" value="<?=$lang;?>">
<input type="hidden" name="uid" value="<?php echo $uid;?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid;?>">
<input type="hidden" name="db_name" value="<?php echo $db_name;?>">
<input type="hidden" name="temp" value="<?php echo $temp;?>">
<input type="hidden" name="email" value="<?php echo $email;?>">
<input type="hidden" name="mail" value="<?php echo $mail;?>">
<input type="hidden" name="uid1" value="<?php echo $uid1;?>">
<input type="hidden" name="lang" value="<?php echo $lang;?>">
<tr>
<td align='left'>
<?
@ -150,11 +150,11 @@ Display::display_error_message($error_message);
<tr>
<td align="center">
<?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)?>');">
<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('<?php echo $_SERVER['PHP_SELF']; ?>?temp=<?php echo $temp; ?>&db_name=<?php echo $db_name; ?>&mail=<?php echo $mail; ?>&surveyid=<?php echo $surveyid; ?>&uid1=<?php echo $uid1; ?>&num=<?($num-1)?>');">
<?
} else{
?>
<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?>');">
<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=<?php echo $temp; ?>&db_name=<?php echo $db_name; ?>&uid1=<?php echo $uid1; ?>&mail=<?php echo $mail; ?>&surveyid=<?php echo $surveyid; ?>');">
<?
}
?>

@ -155,12 +155,12 @@ function checkLength(form){
return true;
}
</SCRIPT>
<form method="POST" name = "yesno" id="yesno" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>&add_question=<?=$add_question?>&groupid=<?=$groupid?>&surveyid=<?=$surveyid?>&curr_dbname=<?=$curr_dbname?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="questtype" value="<?=$add_question12?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<!--<input type="hidden" name="cidReq" value="<?=$cidReq?>">-->
<form method="POST" name = "yesno" id="yesno" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?php echo $cidReq; ?>&add_question=<?php echo $add_question; ?>&groupid=<?php echo $groupid; ?>&surveyid=<?php echo $surveyid; ?>&curr_dbname=<?php echo $curr_dbname; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="questtype" value="<?php echo $add_question12; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<!--<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">-->
<input type="hidden" name="action" value="addquestion" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="outerBorder_innertable">
<tr>
@ -330,7 +330,7 @@ function checkLength(form){
<td width="16" height="30" align="left" class="form_text">
<?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 class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?php echo $post_text[$k]; ?></textarea>
</td>
<td width="10" class="form_text"><img src="../img/blank.gif" width="10" height="8">
</td>
@ -373,7 +373,7 @@ function checkLength(form){
<br>
<br>
<div align="center">
<input type="HIDDEN" name="end1" value="<?=$end?>">
<input type="HIDDEN" name="end1" value="<?php echo $end; ?>">
<?
if(isset($_POST['add_question']))
{
@ -402,10 +402,10 @@ function checkLength(form){
break;
}
?>
<input type="submit" name="back" value="<?=get_lang("back");?>">
<input type="submit" name="saveandexit" value="<?=get_lang("saveandexit");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('yesno','<?=$temp?>','<?=$Multi?>')">
<input type="submit" name="next" value="<?=get_lang("next");?>">
<input type="submit" name="back" value="<?php echo get_lang("Back");?>">
<input type="submit" name="saveandexit" value="<?php echo get_lang("SaveAndExit");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('yesno','<?php echo $temp;?>','<?php echo $Multi; ?>')">
<input type="submit" name="next" value="<?php echo get_lang("next");?>">
</div>
<!--this partcular field helps in identify the item to be add at the itemadd.php-->
</form>
@ -425,7 +425,7 @@ function preview(form,temp,qtype)
var box = (eval("document."+form+"['mutlichkboxtext[]']["+i+"]"));
id_str += box.value+"|";
}
window.open(temp+'.php?temp=<?=$temp;?>&ques='+ques+'&ans='+id_str+'&qtype='+qtype, 'popup', 'width=800,height=600,scrollbars=yes,toolbar = no, status = no');
window.open(temp+'.php?temp=<?php echo $temp;?>&ques='+ques+'&ans='+id_str+'&qtype='+qtype, 'popup', 'width=800,height=600,scrollbars=yes,toolbar = no, status = no');
}
</script>
<?php

@ -120,14 +120,14 @@ if( isset($error_message) )
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<div id=content>
<form method="POST" name="yesno" id="yesno" action="<?php echo $_SERVER['PHP_SELF'];?>?qid=<?=$qid?>&cidReq=<?=$cidReq?>&groupid=<?=$groupid?>&surveyid=<?=$surveyid?>&curr_dbname=<?=$curr_dbname?>">
<input type="hidden" name="qid" value="<?=$qid?>">
<input type="hidden" name="groupid" value="<?=$groupid?>">
<input type="hidden" name="surveyid" value="<?=$surveyid?>">
<input type="hidden" name="qid" value="<?=$qid?>">
<input type="hidden" name="questtype" value="<?=$add_question12?>">
<input type="hidden" name="cidReq" value="<?=$cidReq?>">
<input type="hidden" name="curr_dbname" value="<?=$curr_dbname?>">
<form method="POST" name="yesno" id="yesno" action="<?php echo $_SERVER['PHP_SELF'];?>?qid=<?php echo $qid; ?>&cidReq=<?php echo $cidReq; ?>&groupid=<?php echo $groupid; ?>&surveyid=<?php echo $surveyid; ?>&curr_dbname=<?php echo $curr_dbname; ?>">
<input type="hidden" name="qid" value="<?php echo $qid; ?>">
<input type="hidden" name="groupid" value="<?php echo $groupid; ?>">
<input type="hidden" name="surveyid" value="<?php echo $surveyid; ?>">
<input type="hidden" name="qid" value="<?php echo $qid; ?>">
<input type="hidden" name="questtype" value="<?php echo $add_question12; ?>">
<input type="hidden" name="cidReq" value="<?php echo $cidReq; ?>">
<input type="hidden" name="curr_dbname" value="<?php echo $curr_dbname; ?>">
<input type="hidden" name="action" value="addquestion" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="outerBorder_innertable">
<tr>
@ -324,7 +324,7 @@ if( isset($error_message) )
<td width="16" height="30" align="left" class="form_text">
<?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 class="form_bg"><textarea name="mutlichkboxtext[]" cols="50" rows="3" class="text_field" style="width:100%;"><?php echo $post_text; ?></textarea>
</td>
<td width="10" class="form_text"><img src="../img/blank.gif" width="10" height="8">
</td>
@ -369,7 +369,7 @@ if( isset($error_message) )
<br>
<br>
<div align="center">
<input type="HIDDEN" name="end1" value="<?=$end?>">
<input type="HIDDEN" name="end1" value="<?php echo $end; ?>">
<?
if(isset($_POST['add_question']))
{
@ -398,12 +398,12 @@ if( isset($error_message) )
}
?>
<input type="submit" name="back" value="<?=get_lang("back");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('yesno','<?=$temp?>','<?=$Multi?>')">
<input type="submit" name="update" value="<?=get_lang("update");?>">
<!--<input name="preview" value="<?=get_lang("preview");?>" type="submit" onClick="return changeAction()" > -->
<input type="submit" name="back" value="<?php echo get_lang("back");?>">
<input type="button" value="<?php echo get_lang('preview');?>" onClick="preview('yesno','<?php echo $temp; ?>','<?php echo $Multi; ?>')">
<input type="submit" name="update" value="<?php echo get_lang("update");?>">
<!--<input name="preview" value="<?php echo get_lang("preview");?>" type="submit" onClick="return changeAction()" > -->
<!--<input type="submit" name="next" value="<?=get_lang("next");?>"> -->
<!--<input type="submit" name="next" value="<?php echo get_lang("next");?>"> -->
</div>
<!--this partcular field helps in identify the item to be add at the itemadd.php-->
</form>
@ -422,7 +422,7 @@ function preview(form,temp,qtype)
var box = (eval("document."+form+"['mutlichkboxtext[]']["+i+"]"));
id_str += box.value+"|";
}
window.open(temp+'.php?temp=<?=$temp;?>&ques='+ques+'&ans='+id_str+'&qtype='+qtype, 'popup', 'width=800,height=600,scrollbars=yes,toolbar = no, status = no');
window.open(temp+'.php?temp=<?php echo $temp;?>&ques='+ques+'&ans='+id_str+'&qtype='+qtype, 'popup', 'width=800,height=600,scrollbars=yes,toolbar = no, status = no');
}
</script>
<?php

Loading…
Cancel
Save