001.
<?php ob_start(); session_start();
include
(
"include/inc.config.php"
);
include
(
"include/inc.function.php"
); ?>
002.
<!doctype html>
003.
<html><!-- InstanceBegin template=
"/Templates/templateAdmin.dwt.php"
codeOutsideHTMLIsLocked=
"false"
-->
004.
<head>
005.
<meta charset=
"utf-8"
>
006.
<meta http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
007.
008.
009.
<?php
010.
include
(
"include/incCSS.php"
);
011.
?>
012.
013.
<!-- InstanceBeginEditable name=
"doctitle"
-->
014.
<title><?php
echo
TITLEWEB;?></title>
015.
<!-- InstanceEndEditable -->
016.
<!-- InstanceBeginEditable name=
"head"
-->
017.
<!-- InstanceEndEditable -->
018.
</head>
019.
020.
<body>
021.
<!-- WRAPPER -->
022.
<div id=
"wrapper"
class
=
"clearfix"
>
023.
024.
025.
026.
027.
<?php
028.
include
(
"include/incHeader.php"
);
029.
?>
030.
031.
032.
<?php
033.
include
(
"include/incMenu.php"
);
034.
?>
035.
036.
<!--
037.
MIDDLE
038.
-->
039.
<section id=
"middle"
>
040.
<!-- InstanceBeginEditable name=
"header"
-->
041.
<!-- page title -->
042.
<header id=
"page-header"
>
043.
<h1>ระบบสารบรรณอิเล็กทรอนิกส์แขวงทางหลวงจังหวัดสิงห์บุรี</h1>
044.
</header>
045.
<!-- /page title -->
046.
<!-- InstanceEndEditable -->
047.
<div id=
"content"
class
=
"dashboard padding-20"
>
048.
049.
<div
class
=
"row"
>
050.
051.
<div
class
=
"col-md-12"
>
052.
053.
<!--
054.
PANEL CLASSES:
055.
panel-
default
056.
panel-danger
057.
panel-warning
058.
panel-info
059.
panel-success
060.
061.
INFO: panel collapse - stored on user localStorage (handled by app.js _panels()
function
).
062.
All pannels should have an unique ID
or
the panel collapse status will not be stored!
063.
-->
064.
<div id=
"panel-3"
class
=
"panel panel-default"
>
065.
<div
class
=
"panel-heading"
>
066.
<span
class
=
"title elipsis"
>
067.
<strong>
068.
<!-- InstanceBeginEditable name=
"headpanel"
-->
069.
รายงานข้อมูลสิทธิ์<!-- InstanceEndEditable -->
070.
</strong> <!-- panel title -->
071.
</span>
072.
</div>
073.
074.
<!-- panel content -->
075.
<div
class
=
"panel-body"
>
076.
<!-- InstanceBeginEditable name=
"data"
-->
077.
078.
<?php
079.
080.
if
(
$_SESSION
[
'ssprivilege_type'
] == 2){
081.
?>
082.
083.
084.
085.
<div
class
=
"table-responsive"
>
086.
<table
class
=
"table table-bordered nomargin"
id=
"example"
style=
"font-size:12px"
>
087.
<thead>
088.
<tr>
089.
090.
<th width=
"18%"
>ชื่อ</th>
091.
<th width=
"15%"
>ตำแหน่ง</th>
092.
<th width=
"15%"
>แผนก</th>
093.
<th width=
"11%"
>username</th>
094.
095.
</tr>
096.
</thead>
097.
<tfoot>
098.
<tr>
099.
100.
<th width=
"18%"
>45445</th>
101.
102.
</tr>
103.
</tfoot>
104.
105.
106.
<tbody>
107.
<?php
108.
$colname_Recordset3
=
"-1"
;
109.
if
(isset(
$_GET
[
'namestaff'
])) {
110.
$colname_Recordset3
=
$_GET
[
'namestaff'
];
111.
}
112.
$sqlPos1
=
"SELECT * FROM staff WHERE staff_id='"
.
$_GET
['namestaff
']."'
";
113.
114.
$queryPos1
= mysql_query(
$sqlPos1
);
115.
116.
$dataPos1
= mysql_fetch_array(
$queryPos1
);
117.
?>
118.
<?php
119.
120.
121.
$sqlPos
=
"SELECT * FROM staff inner join privilege on staff.staff_id=privilege.staff_id WHERE staff.staff_status ='1' AND staff_super='0' "
;
122.
123.
$queryPost
= mysql_query(
$sqlPos
)
or
die
(mysql_error());
124.
125.
while
(
$dataFac2
= mysql_fetch_array(
$queryPost
)){
126.
?>
127.
<tr>
128.
129.
<td><?=
$dataFac2
[
'staff_name'
].
" "
.
$dataFac2
[
'staff_lastname'
]?></td>
130.
<td><?=
$roleArray2
[
$dataFac2
[
'staff_position'
]]?></td>
131.
<td><?=
$roleArray
[
$dataFac2
[
'staff_dm'
]]?></td>
132.
<td><?=
$dataFac2
[
'privilege_username'
]?></td>
133.
134.
</tr>
135.
136.
<?php }?>
137.
138.
</tbody>
139.
<tfoot>
140.
<tr>
141.
142.
<td width=
"18%"
>ghrtrtj</td>
143.
144.
</tr>
145.
</tfoot>
146.
147.
148.
149.
</table><?php }
else
{
150.
header(
"refresh: 3; url=form_login.php"
);
151.
echo
'<div
class
=
"fu-callout fu-callout-info"
>
152.
<h4>คุณไม่มีสิทธิ์ในการใช้งาน</h4>
153.
154.
</div>';
155.
156.
} ?>
157.
158.
159.
<!-- InstanceEndEditable -->
160.
</div>
161.
<!-- /panel content -->
162.
163.
<!-- panel footer -->
164.
<!-- InstanceBeginEditable name=
"footPanel"
-->
165.
<!--
166.
<div
class
=
"panel-footer"
>
167.
168.
<a href=
"#"
><i
class
=
"fa fa-arrow-right text-muted"
></i> View Activities Archive</a>
169.
170.
</div>
171.
..>
172.
<!-- /panel footer -->
173.
<!-- InstanceEndEditable -->
174.
</div>
175.
<!-- /PANEL -->
176.
177.
</div>
178.
179.
</div>
180.
181.
</div>
182.
</section>
183.
<!-- /MIDDLE -->
184.
185.
</div>
186.
<?php
187.
include
(
"include/incScript.php"
);
188.
?>
189.
<!-- InstanceBeginEditable name=
"script"
-->
190.
<script type=
"text/javascript"
charset=
"utf-8"
>
191.
$(document).ready(
function
() {
192.
$(
'#example'
).dataTable( {
193.
194.
dom:
'Bfrtip'
195.
,
196.
buttons: [
197.
198.
199.
200.
201.
202.
{
203.
204.
title :
'รายงานข้อมูลสิทธิ์'
,
205.
extend:
'print'
,
206.
message:
'<p align="center">รายงานข้อมูลสิทธิ์</p>'
207.
208.
209.
210.
211.
} ]
212.
213.
} );
214.
} );
215.
216.
</script>
217.
218.
219.
220.
221.
222.
<!-- InstanceEndEditable -->
223.
224.
</body>
225.
<!-- InstanceEnd --></html>