at <?php 
echo PortalHierarchy::getMyOrganizationName();
?>
">
                        <?php 
echo Account::getMyName();
?>
                    </span>
                    <a title="My Profile" style="color:white; margin-top: 3px; margin-left:5px;" href="<?php 
echo _SPPATH;
?>
myprofile">
                        <i class="glyphicon glyphicon-user"></i>
                    </a>
                    <a title="<?php 
echo PortalHierarchy::getMyOrganizationName();
?>
 Page" style="margin-left:5px;color:white; margin-top: 3px;" href="<?php 
echo _SPPATH;
?>
mydepartment">
                        <i class="glyphicon glyphicon-tree-deciduous"></i>
                    </a>

            <?php 
if (Role::hasRole("admin")) {
    ?>
 &nbsp;
                <a title="Administrator Site" style="color:white; margin-top: 3px; " href="<?php 
    echo _SPPATH;
    ?>
 public static function addLogAdmin($ket = "", $action = 'browse_admin')
 {
     $bl = new BLogger();
     $bl->b_log_ip = $_SERVER['REMOTE_ADDR'];
     $bl->b_log_userid = Account::getMyID();
     $bl->b_log_time = leap_mysqldate();
     $uri = $_SERVER['REQUEST_URI'];
     $pos = strpos($uri, 'DMWeb');
     if ($pos !== false) {
         $uri = 'DMWeb';
     }
     $bl->b_log_url = $uri;
     $bl->b_log_action = $action;
     $bl->b_log_username = Account::getMyUsername();
     $bl->b_log_keterangan = $ket;
     $bl->b_timestamp = time();
     $md = new \Leap\Utility\MobileDetect();
     $isMobile = $md->isMobile();
     $isTablet = $md->isTablet();
     $userAgent = $md->getUserAgent();
     $txt = "";
     if ($isMobile) {
         $txt .= "Mobile";
     } elseif ($isTablet) {
         $txt .= "Tablet";
     } else {
         $txt .= "Desktop";
     }
     $bl->b_log_user_agent = $txt . " | userAgent = {$userAgent}";
     $bl->log_user_org = PortalHierarchy::getMyOrganization();
     $bl->log_user_level = PortalHierarchy::getMyLevel();
     $bl->save();
 }
 public function mydepartment()
 {
     //wall setting is done here
     $org = RoleOrganization::getMy();
     //set the target_id
     $_GET['kelasid'] = $org->organization_id;
     //pr($org);
     if (!isset($_GET['kelasid'])) {
         die("No Target ID");
     }
     //set the target name
     $_GET['type'] = "RoleOrganization";
     $p = new PortalHierarchy();
     $p->departmentPage();
 }