4 class C_PracticeSettings
extends Controller
11 function __construct($template_mod = "general")
13 parent
::__construct();
14 $this->template_mod
= $template_mod;
15 $this->assign("FORM_ACTION", $GLOBALS['webroot'] . "/controller.php?" . attr($_SERVER['QUERY_STRING']));
16 $this->assign("TOP_ACTION", $GLOBALS['webroot'] . "/controller.php?" . "practice_settings" . "&");
17 $this->assign("STYLE", $GLOBALS['style']);
18 $this->direction
= ($GLOBALS['_SESSION']['language_direction'] == 'rtl') ?
'right' : 'left';
21 function default_action($display = "")
23 $this->assign("display", $display);
24 $this->assign("direction", $this->direction
);
25 $this->display($GLOBALS['template_dir'] . "practice_settings/" . $this->template_mod
. "_list.html");
28 function pharmacy_action($arg)
30 $c = new Controller();
32 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
33 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
36 $fga = func_get_args();
38 $fga = array_slice($fga, 1);
39 $args = array_merge(array("pharmacy" => "", $arg => ""), $fga);
40 $this->assign("direction", $this->direction
);
41 $display = $c->act($args);
42 $this->assign("ACTION_NAME", xl("Pharmacies"));
43 $this->default_action($display);
46 function insurance_company_action($arg)
48 $c = new Controller();
50 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
51 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
54 $fga = func_get_args();
56 $fga = array_slice($fga, 1);
57 $args = array_merge(array("insurance_company" => "", $arg => ""), $fga);
59 $display = $c->act($args);
60 $this->assign("direction", $this->direction
);
61 $this->assign("ACTION_NAME", xl("Insurance Companies"));
62 $this->default_action($display);
65 function insurance_numbers_action($arg)
67 $c = new Controller();
69 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
70 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
73 $fga = func_get_args();
75 $fga = array_slice($fga, 1);
76 $args = array_merge(array("insurance_numbers" => "", $arg => ""), $fga);
78 $display = $c->act($args);
80 $this->assign("ACTION_NAME", xl("Insurance Numbers"));
81 $this->assign("direction", $this->direction
);
82 $this->default_action($display);
85 function document_action($arg)
87 $c = new Controller();
89 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
90 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
93 $fga = func_get_args();
95 $fga = array_slice($fga, 1);
96 $args = array_merge(array("document" => "", $arg => ""), $fga);
98 $display = $c->act($args);
100 $this->assign("ACTION_NAME", xl("Documents"));
101 $this->assign("direction", $this->direction
);
102 $this->default_action($display);
105 function document_category_action($arg)
107 $c = new Controller();
109 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
110 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
113 $fga = func_get_args();
115 $fga = array_slice($fga, 1);
116 $args = array_merge(array("document_category" => "", $arg => ""), $fga);
118 $display = $c->act($args);
120 $this->assign("ACTION_NAME", xl("Documents"));
121 $this->assign("direction", $this->direction
);
122 $this->default_action($display);
125 function x12_partner_action($arg)
127 $c = new Controller();
129 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
130 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
133 $fga = func_get_args();
135 $fga = array_slice($fga, 1);
136 $args = array_merge(array("x12_partner" => "", $arg => ""), $fga);
138 $display = $c->act($args);
140 $this->assign("ACTION_NAME", xl("X12 Partners"));
141 $this->assign("direction", $this->direction
);
142 $this->default_action($display);
146 function hl7_action($arg)
148 $c = new Controller();
150 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
151 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
154 $fga = func_get_args();
155 $fga = array_slice($fga, 1);
156 $args = array_merge(array("hl7" => "", $arg => ""), $fga);
157 $display = $c->act($args);
158 $this->assign("ACTION_NAME", xl("HL7 Viewer"));
159 $this->assign("direction", $this->direction
);
160 $this->default_action($display);