"; if( FALSE == isset($discount_id) ){ $discount_id = 00; } /* //insert discount to table while the time segment is NULL $countSql = "SELECT count(*) as total FROM $tbName WHERE discount_id=$discount_id"; if($DEBUG) echo "countSql=$countSql
"; $countRes = mysqli_query($pubConn,$countSql); $countRows = mysqli_fetch_array($countRes); echo "countRows[total]=$countRows[total]
"; if($countRows[total]<24){ } exit(); */ //select current discount id details from TABLE "pre_bill_discount" $selSql = "SELECT * FROM $tbName WHERE discount_id=$discount_id ORDER BY $order"; if($DEBUG) echo "selSql=$selSql
"; $selRes = mysqli_query($pubConn,$selSql); $selRows = mysqli_fetch_array($selRes); ?> "; echo ""; echo ""; echo "$strThisPage"; echo ""; echo ""; showHelp($helpId); echo ""; echo ""; echo ""; echo ""; echo " "; echo ""; echo ""; echo "Discount ID: "; echo ""; echo ""; echo ""; echo ""; adjust_title_tail(); adjust_content_head(); echo "
"; ?>
"; $hours=$selRows[hours]; if(strlen($hours) < 2) $hours='0'.$hours; if(strlen($hours+1) < 2){ $next_hours='0'.($hours+1); }else{ $next_hours=$hours+1; } $mon=change2point($selRows[mon]/100); $tue=change2point($selRows[tue]/100); $wed=change2point($selRows[wed]/100); $thu=change2point($selRows[thu]/100); $fri=change2point($selRows[fri]/100); $sat=change2point($selRows[sat]/100); $sun=change2point($selRows[sun]/100); $holiday=change2point($selRows[holiday]/100); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; }while($selRows = @mysqli_fetch_array($selRes)); ?>
$hours:00:00 - $next_hours:00:00$mon$tue$wed$thu$fri$sat$sun$holiday