3 require_once ($GLOBALS['fileroot'] . "/library/classes/Controller.class.php");
4 require_once($GLOBALS['fileroot'] ."/library/classes/Pharmacy.class.php");
5 require_once($GLOBALS['fileroot'] ."/library/classes/InsuranceCompany.class.php");
6 require_once($GLOBALS['fileroot'] ."/library/classes/Provider.class.php");
7 require_once($GLOBALS['fileroot'] ."/library/classes/InsuranceNumbers.class.php");
9 class C_PracticeSettings
extends Controller
{
13 function C_PracticeSettings ($template_mod = "general") {
15 $this->template_mod
= $template_mod;
16 $this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
17 $this->assign("TOP_ACTION", $GLOBALS['webroot']."/controller.php?" . "practice_settings" . "&");
18 $this->assign("STYLE", $GLOBALS['style']);
21 function default_action($display = "") {
22 $this->assign("display",$display);
23 $this->display($GLOBALS['template_dir'] . "practice_settings/" . $this->template_mod
. "_list.html");
26 function pharmacy_action($arg) {
27 $c = new Controller();
29 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
30 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
33 $fga = func_get_args();
35 $fga = array_slice($fga,1);
36 $args = array_merge(array("pharmacy" => "",$arg => ""),$fga);
38 $display = $c->act($args);
39 $this->default_action($display);
42 function insurance_company_action($arg) {
43 $c = new Controller();
45 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
46 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
49 $fga = func_get_args();
51 $fga = array_slice($fga,1);
52 $args = array_merge(array("insurance_company" => "",$arg => ""),$fga);
54 $display = $c->act($args);
55 $this->default_action($display);
58 function insurance_numbers_action($arg) {
59 $c = new Controller();
61 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
62 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
65 $fga = func_get_args();
67 $fga = array_slice($fga,1);
68 $args = array_merge(array("insurance_numbers" => "",$arg => ""),$fga);
70 $display = $c->act($args);
72 $this->default_action($display);
75 function document_action($arg) {
76 $c = new Controller();
78 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
79 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
82 $fga = func_get_args();
84 $fga = array_slice($fga,1);
85 $args = array_merge(array("document" => "",$arg => ""),$fga);
87 $display = $c->act($args);
89 $this->default_action($display);
92 function document_category_action($arg) {
93 $c = new Controller();
95 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
96 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
99 $fga = func_get_args();
101 $fga = array_slice($fga,1);
102 $args = array_merge(array("document_category" => "",$arg => ""),$fga);
104 $display = $c->act($args);
106 $this->default_action($display);
109 function x12_partner_action($arg) {
110 $c = new Controller();
112 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
113 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
116 $fga = func_get_args();
118 $fga = array_slice($fga,1);
119 $args = array_merge(array("x12_partner" => "",$arg => ""),$fga);
121 $display = $c->act($args);
123 $this->default_action($display);
127 function hl7_action($arg) {
128 $c = new Controller();
130 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
131 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
134 $fga = func_get_args();
135 $fga = array_slice($fga,1);
136 $args = array_merge(array("hl7" => "",$arg => ""),$fga);
137 $display = $c->act($args);
138 $this->default_action($display);