$selectinc = ""; } elseif (incompleteAnsFilterstate() == "inc") { $selecthide = ""; $selectshow = ""; $selectinc = "selected='selected'"; } else { $selecthide = ""; $selectshow = "selected='selected'"; $selectinc = ""; } $statisticsoutput .= "<fieldset style='clear:both;'><legend>" . $clang->gT("Data selection") . "</legend><ul>"; $statisticsoutput .= "<li><label for='filterinc'>" . $clang->gT("Include:") . "</label><select name='filterinc' id='filterinc'>\n" . "<option value='show' {$selectshow}>" . $clang->gT("All responses") . "</option>\n" . "<option value='filter' {$selecthide}>" . $clang->gT("Completed responses only") . "</option>\n" . "<option value='incomplete' {$selectinc}>" . $clang->gT("Incomplete responses only") . "</option>\n" . "</select></li>\n"; $quexsfilterstate = questionnaireSampleFilterstate(); //queXS Addition include_once "../quexs.php"; $statisticsoutput .= "<li><label for='quexsfilterinc'>" . T_("Questionnaire and Sample selection:") . "</label><select id='quexsfilterinc' name='quexsfilterinc'>\n" . "\t<option value='all' >" . T_("All queXS questionnaires and samples associated with this instrument") . "</option>\n" . get_questionnaire_sample_list($surveyid, $quexsfilterstate) . "</select></li>\n"; $statisticsoutput .= "<li><label for='viewsummaryall'>" . $clang->gT("View summary of all available fields") . "</label>\n <input type='checkbox' id='viewsummaryall' name='viewsummaryall' "; if (isset($_POST['viewsummaryall'])) { $statisticsoutput .= "checked='checked'"; } $statisticsoutput .= "/></li>"; $statisticsoutput .= "<li id='vertical_slide'"; //if ($selecthide!='') //{ // $statisticsoutput .= " style='display:none' "; //} $statisticsoutput .= " ><label id='noncompletedlbl' for='noncompleted' title='" . $clang->gT("Count stats for each question based only on the total number of responses for which the question was displayed") . "'>" . $clang->gT("Subtotals based on displayed questions") . "</label>\n <input type='checkbox' id='noncompleted' name='noncompleted' "; if (isset($_POST['noncompleted'])) { $statisticsoutput .= "checked='checked'"; } $statisticsoutput .= " />\n</li>\n";
$selectshow = ""; $selectinc = ""; switch ($filterstate) { case "inc": $selectinc = "selected='selected'"; break; case "filter": $selecthide = "selected='selected'"; break; default: $selectshow = "selected='selected'"; } $exportspssoutput .= "<form action='{$scriptname}' id='exportspss' method='get'><ul>\n" . "<li><label for='filterinc'>" . $clang->gT("Data selection:") . "</label><select id='filterinc' name='filterinc' onchange='this.form.submit();'>\n" . "\t<option value='filter' {$selecthide}>" . $clang->gT("Completed responses only") . "</option>\n" . "\t<option value='show' {$selectshow}>" . $clang->gT("All responses") . "</option>\n" . "\t<option value='incomplete' {$selectinc}>" . $clang->gT("Incomplete responses only") . "</option>\n" . "</select></li>\n"; //queXS Addition include_once "../quexs.php"; $exportspssoutput .= "<li><label for='quexsfilterinc'>" . $clang->gT("Questionnaire and Sample selection:") . "</label><select id='quexsfilterinc' name='quexsfilterinc' onchange='this.form.submit();'>\n" . "\t<option value='all' >" . $clang->gT("All queXS questionnaires and samples associated with this instrument") . "</option>\n" . get_questionnaire_sample_list($surveyid, $quexsfilterstate) . "</select></li>\n"; $exportspssoutput .= "<li><label for='spssver'>" . $clang->gT("SPSS version:") . "</label><select id='spssver' name='spssver' onchange='this.form.submit();'>\n"; if ($spssver == 1) { $selected = "selected='selected'"; } else { $selected = ""; } $exportspssoutput .= "\t<option value='1' {$selected}>" . $clang->gT("Prior to 16") . "</option>\n"; if ($spssver == 2) { $selected = "selected='selected'"; } else { $selected = ""; } $exportspssoutput .= "\t<option value='2' {$selected}>" . $clang->gT("16 or up") . "</option>\n"; $exportspssoutput .= "</select></li>\n"; $exportspssoutput .= "<input type='hidden' name='sid' value='{$surveyid}' />\n" . "<input type='hidden' name='action' value='exportspss' /></li>\n" . "<li><label for='dlstructure'>" . $clang->gT("Step 1:") . "</label><input type='submit' name='dlstructure' id='dlstructure' value='" . $clang->gT("Export syntax") . "'/></li>\n" . "<li><label for='dldata'/>" . $clang->gT("Step 2:") . "</label><input type='submit' name='dldata' id='dldata' value='" . $clang->gT("Export data") . "'/></li></ul>\n" . "</form>\n";
$browseoutput .= "<a href='{$scriptname}?action=browse&subaction=all&sid={$surveyid}&start=0&limit={$limit}' " . "title='" . $clang->gTview("Show start...") . "' >" . "<img name='DataBegin' align='left' src='{$imageurl}/databegin.png' alt='" . $clang->gT("Show start...") . "' /></a>\n" . "<a href='{$scriptname}?action=browse&subaction=all&sid={$surveyid}&start={$last}&limit={$limit}' " . "title='" . $clang->gTview("Show previous..") . "' >" . "<img name='DataBack' align='left' src='{$imageurl}/databack.png' alt='" . $clang->gT("Show previous..") . "' /></a>\n" . "<img src='{$imageurl}/blank.gif' width='13' height='20' border='0' hspace='0' align='left' alt='' />\n" . "<a href='{$scriptname}?action=browse&subaction=all&sid={$surveyid}&start={$next}&limit={$limit}' " . "title='" . $clang->gT("Show next...") . "' >" . "<img name='DataForward' align='left' src='{$imageurl}/dataforward.png' alt='" . $clang->gT("Show next..") . "' /></a>\n" . "<a href='{$scriptname}?action=browse&subaction=all&sid={$surveyid}&start={$end}&limit={$limit}' " . "title='" . $clang->gT("Show last...") . "' >" . "<img name='DataEnd' align='left' src='{$imageurl}/dataend.png' alt='" . $clang->gT("Show last..") . "' /></a>\n" . "<img src='{$imageurl}/seperator.gif' border='0' hspace='0' align='left' alt='' />\n"; } $selectshow = ''; $selectinc = ''; $selecthide = ''; if (incompleteAnsFilterstate() == "inc") { $selectinc = "selected='selected'"; } elseif (incompleteAnsFilterstate() == "filter") { $selecthide = "selected='selected'"; } else { $selectshow = "selected='selected'"; } $browseoutput .= "<form action='{$scriptname}?action=browse' id='browseresults' method='post'><font size='1' face='verdana'>\n" . "<img src='{$imageurl}/blank.gif' width='31' height='20' border='0' hspace='0' align='right' alt='' />\n" . " " . $clang->gT("Display:") . "<select name='filterinc' onchange='javascript:document.getElementById(\"limit\").value=\"\";submit();'>\n" . "\t<option value='show' {$selectshow}>" . $clang->gT("All responses") . "</option>\n" . "\t<option value='filter' {$selecthide}>" . $clang->gT("Completed responses only") . "</option>\n" . "\t<option value='incomplete' {$selectinc}>" . $clang->gT("Incomplete responses only") . "</option>\n" . "</select>\n"; $quexsfilterstate = questionnaireSampleFilterstate(); //queXS Addition $browseoutput .= " " . T_("Questionnaire and Sample selection:") . "<select id='quexsfilterinc' name='quexsfilterinc' onchange='javascript:document.getElementById(\"limit\").value=\"\";submit();'>\n" . "\t<option value='all' >" . T_("All queXS questionnaires and samples associated with this instrument") . "</option>\n" . get_questionnaire_sample_list($surveyid, $quexsfilterstate) . "</select>\n"; $browseoutput .= "" . $clang->gT("Records displayed:") . "<input type='text' size='4' value='{$dtcount2}' name='limit' id='limit' />\n" . " " . $clang->gT("Starting from:") . "<input type='text' size='4' value='{$start}' name='start' id='start' />\n" . " <input type='submit' value='" . $clang->gT("Show") . "' />\n"; $browseoutput .= "</font>\n" . "<input type='hidden' name='sid' value='{$surveyid}' />\n" . "<input type='hidden' name='action' value='browse' />\n" . "<input type='hidden' name='subaction' value='all' />\n"; if (isset($_POST['sql'])) { $browseoutput .= "<input type='hidden' name='sql' value='" . html_escape($_POST['sql']) . "' />\n"; } $browseoutput .= "</form></div>\n" . "\t</div><form action='{$scriptname}?action=browse' id='resulttableform' method='post'>\n"; $browseoutput .= $tableheader; $dateformatdetails = getDateFormatData($_SESSION['dateformat']); while ($dtrow = $dtresult->FetchRow()) { if (!isset($bgcc)) { $bgcc = "even"; } else { if ($bgcc == "even") { $bgcc = "odd"; } else {