403Webshell
Server IP : 103.82.32.14  /  Your IP : 216.73.217.121
Web Server : Apache/2.2.32 (Unix) mod_ssl/2.2.32 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9
System : Linux cloud.lonmanhoabinh.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : lonmakmf ( 524)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/rubymnik/public_html/admin2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/rubymnik/public_html/admin2/baocaoquanly.php
<?php
include '../configchannel.php';
include 'configtotal.php';
?>

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
        <meta name="author" content="Coderthemes">

        <link rel="shortcut icon" href="assets/images/favicon_1.ico">

        <title>Ruby Media</title>

        <!--Morris Chart CSS -->
		<link href="assets/plugins/custombox/css/custombox.css" rel="stylesheet">

        <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="assets/css/core.css" rel="stylesheet" type="text/css" />
        <link href="assets/css/components.css" rel="stylesheet" type="text/css" />
        <link href="assets/css/icons.css" rel="stylesheet" type="text/css" />
        <link href="assets/css/pages.css" rel="stylesheet" type="text/css" />
        <link href="assets/css/responsive.css" rel="stylesheet" type="text/css" />

        <!-- HTML5 Shiv and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->

        <script src="assets/js/modernizr.min.js"></script>
        
    </head>


    <body class="fixed-left">

        <!-- Begin page -->
        <div id="wrapper">

            <!-- ========== Left Sidebar Start ========== -->

            <?php  include 'header/taskbar.php'; ?>
            <!-- Left Sidebar End --> 



            <!-- ============================================================== -->
            <!-- Start right Content here -->
            <!-- ============================================================== -->                      
            <div class="content-page">
                <!-- Start content -->
                <div class="content">
                    <div class="container">

                        <!-- Page-Title -->
                        <div class="row">
                            <div class="col-sm-12">
                                <h4 class="page-title">BÁO CÁO QUẢN LÝ</h4>
                                <ol class="breadcrumb">
                                    <li><a href="#">Ruby Media</a></li>
                                    <li class="active">Báo Cáo Quản Lý</li>
                                </ol>
                            </div>
                        </div>
                        <div class="row">
                        	<div class="col-lg-12">
                        		<div class="card-box">
									<div class="row">
										<div class="col-sm-8">
			                        		
											
											<a href="baocaoquanly.php" class="badge badge-<?php echo (!isset($_GET['baocao']))? "danger" : "primary" ?>">Hôm Nay</a>
											<a href="?baocao=10" class="badge badge-<?php echo (isset($_GET['baocao']) && $_GET['baocao']==10)? "danger" : "primary" ?>">Hôm Qua</a>
											<a href="?baocao=7" class="badge badge-<?php echo (isset($_GET['baocao']) && $_GET['baocao']==7)? "danger" : "primary" ?>">Tuần Trước</a>
											<a href="?baocao=28" class="badge badge-<?php echo (isset($_GET['baocao']) && $_GET['baocao']==28)? "danger" : "primary" ?>">Báo Cáo 28 Ngày</a>
											
											
											<?php
											$soLuongThangXemLai = 4;
											?>
											<a href="?baocao=0" class="badge badge-<?php echo (isset($_GET['baocao']) && $_GET['baocao']==0)? "danger" : "primary" ?>">Báo Cáo Tháng <?php echo date('m'); ?></a>
											<?php
											for($i = 1; $i <= $soLuongThangXemLai; $i++)
											{
												$thangtruoc = date('m', strtotime('last day of -'.$i." month", time()));
												?>
												<a href="?baocao=<?php echo $i; ?>" class="badge badge-<?php echo $_GET['baocao']==$i? "danger" : "primary" ?>">Báo Cáo Tháng <?php echo $thangtruoc; ?></a>
												<?php
											}
											?>
											<?php 
												$thoiGianGioiHan = date('d/m/Y', strtotime('0 day', time())); // chọn ngày so sánh đau
												$date = explode('/', $thoiGianGioiHan);
												$time = mktime(0,0,0,$date[1],$date[0],$date[2]);
												$mysqldate = date( 'Y-m-d H:i:s', $time);
												
													
												$thoiGianGioiHan = date('d/m/Y', strtotime('0 day', strtotime($mysqldate))); // chọn ngày so sánh đau
												$date = explode('/', $thoiGianGioiHan);
												$time = mktime(23,59,59,$date[1], $date[0],$date[2]);
												$ngaySQLSelect = date( 'Y-m-d H:i:s', $time);
												$ngaySQL = $ngaySQLSelect;
												if(isset($_GET['baocao']))
												{
													if($_GET['baocao'] == 28) // doanh 28 ngày
													{
														$thoiGianGioiHan = date('d/m/Y', strtotime('-28 day', time()));
														$date = explode('/', $thoiGianGioiHan);
														$time = mktime(0,0,0,$date[1],$date[0],$date[2]);
														$mysqldate = date( 'Y-m-d H:i:s', $time);
														
														$thoiGianGioiHan = date('d/m/Y', strtotime('0 day', time()));
														$date = explode('/', $thoiGianGioiHan);
														$time = mktime(23,59,59,$date[1],$date[0],$date[2]);
														$ngaySQLSelect = date( 'Y-m-d H:i:s', $time);
													}
													else if($_GET['baocao'] == 10) // doanh thu hôm qua
													{
														$thoiGianGioiHan = date('d/m/Y', strtotime('-1 day', time()));
														$date = explode('/', $thoiGianGioiHan);
														$time = mktime(0,0,0,$date[1],$date[0],$date[2]);
														$mysqldate = date( 'Y-m-d H:i:s', $time);
														
														$time = mktime(23,59,59,$date[1], $date[0],$date[2]);
														$ngaySQLSelect = date( 'Y-m-d H:i:s', $time);
													}
													else if($_GET['baocao'] == 0) // doanh thu tháng này
													{
														$thoiGianGioiHan = date('d/m/Y', strtotime('-0 day', time()));
														$date = explode('/', $thoiGianGioiHan);
														$time = mktime(0,0,0,$date[1],01,$date[2]);
														$mysqldate = date( 'Y-m-d H:i:s', $time);
														
														$thoiGianGioiHan = date('t/m/Y'); // chọn ngày so sánh đau
														$date = explode('/', $thoiGianGioiHan);
														$time = mktime(23,59,59,$date[1], $date[0],$date[2]);
														$ngaySQLSelect = date( 'Y-m-d H:i:s', $time);
														$ngaySQL = $ngaySQLSelect;
													}
													else if($_GET['baocao'] == 7) // doanh thu tuần trước
													{
														$previous_week = strtotime("-1 week +1 day");

														$start_week = strtotime("last sunday midnight",$previous_week);
														$end_week = strtotime("next saturday",$start_week);

														$mysqldate = date( 'Y-m-d H:i:s', $start_week);
														$ngaySQLSelect = date( 'Y-m-d 23:59:59', $end_week);
														$ngaySQL = $ngaySQLSelect;
													}
													else
													{
														for($i = 1; $i <= $soLuongThangXemLai; $i++)
														{
															if($i == $_GET['baocao'])
															{
																$thoiGianGioiHan = date('d/m/Y', strtotime('last day of -'.$i.' month', strtotime($ngaySQL))); // chọn ngày so sánh đau
																$date = explode('/', $thoiGianGioiHan);
																$time = mktime(0,0,0,$date[1],01,$date[2]);
																$mysqldate = date( 'Y-m-d H:i:s', $time);
																
																$thoiGianGioiHan = date('d/m/Y', strtotime('last day of this month', strtotime($mysqldate))); // chọn ngày so sánh đau
																$date = explode('/', $thoiGianGioiHan);
																$time = mktime(23,59,59,$date[1], $date[0],$date[2]);
																$ngaySQLSelect = date( 'Y-m-d 23:59:59', $time);
															}
															
														}
													}
												}
												else if(isset($_GET['getdate']))
												{
													$listdate = explode('-', $_GET['getdate']);
													$date = explode('/', $listdate[0]);
													$time = mktime(0,0,0,$date[1],$date[0],$date[2]);
													$mysqldate = date( 'Y-m-d H:i:s', $time);
																
													$date = explode('/', $listdate[1]);
													$time = mktime(23,59,59,$date[1], $date[0],$date[2]);
													$ngaySQLSelect = date( 'Y-m-d 23:59:59', $time);
												}
											?>
			                        	</div>
			                        </div>
									<div class="row">
										<div class="col-sm-8">
											<?php 
												$thoiGianXem = date('d/m/Y', strtotime('0 day', strtotime($mysqldate))); // chọn ngày so sánh đau
												$thoiGianXemSau = date('d/m/Y', strtotime('0 day', strtotime($ngaySQLSelect))); // chọn ngày so sánh đau
												echo $mysqldate . ' - ' . $ngaySQLSelect;
											?>
										</div>
										
									</div>
									<div class="row">
										<div class="col-sm-8">
											<form method="GET">
												<input type="text" name="getdate"><input type="submit"/>
											</form>
											
										</div>
										
									</div>
                        			<div class="table-responsive">
                                        <table class="table table-hover mails m-0 table table-actions-bar">
                                        	<thead>
												<tr>
													<th>#</th>
													<th>Tên Nhân Viên</th>
													<th>Upload Video</th>
													<th>Comment Video</th>
													<th>Share Mạng Xã Hội</th>
													<th></th>
													<th></th>
												</tr>
											</thead>
											
                                            <tbody>
												<?php
												if($_SESSION['login']['Admin'] == 1)
												{
													$resultNguoiLam = Select('NguoiLam', false, "", "");
												}
												else
												{
													$resultNguoiLam = Select('NguoiLam', false, "`QuanLy` = ".$_SESSION['login']['id']." OR `id` = ".$_SESSION['login']['id']."", "");
												}
												
												
												$result = Select('QuanLyChannel', false, "");
												$quanLyPheDuyet = 0;
												while($res = mysqli_fetch_array($result)) 
												{
													$listChannel[] = $res;
												}
												
												$resultVideoUpload = Select('BaoCaoNhanVien', false, "`NgayBaoCao` <= '".$ngaySQLSelect."' AND `NgayBaoCao` >= '".$mysqldate."'");
												while($resVideo = mysqli_fetch_array($resultVideoUpload))
												{
													$listBaoCaoNhanVien[] = $resVideo;
												}
												
												$demstt = 1;
												while($resNguoiLam = mysqli_fetch_array($resultNguoiLam)) 
												{
													$listBaoCao = null;
													$result = Select('QuanLyChannel', false, "`IdNguoiLam` = ".$resNguoiLam['id']."");
													$quanLyPheDuyet = 0;
													foreach($listChannel as $key => $res)
													{
														if($resNguoiLam['id'] != $res['IdNguoiLam']) continue;
														$dem = 1;
														$demVideoUpload = 0;
														$demVideoComment = 0;
														$demShareMXH = 0;
														$demUpload = 0;
														$listVideoUpload = null;
														$res['listVideoUpload'] = 0;
														$res['demUpload'] = 0;
														
														$res['listVideoComment'] = 0;
														$res['demComment'] = 0;
														
														$res['listMangXaHoi'] = 0;
														$res['demMXH'] = 0;
														foreach($listBaoCaoNhanVien as $keyNV => $resVideo)
														{
															if($res['id'] != $resVideo['IdChannel']) continue;
															if($resVideo['KieuBaoCao'] != 0) continue;
															$listVideoUpload[] = $resVideo;
															$demUpload++;
															$listBaoCao[] = $resVideo;
															$res['listVideoUpload'] = $listVideoUpload;
															$res['demUpload'] = $demUpload;
															if($resVideo['KiemDuyet'] == 0)
															{
																$quanLyPheDuyet++;
															}
														}
														$listVideoComment = null;
														$demComment = 0;
														foreach($listBaoCaoNhanVien as $keyNV => $resVideo)
														{
															if($res['id'] != $resVideo['IdChannel']) continue;
															if($resVideo['KieuBaoCao'] != 1) continue;
															$listVideoComment[] = $resVideo;
															$demComment++;
															$listBaoCao[] = $resVideo;
															$res['listVideoComment'] = $listVideoComment;
															$res['demComment'] = $demComment;
															if($resVideo['KiemDuyet'] == 0)
															{
																$quanLyPheDuyet++;
															}
														}
														$listMangXaHoi = null;
														$demMXH = 0;
														foreach($listBaoCaoNhanVien as $keyNV => $resVideo)
														{
															if($res['id'] != $resVideo['IdChannel']) continue;
															if($resVideo['KieuBaoCao'] != 2) continue;
															$listMangXaHoi[] = $resVideo;
															$demMXH++;
															$listBaoCao[] = $resVideo;
															$res['listMangXaHoi'] = $listMangXaHoi;
															$res['demMXH'] = $demMXH;
															if($resVideo['KiemDuyet'] == 0)
															{
																$quanLyPheDuyet++;
															}
														}
														$listChannel[] = $res;
													}
													$thoiGianGioiHan = date('d/m/Y', strtotime('-0 day', strtotime($mysqldate)));
													$date = explode('/', $thoiGianGioiHan);
													$time = mktime(0,0,0,$date[1],$date[0],$date[2]);
													$ngayOk = date( 'Y-m-d H:i:s', $time);
													
													
													$time = mktime(23,59,59,$date[1],$date[0],$date[2]);
													$ngayOkEndDay = date( 'Y-m-d H:i:s', $time);
													$ngayOkShow = date( 'd/m/Y', $time);
													if($ngayOk < $mysqldate) break;
													if(strtotime($ngayOk) > time()) 
													{
														$dem++;
														continue;
														
													}
													$listBaoCaoUpload = null;
													$listBaoCaoUploadLoi = null;
													$listBaoCaoComment = null;
													$listBaoCaoCommentLoi = null;
													$listBaoCaoMXH = null;
													$listBaoCaoMXHLoi = null;
													foreach($listBaoCao as $keyBaoCao => $itemBaoCao)
													{
														if(strtotime($itemBaoCao['NgayBaoCao']) >= strtotime($mysqldate) && strtotime($itemBaoCao['NgayBaoCao']) <= strtotime($ngaySQLSelect) && $itemBaoCao['KieuBaoCao'] == 0)
														{
															if($itemBaoCao['KiemDuyet'] == 2)
															{
																$listBaoCaoUploadLoi[] = $itemBaoCao;
															}
															else
															{
																$listBaoCaoUpload[] = $itemBaoCao;
															}
															
														}
														else if(strtotime($itemBaoCao['NgayBaoCao']) >= strtotime($mysqldate) && strtotime($itemBaoCao['NgayBaoCao']) <= strtotime($ngaySQLSelect) && $itemBaoCao['KieuBaoCao'] == 1)
														{
															if($itemBaoCao['KiemDuyet'] == 2)
															{
																$listBaoCaoCommentLoi[] = $itemBaoCao;
															}
															else
															{
																$listBaoCaoComment[] = $itemBaoCao;
															}
															
														}
														else if(strtotime($itemBaoCao['NgayBaoCao']) >= strtotime($mysqldate) && strtotime($itemBaoCao['NgayBaoCao']) <= strtotime($ngaySQLSelect) && $itemBaoCao['KieuBaoCao'] == 2)
														{
															if($itemBaoCao['KiemDuyet'] == 2)
															{
																$listBaoCaoMXHLoi[] = $itemBaoCao;
															}
															else
															{
																$listBaoCaoMXH[] = $itemBaoCao;
															}
															
														}
													}
													$demVideoUpload = count($listBaoCaoUpload);
													$demVideoComment = count($listBaoCaoComment);
													$demShareMXH = count($listBaoCaoMXH);
													?>
													<tr>
														
														<td>
															<?php echo $demstt++; ?>
														</td>
														<td>
															<?php echo $resNguoiLam['TenNhanVien']; ?>
														</td>
														<?php if((!isset($_GET['baocao']) && !isset($_GET['getdate'])) || $_GET['baocao'] == 10) { ?>
														
															<td>
																<?php if($demVideoUpload >= $soLuongUploadMoiNgay) : ?>
																<span style="color: #98ea98;"><?php echo $demVideoUpload; ?><span style="color: white;">/</span><?php echo $soLuongUploadMoiNgay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demVideoUpload; ?><span style="color: white;">/</span><?php echo $soLuongUploadMoiNgay; ?></span>
																<?php endif; ?>
																<?php
																$loi = count($listBaoCaoUploadLoi);
																if($loi > 0)
																{
																	?> - <span style="color: #98ea98; font-weight: bold;"><span style="color: #ff525a;"><?php echo count($listBaoCaoUploadLoi); ?> Lỗi</span><?php 
																}																	
																?>
															</td>	
															
															<td>
																<?php if($demVideoComment >= $soLuongCommentVideoMoiNgay) : ?>
																<span style="color: #98ea98;"><?php echo $demVideoComment; ?><span style="color: white;">/</span><?php echo $soLuongCommentVideoMoiNgay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demVideoComment; ?><span style="color: white;">/</span><?php echo $soLuongCommentVideoMoiNgay; ?></span>
																<?php endif; ?>
																<?php
																$loi = count($listBaoCaoCommentLoi);
																if($loi > 0)
																{
																	?> - <span style="color: #98ea98; font-weight: bold;"><span style="color: #ff525a;"><?php echo count($listBaoCaoCommentLoi); ?> Lỗi</span><?php 
																}																	
																?>
															</td>
															
															<td>
																<?php if($demShareMXH >= $soLuongShareMXHMoiNgay) : ?>
																<span style="color: #98ea98;"><?php echo $demShareMXH; ?><span style="color: white;">/</span><?php echo $soLuongShareMXHMoiNgay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demShareMXH; ?><span style="color: white;">/</span><?php echo $soLuongShareMXHMoiNgay; ?></span>
																<?php endif; ?>
																<?php
																$loi = count($listBaoCaoMXHLoi);
																if($loi > 0)
																{
																	?> - <span style="color: #98ea98; font-weight: bold;"><span style="color: #ff525a;"><?php echo count($listBaoCaoMXHLoi); ?> Lỗi</span><?php 
																}																	
																?>
															</td>
															<td>
														
																<?php 
																	if(count($listBaoCaoUpload) < $soLuongUploadMoiNgay || count($listBaoCaoComment) < $soLuongCommentVideoMoiNgay || count($listBaoCaoMXH) < $soLuongShareMXHMoiNgay)
																	{
																		echo '<span class="badge label-table badge-danger">Chưa Đạt</span>';
																	}
																	else
																	{
																		echo '<span class="badge badge-success">Đạt</span>';
																	}
																?>
															
															</td>
															
														<?php } else if(isset($_GET['baocao']) && $_GET['baocao'] == 28) { ?>
															<?php 
																$day = 28 - 4;
																$soLuongUpload28Ngay = $soLuongUploadMoiNgay * $day;
																$soLuongComment28Ngay = $soLuongCommentVideoMoiNgay * $day;
																$soLuongShareMXH28Ngay = $soLuongShareMXHMoiNgay * $day;
															?>
															<td>
																<?php if($demVideoUpload >= $soLuongUpload28Ngay) : ?>
																<span style="color: #98ea98;"><?php echo $demVideoUpload; ?><span style="color: white;">/</span><?php echo $soLuongUpload28Ngay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demVideoUpload; ?><span style="color: white;">/</span><?php echo $soLuongUpload28Ngay; ?></span>
																<?php endif; ?>
															</td>	
															
															<td>
																<?php if($demVideoComment >= $soLuongComment28Ngay) : ?>
																<span style="color: #98ea98;"><?php echo $demVideoComment; ?><span style="color: white;">/</span><?php echo $soLuongComment28Ngay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demVideoComment; ?><span style="color: white;">/</span><?php echo $soLuongComment28Ngay; ?></span>
																<?php endif; ?>
															</td>
															
															<td>
																<?php if($demShareMXH >= $soLuongShareMXH28Ngay) : ?>
																<span style="color: #98ea98;"><?php echo $demShareMXH; ?><span style="color: white;">/</span><?php echo $soLuongShareMXH28Ngay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demShareMXH; ?><span style="color: white;">/</span><?php echo $soLuongShareMXH28Ngay; ?></span>
																<?php endif; ?>
															</td>
															<td>
														
																<?php 
																	if(count($listBaoCaoUpload) < $soLuongUpload28Ngay || count($listBaoCaoComment) < $soLuongComment28Ngay || count($listBaoCaoMXH) < $soLuongShareMXH28Ngay)
																	{
																		echo '<span class="badge label-table badge-danger">Chưa Đạt</span>';
																	}
																	else
																	{
																		echo '<span class="badge badge-success">Đạt</span>';
																	}
																?>
															
															</td>
														<?php } else if(isset($_GET['baocao']) && $_GET['baocao'] == 7) { ?>
															<?php 
																$soLuongUpload28Ngay = $soLuongUploadMoiNgay * 6;
																$soLuongComment28Ngay = $soLuongCommentVideoMoiNgay * 6;
																$soLuongShareMXH28Ngay = $soLuongShareMXHMoiNgay * 6;
															?>
															<td>
																<?php if($demVideoUpload >= $soLuongUpload28Ngay) : ?>
																<span style="color: #98ea98;"><?php echo $demVideoUpload; ?><span style="color: white;">/</span><?php echo $soLuongUpload28Ngay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demVideoUpload; ?><span style="color: white;">/</span><?php echo $soLuongUpload28Ngay; ?></span>
																<?php endif; ?>
															</td>	
															
															<td>
																<?php if($demVideoComment >= $soLuongComment28Ngay) : ?>
																<span style="color: #98ea98;"><?php echo $demVideoComment; ?><span style="color: white;">/</span><?php echo $soLuongComment28Ngay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demVideoComment; ?><span style="color: white;">/</span><?php echo $soLuongComment28Ngay; ?></span>
																<?php endif; ?>
															</td>
															
															<td>
																<?php if($demShareMXH >= $soLuongShareMXH28Ngay) : ?>
																<span style="color: #98ea98;"><?php echo $demShareMXH; ?><span style="color: white;">/</span><?php echo $soLuongShareMXH28Ngay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demShareMXH; ?><span style="color: white;">/</span><?php echo $soLuongShareMXH28Ngay; ?></span>
																<?php endif; ?>
															</td>
															<td>
														
																<?php 
																	if(count($listBaoCaoUpload) < $soLuongUpload28Ngay || count($listBaoCaoComment) < $soLuongComment28Ngay || count($listBaoCaoMXH) < $soLuongShareMXH28Ngay)
																	{
																		echo '<span class="badge label-table badge-danger">Chưa Đạt</span>';
																	}
																	else
																	{
																		echo '<span class="badge badge-success">Đạt</span>';
																	}
																?>
															
															</td>
														<?php }  else {	?>
															<?php 
																if(isset($_GET['getdate']))
																{
																	$day = countInDay($mysqldate, $ngaySQLSelect);
																	$day = $day - countSundayInDay($mysqldate, $ngaySQLSelect);
																	
																}
																else
																{
																	$day = date("d",strtotime($ngaySQLSelect));
																	$day = $day - countSundayInMonth($ngaySQLSelect);
																}
																$soLuongUpload28Ngay = $soLuongUploadMoiNgay * $day;
																$soLuongComment28Ngay = $soLuongCommentVideoMoiNgay * $day;
																$soLuongShareMXH28Ngay = $soLuongShareMXHMoiNgay * $day;
																
															?>
															<td>
																<?php if($demVideoUpload >= $soLuongUpload28Ngay) : ?>
																<span style="color: #98ea98;"><?php echo $demVideoUpload; ?><span style="color: white;">/</span><?php echo $soLuongUpload28Ngay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demVideoUpload; ?><span style="color: white;">/</span><?php echo $soLuongUpload28Ngay; ?></span>
																<?php endif; ?>
															</td>	
															
															<td>
																<?php if($demVideoComment >= $soLuongComment28Ngay) : ?>
																<span style="color: #98ea98;"><?php echo $demVideoComment; ?><span style="color: white;">/</span><?php echo $soLuongComment28Ngay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demVideoComment; ?><span style="color: white;">/</span><?php echo $soLuongComment28Ngay; ?></span>
																<?php endif; ?>
															</td>
															
															<td>
																<?php if($demShareMXH >= $soLuongShareMXH28Ngay) : ?>
																<span style="color: #98ea98;"><?php echo $demShareMXH; ?><span style="color: white;">/</span><?php echo $soLuongShareMXH28Ngay; ?></span>
																<?php else : ?>
																<span style="color: #fb3333;"><?php echo $demShareMXH; ?><span style="color: white;">/</span><?php echo $soLuongShareMXH28Ngay; ?></span>
																<?php endif; ?>
															</td>
															<td>
														
																<?php 
																	if(count($listBaoCaoUpload) < $soLuongUpload28Ngay || count($listBaoCaoComment) < $soLuongComment28Ngay || count($listBaoCaoMXH) < $soLuongShareMXH28Ngay)
																	{
																		echo '<span class="badge label-table badge-danger">Chưa Đạt</span>';
																	}
																	else
																	{
																		echo '<span class="badge badge-success">Đạt</span>';
																	}
																?>
															
															</td>
															</td>
														<?php }?>
														<td>
															<?php if($quanLyPheDuyet > 0 ) : ?>
															<a href="https://rubymedia.studio/admin/baocaoquanlykiemduyet.php?Id=<?php echo $resNguoiLam['id']; ?><?php echo isset($_GET['baocao']) ? "&baocao=" . $_GET['baocao'] : "";  ?>" class="btn btn-warning btn-sm waves-effect waves-light">Kiểm Duyệt</a>
															<?php else : ?>
															<a href="https://rubymedia.studio/admin/baocaoquanlykiemduyet.php?Id=<?php echo $resNguoiLam['id']; ?><?php echo isset($_GET['baocao']) ? "&baocao=" . $_GET['baocao'] : "";  ?>" class="btn btn-inverse btn-sm waves-effect waves-light">Chi Tiết</a>
															<?php endif; ?>
															
														</td>
													</tr>
													<?php
												}
												?>
												
                                               
												
                                            </tbody>
                                        </table>
                                    </div>
                        		</div>
                                
                            </div> <!-- end col -->

                            
                        </div>

                        
                        
                        

                    </div> <!-- container -->
                               
                </div> <!-- content -->

                <?php  include 'header/footer.php'; ?>

            </div>
            
            
           
            
            
            <!-- /Right-bar -->

        </div>
        <!-- END wrapper -->


    
        <script>
            var resizefunc = [];
        </script>

        <!-- jQuery  -->
        <script src="assets/js/jquery.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
        <script src="assets/js/detect.js"></script>
        <script src="assets/js/fastclick.js"></script>
        <script src="assets/js/jquery.slimscroll.js"></script>
        <script src="assets/js/jquery.blockUI.js"></script>
        <script src="assets/js/waves.js"></script>
        <script src="assets/js/wow.min.js"></script>
        <script src="assets/js/jquery.nicescroll.js"></script>
        <script src="assets/js/jquery.scrollTo.min.js"></script>


        <script src="assets/js/jquery.core.js"></script>
        <script src="assets/js/jquery.app.js"></script>
        
        <!-- Modal-Effect -->
        <script src="assets/plugins/custombox/js/custombox.min.js"></script>
        <script src="assets/plugins/custombox/js/legacy.min.js"></script>

    </body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit