</script> <script language='JavaScript'> function SearchPayment() {//Search validations. if(document.getElementById('FromDate').value=='' && document.getElementById('ToDate').value=='' && document.getElementById('PaymentStatus').selectedIndex==0 && document.getElementById('payment_method').selectedIndex==0 && document.getElementById('type_name').selectedIndex==0 && document.getElementById('adjustment_code').selectedIndex==0 && document.getElementById('check_number').value=='' && document.getElementById('payment_amount').value=='' && document.getElementById('hidden_type_code').value=='' ) { alert("<?php echo htmlspecialchars(xl('Please select any Search Option.'), ENT_QUOTES); ?> "); return false; } if(document.getElementById('FromDate').value!='' && document.getElementById('ToDate').value!='') { if(!DateCheckGreater(document.getElementById('FromDate').value,document.getElementById('ToDate').value,'<?php echo DateFormatRead(); ?> ')) { alert("<?php echo htmlspecialchars(xl('From Date Cannot be Greater than To Date.'), ENT_QUOTES); ?> "); document.getElementById('FromDate').focus(); return false; } } top.restoreSession(); document.getElementById('mode').value='SearchPayment'; document.forms[0].submit(); }
sqlStatement("update ar_session set global_amount=" . trim(formData("HidUnappliedAmount")) * 1 . " where session_id ='{$payment_id}'"); } if ($_POST["mode"] == "FinishPayments") { $Message = 'Finish'; } $_POST["mode"] = "searchdatabase"; $Message = 'Modify'; } } //============================================================================== //Search Code //=============================================================================== $payment_id = $payment_id * 1 > 0 ? $payment_id : $_REQUEST['payment_id']; $ResultSearchSub = sqlStatement("SELECT distinct encounter,code_type,code,modifier, pid from ar_activity where session_id ='{$payment_id}' order by pid,encounter,code,modifier"); //============================================================================== $DateFormat = DateFormatRead(); //============================================================================== //=============================================================================== ?> <html> <head> <?php if (function_exists('html_header_show')) { html_header_show(); } ?> <link rel="stylesheet" href="<?php echo $css_header; ?>