remove unneeded globals.php file variables
[openemr.git] / controllers / C_PracticeSettings.class.php
bloba7b78397e1ab9b09150474fba824b579c2347607
1 <?php
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 {
11 var $template_mod;
13 function C_PracticeSettings ($template_mod = "general") {
14 parent::Controller();
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']);
19 $this->assign("CSS_HEADER", $GLOBALS['css_header'] );
22 function default_action($display = "") {
23 $this->assign("display",$display);
24 $this->display($GLOBALS['template_dir'] . "practice_settings/" . $this->template_mod . "_list.html");
27 function pharmacy_action($arg) {
28 $c = new Controller();
30 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
31 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
32 //and value passing
34 $fga = func_get_args();
36 $fga = array_slice($fga,1);
37 $args = array_merge(array("pharmacy" => "",$arg => ""),$fga);
39 $display = $c->act($args);
40 $this->assign("ACTION_NAME", xl("Pharmacies") );
41 $this->default_action($display);
44 function insurance_company_action($arg) {
45 $c = new Controller();
47 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
48 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
49 //and value passing
51 $fga = func_get_args();
53 $fga = array_slice($fga,1);
54 $args = array_merge(array("insurance_company" => "",$arg => ""),$fga);
56 $display = $c->act($args);
57 $this->assign("ACTION_NAME", xl("Insurance Companies") );
58 $this->default_action($display);
61 function insurance_numbers_action($arg) {
62 $c = new Controller();
64 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
65 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
66 //and value passing
68 $fga = func_get_args();
70 $fga = array_slice($fga,1);
71 $args = array_merge(array("insurance_numbers" => "",$arg => ""),$fga);
73 $display = $c->act($args);
75 $this->assign("ACTION_NAME", xl("Insurance Numbers") );
76 $this->default_action($display);
79 function document_action($arg) {
80 $c = new Controller();
82 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
83 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
84 //and value passing
86 $fga = func_get_args();
88 $fga = array_slice($fga,1);
89 $args = array_merge(array("document" => "",$arg => ""),$fga);
91 $display = $c->act($args);
93 $this->assign("ACTION_NAME", xl("Documents") );
94 $this->default_action($display);
97 function document_category_action($arg) {
98 $c = new Controller();
100 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
101 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
102 //and value passing
104 $fga = func_get_args();
106 $fga = array_slice($fga,1);
107 $args = array_merge(array("document_category" => "",$arg => ""),$fga);
109 $display = $c->act($args);
111 $this->assign("ACTION_NAME", xl("Documents") );
112 $this->default_action($display);
115 function x12_partner_action($arg) {
116 $c = new Controller();
118 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
119 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
120 //and value passing
122 $fga = func_get_args();
124 $fga = array_slice($fga,1);
125 $args = array_merge(array("x12_partner" => "",$arg => ""),$fga);
127 $display = $c->act($args);
129 $this->assign("ACTION_NAME", xl("X12 Partners") );
130 $this->default_action($display);
134 function hl7_action($arg) {
135 $c = new Controller();
137 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
138 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
139 //and value passing
141 $fga = func_get_args();
142 $fga = array_slice($fga,1);
143 $args = array_merge(array("hl7" => "",$arg => ""),$fga);
144 $display = $c->act($args);
145 $this->assign("ACTION_NAME", xl("HL7 Viewer") );
146 $this->default_action($display);