{"id":386,"date":"2015-12-03T21:19:42","date_gmt":"2015-12-03T12:19:42","guid":{"rendered":"http:\/\/esoro.jp\/?p=386"},"modified":"2018-07-30T18:04:34","modified_gmt":"2018-07-30T09:04:34","slug":"%e7%94%bb%e9%9d%a2%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e3%81%abbootstrap%e3%81%aenavbar%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/esoro.jp\/?p=386","title":{"rendered":"\u753b\u9762\u30e1\u30cb\u30e5\u30fc\u306bbootstrap\u306enavbar\u3092\u4f7f\u3063\u3066\u307f\u308b"},"content":{"rendered":"<p>\u4eca\u4f5c\u3063\u3066\u3044\u308bWeb\u30a2\u30d7\u30ea\u3067\u3059\u304c\u3001\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u6a29\u9650\u306b\u3088\u308a\u30e1\u30cb\u30e5\u30fc\u306e\u30ea\u30f3\u30af\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u8981\u4ef6\u306e\u5b9f\u88c5\u306b\u3064\u3044\u3066\u3001\u4e00\u7dd2\u306b\u4f5c\u3063\u3066\u308b\u30e1\u30f3\u30d0\u30fc\u306b\u805e\u3044\u3066\u307f\u305f\u3089\u3001bootstrap\u306enavbar\u304c\u304b\u3063\u3053\u3044\u3044\u3068\u306e\u4e8b\u3067\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u5404\u753b\u9762\u3067\u6307\u5b9a\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8xhtml\u306bbootstrap\u306enavbar\u3092\u30bb\u30c3\u30c8\u3059\u308b\u5f62\u3067\u3059\u3002\u306a\u304a\u3001bootstrap\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u5c11\u3057\u53e4\u3044\u3067\u3059\u304c2.3.2\u3092\u4f7f\u3063\u3066\u307e\u3059\u3002<br \/>\nbootstrap\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3089\u3001Web\u30bd\u30fc\u30b9\u5185\u306eresources\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u5404\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5165\u308c\u3001\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3059\u308b\u5404\u753b\u9762xhtml\u3067\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:xhtml decode:true \" >&lt;ui:composition template=\"..\/templates\/menu.xhtml\"&gt;<\/pre>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u6307\u5b9a\u3057\u305fmenu.xhtml\u3067\u3059\u304c\u3001\u305d\u306e\u4e2d\u306e\u300cSessionManager\u300d\u306f\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u4fdd\u6301\u3057\u3066\u3044\u308bSessionScopedBean\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u6642\u306b\u30ed\u30b0\u30a4\u30f3\u65e5\u6642\u3092logintime\u306b\u3001\u5404\u6a29\u9650\u306e\u5024\u3092roleCd\u306b\u30bb\u30c3\u30c8\u3057\u3001xhtml\u5074\u3067\u306fui:fragment\u306erendered\u3067\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"lang:xhtml decode:true \" title=\"menu.xhtml\" >&lt;h:outputStylesheet name=\"bootstrap\/css\/bootstrap.css\" \/&gt;\r\n&lt;h:outputStylesheet name=\"bootstrap\/css\/bootstrap-responsive.css\" \/&gt;\r\n&lt;h:outputScript name=\"bootstrap\/js\/bootstrap.js\" \/&gt;\r\n&lt;h:body&gt;\r\n  &lt;nav class=\"navbar navbar-inverse navbar-default\"&gt;\r\n    &lt;div class=\"navbar-inner\"&gt;\r\n    &lt;div id=\"container\"&gt;\r\n      &lt;h:form&gt;\r\n        &lt;ul class=\"nav navbar-nav\"&gt;\r\n          &lt;ui:fragment rendered=\"#{SessionManager.roleCd == 1}\"&gt;\r\n            &lt;li&gt;&lt;a href=\"..\/sales\/page1.xhtml\"&gt;\u30d5\u30a1\u30a4\u30eb\u7167\u4f1a&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"..\/sales\/page2.xhtml\"&gt;\u72b6\u614b\u78ba\u8a8d&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"..\/common\/pwchange.xhtml\"&gt;\u30d1\u30b9\u30ef\u30fc\u30c9\u66f4\u65b0&lt;\/a&gt;&lt;\/li&gt;\r\n          &lt;\/ui:fragment&gt;\r\n          &lt;ui:fragment rendered=\"#{SessionManager.roleCd == 2}\"&gt;\r\n            &lt;li&gt;&lt;a href=\"..\/usermanage\/page1.xhtml\"&gt;\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"..\/usermanage\/page2.xhtml\"&gt;\u30e6\u30fc\u30b6\u30fc\u4e00\u89a7&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;a href=\"..\/common\/pwchange.xhtml\"&gt;\u30d1\u30b9\u30ef\u30fc\u30c9\u66f4\u65b0&lt;\/a&gt;&lt;\/li&gt;\r\n          &lt;\/ui:fragment&gt;\r\n\u30fb\u30fb\u30fb\u4ed6\u306e\u8a2d\u5b9a\u306f\u5272\u611b\r\n          &lt;ui:insert name=\"navlinks\" &gt;&lt;\/ui:insert&gt;\r\n        &lt;\/ul&gt;\r\n        &lt;h:commandButton class=\"btn btn-primary btn-lg pull-right\" value=\"\u30ed\u30b0\u30a2\u30a6\u30c8\" action=\"#{SessionManager.logout}\" \/&gt;\r\n        &lt;h:outputText class=\"span3 pull-right\" style=\"color: #ffffff;\" value=\"#{SessionManager.logintime}\"\/&gt;\r\n        &lt;\/h:form&gt;\r\n      &lt;ui:insert name=\"navinfo\"\/&gt;\r\n    &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/nav&gt;<\/pre>\n<p>\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u6a29\u9650\u306b\u5f93\u3044\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<a href=\"\/wordpress\/wp-content\/uploads\/2015\/12\/navbar.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-35\" src=\"\/wordpress\/wp-content\/uploads\/2015\/12\/navbar.png\" alt=\"navbar\" width=\"506\" height=\"108\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u4f5c\u3063\u3066\u3044\u308bWeb\u30a2\u30d7\u30ea\u3067\u3059\u304c\u3001\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u6a29\u9650\u306b\u3088\u308a\u30e1\u30cb\u30e5\u30fc\u306e\u30ea\u30f3\u30af\u8868\u793a\u3092 &hellip; <a href=\"https:\/\/esoro.jp\/?p=386\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6],"tags":[],"_links":{"self":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts\/386"}],"collection":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=386"}],"version-history":[{"count":0,"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts\/386\/revisions"}],"wp:attachment":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}