Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > สอบถามเรื่องผลรวมในตารางแนวนอน ได้ยังไงครับทำแล้วมันไม่รวมกัน



 

สอบถามเรื่องผลรวมในตารางแนวนอน ได้ยังไงครับทำแล้วมันไม่รวมกัน

 



Topic : 136915



โพสกระทู้ ( 45 )
บทความ ( 0 )



สถานะออฟไลน์




ot
จริงๆผลรวมต้องได้ 6 เพราะบวกทั้ง3วัน แต่มันออกมาแค่2
code ที่ใช้คำนวณชั่วโมง OT อยู่ตรงนี้ครับ tag /*-----คำนวณ OT ของแต่ละวัน -----*/
Code (PHP)
<?php

@ini_set('display_errors', '0');
include "../../include/mySqlFunc.php";
date_default_timezone_set("Asia/Bangkok");
query("USE hr_extra");
$date_start = '2022-12-01';
$date_end = '2022-12-03';
$rate_per_day = 325;

//setcookie("d",$_POST['date_in'],time()+3600);
//print $_COOKIE["d"];

if ($_GET["Action"] == "Add") {

    $multiple_advance = $_POST['multiple_advance'];
    $multiple_ar = $_POST['multiple_ar'];
    /*for($i=0;$i<sizeof($multiple_advance);$i++)
{
print($multiple_advance[$i]."<br>");
}*/

}

for ($intern = 0; $intern < sizeof($multiple_advance); $intern++) {
    if (!empty($multiple_advance[$intern])) {
        if (empty($where_data)) {
            $where_data = $multiple_advance[$intern];
        } else {
            $where_data .= "," . $multiple_advance[$intern];
        }
    }
}

for ($intern = 0; $intern < sizeof($multiple_ar); $intern++) {
    if (!empty($multiple_ar[$intern])) {
        if (empty($where_data2)) {
            $where_data2 = $multiple_ar[$intern];
        } else {
            $where_data2 .= "," . $multiple_ar[$intern];
        }
    }
}

//print($where_data);

$thai_day_arr = array("อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์");

$cut_start_date = explode("-", $date_start);
$DateStart = $cut_start_date[2]; //วันเริ่มต้น
$MonthStart = $cut_start_date[1]; //เดือนเริ่มต้น
$YearStart = $cut_start_date[0]; //ปีเริ่มต้น

$cut_end_date = explode("-", $date_end);
$DateEnd = $cut_end_date[2]; //วันสิ้นสุด
$MonthEnd = $cut_end_date[1]; //เดือนสิ้นสุด
$YearEnd = $cut_end_date[0]; //ปีสิ้นสุด

$End = mktime(0, 0, 0, $MonthEnd, $DateEnd, $YearEnd);
$Start = mktime(0, 0, 0, $MonthStart, $DateStart, $YearStart);

$DateNum = ceil(($End - $Start) / 86400) + 1; // 28
$colspan_table = $DateNum + 5;
//print($DateNum);

$color = "#FFB6C1";
?>

