Example #1
0
require 'globals.php';
require 'eRx_xml.php';
$userRole = sqlQuery("select * from users where username=?", array($_SESSION['authUser']));
$userRole['newcrop_user_role'] = preg_replace('/erx/', '', $userRole['newcrop_user_role']);
$msg = '';
$doc = new DOMDocument();
$doc->formatOutput = true;
$r = $doc->createElement("NCScript");
$r->setAttribute('xmlns', 'http://secure.newcropaccounts.com/interfaceV7');
$r->setAttribute('xmlns:NCStandard', 'http://secure.newcropaccounts.com/interfaceV7:NCStandard');
$r->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
$doc->appendChild($r);
credentials($doc, $r);
user_role($doc, $r);
$page = $_REQUEST['page'];
destination($doc, $r, $page, $pid);
account($doc, $r);
if ($userRole['newcrop_user_role'] != 'manager') {
    location($doc, $r);
}
if ($userRole['newcrop_user_role'] == 'doctor' || $page == 'renewal') {
    LicensedPrescriber($doc, $r);
}
if ($userRole['newcrop_user_role'] == 'manager' || $userRole['newcrop_user_role'] == 'admin' || $userRole['newcrop_user_role'] == 'nurse') {
    Staff($doc, $r);
}
if ($userRole['newcrop_user_role'] == 'supervisingDoctor') {
    SupervisingDoctor($doc, $r);
}
if ($userRole['newcrop_user_role'] == 'midlevelPrescriber') {
    MidlevelPrescriber($doc, $r);
Example #2
0
<?php

include "../config.php";
include "aup.php";
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../styles/phaos.css" >
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
	<form action="admin_chat.php" method="post">
		<textarea cols="20" rows="3" name="usertext"></textarea>
		<br>
		<?php 
destination();
?>
		<input type="submit" value="Post Message">
	</form>
</div>
<div align="left">
<?php 
if (isset($_POST['usertext']) and $_POST['usertext'] != "") {
    write_shout_post();
}
$result = mysql_query('SELECT * FROM phaos_shout ORDER BY postdate DESC LIMIT 0, 10');
while ($row = mysql_fetch_array($result)) {
    $color = '';
    if ($row['destname'] == 'admin') {
        $color = "red";
    }
Example #3
0
function render($lt1, $ln1, $radius)
{
    $points = array();
    $distance = $radius * 5280 / 3.2808399 / 1000;
    for ($i = 0; $i < 72; $i++) {
        array_push($points, destination($lt1, $ln1, $i * 360 / 72, $distance));
    }
    array_push($points, destination($lt1, $ln1, 0, $distance));
    return $points;
    //this._points.push(destination(this._centerHandlePosition, 0, distance) );
    //this._polyline = new GPolyline(this._points, this._color, 6);
}