php
if ($_SESSION["Userlevel"]=="admin" || $_SESSION["Userlevel"]=="DDCC"){
?>
php // for member
}if ($_SESSION["Userlevel"]=="member" || $_SESSION["Userlevel"]=="Editor" || $_SESSION["Userlevel"]=="DC" || $_SESSION["Userlevel"]=="DCC" ){
?>
php
$perpage = 10;
if (isset($_GET['page'])) {
$page = $_GET['page'];
} else {
$page = 1;
}
$start = ($page - 1) * $perpage;
$sql = "SELECT * FROM amount_pm GROUP BY ID_PM ORDER BY ID_PM ASC LIMIT $start,$perpage";
$query = mysqli_query($con, $sql);
?>
PM |
ชื่อ PM |
View |
php
while ($result = mysqli_fetch_assoc($query)) { ?>
php echo $result['ID_PM'];?> |
php echo $result['Name_PM'];?> |
php
$Name_PM3=$result['ID_PM'];
$Name_PM4=1;//กำหนด ISSUE เป็น ISSUE 1
$depart=$_SESSION["UserDepartment"];
?>
php // สำหรับ admin for view/download
if ($_SESSION["Userlevel"]=="admin"){
?>
|
php
}
?>
php
// สำหรับ DCC for view/download
if ($_SESSION["Userlevel"]=="DDCC"){
?>
|
php
}
?>
php // สำหรับ member/Editor for view/download
if ($_SESSION["Userlevel"]=="member" || $_SESSION["Userlevel"]=="Editor"){
?>
|
php
}
?>
php // สำหรับ DC for view/download
if ($_SESSION["Userlevel"]=="DC" ){
?>
|
php
}
?>
php // สำหรับ DCC for view/download
if ($_SESSION["Userlevel"]=="DCC" ){
?>
|
php
}
?>
} ?>
php
$sql2 = "select * from amount_pm ";
$query2 = mysqli_query($con, $sql2);
$total_record = mysqli_num_rows($query2);
$total_page = ceil($total_record / $perpage);
?>