<input type="hidden" name='cost_to_patient_cents_old' value='<?php echo $cost_to_patient_cents; ?> ' /> <td> <input id='cost_to_patient_dollars' name='cost_to_patient_dollars' type='text' size='6' maxLength='6' onkeypress="return isInputNumber(event);" value='<?php echo $cost_to_patient_dollars; ?> ' /> <?php echo get_currency_delimiter_from_lab_config_settings(); ?> <input id='cost_to_patient_dollars' name='cost_to_patient_cents' type='text' size='2' maxLength='2' onkeypress="return isInputNumber(event);" value='<?php echo get_cents_as_whole_number($cost_to_patient_cents); ?> ' /> <?php echo get_currency_type_from_lab_config_settings(); ?> </td> </tr> <tr valign='top'> <td></td> <td> <br><br> <input type='button' value='<?php echo LangUtil::$generalTerms['CMD_SUBMIT']; ?>
function format_number_to_money_currencyName($number, $currencyName) { $dollars = floor($number); $cents = $number - $dollars; $cents_as_whole_number = get_cents_as_whole_number($cents); if ($cents_as_whole_number < 10) { $cents_as_whole_number = "0" . strval($cents_as_whole_number); } return $dollars . get_currency_delimiter_from_lab_config_settings() . $cents_as_whole_number . " " . $currencyName; }