<!DOCTYPE html>
<html lang="th">
<head>
    <meta charset="UTF-8">
    <!-- Title Page-->
    <title>รายงานสรุปค่าแรง คนสวน</title>
    <!-- Fontfaces CSS-->
    <link href="../css/font-face.css" rel="stylesheet" media="all">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" type = "text/css" href = "../bootstrap/bootstrap.min.css">
    <style type="text/css">

    @font-face {
    font-family: 'mn_forsor_ttbold';
    src: url('../fonts/mn_forsor_tt_bd_v3.2.1-webfont.woff2') format('woff2'),
         url('../fonts/mn_forsor_tt_bd_v3.2.1-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    }

    @font-face {
    font-family: 'mn_forsor_ttextrabd';
    src: url('../fonts/mn_forsor_tt_extrabd_v3.2.1-webfont.woff2') format('woff2'),
         url('../fonts/mn_forsor_tt_extrabd_v3.2.1-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    }

    table {
        font-family: 'mn_forsor_ttbold';
        font-size: 18px;
    }

    .caption table {
        font-size: 24px;
        color: black;
    }

    .text-center
    {
        text-align: left;
        padding-left: 26%;
    }

@media print
{
    /*-webkit-print-color-adjust: exact;*/
    .bodytable{
    height: auto;
    }

    /* class ซ่อนสิ่งที่ไม่อยากให้ติดตอนปริ้น */
    .noprint{
    visibility: hidden;
    display: none;
    }

    #non-printable
    {
        display: none;
    }

    #printable { display: block; }
}

.form-control, output {
    font-size: 20px;
    line-height: 1.42857143;
    color: #555;
    display: block;
}

    </style>
</head>
<body>
<form action="<?=$_SERVER["PHP_SELF"];?>?Action=Add" method="POST" name="report_garden3">
<?php
print("<input type='hidden' name='date_in' value=\"" . $_POST['date_in'] . "\">");
print("<input type='hidden' name='date_end' value=\"" . $_POST['date_end'] . "\">");

print("<center>");
print("<div class=\"caption\">");
print("<table border=\"0\" style=\"text-align:center;\">");
print("<tr>");
print("<td>");
print("บัญชีค่าแรงและวันทำงาน");
print("</td>");
print("</tr>");
print("<tr>");
print("<td>");
print("ผู้รับเหมาคนสวน");
print("</td>");
print("</tr>");
print("<tr>");
print("<td>");
print("ประจำวันที่ " . printlongSlateThaiDate($date_start) . " ถึงวันที่ " . printlongSlateThaiDate($date_end));
print("</td>");
print("</tr>");
print("</table>");
print("</div>");
print("<table border='1' style=\"text-align:center; width:95%;\" >");
/*----- ส่วนหัวตาราง -----*/
print("<tr>");

print("<td rowspan='3' style=\"width:3%;\">");
print("ลำดับที่");
print("</td>");
print("<td rowspan='3' style=\"width:3%;\">");
print("เลขบัตร");
print("</td>");

print("<td rowspan='3' style=\"width:10%;\">");
print("ชื่อ - สกุล");
print("</td>");

print("<td colspan=\"$DateNum\" style=\"width:50%;\">");
print("บันทึกเวลาทำงาน");
print("</td>");

print("<td rowspan='3' style=\"width:3%;\">");
print("จำนวนวันทำงาน");
print("</td>");

print("<td rowspan='3' style=\"width:5%;\">");
print("ค่าจ้าง");
print("</td>");

print("<td rowspan='3' style=\"width:5%;\">");
print("ค่าจ้าง <br>(340)");
print("</td>");

print("<td colspan='2'>");
print("ค่าดำเนินการ");
print("</td>");
print("<td colspan='4'>");
print("วันทำงาน/ค่าล่วงเวลา");
print("</td>");

print("<td rowspan='3' style=\"width:3%;\">");
print("รวมรับ<br>ค่าล่วงเวลา");
print("</td>");

print("<td rowspan='3' style=\"width:3%;\">");
print("ค่าล่วง<br>เวลา 3%");
print("</td>");

print("<td rowspan='3' style=\"width:3%;\">");
print("รวมรับ");
print("</td>");
print("</tr>");

/*----- ตัวย่อวัน -----*/
print("<tr>");

for ($i = 0; $i < $DateNum; $i++) {
    $cutdate_show = add_date($date_start, $i, 0, 0);
    $cutNew_date = explode(" ", $cutdate_show);
    $c = printThaiNameDate(strtotime($cutNew_date[0]));
    if ($c == "อา") {
        print("<td bgcolor=\"$color\" style=\"width:10mm; text-align:center; height:8mm;\">");
    } else {
        print("<td bgcolor=\"white\" style=\"width:10mm; text-align:center; height:8mm;\">");
    }
    print($c);
    print("</td>");
}
print("<td rowspan='2'>");
print("ฐานค่าจ้าง<br>(325)");
print("</td>");
print("<td rowspan='2'>");
print("เงินได้25%");
print("<td rowspan='2'>");
print("วันปกติ<br>(ชม.)");
print("</td>");
print("<td rowspan='2'>");
print("วันหยุด<br>(ชม.)");
print("</td>");
print("<td rowspan='2'>");
print("วันปกติ");
print("</td>");
print("<td rowspan='2'>");
print("วันหยุด");
print("</td>");
print("</td>");

print("</tr>");

/*----- วันที่ -----*/
print("<tr>");
$date_show = 0;
for ($i = 0; $i < $DateNum; $i++) {
    $cutdate_show = add_date($date_start, $i, 0, 0);
    $cutNew_date = explode(" ", $cutdate_show);
    $c = printThaiNameDate(strtotime($cutNew_date[0]));
    //print($cutNew_date[0]);
    if ($c == "อา") {
        print("<td bgcolor=\"$color\" style=\"width:10mm; text-align:center; height:8mm;\">");
    } else {
        print("<td bgcolor=\"white\" style=\"width:10mm; text-align:center; height:8mm;\">");
    }
    $date_show = ((int) date('d', strtotime($cutNew_date[0])));
    print("$date_show");
    print("</td>");
}
print("</tr>");

/*----- จบส่วนหัวตาราง -----*/

$get_data = getlist("SELECT * FROM emp_data AS ed WHERE emp_position ='คนสวน'");
$order = 0;
$result_salary_intern2 = 0;
for ($i = 0; $i < sizeof($get_data); $i++) {
    print("<tr>");
    //ลำดับ
    print("<td>");
    print($order = $i + 1);
    //print($get_data[$i]['emp_id']);
    print("</td>");
    /*-----รหัส------*/
    print("<td style=\"text-align:left; padding-left:10px;\">");
    print($get_data[$i]['emp_id']);
    print("</td>");

    /*----- ชื่อ-สกุล -----*/
    print("<td style=\"text-align:left; padding-left:10px;\">");
    print($get_data[$i]['emp_prefix'] . $get_data[$i]['emp_fname'] . " " . $get_data[$i]['emp_lname']);
    print("</td>");

    $show_total_day = 0; //ตัวแปรเก็บค่าวันทำงานทั้งหมดของคนสวน คนนั้นๆ
    $show_total_day_holiday = 0; //ตัวแปรเก็บค่าวันทำงานในวันหยุด
    $show_total_hours = 0; //ตัวแปรเก็บค่าชั่วโมงที่มาทำงานในวันที่สาย
    /*----- for check วันทำงาน -----*/
    for ($j = 0; $j < $DateNum; $j++) {
        $cutdate_show = add_date($date_start, $j, 0, 0);
        $cutNew_date = explode(" ", $cutdate_show);
        $c = printThaiNameDate(strtotime($cutNew_date[0]));
        // print($cutNew_date[0]);
        // print("<br>");

        $getlist_cout = getlist("SELECT * FROM emp_process
        WHERE process_date = '" . $cutNew_date[0] . "' AND emp_id='" . $get_data[$i]['emp_id'] . "' ");
        //print("SELECT * FROM emp_process WHERE process_date = '" . $cutNew_date[0] . "' AND emp_id='" . $get_data[$i]['emp_id'] . "' ");
        if ($c == "อา") {
            print("<td bgcolor=\"$color\">");
        } else {
            print("<td bgcolor=\"white\">");
        }

        /*----- มาทำงาน -----*/
        if (!empty($getlist_cout)) {
            //เวลาที่ทำงาน
            $sum_ot_hr = 0;
            $get_time_max_min = getlist("SELECT MAX(process_time) AS time_max , MIN(process_time) AS time_min , process_status AS status
            FROM emp_process WHERE emp_id='" . $get_data[$i]['emp_id'] . "'
            AND process_date='" . $cutNew_date[0] . "'");

            /*-----คำนวณ OT ของแต่ละวัน -----*/
           
            $get_timediff = getlist("SELECT TIMEDIFF('" . $get_time_max_min[0]['time_max'] . "','17:00:00') AS time_less");
           
            //print($get_timediff[0]['time_less']);

            if ($get_timediff[0]['time_less'] == '00:00:00' && $get_timediff[0]['time_less'] < '01:00:00' && $c != 'อา') {
                $people_hour = 0;
            } elseif ($get_timediff[0]['time_less'] >= '02:00:00' && $get_timediff[0]['time_less'] < '02:30:00' && $c != 'อา') {
                $people_hour = 2;
            }

            $sum_ot_hr += $people_hour;
            //print_r($ot_h);
            print("จำนวน OT(" . $people_hour . ")ชม.<br>"); //ชั่วโมงที่ทำ OT

            /*-----คำนวณ OT ของแต่ละวัน -----*/
            //("'" $get_data[$i]['emp_id'] . "'AND process_date='" . $cutNew_date[0] . "'");*/

            $get_process_midday = getlist("SELECT * FROM emp_process
            WHERE emp_id='" . $get_data[$i]['emp_id'] . "'
            AND process_date='" . $cutNew_date[0] . "' ORDER BY process_time");

            //กรณีสาย
            if ($get_time_max_min[0]['time_min'] > '08:00:00' && $c != 'อา') {

                $time_less = getlist("SELECT TIMEDIFF((SELECT TIMEDIFF('17:00:00','" . $get_time_max_min[0]['time_min'] . "')),'01:00:00') AS time_less");
                //print("SELECT TIMEDIFF((SELECT TIMEDIFF('17:00:00','" . $get_time_max_min[0]['time_min'] . "')),'01:00:00') AS time_less");
                //print($time_less[0]['time_less']);
                $time_less_result = explode(":", $time_less[0]['time_less']);
                if ($time_less_result[1] < 30) {
                    $result_late = $time_less_result[0];
                    print($result_late . "");
                } else if ($time_less_result[1] >= 30) {
                    $result_late = number_format($time_less_result[0]) + 0.5;
                    print($result_late . "ชม.");
                }
                /*----- + วันทำงาน -----*/
                $show_total_hours += $result_late;
            }
            //สายและวันอาทิตย์
            if ($get_time_max_min[0]['time_min'] > '08:00:00' && $c == 'อา') {
                print("-");
            }
            /*if($get_time_max_min[0]['time_max'] >= '18:00:00')
            {
            print("/OT");
            }*/

            //ไม่สายและวันอาทิตย์
            else if ($get_time_max_min[0]['time_min'] <= '08:00:00' && $c == 'อา') {
                $result_late = 0;
                $result_holiday = 0;
                print("1");

                /*if($get_time_max_min[0]['time_max'] >= '18:00:00')
                {
                print("/OT");
                }*/
                //print($result_late);
                /*----- + วันทำงาน -----*/
                $show_total_day += $result_late;
                $show_total_day_holiday += $result_holiday;
            }

            //ไม่สายแต่กลับก่อน 17:00:00
            else if ($get_time_max_min[0]['time_min'] <= '08:00:00' && $get_time_max_min[0]['time_max'] < '17:00:00' && $get_time_max_min[0]['time_max'] != $get_time_max_min[0]['time_min']) {
                //print $get_time_max_min[0]['time_max'];
                $time_less = getlist("SELECT TIMEDIFF((SELECT TIMEDIFF('" . $get_time_max_min[0]['time_max'] . "','08:00:00')),'01:00:00') AS time_less");
                $result_late = number_format($time_less[0]['time_less']);
                print($result_late . "ชม.");
                $show_total_hours += $result_late;
            }

            //ไม่สายแต่ยังไม่ได้แสกนบัตรออก
            else if ($get_time_max_min[0]['time_min'] <= '08:00:00' && $get_time_max_min[0]['time_max'] < '17:00:00' && $get_time_max_min[0]['time_max'] == $get_time_max_min[0]['time_min']) {
                $result_late = 1;
                print("<font color='blue'>" . $result_late . "</font>");
                /*----- + วันทำงาน -----*/
                $show_total_day += $result_late;
            }

            //เงื่อนไขตรวจสอบว่า วันนี้มีการเข้า-ออก พักเที่ยงไหม
            else if (sizeof($get_process_midday) == 4) {
                //print($get_process_midday[0]['process_time']."<br>");
                //print($get_process_midday[1]['process_time']."<br>");
                //print($get_process_midday[2]['process_time']."<br>");
                //print($get_process_midday[3]['process_time']."<br>");

                //เงื่อนไข แสกนเข้าพักกอ่นเวลา 12.00
                if ($get_process_midday[1]['process_time'] < '12:00:00') {
                    //print("yes");
                    $time_midday = getlist("SELECT TIMEDIFF('" . $get_process_midday[1]['process_time'] . "','08:00:00') AS time_midday");
                    //print ($time_midday[0]['time_midday']."<br>");

                    $time_midday2 = getlist("SELECT TIMEDIFF('" . $get_process_midday[3]['process_time'] . "','13:00:00') AS time_midday2");
                    //print($time_midday2[0]['time_midday2']);

                    $time_midday_explode = explode(":", $time_midday[0]['time_midday']);
                    //print($time_midday_explode[1]);
                    if ($time_midday_explode[1] >= 30) {
                        $time_midday_explode_minute = 0.5;
                    } else {
                        $time_midday_explode_minute = 0;
                    }

                    $time_midday_total = ($time_midday[0]['time_midday']) + ($time_midday2[0]['time_midday2']);
                    $show_total_hours = $time_midday_total + $time_midday_explode_minute;
                    print($show_total_hours);

                }

                //เงื่อนไข แสกนเข้าหลัง 12.59 ไหม
                if ($get_process_midday[2]['process_time'] > '12:59:00') {
                    $time_less_result = explode(":", $get_process_midday[2]['process_time']);
                    //print($time_less_result[1]);
                    //เงื่อนไขปัดเศษ 1 - 30 ปัดนาทีเป็น 30 นาที
                    if ($time_less_result[1] >= 1 && $time_less_result[1] <= 30) {

                        $time_cal = ($time_less_result[0] . ":" . "30" . ":" . "00");
                        //print($time_less_result[0].":"."30".":"."00");
                    }
                    //เงื่อนไขปัดเศษ 31 - 59 ปัดนาทีเป็น 1 ชั่วโมง
                    else if ($time_less_result[1] >= 31 && $time_less_result[1] <= 59) {
                        $time_less_result[0] += 1;
                        $time_cal = ($time_less_result[0] . ":" . "00" . ":" . "00");
                    }
                    $time_less_2_total = getlist("SELECT TIMEDIFF('" . $time_cal . "','13:00:00') AS time_less_2_total");
                    $time_less_3_total = getlist("SELECT TIMEDIFF('08:00:00','" . $time_less_2_total[0]['time_less_2_total'] . "') AS time_less_3_total");
                    //print($time_less_3_total[0]['time_less_3_total']);
                    $result_late = ($time_less_3_total[0]['time_less_3_total']);
                    //print($result_late);
                    $result_late2 = explode(":", $result_late);

                    //ถ้ามีเศษ 30 นาทีให้แปลงเป็น 0.5
                    if ($result_late2[1] == 30) {
                        $result_late3 = $result_late2[0] + 0.5;
                    }
                    //ถ้าปกติ
                    else {
                        $result_late3 = $result_late2[0];
                    }

                    $show_total_hours += $result_late3;
                    print($show_total_hours);
                }
                //เงื่อนไข แสกนออกไปพักมากกว่าหรือเท่ากับ 12.00 ไหม และ แสกนเข้าก่อน 12.59 ไหม
                else if ($get_process_midday[1]['process_time'] >= '12:00:00' && $get_process_midday[2]['process_time'] <= '12:59:00') {
                    //print("yes");
                    $result_late = 1;
                    print($result_late);
                    $show_total_day += $result_late;
                }
            }
            //ไม่สายเลย+ไม่ขาดงาน
            else {
                $result_late = 1;
                print($result_late);
                /*----- + วันทำงาน -----*/
                /*if($get_time_max_min[0]['time_max'] >= '18:00:00')
                {
                print("/OT");
                }*/

                $show_total_day += $result_late;
            }
        }

        //ไม่มาทำงาน
        else {
            //print("-");
            if ($c == "อา") {
                print("-");
            }
            //กรณีจะเพิ่มวันทำงานล่วงหน้า รายคน
            else {
                $result_late = 1;
                //print("<font color='red'>เพิ่ม</font>");
                print("ไม่มาทำงาน");
                print("</a>");
                //$show_total_day += $result_late;
            }
        }
        print("</td>");
    }

    /*----- จำนวนวันทำงาน -----*/
    print("<td style=\"text-align:center; padding-left:0,px;\">");
    /*
    print($show_total_day." วัน");
    //if วันไหนมีชม. ให้แสดง
    if($show_total_hours != 0)
    {
    print("<br>".$show_total_hours." ชม");
    }
     */

    //if วันไหนมีชม. ให้แสดง
    if ($show_total_hours != 0) {
        //ถ้า ชม. มากกว่า 8 หรือเท่ากัน
        if ($show_total_hours >= 8) {
            $hours_balance = $show_total_hours - 8;
            $show_total_day += 1;
        } else {
            $hours_balance += $show_total_hours;
        }
        print($show_total_day . " วัน");
        print("<br>" . $hours_balance . " ชม");
    } else if ($show_total_hours == 0) {
        print($show_total_day . " วัน");
    }
    print("</td>");

    /*----- อัตราค่าจ้าง -----*/
    print("<td>");
    print("340");
    print("</td>");
    /*--------ค่าจ้าง 340------*/
    print("<td>");
    $sum_today = $show_total_day * 340;
    print(number_format($sum_today));
    print("</td>");
    /*--------ฐานค่าจ้าง(ผู้ดำเนินการ) 325------*/
    print("<td>");
    $sum_opcost = $show_total_day * 325;
    print(number_format($sum_opcost));
    print("</td>");
    /*--------เงินได้ 25% (ผู้ดำเนินการ)------*/
    print("<td>");
    $sum_monney = ($sum_opcost * 25) / 100;
    print(number_format($sum_monney, 2, '.', ','));
    print("</td>");

    print("<td>");
    print($sum_ot_hr);
    print("</td>");

    print("<td>");
    print($ot_hours_weekend . " ชม.");
    print("</td>");

    print("<td>");
    $sum_ot = ((340 / 8) * 1.5) * $ot_hours;
    print(number_format($sum_ot, 2, '.', ','));
    print("</td>");

    print("<td>");
    print("325");
    print("</td>");

    print("<td>");
    print("325");
    print("</td>");

    print("<td>");
    print("325");
    print("</td>");

    /*----- รวมจำนวนเงิน -----*/
    print("<td>");
    $show_total_hours2 = $hours_balance * 40; //ตัวแปรเก็บชม. เมื่อทำงานไม่เต็มวัน
    print($hours_balance . "<br>");
    print($show_total_hours2);
    print("<br>");
    $result_salary_garden = ($show_total_day * $rate_per_day) + $show_total_hours2;
    print number_format($result_salary_garden);
    print("</td>");

    $result_salary_garden2 += $result_salary_garden;
    print("</tr>");
    $hours_balance = 0;
    /*-----รวมเงินค่าจ้าง 340 -----*/
    $total_today += $sum_today;

    /*-----รวมเงินค่าดำเนินการ 325 -----*/
    $total_opcpst += $sum_opcost;

    /*-----เงินได้ 25% -----*/
    $total_money += $sum_monney;

}

print("<tr>");
print("<td colspan=\"$colspan_table\">");
print("ยอดรวมทั้งหมด");
print("</td>");
print("<td>");
print number_format($total_today);
print("</td>");
print("<td>");
print number_format($total_opcpst);
print("</td>");
print("<td>");
print(number_format($total_money, 2, '.', ','));
print("</td>");
print("<td>");
print number_format($total_ot);
print("</td>");
print("<td>");
print number_format($result_salary_garden2);
print("</td>");
print("</tr>");

print("<br>");
print("<br>");
/*print("<table border='1' style=\"text-align:center; width:20%;\" >");
print("<tr>");
print("<td  style=\"width:3%;\">");
print("เงินได้รวมรับทั้งหมด");
print("</td>");
print("<td  style=\"width:3%;\">");
print("-");
print("</td>");
print("</tr>");
print("<tr>");
print("<td style=\"width:3%;\">");
print("เงินค่าดำเนินการ 25%");
print("</td>");
print("<td  style=\"width:3%;\">");
print("-");
print("</td>");
print("<tr>");
print("<td  style=\"width:3%;\">");
print("เงินค่าดำเนินการ (ล่วงเวลา 3%)");
print("</td>");
print("<td  style=\"width:3%;\">");
print("-");
print("</td>");
print("</tr>");
print("<tr>");
print("<td  style=\"width:3%;\">");
print("เงินค่าดำเนินการเพิ่มเติม");
print("</td>");
print("<td  style=\"width:3%;\">");
print("-");
print("</td>");
print("</tr>");
print("<tr>");
print("<td  style=\"width:3%;\">");
print("รวมเงินได้ทั้งหมด");
print("</td>");
print("<td  style=\"width:3%;\">");
print("-");
print("</td>");
print("</tr>");
print("</table>");
print("<br>");
print("<br>");
print("<table border='1' style=\"text-align:center; width:20%;\" >");
print("<tr>");
print("<td  style=\"width:3%;\">");
print("หักภาษี ณ ที่จ่าย (3%)");
print("</td>");
print("<td  style=\"width:3%;\">");
print("-");
print("</td>");
print("</tr>");

print("<tr>");
print("<td  style=\"width:3%;\">");
print("ยอดรวมสุทธิ");
print("</td>");
print("<td  style=\"width:3%;\">");
print("-");
print("</td>");
print("</tr>");

print("</table>");*/
print("</center>");
print("</form>");
?>
</body>
</html>





Tag : PHP









ประวัติการแก้ไข
2022-12-27 10:21:21
2022-12-27 10:27:49
Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2022-12-27 10:19:30 By : benlovehi5 View : 335 Reply : 3
 

 

No. 1



โพสกระทู้ ( 45 )
บทความ ( 0 )



สถานะออฟไลน์


.








ประวัติการแก้ไข
2022-12-27 10:58:10
2022-12-27 11:01:27
2022-12-27 11:01:32
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2022-12-27 10:57:40 By : benlovehi5
 


 

No. 2



โพสกระทู้ ( 1,994 )
บทความ ( 10 )



สถานะออฟไลน์
Facebook Blogger

จากรูป คือ ภาพมาไม่หมดครับ
การรวมก็ถูกนะครับ
วันปกติ 2 ชม.
วันหยุด 1 ชม.
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2022-12-28 10:07:30 By : {Cyberman}
 

 
นั่นสิ ผมก็งง แต่วันปกติมันต้อง 3 ชม.(ถ้ารวม ส.) ไม่ใช่หรือ
ที่ถามให้แน่ชัดก่อนเพื่อจะได้เข้าใจตรงกันก่อน
แล้วคอลัมน์ของ OT ทำไมไม่เอามาด้วย
หรือต้องการรวม OT ในเวลาปกติ
หรือยังไง...?
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2022-12-29 14:38:06 By : 009
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : สอบถามเรื่องผลรวมในตารางแนวนอน ได้ยังไงครับทำแล้วมันไม่รวมกัน
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 02
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่