Ejemplo n.º 1
0
        if ($questionnaire_id != -1) {
            print "<h3 class='form-inline pull-left'>" . T_("Please select a sample") . "&emsp;</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") . "&emsp;</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>";
                }
            }
        }
    } else {
        print "<p class='well text-danger'>" . T_("No calls for this questionnaire") . "</p>";
    }
}
xhtml_foot(array("../js/custom.js"));
Ejemplo n.º 2
0
    $sql = "SELECT pid\r\n\t\tFROM boxes\r\n\t\tWHERE bgid = '{$bgid}'";
    $bggg = $db->GetRow($sql);
    $pid = $bggg['pid'];
} else {
    if ($pid == "") {
        //we are done
        //	xhtml_head(T_("Verify: Done"));
        xhtml_head(T_("Verify: Done"), true, false, false, "onload='document.form1.complete.focus();'");
        print "<p>" . T_("The required fields have been filled") . "</p>";
        print "<div id=\"links\">";
        print "<form name=\"form1\" action=\"" . $_SERVER['PHP_SELF'] . "\" method=\"post\"><input type=\"submit\" name=\"complete\" onclick=\"document.getElementById('links').style.visibility='hidden'; document.getElementById('wait').style.visibility='visible';\"  value=\"" . T_("Submit completed form to database") . "\"/></form>";
        //	print "<p><a href=\"" . $_SERVER['PHP_SELF'] . "?complete=complete\" onclick=\"document.getElementById('links').style.visibility='hidden'; document.getElementById('wait').style.visibility='visible';\">" . T_("Submit completed form to database") . "</a></p>";
        print "<p><a href=\"" . $_SERVER['PHP_SELF'] . "?review=review#boxGroup\" onclick=\"document.getElementById('links').style.visibility='hidden'; document.getElementById('wait').style.visibility='visible';\">" . T_("Review all questions again") . "</a></p>";
        print "<p><a href=\"" . $_SERVER['PHP_SELF'] . "?clear=clear#boxGroup\" onclick=\"document.getElementById('links').style.visibility='hidden'; document.getElementById('wait').style.visibility='visible';\">" . T_("Clear all entered data and review again") . "</a></p></div>";
        print "<div id=\"wait\" style=\"visibility: hidden;\"><p>" . T_("Submitting: Please wait...") . "</p></div>";
        xhtml_foot();
        exit;
    }
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title><?php 
echo T_("Verifier");
?>
 - <?php 
print "QID:{$qid} FID:{$fid} DESC:{$description}";
?>
Ejemplo n.º 3
0
	<div class="form-group">
		<label class="col-md-4 control-label" for="description"><?php 
        echo T_("Sample description");
        ?>
:</label>  
		<div class="col-md-4">
			<input id="description" name="description" type="text" required placeholder="<?php 
        echo T_("Enter new sample name...");
        ?>
" class="form-control">
		</div>
	</div>
	
	<!-- Button -->
	<div class="form-group">
		<label class="col-md-4 control-label" for="submit"></label>
		<div class="col-md-4">
			<button id="submit" type="submit" name="import_file" class="btn btn-primary"><i class="fa fa-plus-square-o fa-lg"></i>&emsp;<?php 
        echo T_("Add sample");
        ?>
</button>
		</div>
	</div>

	</fieldset>
	</form>

<?php 
        xhtml_foot($js_foot);
    }
}
Ejemplo n.º 4
0
				<h4><?php 
            echo T_("Choose the CSV row quota file to import:");
            ?>
</h4>
				<p><input id="file" name="file" type="file" class="filestyle form-group" required data-buttonBefore="true" data-iconName="fa fa-folder-open fa-lg text-primary " data-buttonText="<?php 
            echo T_("Select file");
            ?>
..." accept="<?php 
            echo $csv;
            ?>
"/></p>
				<button type="submit" class="btn btn-primary" name="import_quota" ><i class="fa fa-upload fa-lg"></i>&emsp;<?php 
            print T_("Import row quota");
            ?>
</button>
			</form>
		</div>
    <?php 
        }
    }
}
xhtml_foot(array("../js/bootstrap-filestyle.min.js", "../js/custom.js"));
?>

<script type="text/javascript">
$('input').iCheck({
	checkboxClass: 'icheckbox_square-blue',
	increaseArea: '30%'
});
</script>
Ejemplo n.º 5
0
function browser()
{
    if ($handle = opendir('./')) {
        while (false !== ($file = readdir($handle))) {
            $ext = substr($file, -4);
            if ($file == "." || $file == "..") {
            } else {
                $filelist[$toc] = $file;
                $toc++;
            }
        }
        closedir($handle);
    }
    xhtml_head();
    ?>
			<ul id="filebrowser">
		<?php 
    for ($x = 0; $x < $toc; $x++) {
        if (!is_dir($filelist[$x])) {
            if (is_writable($filelist[$x])) {
                ?>
						<li>
							<a href="?do=editor&file=<?php 
                echo $filelist[$x];
                ?>
">
								<span class="file-title"><?php 
                echo $filelist[$x];
                ?>
</span>
								<span class="file-modified"><?php 
                echo date("d/m/Y h:ia", filemtime("./" . $filelist[$x]));
                ?>
</span>
								<span class="file-size"><?php 
                echo format_bytes(filesize("./" . $filelist[$x]));
                ?>
</span>
							</a>
						</li>
						<?php 
            }
        }
    }
    ?>
			</ul>
		<?php 
    xhtml_foot();
}
Ejemplo n.º 6
0
</label>
		<div class="col-lg-3"><input name="admin" type="checkbox" data-toggle="toggle" data-on="<?php 
echo T_("Yes");
?>
" data-off="<?php 
echo T_("No");
?>
" data-onstyle="danger"/></div>
	</div>

	<br/>
	<div class="form-group form-inline">
		<div class='col-lg-3'>
			<a href='operatorlist.php' class='btn btn-default col-lg-6'><?php 
echo T_("Cancel");
?>
</a>
		</div>
		
		<div class="col-lg-3">
			<input type="submit" name="adduser" class="btn btn-primary btn-block" value="<?php 
echo T_("Add an operator");
?>
" />
		</div>
	</div>
</form>

<?php 
xhtml_foot(array("../js/new.js"));