} elseif ($varflag != $AmountFormula) { $AmountFormula = $AmountFormula; } $editme = "246"; $query = $cntRange->outselect; ?> <table border=0 width=50% align=center> <tr> <td></td><td></td><td></td><td></td> </tr> <?php $rangeme = 0; while ($rangeme < $AmountFormula) { if ($editme == 246) { $lRange = new TaxFee(); $lRange->FetchTaxFeeArray($query); $range_list = $lRange->outarray; $range_id[$rangeme] = $range_list[rangeid]; ?> <input type=hidden name=rangeid[<?php echo $rangeme; ?> ] value=<?php echo $range_id[$rangeme]; ?> > <?php $rlow[$rangeme] = $range_list[rangelow]; $rhigh[$rangeme] = $range_list[rangehigh]; $rvalue[$rangeme] = $range_list[rangeamount]; }
$gTFO = new TaxFee(); // while ($loop<$how_many) { // $loop++; // $gTFO->FetchTaxFeeArray($searchme->outselect); // $get_varx = $gTFO->outarray; // $gTempAssess = new TaxFee; // $gTempAssess->ReplaceValue($get_varx[complex_tfoid],$owner_id,$business_id,$getn[0]); // $replace_var = $gTempAssess->outarray; // // $complex_formula = str_replace($get_varx[var_complex],$replace_var[compval],$complex_formula); // } $gTFO = new TaxFee(); if ($sassesscomplex == 1) { while ($loop < $how_many) { $loop++; $gTFO->FetchTaxFeeArray($searchme->outselect); $get_varx = $gTFO->outarray; $gTempAssess = new TaxFee(); $gTempAssess->ReplaceValue($get_varx[complex_tfoid], $owner_id, $business_id, $getn[0]); $replace_var = $gTempAssess->outarray; $getyears = mysql_query("select a.*, b.* from tempassess a, ebpls_buss_tfo b where\n\t \t\t\t\t\ta.owner_id='{$owner_id}' and a.business_id='{$business_id}'\n\t \t\t\t\t\tand a.active=0 and a.tfoid=b.tfoid and a.tfoid='{$get_varx['complex_tfoid']}' and\n\t \t\t\t\t\ta.natureid='{$getn['0']}'"); $havemat = mysql_num_rows($getyears); $getyr = mysql_fetch_assoc($getyears); $gTempAssess->ReplaceValue($get_varx[complex_tfoid], $owner_id, $business_id, $getn[0]); $replace_var = $gTempAssess->outarray; if ($havemat > 0) { //have prev record //check if will bill $howmanydec = $havemat / $getyr[counter]; $isdeci = strpos($howmanydec, "."); if ($havemat % $getyr[counter] != 0) {