color: #FFFFFF ;
              background: #808080 ;
              border: 1px solid #cccccc }
      tr    { font-family: Arial, Verdana, Helvetica, sans-serif ;
              font-size: 12px }
      td    { font-family: Arial, Verdana, Helvetica, sans-serif ;
              font-size: 12px ;
              vertical-align: top ;
              white-space: nowrap ;
              border: 1px solid #cccccc }
	-->
	</style>
<table>
<?php 
for ($i = 1; $i < $argc; $i++) {
    printHTML($argv[$i]);
}
?>
</table>



{| class="wikitable"
|-
! bgcolor="#d0d0d0" colspan="5" align="center" |Platform
|-
! bgcolor="#d0d0d0"|C compiler
! bgcolor="#d0d0d0"|C++ compiler
! bgcolor="#d0d0d0"|CMake
! bgcolor="#d0d0d0"|MySQL
! bgcolor="#d0d0d0"|Settings
Beispiel #2
0
<?php

if ($_GET['what'] == 'good') {
    $names = array('a', 'b', 'c', 'd');
    echo printHTML($names);
} else {
    if ($_GET['what'] == 'bad') {
        $names = array('e', 'f', 'g', 'h');
        echo printHTML($names);
    }
}
function printHTML($data)
{
    $strRusult = '<ul>';
    for ($i = 0; $i < count($data); $i++) {
        $strRusult .= '<li>' . $data[$i] . '</li>';
    }
    $strRusult .= '</ul>';
    return $strRusult;
}
Beispiel #3
0
$fake_register_globals = false;
//
include_once "../../globals.php";
include_once "{$srcdir}/sql.inc";
include_once "{$srcdir}/options.inc.php";
include_once "{$srcdir}/immunization_helper.php";
//collect facility data
$res = sqlQuery("select concat(f.name,'\n',f.street,'\n',f.city,', ',f.state,' ',f.postal_code) as facility_address " . " from facility f, users u " . " where u.facility = f.name " . " and u.id = ?", array($_SESSION['authId']));
//collect patient data
$res2 = sqlQuery("select concat(p.lname,', ',p.fname,' ',p.mname) patient_name " . ",date_format(p.DOB,'%c/%e/%Y') as patient_DOB " . ",concat(p.street,'\n',p.city,', ',p.state,' ',p.postal_code) as patient_address" . " from patient_data p where p.pid = ?", array($pid));
//collect immunizations
$res3 = getImmunizationList($pid, $_GET['sortby'], false);
$data_array = convertToDataArray($res3);
$title = xl('Shot Record as of:', '', '', ' ') . date('m/d/Y h:i:s a');
if ($_GET['output'] == "html") {
    printHTML($res, $res2, $data_array);
} else {
    printPDF($res, $res2, $data_array);
}
function convertToDataArray($data_array)
{
    $current = 0;
    while ($row = sqlFetchArray($data_array)) {
        //admin date
        $temp_date = new DateTime($row['administered_date']);
        $data[$current][xl('Date') . "\n" . xl('Admin')] = $temp_date->format('Y-m-d H:i');
        //->format('%Y-%m-%d %H:%i');
        //Vaccine
        // Figure out which name to use (ie. from cvx list or from the custom list)
        if ($GLOBALS['use_custom_immun_list']) {
            $vaccine_display = generate_display_field(array('data_type' => '1', 'list_id' => 'immunizations'), $row['immunization_id']);