echo htmlspecialchars(xl('Prescriptions'), ENT_NOQUOTES); ?> </b></span> </td></tr> </tr><td> <?php } ?> <?php $cwd = getcwd(); chdir("../../../"); require_once "library/classes/Controller.class.php"; $c = new Controller(); echo $c->act(array("prescription" => "", "fragment" => "", "patient_id" => $pid)); ?> <?php if ($_POST['embeddedScreen']) { echo "</div>"; } ?> </td></tr> <?php } if ($erx_upload_complete == 1) { echo "<tr><td>"; // Old Medication Widget
<?php require_once "interface/globals.php"; require_once "library/classes/Controller.class.php"; $controller = new Controller(); echo $controller->act($_GET);
/** @param string $controller_name * @param string $action_name * @param array $params * @return string */ protected function _call($controller_name, $action_name, array $params = array()) { $action = Controller::action_factory($this->_router->get_path("controller") . DIRECTORY_SEPARATOR . $controller_name . 'Controller.php', $action_name, $params); return Controller::act($action); }
function hl7_action($arg) { $c = new Controller(); //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func //and value passing $fga = func_get_args(); $fga = array_slice($fga, 1); $args = array_merge(array("hl7" => "", $arg => ""), $fga); $display = $c->act($args); $this->assign("ACTION_NAME", xl("HL7 Viewer")); $this->default_action($display); }
<?php require_once "interface/globals.php"; require_once "library/classes/Controller.class.php"; echo Controller::act($_GET);