3 Copyright 2016-2017, Huawei Technologies Co., Ltd.
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
23 <meta charset="UTF-8">
25 <link href="css/bootstrap.min.css" rel="stylesheet"/>
26 <link href="css/VMMain.css" rel="stylesheet"/>
27 <link href="css/bootstrap-table.min.css" rel="stylesheet"/>
28 <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
29 <script type="text/javascript" src="js/bootstrap.min.js"></script>
30 <script type="text/javascript" src="js/brs.js"></script>
31 <script type="text/javascript" src="js/bootstrap-table.min.js"></script>
32 <script type="text/javascript" src="js/bootstrap-table-filter-control.min.js"></script>
33 <script type="text/javascript">
34 $(document).ready(function () {
37 function operateFormatter(value, row, index) {
39 '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
43 window.operateEvents = {
44 'click .siteDeleteImg': function (e, value, row, index) {
47 console.log(value, row, index);
52 .fixed-table-container tbody td .th-inner,
53 .fixed-table-container thead th .th-inner {
56 .fixed-table-pagination .pagination-info {
57 display: none !important;
59 .table tbody tr:hover td,
60 .table tbody tr.odd:hover td {
61 background-color: #e6fbe0 !important;
63 table tr.openoTable_row_selected td {
64 background: #e8f8fe!important;
65 border-bottom: 1px solid #e8e8e8!important;
71 .modal-footer > .btn {
77 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">
80 <div class="uploadBtn">
81 <div id="open_base_tpL_userHeader" class="userHeader">
82 <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
83 <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default"
84 tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png"
85 cls="defaultbutton" click="clickAdd"
86 style="display: inline-block; padding-left: 0px; padding-right: 0px;">
87 <div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button"><span
88 class="openo-widget-button-image openoButton_buttonLeftImg"
89 style="background-image: url(images/add.png);"></span><span
90 class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span
91 class="openo-widget-button-image openoButton_buttonImgDefault"></span></div>
97 <div class="row-fluid" data-name="table_zone">
98 <div id='ict_virtualApplication_table_div'>
101 <table id="port" data-pagination="true" data-page-size="5" data-pagination-first-text="First"
102 data-pagination-pre-text="Previous" data-pagination-next-text="Next"
103 data-pagination-last-text="Last" data-filter-control="true">
104 <thead id="portTable_thead" class="openo-table-thead" style="background:#ECECEC;">
106 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
107 data-field="name" data-sortable="true" data-filter-control="input">
108 <div class="openo-table-th-border"></div>
109 <div class="DataTables_sort_wrapper openo-ellipsis ">
110 <span id="portName_sorticon"
111 class="openo-table-th-sorticon overflow_elip openoTable_sortable leftHeaderAlign openo-table-disable-element ">Name
115 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
116 data-field="meID" data-sortable="true" data-filter-control="input">
117 <div class="openo-table-th-border"></div>
118 <div class="DataTables_sort_wrapper openo-ellipsis ">
119 <span id="portmeID_sorticon"
120 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">ME
124 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
125 data-field="logicalType" data-sortable="true" data-filter-control="input">
126 <div class="openo-table-th-border"></div>
127 <div class="DataTables_sort_wrapper openo-ellipsis ">
128 <span id="portLogicalType_sorticon"
129 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Type
133 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
134 data-field="layerRate" data-sortable="true" data-filter-control="input">
135 <div class="openo-table-th-border"></div>
136 <div class="DataTables_sort_wrapper openo-ellipsis ">
137 <span id="portLayerRate_sorticon"
138 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Layer Rate
142 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
143 data-field="isEdgePoint" data-sortable="true" data-filter-control="input">
144 <div class="openo-table-th-border"></div>
145 <div class="DataTables_sort_wrapper openo-ellipsis ">
146 <span id="portIsEdgePoint_sorticon"
147 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Edge Point
151 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
152 data-field="portIndex" data-sortable="true" data-filter-control="input">
153 <div class="openo-table-th-border"></div>
154 <div class="DataTables_sort_wrapper openo-ellipsis ">
155 <span id="portIndex_sorticon"
156 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Port Index
160 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
161 data-field="ipAddress" data-sortable="true" data-filter-control="input">
162 <div class="openo-table-th-border"></div>
163 <div class="DataTables_sort_wrapper openo-ellipsis ">
164 <span id="portIpAddress_sorticon"
165 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">IP Address
169 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
170 data-field="nativeID" data-sortable="true" data-filter-control="input">
171 <div class="openo-table-th-border"></div>
172 <div class="DataTables_sort_wrapper openo-ellipsis ">
174 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Native ID
178 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
179 data-field="adminState" data-sortable="true" data-filter-control="input">
180 <div class="openo-table-th-border"></div>
181 <div class="DataTables_sort_wrapper openo-ellipsis ">
182 <span id="portAdminState_sorticon"
183 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Admin State
187 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
188 data-field="operState" data-sortable="true" data-filter-control="input">
189 <div class="openo-table-th-border"></div>
190 <div class="DataTables_sort_wrapper openo-ellipsis ">
191 <span id="portOperState_sorticon"
192 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Operating State
196 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
197 align="center" data-formatter="operateFormatter" data-events="operateEvents">
198 <div class="openo-table-th-border"></div>
199 <div class="DataTables_sort_wrapper openo-ellipsis ">
200 <span id="portAction_sorticon"
201 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Action</span>
207 <tr style="display: none;">
208 <td colspan="7" style="text-align: center;">NULL</td>
210 <tr class="odd openo-table-tr openo-table-disable-element" data-rowid="0" data-tableid="siteTable">
211 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteName" data-tableid="siteTable">
212 <div class="openo-table-disable-element overflow_elip leftDataAlign">
213 <a class="openo-table-disable-element hyperLinkRow" href="javascript:void(0)" id="siteTable_0_portName_link"></a>Port1</div>
215 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >ME</div>
217 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >Type</div>
219 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >12</div>
221 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >Edge</div>
223 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >12345</div>
225 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >255.255.255.123</div>
227 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >UP</div>
229 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >UP</div>
231 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteOperation" data-tableid="siteTable">
232 <div class="openo-table-disable-element overflow_elip leftDataAlign openo-table-custom-el" id="siteTable_0_siteOperation_custom_el">
234 <img src="images/delete.png" href="javascript:void(0)" onclick="deletePort('this');" opertype="siteDelete" style="cursor: pointer" title="Delete" id="bac4ff3c-d693-4f54-86cd-25af1ea22f59" rowid="0/">
245 <!-- <div id="tpListopenotable_pagination_wrapper" class="openo-table-pagination-wrapper" style="display: block;"><div class="pagination-container openo-pagination-theme openo-pagination"><div class="openoPagination_openoPaginationLengthOptions" id="tpListopenotable_wrapper_div"><input readonly="true" class="openo-pagination-select openopaginationselect" value="" id="tpListopenotable_wrapper_input" actualval="20" style="width: 32px;"><span class="openo-pagination-selectspan openopaginationselectspan" id="tpListopenotable_wrapper_trigger"></span></div><label style="display: block;float:left;">Total records: 23</label><li class="active"><span class="current prev openo-disabled" id="tpListopenotable_wrapper_prev"> </span></li><ul><li class="active"><span class="current" id="tpListopenotable_wrapper_page_link_1">1</span></li><li><a class="page-link" id="tpListopenotable_wrapper_page_link_2">2</a></li><li><a class="page-link" id="tpListopenotable_wrapper_page_link_3">3</a></li><li><a class="page-link next" id="tpListopenotable_wrapper_next"> </a></li></ul></div></div> -->
247 <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
248 aria-labelledby="myModalLabel" aria-hidden="false">
249 <div class="modal-dialog">
250 <div class="modal-content">
251 <div class="content">
252 <div class="modal-header">
253 <button type="button" class="close" data-dismiss="modal"
254 aria-hidden="true">×
256 <h4 class="modal-title" id="myModalLabel">
260 <form class="form-horizontal" role="form" id="portForm">
262 <div class="modal-body">
263 <ul class="nav nav-pills nav-justified vmapp-margin">
265 <div class="tab-content">
266 <div class="tab-pane active" id="basicTab">
267 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
268 <label class="col-sm-3 control-label">
270 <span class="required">*</span>
272 <div class="col-sm-7">
273 <input type="text" id="name" name="name" class="form-control"
277 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
278 <label class="col-sm-3 control-label">
280 <span class="required">*</span>
282 <div class="col-sm-7">
283 <input type="text" id="meID" name="meID" class="form-control"
287 <div class="form-group">
288 <label class="col-sm-3 control-label">
291 <div class="col-sm-7">
292 <select class="form-control" style="padding-top: 0px;padding-bottom: 0px;"
295 <option value="ETH">ETH</option>
296 <option value="POS">POS</option>
297 <option value="Trunk">Trunk</option>
298 <option value="Loopback">Loopback</option>
302 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
303 <label class="col-sm-3 control-label">
304 <span>Layer Rate</span>
306 <div class="col-sm-7">
307 <input type="text" id="layerRate" name="layerRate" class="form-control"
308 placeholder="Layer Rate"/>
311 <div class="form-group">
312 <label class="col-sm-3 control-label">
313 <span>Edge Point</span>
315 <div class="col-sm-7">
316 <select class="form-control" style="padding-top: 0px;padding-bottom: 0px;"
319 <option value="true">True</option>
320 <option value="false">False</option>
324 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
325 <label class="col-sm-3 control-label">
326 <span>Port Index</span>
328 <div class="col-sm-7">
329 <input type="text" id="portIndex" name="portIndex" class="form-control"
330 placeholder="Port Index"/>
334 <div class="form-group">
335 <label class="col-sm-3 control-label">
336 <span>IP Address</span>
338 <div class="col-sm-7">
339 <input type="text" id="ipAddress" name="ipAddress" class="form-control"
340 placeholder="255.255.255.255"/>
343 <div class="form-group">
344 <label class="col-sm-3 control-label">
345 <span>Native ID</span>
347 <div class="col-sm-7">
348 <input type="text" id="nativeID" name="nativeID" class="form-control"
349 placeholder="Native ID"/>
355 <div class="modal-footer">
356 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"
358 <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
360 <button type="button" class="btn button-previous SDBtn">
361 <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
372 <div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide"
373 style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">
374 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_0"><label
375 class="openo-ellipsis openo-select-blank-item" style="width: 100%; display: block; height: 20px;"></label>
377 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_1"><label
378 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label></div>
379 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_2"><label
380 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label></div>
381 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_3"><label
382 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label></div>
383 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_4"><label
384 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label></div>