Files
gravity/hosxp-webservice/_OLD/right_panel_sys.php
T
2026-09-16 23:20:08 +07:00

180 lines
6.0 KiB
PHP

<!-- BEGIN PHP CODE PATIENT STAT PER DAY -->
<?php
//require("connect_web.php");
//require("date_format.php");
$sql_news2 = "select * from news order by date_add desc limit 10 "; // Download data
$result_news2 = mysqli_query($conn2, $sql_news2);
$sql_login = "select * from login_authen order by id desc limit 1000 "; // Download data
$result_login = mysqli_query($conn2, $sql_login);
$sql_view = "select * from check_view_hn where view_vn !='' order by id desc limit 1000 "; // Download data
$result_view = mysqli_query($conn2, $sql_view);
?>
<div class="headerpanel"> <a href="" class="showmenu"></a>
<div class="headerright">
<?php require("right_header.php"); ?>
</div>
<!--headerpanel-->
<div class="breadcrumbwidget">
<?php require("breadcrumb.php"); ?>
<div class="row-fluid">
<div class="span10">
<?php require("icon_shortcut.php"); ?>
<!-- Content -->
<h4 class="widgettitle nomargin">ข้อมูลผู้เข้าใช้งานระบบ</span></h4>
<table class="table table-bordered" id="dyntable3" style="font-size: small;">
<colgroup>
<col class="con0" style="align: center; width: 4%" />
<col class="con1" />
<col class="con0" />
<col class="con1" />
<col class="con0" />
<col class="con1" />
</colgroup>
<thead>
<tr>
<!-- <th class="head0"><center>ลำดับ</center></th> -->
<th class="head0">
<center>
ล็อกอิน
</center>
</th>
<th class="head1">
<center>
เลขไอพี
</center>
</th>
<th class="head0">
<center>
ระบบปฏิบัติการ
</center>
</th>
<th class="head1">
<center>
บราวเซอร์
</center>
</th>
<th class="head0">
<center>
ล็อกอินเมื่อ
</center>
</th>
<th class="head1">
<center>
สถานะ
</center>
</th>
</tr>
</thead>
<tbody>
<?php
//$i4=0;
while ($rs_login = mysqli_fetch_array($result_login)) {
?>
<tr class="gradeX">
<!-- <td><center><?php //echo ($i4 + 1);
?></center></td> -->
<td><?php echo $rs_login["username"]; ?></td>
<td><?php echo $rs_login["ip"]; ?></td>
<td><?php echo $rs_login["os"]; ?></td>
<td><?php echo $rs_login["browser"]; ?></td>
<td>
<center>
<?php echo $rs_login["log_time"]; ?>
</center>
</td>
<td>
<center>
<font color="<?php if ($rs_login["status"] == "Success") {
echo "#279c12";
} else {
echo "#dd1c21";
} ?>"><?php echo $rs_login["status"]; ?></font>
</center>
</td>
</tr>
<?php
//$i4++;
}
?>
</tbody>
</table>
<!--widgetcontent-->
</div>
<!--span8-->
<br /><br />
<div class="span10" style="margin-top:40px !important;margin-left:0px !important;">
<!-- Content -->
<h4 class="widgettitle nomargin">ข้อมูลคนไข้ที่มีการค้นหา</span></h4>
<table class="table table-bordered" id="dyntable2" style="font-size: small;">
<colgroup>
<col class="con0" style="align: center; width: 4%" />
<col class="con1" style="align: center " />
<col class="con0" style="align: center" />
<col class="con1" style="align: center" />
</colgroup>
<thead>
<tr>
<!-- <th class="head0"><center>ลำดับ</center></th> -->
<th class="head0">
<center>
ล็อกอิน
</center>
</th>
<th class="head1">
<center>
HN
</center>
</th>
<th class="head0">
<center>
VN / AN
</center>
</th>
<th class="head1">
<center>
เข้าดูเมื่อ
</center>
</th>
</tr>
</thead>
<tbody>
<?php
//$i4=0;
while ($rs_view = mysqli_fetch_array($result_view)) {
?>
<tr class="gradeX">
<!-- <td><center><?php //echo ($i4 + 1);
?></center></td> -->
<td><?php echo $rs_view["login_name"]; ?></td>
<td>
<center><?php echo $rs_view["view_hn"]; ?></center>
</td>
<td>
<center><?php echo $rs_view["view_vn"]; ?></center>
</td>
<td>
<center><?php echo $rs_view["view_time"]; ?></center>
</td>
</tr>
<?php
//$i4++;
}
?>
</tbody>
</table>
<!--widgetcontent-->
</div>
<!--span4-->
</div>
<!--row-fluid-->
</div>
<!--contentinner-->
</div>
<!--maincontent-->