public function getMenu($menu_id) { $ssl_domain = Utils::getSslDomain(); $user_mgr = new UserManager(); $html = '<ul>'; //$organ_id = $user_mgr->getOrganId(); $menu_mgr = new MenuManager(); $res = $menu_mgr->getMenuList($menu_id); $counter = 0; if ($res) { while ($row = $res->fetch_assoc()) { $menu_nm = $row['menu_nm']; $path = $this->getMenuPath($row); $image_path = $row['image_file_path']; $func_url = $ssl_domain . $path; $description = $row['description']; $html .= "<li style=\"float: left; width: 550px;\">" . "<a href=\"{$func_url}\">" . "<div class=\"function_item\"><ul>" . "<li class=\"function_icon\">" . "<img class=\"function_image\" src=\"{$ssl_domain}/{$image_path}\" alt=\"{$menu_nm}\" />" . "<div style=\"margin-top: 10px;\">{$menu_nm}</div></li>" . "<li class=\"function_desc_li\"><div class=\"function_description\">{$description}</div></li>" . "</ul></div></a></li>"; } $html .= '</ul>'; $html .= '<div style="clear: both;">'; } else { $html = '利用可能な機能がありません。'; } return $html; }