| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hkosl.com/b2b2c/webadmin/ |
Upload File : |
<!-- Home button -->
<li class0="dropdown shortcut-menu">
<a href="index.php" class="dropdown-toggle" title="<?=_lang("Home")?>">
<i class="glyphicon glyphicon-home"></i>
</a>
</li>
<!-- User Account Menu -->
<li class="dropdown user user-menu">
<!-- Menu Toggle Button -->
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<!-- The user image in the navbar-->
<?php
if($_SESSION["is_tutor"]){
$tutor_info = get_tutor($_SESSION["member_login"]);
if(!empty($tutor_info["profilephoto_path"]) && is_file("../file/teacher/".$tutor_info["profilephoto_path"])){
$img_path = "../file/teacher/".$tutor_info["profilephoto_path"];
}
$headerUserName = $tutor_info['nickname'];
}else if($_SESSION["is_student"]){
$student_info = get_student($_SESSION["student_login"]);
$img_path = "dist/img/user2-160x160.jpg";
$headerUserName = $student_info['contactname'];
}else{
$img_path = "dist/img/user2-160x160.jpg";
$headerUserName = $_SESSION["cmsusername"];
}
?>
<img src="<?=$img_path?>" class="user-image" alt="User Image">
<!-- hidden-xs hides the username on small devices so only the image appears. -->
<span class="hidden-xs"><?=$headerUserName?></span>
</a>
<ul class="dropdown-menu">
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="sys_cms_user_modifyform.php" class="btn btn-default btn-flat"><?=_lang("Profile")?></a>
</div>
<div class="pull-right">
<a href="logout.php" class="btn btn-default btn-flat"><?=_lang("Logout")?></a>
</div>
</li>
</ul>
</li>