3 Copyright 2016-2017, Huawei Technologies Co., Ltd.
\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
9 http://www.apache.org/licenses/LICENSE-2.0
\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
23 <meta charset="UTF-8">
\r
25 <link href="css/bootstrap.min.css" rel="stylesheet"/>
\r
26 <link href="css/VMMain.css" rel="stylesheet"/>
\r
27 <link href="css/bootstrap-table.min.css" rel="stylesheet"/>
\r
28 <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
\r
29 <script type="text/javascript" src="js/bootstrap.min.js"></script>
\r
30 <script type="text/javascript" src="js/brs.js"></script>
\r
31 <script type="text/javascript" src="js/bootstrap-table.min.js"></script>
\r
32 <script type="text/javascript" src="js/bootstrap-table-filter-control.min.js"></script>
\r
33 <script type="text/javascript">
\r
34 $(document).ready(function () {
\r
37 function operateFormatter(value, row, index) {
\r
39 '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
\r
43 window.operateEvents = {
\r
44 'click .siteDeleteImg': function (e, value, row, index) {
\r
45 // TO DO ajex call for delete
\r
47 console.log(value, row, index);
\r
52 .fixed-table-container tbody td .th-inner,
\r
53 .fixed-table-container thead th .th-inner {
\r
56 .fixed-table-pagination .pagination-info {
\r
57 display: none !important;
\r
59 .table tbody tr:hover td,
\r
60 .table tbody tr.odd:hover td {
\r
61 background-color: #e6fbe0 !important;
\r
63 table tr.openoTable_row_selected td {
\r
64 background: #e8f8fe!important;
\r
65 border-bottom: 1px solid #e8e8e8!important;
\r
71 .modal-footer > .btn {
\r
77 <body id="open_base_site_cotentBody" class="cotentBody ng-scope">
\r
78 <div class="container-fluid ms-controller">
\r
80 <div class="uploadBtn">
\r
81 <div id="open_base_tpL_userHeader" class="userHeader">
\r
82 <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
\r
83 <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default"
\r
84 tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png"
\r
85 cls="defaultbutton" click="clickAdd"
\r
86 style="display: inline-block; padding-left: 0px; padding-right: 0px;">
\r
87 <div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button"><span
\r
88 class="openo-widget-button-image openoButton_buttonLeftImg"
\r
89 style="background-image: url(images/add.png);"></span><span
\r
90 class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span
\r
91 class="openo-widget-button-image openoButton_buttonImgDefault"></span></div>
\r
98 <div class="row-fluid" data-name="table_zone">
\r
99 <div id='ict_virtualApplication_table_div'>
\r
102 <table id="link" data-pagination="true" data-page-size="5" data-pagination-first-text="First"
\r
103 data-pagination-pre-text="Previous" data-pagination-next-text="Next"
\r
104 data-pagination-last-text="Last" data-filter-control="true">
\r
105 <thead id="link" class="openo-table-thead" style="background:#ECECEC;">
\r
106 <tr class="active">
\r
107 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
108 data-field="name" data-sortable="true" data-filter-control="input">
\r
109 <div class="openo-table-th-border"></div>
\r
110 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
111 <span id="linkName_sorticon"
\r
112 class="openo-table-th-sorticon overflow_elip openoTable_sortable leftHeaderAlign openo-table-disable-element ">Name
\r
116 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
117 data-field="logicalType" data-sortable="true" data-filter-control="input">
\r
118 <div class="openo-table-th-border"></div>
\r
119 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
120 <span id="link_aEnd_sorticon"
\r
121 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Type
\r
125 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
126 data-field="layerRate" data-sortable="true" data-filter-control="input">
\r
127 <div class="openo-table-th-border"></div>
\r
128 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
129 <span id="link_layerRate_sorticon"
\r
130 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Layer Rate
\r
134 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
135 data-field="aEnd" data-sortable="true" data-filter-control="input">
\r
136 <div class="openo-table-th-border"></div>
\r
137 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
138 <span id="link_aEnd_sorticon"
\r
139 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Source Port
\r
143 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
144 data-field="zEnd" data-sortable="true" data-filter-control="input">
\r
145 <div class="openo-table-th-border"></div>
\r
146 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
147 <span id="link_zEnd_sorticon"
\r
148 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Sink Port
\r
153 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
154 data-field="aEndME" data-sortable="true" data-filter-control="input">
\r
155 <div class="openo-table-th-border"></div>
\r
156 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
157 <span id="link_source_sorticon"
\r
158 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Source NE
\r
162 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
163 data-field="zEndME" data-sortable="true" data-filter-control="input">
\r
164 <div class="openo-table-th-border"></div>
\r
165 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
166 <span id="link_source_sorticon"
\r
167 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Sink NE
\r
171 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
172 data-field="adminState" data-sortable="true" data-filter-control="input">
\r
173 <div class="openo-table-th-border"></div>
\r
174 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
175 <span id="link_adminState_sorticon"
\r
176 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Admin State
\r
180 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
181 data-field="operState" data-sortable="true" data-filter-control="input">
\r
182 <div class="openo-table-th-border"></div>
\r
183 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
184 <span id="link_operState_sorticon"
\r
185 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Operating State
\r
189 <th class="openo-table-state-default openo-table-th openo-table-disable-element leftHeaderAlign"
\r
190 data-field="siteType" align="center" data-formatter="operateFormatter"
\r
191 data-events="operateEvents">
\r
192 <div class="openo-table-th-border"></div>
\r
193 <div class="DataTables_sort_wrapper openo-ellipsis ">
\r
194 <span id="link_latency_sorticon"
\r
195 class="openo-table-th-sorticon overflow_elip leftHeaderAlign openo-table-disable-element ">Actions
\r
202 <!-- <tr style="display: none;">
\r
203 <td colspan="7" style="text-align: center;">NULL</td>
\r
205 <tr class="odd openo-table-tr openo-table-disable-element" data-rowid="0" data-tableid="siteTable">
\r
206 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor " data-colid="siteName" data-tableid="siteTable">
\r
207 <div class="openo-table-disable-element overflow_elip leftDataAlign">
\r
208 <a class="openo-table-disable-element hyperLinkRow" href="javascript:void(0)" id="siteTable_0_siteName_link">Link1</a></div>
\r
210 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
211 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">Type</div>
\r
213 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
214 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">15</div>
\r
216 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
217 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">8080</div>
\r
219 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
220 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">1234</div>
\r
222 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
223 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">NE</div>
\r
225 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
226 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">UP</div>
\r
228 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable">
\r
229 <div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element">UP</div>
\r
231 <td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteOperation" data-tableid="siteTable">
\r
232 <div class="openo-table-disable-element overflow_elip leftDataAlign openo-table-custom-el" id="siteTable_0_siteOperation_custom_el">
\r
234 <img src="images/delete.png" href="javascript:void(0)" onclick="deleteLink('this')" opertype="siteDelete" style="cursor: pointer" title="Delete" id="bac4ff3c-d693-4f54-86cd-25af1ea22f59" rowid="0/">
\r
244 <!-- <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> -->
\r
246 <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
\r
247 aria-labelledby="myModalLabel" aria-hidden="false">
\r
248 <div class="modal-dialog">
\r
249 <div class="modal-content">
\r
250 <div class="content">
\r
251 <div class="modal-header">
\r
252 <button type="button" class="close" data-dismiss="modal"
\r
253 aria-hidden="true">×
\r
255 <h4 class="modal-title" id="myModalLabel">
\r
256 <span>Create</span>
\r
259 <form class="form-horizontal" role="form" id="linkForm">
\r
261 <div class="modal-body">
\r
262 <ul class="nav nav-pills nav-justified vmapp-margin">
\r
264 <div class="tab-content">
\r
265 <div class="tab-pane active" id="basicTab">
\r
266 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
\r
267 <label class="col-sm-3 control-label">
\r
269 <span class="required">*</span>
\r
271 <div class="col-sm-7">
\r
272 <input type="text" id="name" name="name" class="form-control"/>
\r
275 <div class="form-group">
\r
276 <label class="col-sm-3 control-label">
\r
279 <div class="col-sm-7">
\r
280 <select class="form-control"
\r
281 style="padding-top: 0px;padding-bottom: 0px;" id="logicalType"
\r
282 name="logicalType">
\r
283 <option value="fiberLink">Fiber Link</option>
\r
284 <option value="l2Link">L2 Link</option>
\r
285 <option value="ipLink">IP Link</option>
\r
286 <option value="electricalLink">Electrical Link</option>
\r
290 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
\r
291 <label class="col-sm-3 control-label">
\r
292 <span>Layer Rate</span>
\r
294 <div class="col-sm-7">
\r
295 <input type="text" id="layerRate" name="layerRate"
\r
296 class="form-control"/>
\r
301 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
\r
302 <label class="col-sm-3 control-label">
\r
303 <span>Source Port</span>
\r
305 <div class="col-sm-7">
\r
306 <input type="text" id="aEnd" name="aEnd" class="form-control"/>
\r
309 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
\r
310 <label class="col-sm-3 control-label">
\r
311 <span>Sink Port</span>
\r
313 <div class="col-sm-7">
\r
314 <input type="text" id="zEnd" name="zEnd" class="form-control"/>
\r
317 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
\r
318 <label class="col-sm-3 control-label">
\r
319 <span>Source NE</span>
\r
321 <div class="col-sm-7">
\r
322 <input type="text" id="aEndMe" name="aEndME" class="form-control"/>
\r
325 <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
\r
326 <label class="col-sm-3 control-label">
\r
327 <span>Sink NE</span>
\r
329 <div class="col-sm-7">
\r
330 <input type="text" id="zEndMe" name="zEndME" class="form-control"/>
\r
336 <div class="modal-footer">
\r
337 <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"
\r
339 <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
\r
341 <button type="button" class="btn button-previous SDBtn">
\r
342 <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
\r
353 <div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide"
\r
354 style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">
\r
355 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_0"><label
\r
356 class="openo-ellipsis openo-select-blank-item" style="width: 100%; display: block; height: 20px;"></label>
\r
358 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_1"><label
\r
359 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label></div>
\r
360 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_2"><label
\r
361 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label></div>
\r
362 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_3"><label
\r
363 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label></div>
\r
364 <div class="openo-select-item openo-ellipsis " id="filterTpLogicalType_openo-select-id_4"><label
\r
365 class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label></div>
\r