diff --git a/application/controllers/admin/conditions.php b/application/controllers/admin/conditions.php
index e34e4d28c84..6c9fa9f8407 100644
--- a/application/controllers/admin/conditions.php
+++ b/application/controllers/admin/conditions.php
@@ -9,9 +9,9 @@
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
- *
+ *
* $Id$
- *
+ *
*/
/**
@@ -23,7 +23,7 @@
* @subpackage Backend
*/
class conditions extends SurveyCommonController {
-
+
/**
* Constructor
*/
@@ -31,23 +31,23 @@ function __construct()
{
parent::__construct();
}
-
+
public function _remap($method, $params = array())
{
array_unshift($params, $method);
return call_user_func_array(array($this, "action"), $params);
}
-
+
function action($subaction, $surveyid=null, $gid=null, $qid=null)
{
-
+
//Compatibility variables for CI
$_POST = $this->input->post();
$clang = $this->limesurvey_lang;
$dbprefix = $this->db->dbprefix;
$imageurl=$this->config->item("imageurl");
$this->load->helper("database");
-
+
if($this->input->post("subaction")) $subaction=$this->input->post("subaction");
//BEGIN Sanitizing POSTed data
@@ -55,7 +55,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
if (!isset($qid)) {$qid=returnglobal('qid');}
if (!isset($gid)) {$gid=returnglobal('gid');}
if (!isset($p_scenario)) {$p_scenario=returnglobal('scenario');}
- if (!isset($p_cqid))
+ if (!isset($p_cqid))
{
$p_cqid=returnglobal('cqid');
if ($p_cqid == '') $p_cqid=0; // we are not using another question as source of condition
@@ -65,10 +65,10 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
if (!isset($p_cquestions)) {$p_cquestions=returnglobal('cquestions');}
if (!isset($p_csrctoken)) {$p_csrctoken=returnglobal('csrctoken');}
if (!isset($p_prevquestionsgqa)) {$p_prevquestionsgqa=returnglobal('prevQuestionSGQA');}
-
+
if (!isset($p_canswers))
{
-
+
if (isset($_POST['canswers']) && is_array($_POST['canswers']))
{
foreach ($_POST['canswers'] as $key => $val)
@@ -77,12 +77,12 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
}
}
}
-
+
// this array will be used soon,
// to explain wich conditions is used to evaluate the question
if (isset($stringcomparizonoperators) && $stringcomparizonoperators == 1)
{
- $method = array(
+ $method = array(
"<" => $clang->gT("Less than"),
"<=" => $clang->gT("Less than or equal to"),
"==" => $clang->gT("equals"),
@@ -98,7 +98,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
}
else
{
- $method = array(
+ $method = array(
"<" => $clang->gT("Less than"),
"<=" => $clang->gT("Less than or equal to"),
"==" => $clang->gT("equals"),
@@ -108,7 +108,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
"RX" => $clang->gT("Regular expression")
);
}
-
+
if (isset($_POST['method']))
{
if (!in_array($_POST['method'], array_keys($method)))
@@ -120,20 +120,20 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
$p_method = trim ($_POST['method']);
}
}
-
-
+
+
if (isset($_POST['newscenarionum']))
{
$p_newscenarionum = sanitize_int($_POST['newscenarionum']);
}
//END Sanitizing POSTed data
-
+
//include_once("login_check.php");
//include_once("database.php");
// Caution (lemeur): database.php uses auto_unescape on all entries in $_POST
// Take care to not use auto_unescape on $_POST variables after this
-
-
+
+
//MAKE SURE THAT THERE IS A SID
if (!isset($surveyid) || !$surveyid)
{
@@ -142,7 +142,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
show_error($conditionsoutput);
return;
}
-
+
//MAKE SURE THAT THERE IS A QID
if (!isset($qid) || !$qid)
{
@@ -151,28 +151,28 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
show_error($conditionsoutput);
return;
}
-
-
+
+
// If we made it this far, then lets develop the menu items
// add the conditions container table
-
+
$extraGetParams ="";
if (isset($qid) && isset($gid))
{
$extraGetParams="/$gid/$qid/";
}
-
+
$conditionsoutput_action_error = ""; // defined during the actions
$conditionsoutput_main_content = ""; // everything after the menubar
-
+
$markcidarray=Array();
if (isset($_GET['markcid']))
{
$markcidarray=explode("-",$_GET['markcid']);
}
-
-
+
+
//BEGIN PROCESS ACTIONS
// ADD NEW ENTRY IF THIS IS AN ADD
if (isset($p_subaction) && $p_subaction == "insertcondition")
@@ -196,7 +196,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
{
$conditionCfieldname=$p_csrctoken;
}
-
+
if (isset($p_canswers))
{
foreach ($p_canswers as $ca)
@@ -211,7 +211,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
."AND value='".$ca."'";
$result = db_execute_assoc($query) or safe_die("Couldn't check for existing condition
$query
".$connect->ErrorMsg());
$count_caseinsensitivedupes = $result->num_rows();
-
+
if ($count_caseinsensitivedupes == 0)
{
$query = "INSERT INTO {$dbprefix}conditions (qid, scenario, cqid, cfieldname, method, value) VALUES "
@@ -220,7 +220,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
}
}
}
-
+
unset($posted_condition_value);
// Please note that auto_unescape is already applied in database.php included above
// so we only need to db_quote _POST variables
@@ -240,7 +240,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
{
$posted_condition_value = db_quote($_POST['ConditionRegexp']);
}
-
+
if (isset($posted_condition_value))
{
$query = "INSERT INTO {$dbprefix}conditions (qid, scenario, cqid, cfieldname, method, value) VALUES "
@@ -249,7 +249,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
}
}
}
-
+
// UPDATE ENTRY IF THIS IS AN EDIT
if (isset($p_subaction) && $p_subaction == "updatecondition")
{
@@ -272,7 +272,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
{
$conditionCfieldname=$p_csrctoken;
}
-
+
if (isset($p_canswers))
{
foreach ($p_canswers as $ca)
@@ -282,7 +282,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
$result = db_execute_assoc($query) or safe_die ("Couldn't update condition
$query
".$connect->ErrorMsg());
}
}
-
+
unset($posted_condition_value);
// Please note that auto_unescape is already applied in database.php included above
// so we only need to db_quote _POST variables
@@ -302,7 +302,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
{
$posted_condition_value = db_quote($_POST['ConditionRegexp']);
}
-
+
if (isset($posted_condition_value))
{
$query = "UPDATE {$dbprefix}conditions SET qid='{$qid}', scenario='{$p_scenario}' , cqid='{$p_cqid}', cfieldname='{$conditionCfieldname}', method='{$p_method}', value='".$posted_condition_value."' "
@@ -311,35 +311,35 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
}
}
}
-
+
// DELETE ENTRY IF THIS IS DELETE
if (isset($p_subaction) && $p_subaction == "delete")
{
$query = "DELETE FROM {$dbprefix}conditions WHERE cid={$p_cid}";
$result = db_execute_assoc($query) or safe_die ("Couldn't delete condition
$query
".$connect->ErrorMsg());
}
-
+
// DELETE ALL CONDITIONS IN THIS SCENARIO
if (isset($p_subaction) && $p_subaction == "deletescenario")
{
$query = "DELETE FROM {$dbprefix}conditions WHERE qid={$qid} AND scenario={$p_scenario}";
$result = db_execute_assoc($query) or safe_die ("Couldn't delete scenario
$query
".$connect->ErrorMsg());
}
-
+
// UPDATE SCENARIO
if (isset($p_subaction) && $p_subaction == "updatescenario" && isset($p_newscenarionum))
{
$query = "UPDATE {$dbprefix}conditions SET scenario=$p_newscenarionum WHERE qid={$qid} AND scenario={$p_scenario}";
$result = db_execute_assoc($query) or safe_die ("Couldn't delete scenario
$query
".$connect->ErrorMsg());
}
-
+
// DELETE ALL CONDITIONS FOR THIS QUESTION
if (isset($p_subaction) && $p_subaction == "deleteallconditions")
{
$query = "DELETE FROM {$dbprefix}conditions WHERE qid={$qid}";
$result = db_execute_assoc($query) or safe_die ("Couldn't delete scenario
$query
".$connect->ErrorMsg());
}
-
+
// RENUMBER SCENARIOS
if (isset($p_subaction) && $p_subaction == "renumberscenarios")
{
@@ -352,9 +352,9 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
$result2 = db_execute_assoc($query2) or safe_die ("Couldn't renumber scenario
$query
".$connect->ErrorMsg());
$newindex++;
}
-
+
}
-
+
// COPY CONDITIONS IF THIS IS COPY
if (isset($p_subaction) && $p_subaction == "copyconditions")
{
@@ -392,7 +392,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
."AND value='".$pfc['value']."'";
$result = db_execute_assoc($query) or safe_die("Couldn't check for existing condition
$query
".$connect->ErrorMsg());
$count_caseinsensitivedupes = $result->num_rows();
-
+
$countduplicates = 0;
if ($count_caseinsensitivedupes != 0)
{
@@ -401,7 +401,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
if ($ccrow['value'] == $pfc['value']) $countduplicates++;
}
}
-
+
if ($countduplicates == 0) //If there is no match, add the condition.
{
$query = "INSERT INTO {$dbprefix}conditions ( qid,scenario,cqid,cfieldname,method,value) \n"
@@ -433,23 +433,23 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
$CopyConditionsMessage = "
";
}
}
-
+
}
//END PROCESS ACTIONS
-
-
-
+
+
+
$cquestions=Array();
$canswers=Array();
-
-
-
+
+
+
//BEGIN: GATHER INFORMATION
// 1: Get information for this question
if (!isset($qid)) {$qid=returnglobal('qid');}
if (!isset($surveyid)) {$surveyid=returnglobal('sid');}
$thissurvey=getSurveyInfo($surveyid);
-
+
$query = "SELECT * "
."FROM {$dbprefix}questions, "
."{$dbprefix}groups "
@@ -465,9 +465,9 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
$questiontext=$rows['question'];
$questiontype=$rows['type'];
}
-
+
// 2: Get all other questions that occur before this question that are pre-determined answer types
-
+
// To avoid natural sort order issues,
// first get all questions in natural sort order
// , and find out which number in that order this question is
@@ -479,12 +479,12 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
."AND {$dbprefix}questions.sid=$surveyid "
."AND {$dbprefix}questions.language='".GetBaseLanguageFromSurveyID($surveyid)."' "
."AND {$dbprefix}groups.language='".GetBaseLanguageFromSurveyID($surveyid)."' " ;
-
+
$qresult = db_execute_assoc($qquery) or safe_die ("$qquery
".$connect->ErrorMsg());
$qrows = $qresult->result_array();
// Perform a case insensitive natural sort on group name then question title (known as "code" in the form) of a multidimensional array
usort($qrows, 'GroupOrderThenQuestionOrder');
-
+
$position="before";
// Go through each question until we reach the current one
foreach ($qrows as $qrow)
@@ -500,7 +500,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
break;
}
}
-
+
// Now, using the same array which is now properly sorted by group then question
// Create an array of all the questions that appear AFTER the current one
$position = "before";
@@ -516,10 +516,10 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
$postquestionlist[]=$qrow['qid'];
}
}
-
+
$theserows=array();
$postrows=array();
-
+
if (isset($questionlist) && is_array($questionlist))
{
foreach ($questionlist as $ql)
@@ -539,11 +539,11 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
."AND {$dbprefix}questions.qid=$ql "
."AND {$dbprefix}questions.language='".GetBaseLanguageFromSurveyID($surveyid)."' "
."AND {$dbprefix}groups.language='".GetBaseLanguageFromSurveyID($surveyid)."'" ;
-
+
$result=db_execute_assoc($query) or die("Couldn't get question $qid");
-
+
$thiscount=$result->num_rows();
-
+
// And store again these questions in this array...
foreach ($result->result_array() as $myrows)
{ //key => value
@@ -558,7 +558,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
}
}
}
-
+
if (isset($postquestionlist) && is_array($postquestionlist))
{
foreach ($postquestionlist as $pq)
@@ -578,12 +578,12 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
."q.qid=$pq AND "
."q.language='".GetBaseLanguageFromSurveyID($surveyid)."' AND "
."g.language='".GetBaseLanguageFromSurveyID($surveyid)."'";
-
-
+
+
$result = db_execute_assoc($query) or safe_die("Couldn't get postquestions $qid
$query
".$connect->ErrorMsg());
-
+
$postcount=$result->num_rows();
-
+
foreach ($result->result_array() as $myrows)
{
$postrows[]=array("qid"=>$myrows['qid'],
@@ -598,9 +598,9 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
}
$postquestionscount=count($postrows);
}
-
+
$questionscount=count($theserows);
-
+
if (isset($postquestionscount) && $postquestionscount > 0)
{ //Build the array used for the questionNav and copyTo select boxes
foreach ($postrows as $pr)
@@ -609,16 +609,16 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
"fieldname"=>$pr['sid']."X".$pr['gid']."X".$pr['qid']);
}
}
-
+
// Previous question parsing ==> building cquestions[] and canswers[]
if ($questionscount > 0)
{
$X="X";
-
+
foreach($theserows as $rows)
{
$shortquestion=$rows['title'].": ".strip_tags($rows['question']);
-
+
if ($rows['type'] == "A" ||
$rows['type'] == "B" ||
$rows['type'] == "C" ||
@@ -631,15 +631,15 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
."WHERE parent_qid={$rows['qid']} "
."AND language='".GetBaseLanguageFromSurveyID($surveyid)."' "
."ORDER BY question_order";
-
+
$aresult=db_execute_assoc($aquery) or safe_die ("Couldn't get answers to Array questions
$aquery
".$connect->ErrorMsg());
-
+
foreach ($aresult->result_array() as $arows)
{
$shortanswer = "{$arows['title']}: [" . FlattenText($arows['question']) . "]";
$shortquestion=$rows['title'].":$shortanswer ".FlattenText($rows['question']);
$cquestions[]=array($shortquestion, $rows['qid'], $rows['type'], $rows['sid'].$X.$rows['gid'].$X.$rows['qid'].$arows['title']);
-
+
switch ($rows['type'])
{
case "A": //Array 5 buttons
@@ -684,12 +684,12 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
{
$canswers[]=array($rows['sid'].$X.$rows['gid'].$X.$rows['qid'].$arows['title'], "", $clang->gT("No answer"));
}
-
+
} //while
}
elseif ($rows['type'] == ":" || $rows['type'] == ";")
{ // Multiflexi
-
+
//Get question attribute for $canswers
$qidattributes=getQuestionAttributes($rows['qid'], $rows['type']);
if (isset($qidattributes['multiflexible_max']) && trim($qidattributes['multiflexible_max'])!='') {
@@ -707,14 +707,14 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
} else {
$stepvalue=1;
}
-
+
if (isset($qidattributes['multiflexible_checkbox']) && $qidattributes['multiflexible_checkbox']!=0) {
$minvalue=0;
$maxvalue=1;
$stepvalue=1;
}
// Get the Y-Axis
-
+
$fquery = "SELECT sq.*, q.other"
." FROM ".$this->db->dbprefix('questions')." sq, ".$this->db->dbprefix('questions')." q"
." WHERE sq.sid=$surveyid AND sq.parent_qid=q.qid "
@@ -723,34 +723,34 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
." AND q.qid={$rows['qid']}
AND sq.scale_id=0
ORDER BY sq.question_order";
-
+
$y_axis_db = db_execute_assoc($fquery);
-
- // Get the X-Axis
+
+ // Get the X-Axis
$aquery = "SELECT sq.*
- FROM ".$this->db->dbprefix('questions')." q, ".$this->db->dbprefix('questions')." sq
- WHERE q.sid=$surveyid
+ FROM ".$this->db->dbprefix('questions')." q, ".$this->db->dbprefix('questions')." sq
+ WHERE q.sid=$surveyid
AND sq.parent_qid=q.qid
AND q.language='".GetBaseLanguageFromSurveyID($surveyid)."'
AND sq.language='".GetBaseLanguageFromSurveyID($surveyid)."'
AND q.qid=".$rows['qid']."
AND sq.scale_id=1
ORDER BY sq.question_order";
-
+
$x_axis_db=db_execute_assoc($aquery) or safe_die ("Couldn't get answers to Array questions
$aquery
".$connect->ErrorMsg());
-
+
foreach ($x_axis_db->result_array() as $frow)
{
$x_axis[$frow['title']]=$frow['question'];
}
-
+
foreach ($y_axis_db->result_array() as $arow)
{
foreach($x_axis as $key=>$val)
{
$shortquestion=$rows['title'].":{$arows['title']}:$key: [".strip_tags($arows['question']). "][" .strip_tags($val). "] " . FlattenText($rows['question']);
$cquestions[]=array($shortquestion, $rows['qid'], $rows['type'], $rows['sid'].$X.$rows['gid'].$X.$rows['qid'].$arows['title']."_".$key);
-
+
if ($rows['type'] == ":")
{
for($ii=$minvalue; $ii<=$maxvalue; $ii+=$stepvalue)
@@ -770,7 +770,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
."AND language='".GetBaseLanguageFromSurveyID($surveyid)."' "
."ORDER BY question_order";
$aresult=db_execute_assoc($aquery) or safe_die ("Couldn't get answers to Array questions
$aquery
".$connect->ErrorMsg());
-
+
foreach ($aresult->result_array() as $arows)
{
$attr = getQuestionAttributes($rows['qid']);
@@ -779,11 +779,11 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
$shortanswer = "{$arows['title']}: [" . strip_tags($arows['question']) . "][$label1]";
$shortquestion=$rows['title'].":$shortanswer ".strip_tags($rows['question']);
$cquestions[]=array($shortquestion, $rows['qid'], $rows['type'], $rows['sid'].$X.$rows['gid'].$X.$rows['qid'].$arows['title']."#0");
-
+
$shortanswer = "{$arows['title']}: [" . strip_tags($arows['question']) . "][$label2]";
$shortquestion=$rows['title'].":$shortanswer ".strip_tags($rows['question']);
$cquestions[]=array($shortquestion, $rows['qid'], $rows['type'], $rows['sid'].$X.$rows['gid'].$X.$rows['qid'].$arows['title']."#1");
-
+
// first label
$lquery="SELECT * "
."FROM {$dbprefix}answers "
@@ -796,7 +796,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
{
$canswers[]=array($rows['sid'].$X.$rows['gid'].$X.$rows['qid'].$arows['title']."#0", "{$lrows['code']}", "{$lrows['code']}");
}
-
+
// second label
$lquery="SELECT * "
."FROM {$dbprefix}answers "
@@ -809,7 +809,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
{
$canswers[]=array($rows['sid'].$X.$rows['gid'].$X.$rows['qid'].$arows['title']."#1", "{$lrows['code']}", "{$lrows['code']}");
}
-
+
// Only Show No-Answer if question is not mandatory
if ($rows['mandatory'] != 'Y')
{
@@ -826,19 +826,19 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
."AND language='".GetBaseLanguageFromSurveyID($surveyid)."' "
."ORDER BY question_order";
$aresult=db_execute_assoc($aquery) or safe_die ("Couldn't get answers to Array questions
$aquery
".$connect->ErrorMsg());
-
+
foreach ($aresult->result_array() as $arows)
{
$shortanswer = "{$arows['title']}: [" . strip_tags($arows['question']) . "]";
$shortquestion=$rows['title'].":$shortanswer ".strip_tags($rows['question']);
$cquestions[]=array($shortquestion, $rows['qid'], $rows['type'], $rows['sid'].$X.$rows['gid'].$X.$rows['qid'].$arows['title']);
-
+
// Only Show No-Answer if question is not mandatory
if ($rows['mandatory'] != 'Y')
{
$canswers[]=array($rows['sid'].$X.$rows['gid'].$X.$rows['qid'].$arows['title'], "", $clang->gT("No answer"));
}
-
+
} //while
}
elseif ($rows['type'] == "R") //Answer Ranking
@@ -882,12 +882,12 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
."AND language='".GetBaseLanguageFromSurveyID($surveyid)."' "
."ORDER BY question_order";
$aresult=db_execute_assoc($aquery) or safe_die ("Couldn't get answers to this question
$aquery
".$connect->ErrorMsg());
-
+
foreach ($aresult->result_array() as $arows)
{
$theanswer = addcslashes($arows['question'], "'");
$canswers[]=array($rows['sid'].$X.$rows['gid'].$X.$rows['qid'], $arows['title'], $theanswer);
-
+
$shortanswer = "{$arows['title']}: [" . strip_tags($arows['question']) . "]";
$shortanswer .= "[".$clang->gT("Single checkbox")."]";
$shortquestion=$rows['title'].":$shortanswer ".strip_tags($rows['question']);
@@ -934,16 +934,16 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
$canswers[]=array($rows['sid'].$X.$rows['gid'].$X.$rows['qid'], " ", $clang->gT("No answer"));
}
break;
-
+
case "N": // Simple Numerical questions
-
+
// Only Show No-Answer if question is not mandatory
if ($rows['mandatory'] != 'Y')
{
$canswers[]=array($rows['sid'].$X.$rows['gid'].$X.$rows['qid'], " ", $clang->gT("No answer"));
}
break;
-
+
default:
$aquery="SELECT * "
."FROM {$dbprefix}answers "
@@ -954,7 +954,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
."answer";
// Ranking question? Replacing "Ranking" by "this"
$aresult=db_execute_assoc($aquery) or safe_die ("Couldn't get answers to this question
$aquery
".$connect->ErrorMsg());
-
+
foreach ($aresult->result_array() as $arows)
{
$theanswer = addcslashes($arows['answer'], "'");
@@ -981,7 +981,7 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
{
$canswers[]=array($rows['sid'].$X.$rows['gid'].$X.$rows['qid'], "-oth-", $clang->gT("Other"));
}
-
+
// Only Show No-Answer if question is not mandatory
if ($rows['mandatory'] != 'Y')
{
@@ -994,8 +994,8 @@ function action($subaction, $surveyid=null, $gid=null, $qid=null)
} //foreach theserows
} //if questionscount > 0
//END Gather Information for this question
-
-
+
+
$quesitonNavOptions = "