<?php

redirector();
$options = get_option('consultation_options');
?>
<!--[if lt IE 7]>   <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php 
language_attributes();
?>
> <![endif]-->
<!--[if IE 7]>		<html class="no-js lt-ie9 lt-ie8" <?php 
language_attributes();
?>
> <![endif]-->
<!--[if IE 8]>		<html class="no-js lt-ie9 ie8" <?php 
language_attributes();
?>
> <![endif]-->
<!--[if IE 9]>		<html class="ie9" <?php 
language_attributes();
?>
> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html <?php 
language_attributes();
?>
><!--<![endif]-->
<head>
	<meta http-equiv="Content-Type" content="<?php 
bloginfo('html_type');
?>
; charset=<?php 
Beispiel #2
0
$form_folder = "eye_mag";
$Form_Name = "Eye Exam";
//since we come through the controller
include_once "../../forms/" . $form_folder . "/php/" . $form_folder . "_functions.php";
$form_id = $_REQUEST['id'];
$action = $_REQUEST['action'];
$finalize = $_REQUEST['finalize'];
$id = $_REQUEST['id'];
$display = $_REQUEST['display'];
$pid = $_REQUEST['pid'];
if ($pid == '') {
    $pid = $_SESSION['pid'];
}
$refresh = $_REQUEST['refresh'];
if ($_REQUEST['url']) {
    redirector($_REQUEST['url']);
    exit;
}
// Get user preferences, for this user
$query = "SELECT * FROM form_eye_mag_prefs where PEZONE='PREFS' AND (id=?) ORDER BY id,ZONE_ORDER,ordering";
$result = sqlStatement($query, array($_SESSION['authId']));
while ($prefs = sqlFetchArray($result)) {
    $LOCATION = $prefs['LOCATION'];
    ${$LOCATION} = text($prefs['GOVALUE']);
}
$query = "SELECT * FROM patient_data where pid=?";
$pat_data = sqlQuery($query, array($pid));
$query = "select form_encounter.date as encounter_date,form_encounter.*, form_eye_mag.* from form_eye_mag, forms,form_encounter\n                    where\n                    form_encounter.encounter =? and\n                    form_encounter.encounter = forms.encounter and\n                    form_eye_mag.id=forms.form_id and\n                    forms.deleted != '1'  and\n                    forms.formdir='eye_mag' and\n                    form_eye_mag.pid=? ";
$encounter_data = sqlQuery($query, array($encounter, $pid));
@extract($encounter_data);
//Do we have to have it?