ongoing new datepicker project
[openemr.git] / controllers / C_PracticeSettings.class.php
blob6dca59d0e2a838a176615ff4982ec504ff0ab73e
1 <?php
4 class C_PracticeSettings extends Controller {
6 var $template_mod;
8 function __construct ($template_mod = "general") {
9 parent::__construct();
10 $this->template_mod = $template_mod;
11 $this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
12 $this->assign("TOP_ACTION", $GLOBALS['webroot']."/controller.php?" . "practice_settings" . "&");
13 $this->assign("STYLE", $GLOBALS['style']);
14 $this->assign("CSS_HEADER", $GLOBALS['css_header'] );
17 function default_action($display = "") {
18 $this->assign("display",$display);
19 $this->display($GLOBALS['template_dir'] . "practice_settings/" . $this->template_mod . "_list.html");
22 function pharmacy_action($arg) {
23 $c = new Controller();
25 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
26 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
27 //and value passing
29 $fga = func_get_args();
31 $fga = array_slice($fga,1);
32 $args = array_merge(array("pharmacy" => "",$arg => ""),$fga);
34 $display = $c->act($args);
35 $this->assign("ACTION_NAME", xl("Pharmacies") );
36 $this->default_action($display);
39 function insurance_company_action($arg) {
40 $c = new Controller();
42 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
43 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
44 //and value passing
46 $fga = func_get_args();
48 $fga = array_slice($fga,1);
49 $args = array_merge(array("insurance_company" => "",$arg => ""),$fga);
51 $display = $c->act($args);
52 $this->assign("ACTION_NAME", xl("Insurance Companies") );
53 $this->default_action($display);
56 function insurance_numbers_action($arg) {
57 $c = new Controller();
59 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
60 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
61 //and value passing
63 $fga = func_get_args();
65 $fga = array_slice($fga,1);
66 $args = array_merge(array("insurance_numbers" => "",$arg => ""),$fga);
68 $display = $c->act($args);
70 $this->assign("ACTION_NAME", xl("Insurance Numbers") );
71 $this->default_action($display);
74 function document_action($arg) {
75 $c = new Controller();
77 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
78 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
79 //and value passing
81 $fga = func_get_args();
83 $fga = array_slice($fga,1);
84 $args = array_merge(array("document" => "",$arg => ""),$fga);
86 $display = $c->act($args);
88 $this->assign("ACTION_NAME", xl("Documents") );
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
97 //and value passing
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->assign("ACTION_NAME", xl("Documents") );
107 $this->default_action($display);
110 function x12_partner_action($arg) {
111 $c = new Controller();
113 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
114 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
115 //and value passing
117 $fga = func_get_args();
119 $fga = array_slice($fga,1);
120 $args = array_merge(array("x12_partner" => "",$arg => ""),$fga);
122 $display = $c->act($args);
124 $this->assign("ACTION_NAME", xl("X12 Partners") );
125 $this->default_action($display);
129 function hl7_action($arg) {
130 $c = new Controller();
132 //this dance is so that the controller system which only cares about the name part of the first two arguments get what it wants
133 //and the rest gets passed as normal argument values, really this all goes back to workarounds for problems with call_user_func
134 //and value passing
136 $fga = func_get_args();
137 $fga = array_slice($fga,1);
138 $args = array_merge(array("hl7" => "",$arg => ""),$fga);
139 $display = $c->act($args);
140 $this->assign("ACTION_NAME", xl("HL7 Viewer") );
141 $this->default_action($display);