Hacked By AnonymousFox
<?
include("lib/connect.php");
include("lib/session.php");
if($System_Session_User_ID=="") {
echo "<SCRIPT LANGUAGE=\"JavaScript\">window.location = \"index.php\";alert(\"You must Login first.\");</SCRIPT>";
}
$sql="select * from fin_staff where StaffID='$System_Session_User_ID'";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
function ShowDate($myDate) {
$myDateArray=explode("-",$myDate);
$myDay = sprintf("%d",$myDateArray[2]);
switch($myDateArray[1]) {
case "01" : $myMonth = "ม.ค."; break;
case "02" : $myMonth = "ก.พ."; break;
case "03" : $myMonth = "มี.ค."; break;
case "04" : $myMonth = "เม.ย."; break;
case "05" : $myMonth = "พ.ค."; break;
case "06" : $myMonth = "มิ.ย."; break;
case "07" : $myMonth = "ก.ค."; break;
case "08" : $myMonth = "ส.ค."; break;
case "09" : $myMonth = "ก.ย."; break;
case "10" : $myMonth = "ต.ค."; break;
case "11" : $myMonth = "พ.ย."; break;
case "12" : $myMonth = "ธ.ค."; break;
}
$myYear = sprintf("%d",$myDateArray[0])+543;
return($myDay . " " . $myMonth . " " . $myYear);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>FINANCIAL V.1</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="images/icons/list.ico"/>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animsition/css/animsition.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/select2/select2.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/daterangepicker/daterangepicker.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="css/splash.css">
<link rel="stylesheet" type="text/css" href="css/util.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<!--===============================================================================================-->
<style type="text/css">
.inputlogin{
background:#056839;
font-family: 'Mitr', sans-serif;
font-size:16px;
padding: 5px 10px 5px 10px;
color: #fff;
font-weight: bold;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
cursor: pointer;
border-left:none;
border-top:none;
margin:10px 0 10px 0;
}
.inputlogin:hover{
background:#727FB2;
}
table {
border-collapse: collapse;
width: 100%;
}
</style>
<link rel="stylesheet" href="dist/css/default/zebra_datepicker.min.css" type="text/css">
<link rel="stylesheet" href="examples.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
<!--
body {
background-image: url(images/bg-0111);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style37 {color: #000000}
-->
</style>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Mitr:wght@300&display=swap" rel="stylesheet">
<style type="text/css">
body{
font-family: 'Mitr', sans-serif;
}
.inputlogin1 {
background:#056839;
font-family: 'Mitr', sans-serif;
font-size:16px;
padding: 5px 10px 5px 10px;
color: #fff;
font-weight: bold;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
cursor: pointer;
border-left:none;
border-top:none;
margin:10px 0 10px 0;
}
.highcharts-figure,
.highcharts-data-table table {
min-width: 310px;
max-width: 500px;
margin: 1em auto;
}
.highcharts-data-table table {
font-family: Verdana, sans-serif;
border-collapse: collapse;
border: 1px solid #ebebeb;
margin: 10px auto;
text-align: center;
width: 100%;
max-width: 500px;
}
.highcharts-data-table caption {
padding: 1em 0;
font-size: 1.2em;
color: #555;
}
.highcharts-data-table th {
font-weight: 600;
padding: 0.5em;
}
.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
padding: 0.5em;
}
.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
background: #f8f8f8;
}
.highcharts-data-table tr:hover {
background: #f1f7ff;
}
.highcharts-description {
margin: 0.3rem 10px;
}
</style>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.table2excel.js"></script>
</head>
<body>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>
<table width="100%" border="0">
<tr>
<td><div align="center">
<h2><strong><img src="logo.jpg" height="100"><br>
</strong><br>
<span class="h5"> <strong>รายงานผลการติดตามเงินงบประมาณ ปีงบประมาณ 2568 </strong></span></h2>
</div></td>
</tr>
<tr>
<tr>
<td>
<hr>
</td></tr>
<td bgcolor="#FDE8FA"><div align="center">
<h3><span class="page_title"><strong>ยินดีต้อนรับ !
<?=$System_Session_FullName?>
เข้าสู่ระบบ</strong>
<input type="submit" name="button" id="button" class="inputlogin" value="ออกจากระบบ" onClick="window.location='system/logout.php'" />
</span></h3>
</div></td>
</tr>
<tr><td>
<hr>
</td></tr>
</table> <input type="submit" name="button322" id="button322" class="inputlogin" value="กลับหน้าหลัก" onClick="window.location='home.php'" /><br>
<button class="inputlogin">Export to excel</button>
<input type="submit" name="button32" id="button32" class="inputlogin" value="PRINT/PDF" onClick="window.location='report6print.php'" />
<table class="table2excel" data-tableName="Header Table" border="0" cellpadding="10" style="border-collapse:collapse">
<tr>
<td>
<strong><h3 align="center">
หมวดค่าครุภัณฑ์ ที่ดิน และสิ่งก่อสร้าง<br>
สำนักการแพทย์ <br>
ณ
<?php
echo "<meta charset='utf-8'>";
function ThDate()
{
//วันภาษาไทย
//$ThDay = array ( "อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัส", "ศุกร์", "เสาร์" );
//เดือนภาษาไทย
$ThMonth = array ( "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน","พฤษภาคม", "มิถุนายน", "กรกฏาคม", "สิงหาคม","กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม" );
//กำหนดคุณสมบัติ
$week = date( "w" ); // ค่าวันในสัปดาห์ (0-6)
$months = date( "m" )-1; // ค่าเดือน (1-12)
$day = date( "d" ); // ค่าวันที่(1-31)
$years = date( "Y" )+543; // ค่า ค.ศ.บวก 543 ทำให้เป็น ค.ศ.
return "วันที่ $day
เดือน $ThMonth[$months]
พ.ศ. $years";
}
echo ThDate(); // แสดงวันที่
?>
</h3></strong>
สำนักการแพทย์ได้รับงบประมาณหมวดค่าครุภัณฑ์ ที่ดินและสิ่งก่อสร้าง รวมเป็นเงินทั้งสิ้น 2,384,418,389 บาท ประกอบด้วย<br>
-ค่าครุภัณฑ์ จำนวน
<?
$sql_level1="select * from fin_data a,fin_step b where a.Id=b.Idfin and b.Id>30 and a.Idrefer='$System_Session_User_ID'";
$query_level1=mysql_query($sql_level1);
$num_level1=mysql_num_rows($query_level1);
?>
<?=$num_level1?>
รายการ เป็นเงิน <span class="style37">
<?
$sqlc1="select sum(Money) from fin_data where Idrefer='$System_Session_User_ID' order by Id asc";
$queryc1=mysql_query($sqlc1);
$rowc1=mysql_fetch_array($queryc1);
?>
<?=number_format($rowc1[0],0)?>
</span>บาท<br>
-ค่าที่ดินและสิ่งก่อสร้าง/โครงการต่อเนื่อง จำนวน 8 โครงการ เป็นเงิน 1,684,602,099 บาท
<table width="100%" border="0">
<tr>
<td colspan="3"><div align="center"><u><strong>ค่าครุภัณฑ์</strong></u></div></td>
</tr>
<tr>
<td colspan="3">1.ค่าครุภัณฑ์ จำนวน
<?
$sql_level1="select * from fin_data a,fin_step b where a.Id=b.Idfin and b.Id>30 and a.Idrefer='$System_Session_User_ID'";
$query_level1=mysql_query($sql_level1);
$num_level1=mysql_num_rows($query_level1);
?>
<?=$num_level1?>
รายการ เป็นเงิน <span class="style37">
<?
$sqlc1="select sum(Money) from fin_data where Idrefer='$System_Session_User_ID' order by Id asc";
$queryc1=mysql_query($sqlc1);
$rowc1=mysql_fetch_array($queryc1);
?>
<?=number_format($rowc1[0],0)?>
</span>บาท รายละเอียด ดังนี้</td>
</tr>
<tr>
<td width="38%">- ก่อหนี้ผูกพันแล้ว
0 รายการ </td>
<td width="32%">เป็นเงิน 0 บาท</td>
<td width="30%">คิดเป็นร้อยละ 0.00 </td>
</tr>
<tr>
<td>- ยังไม่ก่อหนี้ผูกพัน
<?
$sql_level1="select * from fin_data a,fin_price b where a.Id=b.Idfin and a.Idrefer='$System_Session_User_ID'";
$query_level1=mysql_query($sql_level1);
$num_level1=mysql_num_rows($query_level1);
?>
<?=$num_level1?>
รายการ </td>
<td>เป็นเงิน <span class="style37">
<?
$sqlc1="select sum(Money) from fin_data where Idrefer='$System_Session_User_ID' order by Id asc";
$queryc1=mysql_query($sqlc1);
$rowc1=mysql_fetch_array($queryc1);
?>
<?=number_format($rowc1[0],0)?>
</span> บาท</td>
<td>คิดเป็นร้อยละ 100.00 </td>
</tr>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="10" cellspacing="0" style="border-collapse:collapse" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#FFFFFF" align="right"><div align="center"><strong>ขั้นตอนการดำเนินงานค่าครุภัณฑ์ จำนวน รายการ </strong></div></td>
</tr>
</table>
<table width="98%" border="1" align="center" cellpadding="10" cellspacing="0" style="border-collapse:collapse">
<tr>
<td width="562" bgcolor="#EFEFEF"><h3 align="center" class="style37">ชื่อโครงการ</h3></td>
<td width="228" bgcolor="#EFEFEF"><h3 align="center" class="style37">จำนวนรายการ</h3></td>
<td width="210" bgcolor="#EFEFEF"><h3 align="center" class="style37">จำนวนเงิน (บาท) </h3></td>
<td width="146" bgcolor="#EFEFEF"><div align="center"><strong>คิดเป็นร้อยละ</strong></div></td>
</tr>
<tr>
<td height="32"><strong> 1.<u>TOR แล้วเสร็จ</u></strong> <br>
<?php
$sqlc1="select * from namestep where No between 2 and 7";
$queryc1=mysql_query($sqlc1);
while($rowc1=mysql_fetch_array($queryc1)){
?>
-
<?=$rowc1[Name]?>
<br>
<?php } ?>
<strong> 2.<u>รายงานขอซื้อขอจ้าง</u></strong> <br>
<?php
$sqlc1="select * from namestep where (No='11' or No='12' or No='39' or No='40' or No='41') order by No asc";
$queryc1=mysql_query($sqlc1);
while($rowc1=mysql_fetch_array($queryc1)){
?>
-
<?=$rowc1[Name]?>
<br>
<?php } ?>
<strong>3.<u>การจัดหา (กำหนดยื่นข้อเสนอและราคา)</u></strong> <br>
<?php
$sqlc1="select * from namestep where (No='14' or No='16' or No='17') order by No asc";
$queryc1=mysql_query($sqlc1);
while($rowc1=mysql_fetch_array($queryc1)){
?>
-
<?=$rowc1[Name]?>
<br>
<?php } ?>
<strong> 4.<u>อนุมัติจัดซื้อ</u></strong> <br>
<?php
$sqlc1="select * from namestep where No between 20 and 21";
$queryc1=mysql_query($sqlc1);
while($rowc1=mysql_fetch_array($queryc1)){
?>
-
<?=$rowc1[Name]?>
<br>
<?php } ?>
<strong> 5.<u>การจัดทำสัญญา</u></strong> <br>
<?php
$sqlc1="select * from namestep where No between 23 and 26";
$queryc1=mysql_query($sqlc1);
while($rowc1=mysql_fetch_array($queryc1)){
?>
-
<?=$rowc1[Name]?>
<br>
<?php } ?>
<strong>6.<u>บริหารพัสดุ</u></strong> <br>
<?php
$sqlc1="select * from namestep where (No='28' or No='29' or No='42') order by No asc";
$queryc1=mysql_query($sqlc1);
while($rowc1=mysql_fetch_array($queryc1)){
?>
-
<?=$rowc1[Name]?>
<br>
<?php } ?>
<strong> 7.<u>การเบิกจ่ายเงิน</u></strong> <br>
<?php
$sqlc1="select * from namestep where (No='31' or No='32' or No='43' or No='44') order by No asc";
$queryc1=mysql_query($sqlc1);
while($rowc1=mysql_fetch_array($queryc1)){
?>
-
<?=$rowc1[Name]?>
<br> <?php } ?> </td>
<td height="32"><div align="center"><?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='2' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc1=mysql_num_rows($queryc1);
?>
<?php if($numxc1>0){?>
<?=$numxc1?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='3' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc2=mysql_num_rows($queryc1);
?>
<?php if($numxc2>0){?>
<?=$numxc2?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='4' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc3=mysql_num_rows($queryc1);
?>
<?php if($numxc3>0){?>
<?=$numxc3?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='5' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc4=mysql_num_rows($queryc1);
?>
<?php if($numxc4>0){?>
<?=$numxc4?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='6' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc5=mysql_num_rows($queryc1);
?>
<?php if($numxc5>0){?>
<?=$numxc5?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='7' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc6=mysql_num_rows($queryc1);
?>
<?php if($numxc6>0){?>
<?=$numxc6?>
<?php } ?>
<br><br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='11' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc7=mysql_num_rows($queryc1);
?>
<?php if($numxc7>0){?>
<?=$numxc7?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='12' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc8=mysql_num_rows($queryc1);
?>
<?php if($numxc8>0){?>
<?=$numxc8?>
<?php } ?><br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='39' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc9=mysql_num_rows($queryc1);
?>
<?php if($numxc9>0){?>
<?=$numxc9?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='40' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc10=mysql_num_rows($queryc1);
?>
<?php if($numxc10>0){?>
<?=$numxc10?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='41' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc11=mysql_num_rows($queryc1);
?>
<?php if($numxc11>0){?>
<?=$numxc11?>
<?php } ?>
<br><br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='14' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc12=mysql_num_rows($queryc1);
?>
<?php if($numxc12>0){?>
<?=$numxc12?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='16' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc13=mysql_num_rows($queryc1);
?>
<?php if($numxc13>0){?>
<?=$numxc13?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='17' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc14=mysql_num_rows($queryc1);
?>
<?php if($numxc14>0){?>
<?=$numxc14?>
<?php } ?>
<br><br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='20' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc15=mysql_num_rows($queryc1);
?>
<?php if($numxc15>0){?>
<?=$numxc15?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='21' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc16=mysql_num_rows($queryc1);
?>
<?php if($numxc16>0){?>
<?=$numxc16?>
<?php } ?>
<br>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='23' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc17=mysql_num_rows($queryc1);
?>
<?php if($numxc17>0){?>
<?=$numxc17?>
<?php } ?><br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='24' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc18=mysql_num_rows($queryc1);
?>
<?php if($numxc18>0){?>
<?=$numxc18?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='25' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc19=mysql_num_rows($queryc1);
?>
<?php if($numxc19>0){?>
<?=$numxc19?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='26' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc20=mysql_num_rows($queryc1);
?>
<?php if($numxc20>0){?>
<?=$numxc20?>
<?php } ?>
<br><br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='28' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc21=mysql_num_rows($queryc1);
?>
<?php if($numxc21>0){?>
<?=$numxc21?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='29' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc22=mysql_num_rows($queryc1);
?>
<?php if($numxc22>0){?>
<?=$numxc22?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='42' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc23=mysql_num_rows($queryc1);
?>
<?php if($numxc23>0){?>
<?=$numxc23?>
<?php } ?>
<br>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='31' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc24=mysql_num_rows($queryc1);
?>
<?php if($numxc24>0){?>
<?=$numxc24?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='32' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc25=mysql_num_rows($queryc1);
?>
<?php if($numxc25>0){?>
<?=$numxc25?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='43' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc26=mysql_num_rows($queryc1);
?>
<?php if($numxc26>0){?>
<?=$numxc26?>
<?php } ?>
<br>
<?php
$sqlc1="select * from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='44' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numxc27=mysql_num_rows($queryc1);
?>
<?php if($numxc27>0){?>
<?=$numxc27?>
<?php } ?>
</div></td>
<td height="32" align="right"><div align="right"><br>
<?php
$sqlc1="select sum(Money) from fin_data where Idrefer='$System_Session_User_ID' order by Id asc";
$queryc1=mysql_query($sqlc1);
$rowc1=mysql_fetch_array($queryc1);
$totalmoney=$rowc1[0];
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='2' and b.Id>30 and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showa=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='3' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showb=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='4' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showc=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='5' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showd=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='6' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showe=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='7' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showf=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='11' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showg=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='12' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showh=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='39' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showi=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='40' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showj=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='41' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showk=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='14' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showl=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='16' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showm=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='17' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$shown=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='20' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showo=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='21' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showp=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='23' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showq=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='24' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showr=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='25' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$shows=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='26' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showt=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='28' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showu=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='29' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showv=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='42' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showw=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='31' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showx=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='32' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showy=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='43' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showz=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
<?php
$sqlc1="select sum(Money) from fin_data a,fin_price b where a.Id=b.Idfin and b.Step2='44' and a.Idrefer='$System_Session_User_ID'";
$queryc1=mysql_query($sqlc1);
$numc1=mysql_fetch_array($queryc1);
?>
<? if($numc1[0]!=0){
$aa=$numc1[0];
$showaa=($aa/$totalmoney)*100;
?>
<?=number_format($numc1[0],0)?>
<?php } ?>
<br>
</div></td>
<td height="32"><div align="right"></u> <br>
<?=number_format($showa,2)?>
<br>
<?php if($numxc2>0){ ?><?=number_format($showb,2)?> <?php } ?>
<br>
<?=number_format($showc,2)?>
<br>
<?=number_format($showd,2)?>
<br>
<?php if($numxc5>0){ ?>
<?=number_format($showe,2)?>
<?php } ?>
<br>
<?=number_format($showf,2)?>
<br>
<br>
<?=number_format($showg,2)?>
<br>
<?php if($numxc8>0){ ?>
<?=number_format($showh,2)?>
<?php } ?><br>
<?php if($numxc9>0){ ?><?=number_format($showi,2)?> <?php } ?>
<br>
<?php if($numxc10>0){ ?>
<?=number_format($showj,2)?>
<?php } ?><br>
<?php if($numxc11>0){ ?> <?=number_format($showk,2)?><?php } ?>
<br>
<br><?php if($numxc12>0){ ?>
<?=number_format($showl,2)?><?php } ?>
<br>
<?=number_format($showm,2)?>
<br>
<?php if($numxc14>0){ ?>
<?=number_format($shown,2)?>
<?php } ?>
<br>
<br>
<?=number_format($showo,2)?><br>
<?=number_format($showp,2)?>
<br>
<br>
<?php if($numxc17>0){ ?>
<?=number_format($showq,2)?> <?php } ?><br>
<?=number_format($showr,2)?>
<br>
<?=number_format($shows,2)?>
<br>
<?=number_format($showt,2)?>
<br>
<br>
<?php if($numxc21>0){ ?>
<?=number_format($showu,2)?>
<?php } ?><br>
<?=number_format($showv,2)?>
<br>
<?php if($numxc23>0){ ?>
<?=number_format($showw,2)?>
<?php } ?>
<br>
<br>
<?php if($numxc24>0){ ?>
<?=number_format($showx,2)?>
<?php } ?>
<br>
<?php if($numxc25>0){ ?>
<?=number_format($showy,2)?>
<?php } ?>
<br>
<?php if($numxc26>0){ ?>
<?=number_format($showz,2)?>
<?php } ?>
<br>
<?php if($numxc27>0){ ?>
<?=number_format($showaa,2)?>
<?php } ?>
<br>
</div></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><h3 align="center" class="style37">รวมทั้งสิ้น</h3></td>
<td bgcolor="#EFEFEF"><div align="center"><strong>
<?
$sql_level1="select * from fin_data a,fin_price b where a.Id=b.Idfin and a.Idrefer='$System_Session_User_ID'";
$query_level1=mysql_query($sql_level1);
$num_level1=mysql_num_rows($query_level1);
?>
<?=$num_level1?>
</strong></div> </td>
<td bgcolor="#EFEFEF"><h3 align="right" class="style37"><?
$sqlc1="select sum(Money) from fin_data where Idrefer='$System_Session_User_ID' order by Id asc";
$queryc1=mysql_query($sqlc1);
$rowc1=mysql_fetch_array($queryc1);
?>
<?=number_format($rowc1[0],0)?>
</h3></td>
<td bgcolor="#EFEFEF"><div align="right"><strong>100.00</strong></div></td>
</tr>
</table>
</td>
</tr>
</table>
<script>
$(function() {
$("button").click(function(){
$(".table2excel").table2excel({
exclude: ".noExl",
name: "Excel Document Name",
filename: "report1",
fileext: ".xls",
exclude_img: true,
exclude_links: true,
exclude_inputs: true
});
});
});
</script>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox