ok

Mini Shell

Direktori : /home2/selectio/public_html/thedentalpark.com/admin/ui-api/
Upload File :
Current File : /home2/selectio/public_html/thedentalpark.com/admin/ui-api/current-shift-users.php

<?php 
ob_start();
session_start();
include "../config/config.php";


$conditions="";

$statement = $pdo->prepare("SELECT *,(SELECT COUNT(id) FROM tbl_user WHERE tbl_shift_details.id=tbl_user.emp_shift) as shift_users_count FROM `tbl_shift_details` where 1=1 ".$conditions);
                        $statement->execute();
                        $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC);
                        $totalData = $statement->rowCount();
                        foreach ($emp_data as $data){ ?>
                        
                        <div style="padding-top: 6px;">
                        <b>
                            <span class="btn btn-primary btn-xs"><?=$data['shift_name']?></span>
                            <span class="btn btn-warning btn-xs"><?=$data['shift_timing']?></span>
                            <span class="btn btn-success btn-xs"><?=$data['shift_users_count']?></span>
                        </b>
                        </div>
                        

<?php } ?>

Zerion Mini Shell 1.0