1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?php include 'config.php';
// Check if the user is logged in
if ((!isSet($_SESSION['loginname'])) || ($loggin <> '1')) { header("Location: login.php"); exit; } require("configure.php");
$sql = "SELECT * FROM sys_login WHERE loginid = :loginid"; $sth = Db::getDbh()->prepare($sql); $sth->execute(array(":loginid" => $_SESSION['loginid'])); if( $error = $sth->getError(array(":loginid" => $_SESSION['loginid'])) ){ var_dump($error); } $row = $sth->fetch(PDO::FETCH_ASSOC);
?> <div class="msg" style="padding:0px 20px;">User : <?=$row{'username'};?></div> <div class="arrowlistmenu">
<!-- <div class="menuheader expandable">File Manager</div> <ul class="categoryitems"> <li><a href="file_company_index.php">Edit Company</a></li> <li><a href="file_company_user_index.php">Edit Company User</a></li> <li><a href="file_role_index.php">Edit Role</a></li> <li><a href="file_role_user_index.php">Edit Role User</a></li> <li><a href="file_folder_index.php">Edit Folder</a></li> <li><a href="file_content_index.php">Edit File</a></li> </ul> --> <div class="menuheader expandable">CMS Management</div> <ul class="categoryitems"> <li><a href="sys_login_index.php">Edit Login</a></li> </ul>
<div class="menuheader expandable">Logout</div> <ul class="categoryitems"> <li><a href="logout.php">Logout</a></li> </ul> </div> <a href="../"><div style="margin-right:10px;padding:4px 0 4px 10px;color:#04244B;font: bold 14px Arial;;background:url(../images/titlebar.png) repeat-x center left;border: 1px solid #dadada;cursor: hand;">Back To Home Page</div></a>
|