Viewing file: Rep0104.php (24.83 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include 'cache/topcache.php'; include 'include/controller.php'; $year = date("Y")+543;
?> <!DOCTYPE html> <html class="loading" lang="en" data-textdirection="ltr"> <!-- BEGIN: Head-->
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui"> <meta name="description" content="Vuexy admin is super flexible, powerful, clean & modern responsive bootstrap 4 admin template with unlimited possibilities."> <meta name="keywords" content="admin template, Vuexy admin template, dashboard template, flat admin template, responsive admin template, web app"> <meta name="author" content="PIXINVENT"> <title>งานการเจ้าหน้าที่ วิทยาลัยพยาบาลบรมราชชนนี นครราชสีมา</title> <link rel="apple-touch-icon" href="app-assets/images/ico/apple-icon-120.png"> <link rel="shortcut icon" type="image/x-icon" href="app-assets/images/ico/favicon.ico"> <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600" rel="stylesheet">
<!-- BEGIN: Vendor CSS--> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/vendors.min.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/charts/apexcharts.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/extensions/tether-theme-arrows.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/extensions/tether.min.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/extensions/shepherd-theme-default.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/forms/select/select2.min.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/pickers/pickadate/pickadate.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/tables/datatable/datatables.min.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/animate/animate.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/extensions/sweetalert2.min.css"> <!-- END: Vendor CSS-->
<!-- BEGIN: Theme CSS--> <link rel="stylesheet" type="text/css" href="app-assets/css/bootstrap.css"> <link rel="stylesheet" type="text/css" href="app-assets/css/bootstrap-extended.css"> <link rel="stylesheet" type="text/css" href="app-assets/css/colors.css"> <link rel="stylesheet" type="text/css" href="app-assets/css/components.css"> <link rel="stylesheet" type="text/css" href="app-assets/css/themes/dark-layout.css"> <link rel="stylesheet" type="text/css" href="app-assets/css/themes/semi-dark-layout.css">
<!-- BEGIN: Page CSS--> <link rel="stylesheet" type="text/css" href="app-assets/css/core/menu/menu-types/horizontal-menu.css"> <link rel="stylesheet" type="text/css" href="app-assets/css/core/colors/palette-gradient.css"> <link rel="stylesheet" type="text/css" href="app-assets/css/pages/dashboard-analytics.css"> <link rel="stylesheet" type="text/css" href="app-assets/css/pages/card-analytics.css"> <link rel="stylesheet" type="text/css" href="app-assets/css/plugins/tour/tour.css"> <!-- END: Page CSS-->
<!-- BEGIN: Custom CSS--> <link rel="stylesheet" type="text/css" href="assets/css/style.css"> <!-- END: Custom CSS--> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Niramit&display=swap" rel="stylesheet"> <style> body { font-family: 'Niramit', sans-serif; font-size: 13px; } </style> </head> <!-- END: Head-->
<!-- BEGIN: Body-->
<body class="horizontal-layout horizontal-menu 2-columns navbar-floating footer-static " data-open="hover" data-menu="horizontal-menu" data-col="2-columns">
<!-- BEGIN: Header--> <nav class="header-navbar navbar-expand-lg navbar navbar-with-menu navbar-fixed navbar-shadow navbar-brand-left bg-success text-white"> <div class="navbar-header d-xl-block d-none"> <ul class="nav navbar-nav">   <img src="app-assets/images/logo/header.png" alt="avatar" height="60%" width="60%"> </ul> </div> <div class="navbar-wrapper"> <div class="navbar-container content"> <div class="navbar-collapse" id="navbar-mobile"> <div class="mr-auto float-left bookmark-wrapper d-flex align-items-center"> <ul class="nav navbar-nav"> <li class="nav-item mobile-menu d-xl-none mr-auto"><a class="nav-link nav-menu-main menu-toggle hidden-xs" href="#"><i class="ficon feather icon-menu"></i></a></li> </ul> </div> <ul class="nav navbar-nav float-right">
<li class="dropdown dropdown-user nav-item"><a class="dropdown-toggle nav-link dropdown-user-link" href="#" data-toggle="dropdown"> <div class="user-nav d-sm-flex d-none"><span class="user-name text-bold-600">วพบ.นครราชสีมา</span><span class="user-status">Online</span></div><span><img class="round" src="app-assets/images/portrait/small/avatar-s-11.jpg" alt="avatar" height="40" width="40"></span> </a> </li> </ul> </div> </div> </div> </nav>
<!-- END: Header-->
<!-- BEGIN: Main Menu--> <div class="horizontal-menu-wrapper"> <div class="header-navbar navbar-expand-sm navbar navbar-horizontal floating-nav navbar-light navbar-without-dd-arrow navbar-shadow menu-border" role="navigation" data-menu="menu-wrapper"> <!-- Horizontal menu content--> <div class="navbar-container main-menu-content" data-menu="menu-container"> <!-- include includes/mixins--> <ul class="nav navbar-nav" id="main-menu-navigation" data-menu="menu-navigation"> <li class="dropdown nav-item active" data-menu="dropdown"><img src="https://img.icons8.com/color/48/000000/home-page.png" width="30"/> <span data-i18n="Dashboard" style="color:orange;font-size:18px;">Dashboard : ตำแหน่งวิชาการของอาจารย์</span> </li> </ul> </div> <div class="col-lg-4 col-sm-4 col-12"> <p style="color:orange;font-size:18px;" class="float-right"><img src="https://img.icons8.com/color/48/000000/date-span.png" width="30"/> <?=DateThai($date)?></p> </div> </div> </div> <!-- END: Main Menu-->
<!-- BEGIN: Content--> <div class="app-content content"> <div class="content-overlay"></div> <div class="header-navbar-shadow"></div> <div class="content-wrapper"> <div class="content-header row"> </div> <div class="content-body">
<div class="row"> <div class="col-sm-12"> <form name="search" action="<?=$_SERVER[SCRIPT_NAME];?>" method="post" class="form-inline justify-content-center"> <label for="yearSearch">เลือกปี</label>   <select class="form-control" id="yearSearch" name="yearSearch" class="selectpicker"> <option value="">เลือกปีการศึกษา</option> <option value="2563">2563</option> <option value="2562">2562</option> </select>   <button type="submit" class="btn btn-success">ดูข้อมูล</button> </form> </div> </div> <br> <?php $yearSearch=$_POST['yearSearch']; ?> <!-- Dashboard Analytics Start ปีการศึกษา--> <section id="dashboard-analytics">
<div class="row"> <div class="col-6"> <div class="card"> <div class="card-header alert-danger text-white"> <h5 class="mb-0"><img class="round" src="app-assets/images/menu/menu1.jpg" alt="avatar" height="40" width="40"> ร้อยละของตำแหน่งวิชาการของอาจารย์ ปีการศึกษา <?=$yearSearch?> </h5> </div> <div class="card-content"> <div class="table-responsive mt-1"> <div id="chartContainer1" style="height: 370px; max-width: 900px; margin: 0px auto;"></div> </div> </div> </div> </div>
<div class="col-6"> <div class="card"> <div class="card-header alert-danger text-white"> <h5 class="mb-0"><img class="round" src="app-assets/images/menu/menu2.jpg" alt="avatar" height="40" width="40"> ตำแหน่งวิชาการของอาจารย์ ปีการศึกษา <?=$yearSearch?></h5> </div> <div class="card-content"> <div class="table-responsive mt-0"> <?php $totalSum="SELECT COUNT(id) AS sumid FROM countTeacher WHERE yearCount='$yearSearch' "; $rstotal= $conn->query($totalSum); while($values = $rstotal->fetch_assoc()){ $sumid=$values['sumid']; } ?> <table class="table table-bordered"> <thead> <tr class="table-active"> <th class="text-center">ตำแหน่งวิชาการของอาจารย์</th> <th class="text-center">จำนวน(คน)</th> <th class="text-center">% (จำนวนคน)</th> <th class="text-center">รายละเอียด</th> </tr> </thead> <tbody> <?php $sup1="SELECT COUNT(id) AS sumid1 FROM countTeacher WHERE yearCount='$yearSearch' AND positionCode=1 "; $resultsup1 = $conn->query($sup1); while($valuesup1 = $resultsup1->fetch_assoc()) { $sumid1=$valuesup1['sumid1']; } ?> <tr class="table-warning"> <td class="text-left"><font color="red"><b>po1</b></font> : ผู้อำนวยการวิทยาลัย</td> <td class="text-center"><?=number_format($sumid1,0)?></td> <td class="text-center"><font color="red"><?=number_format(($sumid1/$sumid)*100,2)?> %</font></td> <td class="text-center"><a href="javascript:window.open('detailCountPo.php?year=<?=$yearSearch?>&po=1', 'yourWindowName', 'width=1580,height=500');"><img src="https://img.icons8.com/color/48/000000/folder-invoices.png" width="26" hight="26"/></a></td> </tr> <tr class="table-warning"> <?php $sup2="SELECT COUNT(id) AS sumid2 FROM countTeacher WHERE yearCount='$yearSearch' AND positionCode=2 "; $resultsup2 = $conn->query($sup2); while($valuesup2 = $resultsup2->fetch_assoc()) { $sumid2=$valuesup2['sumid2']; } ?> <td class="text-left"><font color="red"><b>po2</b></font> : พยาบาลวิชาชีพชำนาญการพิเศษ</td> <td class="text-center"><?=number_format($sumid2,0)?></td> <td class="text-center"><font color="red"><?=number_format(($sumid2/$sumid)*100,2)?> %</font></td> <td class="text-center"><a href="javascript:window.open('detailCountPo.php?year=<?=$yearSearch?>&po=2', 'yourWindowName', 'width=1580,height=500');"><img src="https://img.icons8.com/color/48/000000/folder-invoices.png" width="26" hight="26"/></a></td> </tr> <tr class="table-warning"> <?php $sup3="SELECT COUNT(id) AS sumid3 FROM countTeacher WHERE yearCount='$yearSearch' AND positionCode=5 "; $resultsup3 = $conn->query($sup3); while($valuesup3 = $resultsup3->fetch_assoc()) { $sumid3=$valuesup3['sumid3']; } ?> <td class="text-left"><font color="red"><b>po3</b></font> : วิทยาจารย์ชำนาญการพิเศษ</td> <td class="text-center"><?=number_format($sumid3,0)?></td> <td class="text-center"><font color="red"><?=number_format(($sumid3/$sumid)*100,2)?> %</font></td> <td class="text-center"><a href="javascript:window.open('detailCountPo.php?year=<?=$yearSearch?>&po=3', 'yourWindowName', 'width=1580,height=500');"><img src="https://img.icons8.com/color/48/000000/folder-invoices.png" width="26" hight="26"/></a></td> </tr> <tr class="table-warning"> <?php $sup4="SELECT COUNT(id) AS sumid4 FROM countTeacher WHERE yearCount='$yearSearch' AND positionCode=3 "; $resultsup4 = $conn->query($sup4); while($valuesup4 = $resultsup4->fetch_assoc()) { $sumid4=$valuesup4['sumid4']; } ?> <td class="text-left"><font color="red"><b>po4</b></font> : พยาบาลวิชาชีพชำนาญการ</td> <td class="text-center"><?=number_format($sumid4,0)?></td> <td class="text-center"><font color="red"><?=number_format(($sumid4/$sumid)*100,2)?> %</font></td> <td class="text-center"><a href="javascript:window.open('detailCountPo.php?year=<?=$yearSearch?>&po=4', 'yourWindowName', 'width=1580,height=500');"><img src="https://img.icons8.com/color/48/000000/folder-invoices.png" width="26" hight="26"/></a></td> </tr> <tr class="table-warning"> <?php $sup5="SELECT COUNT(id) AS sumid5 FROM countTeacher WHERE yearCount='$yearSearch' AND positionCode=4 "; $resultsup5 = $conn->query($sup5); while($valuesup5 = $resultsup5->fetch_assoc()) { $sumid5=$valuesup5['sumid5']; } ?> <td class="text-left"><font color="red"><b>po5</b></font> : พยาบาลวิชาชีพปฏิบัติการ</td> <td class="text-center"><?=number_format($sumid5,0)?></td> <td class="text-center"><font color="red"><?=number_format(($sumid5/$sumid)*100,2)?> %</font></td> <td class="text-center"><a href="javascript:window.open('detailCountPo.php?year=<?=$yearSearch?>&po=5', 'yourWindowName', 'width=1580,height=500');"><img src="https://img.icons8.com/color/48/000000/folder-invoices.png" width="26" hight="26"/></a></td> </tr>
<tr class="table-warning"> <?php $sup6="SELECT COUNT(id) AS sumid6 FROM countTeacher WHERE yearCount='$yearSearch' AND positionCode=6 "; $resultsup6 = $conn->query($sup6); while($valuesup6 = $resultsup6->fetch_assoc()) { $sumid6=$valuesup6['sumid6']; } ?> <td class="text-left"><font color="red"><b>po6</b></font> : พยาบาลวิชาชีพ</td> <td class="text-center"><?=number_format($sumid6,0)?></td> <td class="text-center"><font color="red"><?=number_format(($sumid6/$sumid)*100,2)?> %</font></td> <td class="text-center"><a href="javascript:window.open('detailCountPo.php?year=<?=$yearSearch?>&po=6', 'yourWindowName', 'width=1580,height=500');"><img src="https://img.icons8.com/color/48/000000/folder-invoices.png" width="26" hight="26"/></a></td> </tr> <tr> <td class="text-right"><b>จำนวนอาจารย์ทั้งหมด</b></td> <td class="text-center"><font color="red"><b><?=number_format($sumid,0)?></b></font></td> <td class="text-center"><b>ตำแหน่งวิชาการอาจารย์ทั้งหมด</b></td> <td class="text-center"><a href="javascript:window.open('detailCountPo.php?year=<?=$yearSearch?>&po=7', 'yourWindowName', 'width=1580,height=500');"><img src="https://img.icons8.com/color/48/000000/folder-invoices.png" width="26" hight="26"/></a></td> </tr> </tbody> </table> </div> </div> </div> </div>
</div>
</section> <!-- Dashboard Analytics end ปีงบประมาณ--> <script> window.onload = function() { var chart1 = new CanvasJS.Chart("chartContainer1", { animationEnabled: true, theme: "light2", // "light1", "light2", "dark1", "dark2" title: { text: "" }, axisY: { title: "ร้อยละ" }, data: [ { type: "column", yValueFormatString: "#,###.##' %'", indexLabel: "{y}", dataPoints: [ { y: <?=number_format(($sumid1/$sumid)*100,2)?>, label: "po1" }, { y: <?=number_format(($sumid2/$sumid)*100,2)?>, label: "po2" }, { y: <?=number_format(($sumid3/$sumid)*100,2)?>, label: "po3" }, { y: <?=number_format(($sumid4/$sumid)*100,2)?>, label: "po4" }, { y: <?=number_format(($sumid5/$sumid)*100,2)?>, label: "po5" }, { y: <?=number_format(($sumid6/$sumid)*100,2)?>, label: "po6" } ] }
] });
chart1.render();
} </script>
</div> </div> </div> <!-- END: Content-->
<div class="sidenav-overlay"></div> <div class="drag-target"></div>
<!-- BEGIN: Footer--> <footer class="footer footer-static footer-light navbar-shadow"> <p class="clearfix blue-grey lighten-2 mb-0"><span class="float-md-left d-block d-md-inline-block mt-25">COPYRIGHT © 2020<a class="text-bold-800 grey darken-2" href="" target="_blank">KANTANAT THIPPAWAT,</a>All rights Reserved</span> </p> </footer> <!-- END: Footer-->
<!-- BEGIN: Vendor JS--> <script src="app-assets/vendors/js/vendors.min.js"></script> <!-- BEGIN Vendor JS-->
<!-- BEGIN: Page Vendor JS--> <script src="app-assets/vendors/js/ui/jquery.sticky.js"></script> <script src="app-assets/vendors/js/charts/apexcharts.min.js"></script> <script src="app-assets/vendors/js/extensions/tether.min.js"></script> <script src="app-assets/vendors/js/extensions/shepherd.min.js"></script> <script src="app-assets/vendors/js/forms/select/select2.full.min.js"></script> <script src="app-assets/vendors/js/pickers/pickadate/picker.js"></script> <script src="app-assets/vendors/js/pickers/pickadate/picker.date.js"></script> <script src="app-assets/vendors/js/pickers/pickadate/picker.time.js"></script> <script src="app-assets/vendors/js/tables/datatable/pdfmake.min.js"></script> <script src="app-assets/vendors/js/tables/datatable/vfs_fonts.js"></script> <script src="app-assets/vendors/js/tables/datatable/datatables.min.js"></script> <script src="app-assets/vendors/js/tables/datatable/datatables.buttons.min.js"></script> <script src="app-assets/vendors/js/tables/datatable/buttons.html5.min.js"></script> <script src="app-assets/vendors/js/tables/datatable/buttons.print.min.js"></script> <script src="app-assets/vendors/js/tables/datatable/buttons.bootstrap.min.js"></script> <script src="app-assets/vendors/js/tables/datatable/datatables.bootstrap4.min.js"></script> <script src="app-assets/vendors/js/extensions/sweetalert2.all.min.js"></script> <script src="app-assets/vendors/js/extensions/polyfill.min.js"></script> <!-- END: Page Vendor JS-->
<!-- BEGIN: Theme JS--> <script src="app-assets/js/core/app-menu.js"></script> <script src="app-assets/js/core/app.js"></script> <script src="app-assets/js/scripts/components.js"></script> <!-- END: Theme JS-->
<!-- BEGIN: Page JS--> <script src="app-assets/js/scripts/pages/dashboard-analytics.js"></script> <script src="app-assets/js/scripts/pickers/dateTime/pick-a-datetime.js"></script> <script src="app-assets/js/scripts/forms/select/form-select2.js"></script> <script src="app-assets/js/scripts/datatables/datatable.js"></script> <!-- END: Page JS--> <script src="./canvasjs.min.js"></script> </body> <!-- END: Body-->
</html> <?php function DateThai($strDate) { $strYear = date("Y",strtotime($strDate))+543; $strMonth= date("n",strtotime($strDate)); $strDay= date("j",strtotime($strDate)); $strHour= date("H",strtotime($strDate)); $strMinute= date("i",strtotime($strDate)); $strSeconds= date("s",strtotime($strDate)); $strMonthCut = Array("","ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."); $strMonthThai=$strMonthCut[$strMonth]; return "วันที่ $strDay $strMonthThai $strYear"; } ?> <?php include 'cache/btcache.php'; ?>
|