//question type: $editquestion .= "\t<div id='questionbottom'><ul>\n" . "<li><label for='question_type'>" . $clang->gT("Question Type:") . "</label>\n"; if ($activated != "Y") { $editquestion .= "<select id='question_type' style='margin-bottom:5px' name='type' " . ">\n" . getqtypelist($eqrow['type'], 'group') . "</select>\n"; } else { $qtypelist = getqtypelist('', 'array'); $editquestion .= "{$qtypelist[$eqrow['type']]['description']} - " . $clang->gT("Cannot be changed (survey is active)") . "\n" . "<input type='hidden' name='type' id='question_type' value='{$eqrow['type']}' />\n"; } $editquestion .= "\t</li>\n"; if (!$adding) { $qattributes = questionAttributes(); } else { $qattributes = array(); } if ($activated != "Y") { $editquestion .= "\t<li>\n" . "\t<label for='gid'>" . $clang->gT("Question group:") . "</label>\n" . "<select name='gid' id='gid'>\n" . getgrouplist3($eqrow['gid']) . "\t\t</select></li>\n"; } else { $editquestion .= "\t<li>\n" . "\t<label>" . $clang->gT("Question group:") . "</label>\n" . getgroupname($eqrow['gid']) . " - " . $clang->gT("Cannot be changed (survey is active)") . "\n" . "\t<input type='hidden' name='gid' value='{$eqrow['gid']}' />" . "</li>\n"; } $editquestion .= "\t<li id='OtherSelection'>\n" . "<label>" . $clang->gT("Option 'Other':") . "</label>\n"; if ($activated != "Y") { $editquestion .= "<label for='OY'>" . $clang->gT("Yes") . "</label><input id='OY' type='radio' class='radiobtn' name='other' value='Y'"; if ($eqrow['other'] == "Y") { $editquestion .= " checked"; } $editquestion .= " /> \n" . "\t<label for='ON'>" . $clang->gT("No") . "</label><input id='ON' type='radio' class='radiobtn' name='other' value='N'"; if ($eqrow['other'] == "N" || $eqrow['other'] == "") { $editquestion .= " checked='checked'"; } $editquestion .= " />\n"; } else {
} $editquestion .="\t</li>\n"; if (!$adding) {$qattributes=questionAttributes();} else { $qattributes=array(); } if ($activated != "Y") { $editquestion .= "\t<li>\n" . "\t<label for='gid'>".$clang->gT("Question group:")."</label>\n" . "<select name='gid' id='gid'>\n" . getgrouplist3($eqrow['gid']) . "\t\t</select></li>\n"; } else { $editquestion .= "\t<li>\n" . "\t<label>".$clang->gT("Question group:")."</label>\n" . getgroupname($eqrow['gid'])." - ".$clang->gT("Cannot be changed (survey is active)")."\n" . "\t<input type='hidden' name='gid' value='{$eqrow['gid']}' />" . "</li>\n"; } $editquestion .= "\t<li id='OtherSelection'>\n" . "<label>".$clang->gT("Option 'Other':")."</label>\n"; if ($activated != "Y") {