diff --git a/interface/patient_file/encounter/superbill_custom_full.php b/interface/patient_file/encounter/superbill_custom_full.php index a0632e659a3..0c126a0d80c 100644 --- a/interface/patient_file/encounter/superbill_custom_full.php +++ b/interface/patient_file/encounter/superbill_custom_full.php @@ -7,6 +7,7 @@ include_once("../../globals.php"); include_once("../../../custom/code_types.inc.php"); include_once("$srcdir/sql.inc"); +include_once("$srcdir/options.inc.php"); // Translation for form fields. function ffescape($field) { @@ -37,7 +38,7 @@ function bucks($amount) { $code_text = $_POST['code_text']; $modifier = $_POST['modifier']; // $units = $_POST['units']; - $superbill = $_POST['superbill']; + $superbill = $_POST['form_superbill']; $related_code = $_POST['related_code']; $cyp_factor = $_POST['cyp_factor'] + 0; @@ -59,7 +60,7 @@ function bucks($amount) { "modifier = '" . ffescape($modifier) . "' AND " . "id != '$code_id'"); if ($crow['count']) { - $alertmsg = "Cannot add/update this entry because a duplicate already exists!"; + $alertmsg = xl('Cannot add/update this entry because a duplicate already exists!'); } else { $sql = @@ -306,18 +307,9 @@ function submitDelete(id) { : - @@ -351,7 +343,7 @@ function submitDelete(id) { "WHERE list_id = 'pricelevel' ORDER BY lo.seq"); for ($i = 0; $prow = sqlFetchArray($pres); ++$i) { if ($i) echo "  "; - echo $prow['title'] . " "; + echo xl_list_label($prow['title']) . " "; echo "\n"; } @@ -409,7 +401,7 @@ function submitDelete(id) {        - + > @@ -450,7 +442,7 @@ function submitDelete(id) { $pres = sqlStatement("SELECT title FROM list_options " . "WHERE list_id = 'pricelevel' ORDER BY seq"); while ($prow = sqlFetchArray($pres)) { - echo " " . $prow['title'] . "\n"; + echo " " . xl_list_label($prow['title']) . "\n"; } ?> @@ -520,8 +512,8 @@ function submitDelete(id) { echo "" . bucks($prow['pr_price']) . "\n"; } - echo " [Del]\n"; - echo " [Edit]\n"; + echo " [" . xl('Delete') . "]\n"; + echo " [" . xl('Edit') . "]\n"; echo " \n"; }