</div> <?php $questionnaire_id = false; if (isset($_GET['questionnaire_id'])) { $questionnaire_id = bigintval($_GET['questionnaire_id']); } $sample_import_id = false; if (isset($_GET['sample_import_id']) && !empty($_GET['sample_import_id'])) { $sample_import_id = bigintval($_GET['sample_import_id']); } $outcome_id = false; print "<div class='form-group '><h3 class=' col-sm-2 text-right'>" . T_("Questionnaire") . ":</h3>"; display_questionnaire_chooser($questionnaire_id, false, "pull-left", "form-control"); if ($questionnaire_id) { print "<h3 class=' col-sm-2 text-right'>" . T_("Sample") . ":</h3>"; display_sample_chooser($questionnaire_id, $sample_import_id, false, "pull-left", "form-control", true); print "</div>\r\n\t <div class='clearfix'></div>"; case_status_report($questionnaire_id, $sample_import_id, $outcome_id); } xhtml_foot($js_foot); ?> <script type="text/javascript"> $('#bs-table').bdt(); $('input').iCheck({ //checkboxClass: 'icheckbox_square-blue', //increaseArea: '30%' checkboxClass: 'fa fa-lg ', // text-primary checkedCheckboxClass: 'fa-check-square-o text-primary', uncheckedCheckboxClass: 'fa-square-o' }); </script>
xhtml_head(T_("Sample call attempt"), true, array("../include/bootstrap/css/bootstrap.min.css", "../css/custom.css"), array("../js/window.js")); print "<h3 class='form-inline pull-left'>" . T_("Please select a questionnaire") . " </h3>"; $questionnaire_id = false; if (isset($_GET['questionnaire_id'])) { $questionnaire_id = intval($_GET['questionnaire_id']); } display_questionnaire_chooser($questionnaire_id, array(-1, T_("Overall")), "form-inline clearfix", "form-control"); if ($questionnaire_id || $questionnaire_id == -1) { if (sample_call_attempt_report($questionnaire_id, false, false)) { if ($questionnaire_id != -1) { print "<h3 class='form-inline pull-left'>" . T_("Please select a sample") . " </h3>"; $sample_import_id = false; if (isset($_GET['sample_import_id'])) { $sample_import_id = bigintval($_GET['sample_import_id']); } display_sample_chooser($questionnaire_id, $sample_import_id, false, "form-inline clearfix", "form-control"); if ($sample_import_id) { if (sample_call_attempt_report($questionnaire_id, $sample_import_id, false)) { $questionnaire_sample_quota_row_id = false; if (isset($_GET['questionnaire_sample_quota_row_id'])) { $questionnaire_sample_quota_row_id = bigintval($_GET['questionnaire_sample_quota_row_id']); } print "<h3 class='form-inline pull-left'>" . T_("Please select a quota") . " </h3>"; display_quota_chooser($questionnaire_id, $sample_import_id, $questionnaire_sample_quota_row_id, "form-inline clearfix", "form-control"); if ($questionnaire_sample_quota_row_id) { if (!sample_call_attempt_report($questionnaire_id, $sample_import_id, $questionnaire_sample_quota_row_id)) { print "<p class='well text-danger'>" . T_("No calls for this quota") . "</p>"; } } } else { print "<p class='well text-danger'>" . T_("No calls for this sample") . "</p>";
$questionnaire_id = false; if (isset($_GET['questionnaire_id'])) { $questionnaire_id = bigintval($_GET['questionnaire_id']); } display_questionnaire_chooser($questionnaire_id, false, "form-inline col-lg-4 pull-left", "form-control"); if ($questionnaire_id) { $sql = "SELECT lime_sid \r\n\t\tFROM questionnaire\r\n\t\tWHERE questionnaire_id = {$questionnaire_id}"; $ls = $db->GetRow($sql); $lsid = $ls['lime_sid']; print " <a href='" . LIME_URL . "admin/admin.php?action=exportresults&sid={$lsid}' class='btn btn-default fa btn-lime'>" . T_("Download data for this questionnaire via Limesurvey") . "</a></div>"; print "<div class='form-group clearfix'><h3 class='col-sm-4 text-right'>" . T_("Please select a sample") . ": </h3>"; $sample_import_id = false; if (isset($_GET['sample_import_id'])) { $sample_import_id = bigintval($_GET['sample_import_id']); } display_sample_chooser($questionnaire_id, $sample_import_id, false, "form-inline col-lg-4 pull-left", "form-control"); if ($sample_import_id) { print " <a href='" . LIME_URL . "admin/admin.php?action=exportresults&sid={$lsid}&quexsfilterinc={$questionnaire_id}:{$sample_import_id}' class='btn btn-default fa btn-lime'>" . T_("Download data for this sample via Limesurvey") . "</a></div>"; //get sample vars $sql = "SELECT sivr.var_id as value, sivr.var as description\r\n\t\tFROM `sample_import_var_restrict` as sivr\r\n\t\tWHERE sivr.sample_import_id = {$sample_import_id}"; $rs = $db->GetAll($sql); //download a key file linking the caseid to the sample print "<div class='form-group '><h3 class='col-sm-4 text-right'>" . T_("Download key file: select sample var") . ": </h3>"; display_chooser($rs, "sample_var", "sample_var", true, "questionnaire_id={$questionnaire_id}&sample_import_id={$sample_import_id}", true, true, false, true, "form-inline col-lg-4 pull-left"); print "</div><div class=' col-sm-4'>"; //download complete key file print "<a href='?key=key&questionnaire_id={$questionnaire_id}&sample_import_id={$sample_import_id}' class='btn btn-default fa'>" . T_("Download complete key file") . "</a></br></br>"; //download complete sample file with outcomes print "<a href='?sample=sample&questionnaire_id={$questionnaire_id}&sample_import_id={$sample_import_id}' class='btn btn-default fa'>" . T_("Download complete sample file with current outcomes") . "</a></div>"; } }