/* Decoded by unphp.net */
include("./includes/header.php");;echo '
';
include("./includes/connection.php");
$temp = 1;
$total = 0;
if (!isset($_SESSION['userinfo'])) {
@session_destroy();
header("Location: ./index.php?InvalidPrivilege=yes");
}
if (isset($_SESSION['userinfo'])) {
if (isset($_SESSION['userinfo']['Quality_Assurance'])) {
if ($_SESSION['userinfo']['Quality_Assurance'] != 'yes') {
header("Location: ./index.php?InvalidPrivilege=yes");
}
}else {
header("Location: ./index.php?InvalidPrivilege=yes");
}
}else {
@session_destroy();
header("Location: ./index.php?InvalidPrivilege=yes");
}
if (isset($_SESSION['userinfo']['Branch_ID'])) {
$Branch_ID = $_SESSION['userinfo']['Branch_ID'];
}else {
$Branch_ID = '';
}
$Date_From = '';
$Date_To = '';
;echo '
';
if (isset($_GET['from'])=='generalledger') {
;echo '
BACK
';
}else {
echo "
BACK
";
}
;echo '
';
$Today_Date = mysqli_query($conn,"select now() as today");
while ($row = mysqli_fetch_array($Today_Date)) {
$original_Date = $row['today'];
$new_Date = date("Y-m-d",strtotime($original_Date));
$Today = $new_Date;
}
$sql_date_time = mysqli_query($conn,"select now() as Date_Time ") or die(mysqli_error($conn));
while($date = mysqli_fetch_array($sql_date_time)){
$Current_Date_Time = $date['Date_Time'];
}
$Filter_Value = substr($Current_Date_Time,0,11);
$Start_Date = $Filter_Value.' 00:00';
$End_Date = $Current_Date_Time;
;echo '