CLIENT GUI Framework
[vnfsdk/refrepo.git] / openo-portal / portal-resmgr / src / main / webapp / resmgr-nfv / resource.html
1 <!--\r
2 \r
3     Copyright 2016-2017, Huawei Technologies Co., Ltd.\r
4 \r
5     Licensed under the Apache License, Version 2.0 (the "License");\r
6     you may not use this file except in compliance with the License.\r
7     You may obtain a copy of the License at\r
8 \r
9             http://www.apache.org/licenses/LICENSE-2.0\r
10 \r
11     Unless required by applicable law or agreed to in writing, software\r
12     distributed under the License is distributed on an "AS IS" BASIS,\r
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14     See the License for the specific language governing permissions and\r
15     limitations under the License.\r
16 \r
17 -->\r
18 \r
19 <!doctype html>\r
20 <html>\r
21 <head>\r
22     <meta charset="utf-8">\r
23     <title></title>\r
24     <link href="css/bootstrap.min.css" rel="stylesheet"/>\r
25     <link href="css/RMain.css" rel="stylesheet"/>\r
26     <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>\r
27     <script type="text/javascript" src="js/bootstrap.min.js"></script>\r
28 </head>\r
29 <script type="text/javascript">\r
30     $(function () {\r
31         $('.openo_accordion_ui-icon-expand,.header').click(function () {\r
32             $('#accordionmenuid_ul_0_0_brAppTopMenuID_UL').slideToggle(500);\r
33             $('.openo_accordion_ui-icon-expand').toggleClass('current')\r
34         });\r
35         $('.openoAccordian_showHideArrow_hide').click(function () {\r
36             // $('#open_base_openo').css('margin-left','-200px');\r
37             // $('#open_base_openo').css('display','none');\r
38             // $('.bar').css('display','block');\r
39             if ($('#accordionmenuid').width() >= 200) {\r
40                 $('#accordionmenuid').width('18px');\r
41                 $('.openo_accordion_ui-icon-expand,.header,#accordionmenuid_ul_0_0_brAppTopMenuID_UL li a').css('display', 'none');\r
42                 $('#accordionmenuid_arrow').attr('classname', 'openoAccordian_showHideArrow_show');\r
43                 $('#iframeContainer').css('width', '1284px');\r
44             } else if ($('#accordionmenuid').width() == 18) {\r
45                 $('#accordionmenuid').width('220px');\r
46                 $('.openo_accordion_ui-icon-expand,.header,#accordionmenuid_ul_0_0_brAppTopMenuID_UL li a').css('display', 'block');\r
47                 $('#accordionmenuid_arrow').attr('classname', 'openoAccordian_showHideArrow_hide');\r
48                 $('#iframeContainer').css('width', '1063px');\r
49             }\r
50 \r
51         });\r
52         $('.bar span').click(function () {\r
53             $('#open_base_openo').css('display', 'block');\r
54             $('.bar').css('display', 'none');\r
55             $('#iframeContainer').css('width', '1063px');\r
56         });\r
57         $('#accordionmenuid_ul_0_0_brAppTopMenuID_UL li').click(function () {\r
58             $(this).addClass('openo_accordion_selected').siblings().removeClass('openo_accordion_selected');\r
59         });\r
60         $('#accordionmenuid_ul_0_0_brAppTopMenuID_UL_1_0_brAppSiteMenuID').click(function () {\r
61             $('#accordionContent').attr('src', 'location.html');\r
62         });\r
63         $('#accordionmenuid_ul_0_0_brAppTopMenuID_UL_1_1_brAppMeMenuID').click(function () {\r
64             $('#accordionContent').attr('src', 'vim.html');\r
65         });\r
66         $('#accordionmenuid_ul_0_0_brAppTopMenuID_UL_1_2_brAppTpMenuID').click(function () {\r
67             $('#accordionContent').attr('src', 'datacenter.html');\r
68         });\r
69 \r
70         $('#accordionContent').attr('src', 'location.html');\r
71     })\r
72 </script>\r
73 <body>\r
74 <div id="febDiv" style="overflow: hidden;">\r
75     <div id="open_base_feb">\r
76         <!--use for store menu come from feb service, maybe just a temple plan-->\r
77         <div id="app">\r
78             <div id="iemp_layout_container" ng-controller="resourceCtrl" class="iemp_layout_container ng-scope">\r
79 \r
80                 <table id="open_base_table" class="three-cols-layout">\r
81                     <tbody id="open_base_tbody">\r
82                     <tr id="open_base_tr">\r
83                         <td class="bar">\r
84                             <span></span>\r
85                         </td>\r
86                         <td id="open_base_openo" class="three-cols-column three-cols-left">\r
87                             <div id="accordionmenuid" allow-resize="true" dataset="dataArr" height="resHeight"\r
88                                  listeners="callBacklisteners" resize-callback="resizehandler"\r
89                                  current-select="currentselect" click="clickHandler"\r
90                                  class="ng-isolate-scope accordion_parent openo_accordion_main_menu"\r
91                                  style="height: 870px;">\r
92                                 <div class="openo-accordion-resizable-handle" style="cursor: auto;"></div>\r
93                                 <ul id="accordionmenuid_ul" class="openoAccordian_accordionmenu">\r
94                                     <li id="accordionmenuid_ul_0_0_brAppTopMenuID" nodeid="brAppTopMenuID">\r
95                                         <span class="openo_accordion_ui-icon-expand"\r
96                                               style="padding-left: 20px; height: 60px;cursor: pointer;"></span>\r
97                                         <span class="openoAccordian_showHideArrow_hide" id="accordionmenuid_arrow"\r
98                                               style="cursor: pointer;"></span>\r
99                                         <a title="brApp" class="header opened"\r
100                                            style="padding-left: 10px; cursor: pointer;">Resource</a>\r
101                                         <ul id="accordionmenuid_ul_0_0_brAppTopMenuID_UL">\r
102                                             <li id="accordionmenuid_ul_0_0_brAppTopMenuID_UL_1_0_brAppSiteMenuID"\r
103                                                 nodeid="brAppSiteMenuID" class="" style="display: list-item;">\r
104                                                 <a title="Click to visit sites" class="" style="padding-left: 62px;">Location</a>\r
105                                             </li>\r
106                                             <li id="accordionmenuid_ul_0_0_brAppTopMenuID_UL_1_1_brAppMeMenuID"\r
107                                                 nodeid="brAppMeMenuID" style="display: list-item;">\r
108                                                 <a title="Click to visit network equipments" style="padding-left: 62px;">Vim</a>\r
109                                             </li>\r
110                                             <li id="accordionmenuid_ul_0_0_brAppTopMenuID_UL_1_2_brAppTpMenuID"\r
111                                                 nodeid="brAppTpMenuID" style="display: list-item;">\r
112                                                 <a title="Click to visit ports" style="padding-left: 62px;">DataCenter</a>\r
113                                             </li>\r
114 \r
115                                         </ul>\r
116                                     </li>\r
117                                 </ul>\r
118                             </div>\r
119                         </td>\r
120                         <td id="open_base_iframe" class="three-cols-column three-cols-center" style="padding: 0px;">\r
121 \r
122                             <div id="iframeContainer" class="frame-class" style="height: 870px;">\r
123                                 <iframe id="accordionContent" src="" height="870px"></iframe>\r
124                             </div>\r
125                         </td>\r
126                     </tr>\r
127                     </tbody>\r
128                 </table>\r
129 \r
130             </div>\r
131         </div>\r
132     </div>\r
133 </div>\r
134 </body>\r
135 </html>