leaned down jquery versions
[openemr.git] / controllers / C_PracticeSettings.class.php
blobde0b1c96828e05d96b0f3658f66816fa50ad535c
1 <?php
4 class C_PracticeSettings extends Controller
7 var $template_mod;
9 var $direction;
11 function __construct($template_mod = "general")
13 parent::__construct();
14 $this->template_mod = $template_mod;
15 $this->assign("FORM_ACTION", $GLOBALS['webroot'] . "/controller.php?" . $_SERVER['QUERY_STRING']);
16 $this->assign("TOP_ACTION", $GLOBALS['webroot'] . "/controller.php?" . "practice_settings" . "&");
17 $this->assign("STYLE", $GLOBALS['style']);
18 $this->assign("CSS_HEADER", $GLOBALS['css_header']);
19 $this->direction = ($GLOBALS['_SESSION']['language_direction'] == 'rtl') ? 'right' : 'left';
22 function default_action($display = "")
24 $this->assign("display", $display);
25 $this->assign("direction", $this->direction);
26 $this->display($GLOBALS['template_dir'] . "practice_settings/" . $this->template_mod . "_list.html");
29 function pharmacy_action($arg)
31 $c = new Controller();
33 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
34 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
35 //and value passing
37 $fga = func_get_args();
39 $fga = array_slice($fga, 1);
40 $args = array_merge(array("pharmacy" => "", $arg => ""), $fga);
41 $this->assign("direction", $this->direction);
42 $display = $c->act($args);
43 $this->assign("ACTION_NAME", xl("Pharmacies"));
44 $this->default_action($display);
47 function insurance_company_action($arg)
49 $c = new Controller();
51 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
52 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
53 //and value passing
55 $fga = func_get_args();
57 $fga = array_slice($fga, 1);
58 $args = array_merge(array("insurance_company" => "", $arg => ""), $fga);
60 $display = $c->act($args);
61 $this->assign("direction", $this->direction);
62 $this->assign("ACTION_NAME", xl("Insurance Companies"));
63 $this->default_action($display);
66 function insurance_numbers_action($arg)
68 $c = new Controller();
70 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
71 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
72 //and value passing
74 $fga = func_get_args();
76 $fga = array_slice($fga, 1);
77 $args = array_merge(array("insurance_numbers" => "", $arg => ""), $fga);
79 $display = $c->act($args);
81 $this->assign("ACTION_NAME", xl("Insurance Numbers"));
82 $this->assign("direction", $this->direction);
83 $this->default_action($display);
86 function document_action($arg)
88 $c = new Controller();
90 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
91 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
92 //and value passing
94 $fga = func_get_args();
96 $fga = array_slice($fga, 1);
97 $args = array_merge(array("document" => "", $arg => ""), $fga);
99 $display = $c->act($args);
101 $this->assign("ACTION_NAME", xl("Documents"));
102 $this->assign("direction", $this->direction);
103 $this->default_action($display);
106 function document_category_action($arg)
108 $c = new Controller();
110 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
111 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
112 //and value passing
114 $fga = func_get_args();
116 $fga = array_slice($fga, 1);
117 $args = array_merge(array("document_category" => "", $arg => ""), $fga);
119 $display = $c->act($args);
121 $this->assign("ACTION_NAME", xl("Documents"));
122 $this->assign("direction", $this->direction);
123 $this->default_action($display);
126 function x12_partner_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
132 //and value passing
134 $fga = func_get_args();
136 $fga = array_slice($fga, 1);
137 $args = array_merge(array("x12_partner" => "", $arg => ""), $fga);
139 $display = $c->act($args);
141 $this->assign("ACTION_NAME", xl("X12 Partners"));
142 $this->assign("direction", $this->direction);
143 $this->default_action($display);
147 function hl7_action($arg)
149 $c = new Controller();
151 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
152 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
153 //and value passing
155 $fga = func_get_args();
156 $fga = array_slice($fga, 1);
157 $args = array_merge(array("hl7" => "", $arg => ""), $fga);
158 $display = $c->act($args);
159 $this->assign("ACTION_NAME", xl("HL7 Viewer"));
160 $this->assign("direction", $this->direction);
161 $this->default_action($display);