function template_delete($id = '') { debug_msg("FUNCTION: " . __FUNCTION__, 3); html_header("Delete Template Data"); $result = db_read_templates($id); $name = $result['name']; $description = $result['description']; $template = $result['template']; ?> <div align="center"> <h1>Delete Template</h1> <br /> <?php template_display($id, $name, $description, $template); ?> <br /> <br /> Really DELETE this record ? <br /> <form action="template.php" method="post"> <input type="hidden" name="id" value="<?php echo $id; ?> " /> <button name="action" value="deleterecord" type="submit">Yes</button> <button name="action" value="back" type="submit">No</button> </form> </div> <?php html_footer(); }
function check_server_config() { $upload_max_filesize = ini_get("upload_max_filesize"); $post_max_size = ini_get("post_max_size"); $max_execution_time = ini_get("max_execution_time"); $max_input_time = ini_get("max_input_time"); $all_good = true; if (convert_size($upload_max_filesize) < 2000000000) { $display .= "<div style='line-height: 14px;'><span class=\"red\">upload_max_filesize = {$upload_max_filesize}</span> <-- Determines the max size of the files that a user can upload in EZmanager. We recommend <b>2G</b><br/><br/></div>"; $all_good = $all_good & false; } else { $display .= "<div class=\"green\">upload_max_filesize = {$upload_max_filesize}</div>"; $all_good = $all_good & true; } if (convert_size($post_max_size) < 2000000000) { $display .= "<div style='line-height: 14px;'><span class=\"red\">post_max_size = {$post_max_size}</span> <-- Determines the max size of post data allowed. This should be at least the value of 'upload_max_filesize'. We recommend <b>2G</b><br/><br/></div>"; $all_good = $all_good & false; } else { $display .= "<div class=\"green\">post_max_size = {$post_max_size}</div>"; $all_good = $all_good & true; } if ((int) $max_execution_time < 300) { $display .= "<div style='line-height: 14px;'><span class=\"red\">max_execution_time = {$max_execution_time}</span> <-- Determines the maximum time in seconds a script is allowed to run before it is terminated by the parser. We recommend <b>300</b><br/><br/></div>"; $all_good = $all_good & false; } else { $display .= "<div class=\"green\">max_execution_time = {$max_execution_time} </div>"; $all_good = $all_good & true; } if ((int) $max_input_time < 300) { $display .= "<div style='line-height: 14px;'><span class=\"red\">max_input_time = {$max_input_time}</span> <-- Determines the maximum time in seconds a script is allowed to parse input data, like POST and GET. We recommend <b>300</b><br/><br/></div>"; $all_good = $all_good & false; } else { $display .= "<div class=\"green\">max_input_time = {$max_input_time} </div>"; $all_good = $all_good & true; } if (!$all_good) { print "<!DOCTYPE html>\n <html><head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n <title>Check PHP modules</title>\n <link href=\"css/style.css\" rel=\"stylesheet\">\n </head>\n <body>"; template_display("div_header.php"); print "<div id='login_form'>" . $display; print "</div><div style='width: 400px; margin: auto;'><br/>Edit the '<b>" . php_ini_loaded_file() . "</b>' file to match your own needs.\n <br/><br/>If you want to continue anyway, click on the following button.\n <br/><br/><br/><a class='button' style='float: right;' href='install.php?skip_srv=true'>Continue</a></div>"; template_display("div_footer.php"); print "</body></html>"; die; } }
function MarkBilled() { global $display_buffer; reset($GLOBALS); while (list($k, $v) = each($GLOBALS)) { global ${$k}; } if (count($processed) < 1) { $display_buffer .= "\n\t\t \t<P>\n\t\t \t<CENTER>\n\t\t \t<B>" . __("Nothing set to be marked!") . "</B>\n\t\t \t</CENTER>\n\t\t \t<P>\n\t\t \t<CENTER>\n\t\t \t<A HREF=\"{$this->page_name}?module={$module}\"\n\t\t \t>" . __("Return to Fixed Forms Generation Menu") . "</A>\n\t\t \t</CENTER>\n\t\t \t<P>\n\t\t\t"; return; } for ($i = 0; $i < count($processed); $i++) { $display_buffer .= "\n \t\tMarking " . $processed[$i] . " ...<BR> \n \t\t"; $pat = $processed[$i]; $procs = count($procids[$pat]); for ($x = 0; $x < $procs; $x++) { $prc = $procids[$pat][$x]; //$display_buffer .= "proc $prc for patient $pat<br/>"; // start of insert loop for billed legder entries $query = "SELECT procbalcurrent,proccurcovid,proccurcovtp FROM procrec"; $query .= " WHERE id='" . $prc . "'"; $result = $sql->query($query); if (!$result) { $display_buffer .= "Mark failed getting procrecs<br/>"; template_display(); } //$display_buffer .= "proc query $query<BR>"; $bill_tran = $sql->fetch_array($result); $cur_bal = $bill_tran[procbalcurrent]; $proc_id = $bill_tran[id]; $cov_id = $bill_tran[proccurcovid]; $cov_tp = $bill_tran[proccurcovtp]; $payreccat = BILLED; $query = $sql->insert_query("payrec", array("payrecdtadd" => $cur_date, "payrecdtmod" => $cur_date, "payrecpatient" => $pat, "payrecdt" => $cur_date, "payreccat" => $payreccat, "payrecproc" => $prc, "payreclink" => $cov_id, "payrecsource" => $cov_tp, "payrecamt" => $cur_bal, "payrecdescrip" => "Billed", "payreclock" => "unlocked")); //$display_buffer .= "payrec insert query $query<BR>"; $pay_result = $sql->query($query); if ($pay_result) { $display_buffer .= __("Adding Bill Date to ledger.") . "<br/>\n"; } else { $display_buffer .= __("Failed Adding Bill Date to ledger!!") . "<br/>\n"; } $query = "UPDATE procrec SET procbilled = '1',procdtbilled = '" . addslashes($cur_date) . "'" . " WHERE id = '" . $prc . "'"; //$display_buffer .= "procrec update query $query<BR>"; $proc_result = $sql->query($query); if ($result) { $display_buffer .= __("done") . ".<BR>\n"; } else { $display_buffer .= __("ERROR") . "<BR>\n"; } } // end proces for patient loop } // end for processed $display_buffer .= "\n \t<P>\n \t<CENTER>\n \t<A HREF=\"{$this->page_name}?module={$module}\"\n \t>" . __("Back") . "</A>\n \t</CENTER>\n \t<P>\n \t"; }