aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/gsolcmmain.html
blob: 7fbc77d3301ca0ed13e1f05a4031b05c309ff1f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
<!--

    Copyright 2016, Huawei Technologies Co., Ltd.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Lifecycle Manager</title>
    <link href="css/bootstrap.min.css" rel="stylesheet"/>
    <link href="css/VMMain.css" rel="stylesheet"/>
    <link href="css/bootstrap-table.min.css" rel="stylesheet"/>
    <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/rest.js"></script>
    <script type="text/javascript" src="js/bootstrap-table.min.js"></script>
    <script type="text/javascript" src="js/gsolcm.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.12.1.min.js"></script>
    <link href="css/jquery-ui-1.12.1.min.css" rel="stylesheet" />
    <script type="text/javascript" src="js/bootstrap-table-filter-control.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            /*	   $('.modal-content').resizable({
   
                minHeight: 300,
                minWidth: 300
            });*/
            $('.modal-dialog').draggable();
            $("#detailCont").show();
            var jsondata = loadGetServiceData();
            $('#sai').bootstrapTable({
                //Assigning data to table
                data: jsondata
            });
 $('.table tbody tr').click(function() {
                $(this).addClass('openoTable_row_selected').siblings().removeClass('openoTable_row_selected');
            })
            
            $('.detail-top ul li').click(function() {
                $(this).addClass('current').siblings().removeClass('current');
            });
            $("#topoCont").hide();
            $("#inpCont").hide();
            $("#topoContMod").hide();
            $("#detailContMod").show();
            $("#inpContMod").hide();
            
            $('#sai').bootstrapTable({}) .on('click-row.bs.table', function (e, row, $element) {
                var newURL = "accorTables.html?serviceId="+row.serviceId;
                console.log("URL: "+newURL);
                document.getElementById("tabContainer").style.display = "none";
                document.getElementById("detailConObj").setAttribute('data', newURL);
                document.getElementById("detailContMod").setAttribute('data', newURL);
                document.getElementById("tabContainer").style.display = "block";

                //loadIframe("topoFrame", "chartTopo.html?serviceId="+row.serviceId);
                document.getElementById("topoCont").setAttribute('data', 'chartTopo.html?serviceId='+row.serviceId);
				document.getElementById('inputcontent').setAttribute('data', 'inputData.html?json='+ JSON.stringify(row));
                document.getElementById('inputcontentDlg').setAttribute('data', 'inputData.html?json='+ JSON.stringify(row));
           	});
            new lcmHandler();
        });

        function operateFormatter(value, row, index) {
            return [
                '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
            ].join('');
        }
        
        function operateFormatterServiceName(value, row, index){
        	var temp = row.serviceId;
        	return [
                    '<a data-toggle="modal" href="#ModifyModal" style="text-decoration:underline" onclick="return anchorClick(' + temp + ')">' + value + '</a>'
                ].join('');
        }
        window.operateEvents = {
            'click .siteDeleteImg': function (e, value, row, index) {
                // TO DO ajex call for delete
                var result = deleteNe(row.id, row);
            }
        };

        function hideBasic() {
            $("#basicInfoTab").hide();
            initParameterTab();
            $("#templateParameterTab").show();
        }

        function showBasic() {
            $("#basicInfoTab").show();
            $("#templateParameterTab").hide();
        }

        function serviceTemplateChanged() {
            templateParameters.changed = true;
        }

        function showTopoCont() {
            $("#topoCont").show();
            $("#detailCont").hide();
            $("#inpCont").hide();
        }

        function showDetCont() {
            $("#topoCont").hide();
            $("#detailCont").show();
            $("#inpCont").hide();
        }

        function showInpCont() {
            $("#topoCont").hide();
            $("#detailCont").hide();
            $("#inpCont").show();
        }

        function showTopoContMod() {
            $("#topoContMod").show();
            $("#detailContMod").hide();
            $("#inpContMod").hide();
        }

        function showDetContMod() {
            $("#topoContMod").hide();
            $("#detailContMod").show();
            $("#inpContMod").hide();
        }

        function showInpContMod() {
            $("#topoContMod").hide();
            $("#detailContMod").hide();
            $("#inpContMod").show();
        }

        function loadIframe(iframeName, url) {
            var $iframe = $('#' + iframeName);
            if ( $iframe.length ) {
                $iframe.attr('src',url);
                $iframe.style.height = "400px";
                return false;
            }
            return true;
        }
    </script>
    <style>
        .nav-tabs {
            border-bottom-style: none;
        }
        .mT15 {
            margin-top: 15px;
        }
        .fixed-table-container tbody td .th-inner,
        .fixed-table-container thead th .th-inner {
            line-height: 4px;
        }
        .fixed-table-pagination .pagination-info {
            display: none !important;
        }
        .table tbody tr:hover td,
        .table tbody tr.odd:hover td {
            background-color: #e6fbe0 !important;
        }
        /*.fixed-table-pagination .page-list{display:inline-block  !important}*/
        /*.detail-top ul{
        background:#F8F6F6 !important;
        }*/
        
        .detail {
            border-top-style: none;
        }
        .btn {
            padding: 4px;
        }
        #ModifyModal .modal-dialog {
            width: 1100px;
        }
        #vmAppDialog .modal-dialog {
            width: 630px;
        }
        #ModifyModal .modal-dialog body {
            margin: 10px;
        }
        .dropdown-menu {
            min-width: 10px;
        }
        .nav-tabs.nav-justified>.active>a,
        .nav-tabs.nav-justified>.active>a:hover,
        .nav-tabs.nav-justified>.active>a:focus {
            border-left: 1px solid #4AC9FF;
            border-right: 1px solid #4AC9FF;
            border-top: 1px solid #4AC9FF;
            border-right: 1px solid #4AC9FF
        }
        .nav-tabs.nav-justified>li>a {
            border-bottom: 1px solid #4AC9FF;
            border-radius: 4px 4px 0 0
        }
        .clearfix {
            display: none;
        }
        </style>
</head>
<body id="open_base_site_cotentBody" class="cotentBody ng-scope">
<div class="container-fluid ms-controller">
    <h3> Life Cycle Manager </h3>
 <div class="separator-line"></div>
    <div class="uploadBtn">
        <div id="open_base_tpL_userHeader" class="userHeader">
            <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
                <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default"
                     tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png"
                     cls="defaultbutton" click="clickAdd"
                     style="display: inline-block; padding-left: 0px; padding-right: 0px;">
                    <div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button">
                        <span class="openo-widget-button-image openoButton_buttonLeftImg"
                              style="background-image: url(images/add.png);"></span>
                        <span class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span>
                        <span class="openo-widget-button-image openoButton_buttonImgDefault"></span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row-fluid" data-name="table_zone">
        <div id='ict_virtualApplication_table_div'>
            <div>
                <div class="top">
                    <table class="table table-striped" id="sai" data-pagination="true" data-page-size="5"
                           data-pagination-first-text="First" data-pagination-pre-text="Previous"
                           data-pagination-next-text="Next" data-pagination-last-text="Last" data-filter-control="true">
                        <thead id="soverlayTable_thead" class="openo-table-thead" style="background:#ECECEC">
                        <tr class="active" style="background:#D9D6D5">

                            <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                data-formatter="operateFormatterServiceName" data-field="serviceName"
                                data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                                <span id="overlayDesc_sorticon"
                                                      class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Service  Name
							</span>
                                </div>
                            </th>

                            <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                data-field="templateName" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                                <span id="overlayThincCPE_sorticon"
                                                      class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Template Name
                    </span>
                                </div>
                            </th>

                            <!--  th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="overlayDCName" data-sortable="true">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                    <span id="overlayDCName_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Service  Instruction                    </span>
                                </div>
                            </th -->
                            <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                data-field="createTime" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                                <span id="overlayVPC_sorticon"
                                                      class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Create Time
                          </span>
                                </div>
                            </th>
                            <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                data-field="creator" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                                <span id="overlayVPCCIDR_sorticon"
                                                      class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Creator
                          </span>
                                </div>
                            </th>
                            <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                data-field="overlayOperation" align="center" data-formatter="operateFormatter"
                                data-events="operateEvents">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                    <span id="portAction_sorticon"
                                          class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Action</span>
                                </div>
                            </th>
                        </tr>
                        </thead>

                        <tbody>


                        </tbody>

                    </table>
                </div>
            </div>
        </div>
    </div>

    <div id="ModifyModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="false">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="content" style="background:#fafafa;">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                        </button>
                        <h4 class="modal-title" id="">
                            <span>Service Info</span>
                        </h4>
                    </div>

                    <div class="detail" style="margin:10px;border-radius:5px;">
                        <div class="detail-top" style="margin-top:10px;border-radius:5px;">
                            <ul class="nav nav-tabs nav-justified vmapp-margin">
                                <li class="active basic">
                                    <a href="#" onClick="showDetContMod();" id="" data-toggle="tab">
                                        <span>Detail Info</span>
                                    </a>
                                </li>
                                <li class="">
                                    <a href="#" onclick="showTopoContMod();" data-toggle="tab">
                                        <span>Topo</span>
                                    </a>
                                </li>
                                <li class="">
                                    <a href="#" onclick="showInpContMod();" data-toggle="tab">
                                        <span>Input Data</span>
                                    </a>
                                </li>
                            </ul>

                            <div id="detailContMod">
                                <object data="accorTables.html" width="100%" height="300" type="text/html">

                                </object>
                            </div>
                            <div id="topoContMod" style="display:none;">
                                <object data="chartTopo.html" width="100%" height="300" type="text/html">

                                </object>
                                <!--<iframe id="topoFrame" src="chartTopo.html" name="" style="width:100%; height:400px;" allowTransparency="true" scrolling="no" frameborder="0">
                                </iframe>-->
                            </div>
                            <div id="inpContMod" style="display:none;">
                                <object id="inputcontentDlg" data="inputData.html" width="100%" height="300"
                                        type="text/html">

                                </object>
                                <!--<iframe src="inputData.html" name="" style="width:100%" allowTransparency="true" scrolling="no" frameborder="0">
                                </iframe>
                                </iframe>-->
                            </div>

                        </div>
                        <div class="detail-bottom"></div>

                    </div>
                    <div class="modal-footer">
                        <button type="button" style="width:80px;" class="btn SDBtn" data-dismiss="modal"
                                aria-hidden="true" id="">
                            <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
                        </button>
                        <button data-dismiss="modal" style="width:80px;" type="button"
                                class="btn button-previous SDBtn">
                            <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
                        </button>

                    </div>
                    </br>

                </div>
            </div>
        </div>
    </div>

    <div style="padding-top:20px;"></div>

    <div id="tabContainer" class="detail" style="border-radius:5px;display: none">
        <div class="detail-top" style="margin-top:2px;border-radius:5px;">
            <ul class="nav nav-tabs nav-justified vmapp-margin">

                <li class="active basic">
                    <a href="#" onClick="showDetCont();" id="detHov" data-toggle="tab">
                        <span>Detail Info</span>
                    </a>
                </li>

                <li class="">
                    <a href="#" onclick="showTopoCont();" data-toggle="tab">
                        <span>Topo</span>
                    </a>
                </li>

                <li class="">
                    <a href="#" onclick="showInpCont();" data-toggle="tab">
                        <span>Input Data</span>
                    </a>
                </li>

            </ul>
        </div>

        <div style="border-radius:5px;">
            <div id="detailCont" style="display:none;">

                <object id="detailConObj" data="accorTables.html" width="100%" height="300" type="text/html">

                </object>
            </div>
            <div id="topoCont" style="display:none;">
                <!--<iframe src="chartTopo.html" name="" style="width:100%" allowTransparency="true" scrolling="no" frameborder="0">
                </iframe>-->
                <object data="chartTopo.html" width="100%" height="300" type="text/html">

                </object>
            </div>
            <div id="inpCont" style="display:none;">
                <object id="inputcontent" src="inputData.html" width="100%" height="300" type="text/html">
                </object>
            </div>
        </div>

    </div>

</div>
</br>

<div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="content">
                <div class="modal-header" style="margin-bottom: 15px;">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        <span>Create</span>
                    </h4>
                </div>
                <form class="form-horizontal" role="form" id="neForm">
                    <div id="wizard">
                        <div class="modal-body">

                            <ul class="nav nav-tabs nav-justified vmapp-margin">
                                <li class="active basic">
                                    <a href="#basicTab" style="margin-left:1px;" onclick="showBasic();" id="basicTab"
                                       data-toggle="tab">
                                        <span>Base</span>
                                    </a>
                                </li>
                                <li style="padding-right:2px;" class="para">
                                    <a href="#" onclick="hideBasic();" data-toggle="tab">
                                        <span>Template Parameters</span>
                                    </a>
                                </li>

                            </ul>

                            <div id="basicInfoTab">
                                <div class="mT15 form-group" style="margin-left:25px;"
                                     ms-class="has-error:vmAppDialog.name==''">
                                    <label class="col-sm-3 control-label">
                                        <span>Service Name</span>
                                        <span class="required">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" id="svcName" name="svcName" class="form-control"
                                               placeholder="Service Name" maxlength="256"/>
                                    </div>
                                </div>
                                <div class="mT15 form-group" style="margin-left:25px;"
                                     ms-class="has-error:vmAppDialog.name==''">
                                    <label class="col-sm-3 control-label">
                                        <span>Service Description</span>
                                        <span class="required">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <input type="text" id="svcDesc" name="" class="form-control"
                                               placeholder="Service Description" maxlength="256"/>
                                    </div>
                                </div>

                                <div class="form-group" style="margin-left:25px;margin-bottom:15px;"
                                     ms-class="has-error:vmAppDialog.name==''">
                                    <label class="col-sm-3 control-label">
                                        <span>Service Template</span>
                                        <span class="required">*</span>
                                    </label>
                                    <div class="col-sm-7">
                                        <select class="form-control" style="padding-top: 0px;padding-bottom: 0px;"
                                                id="svcTempl" name="svcTempl" onchange="serviceTemplateChanged();">
                                            <option value="select">--select--</option>
                                            <option value="1.1">1.1</option>
                                            <option value="1.2">1.2</option>
                                        </select>
                                    </div>
                                </div>
                            </div>

                            <div id="templateParameterTab">

                            </div>

                        </div>
                        <div class="modal-footer">
                            <button type="button" style="width:80px;" class="btn SDBtn" data-dismiss="modal"
                                    aria-hidden="true" id="createNS">
                                <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
                            </button>
                            <button type="button" style="width:80px;" class="btn button-previous SDBtn" data-dismiss="modal">
                                <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
                            </button>

                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</div>
<div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide"
     style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">
    <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_0">
        <label class="openo-ellipsis openo-select-blank-item"
               style="width: 100%; display: block; height: 20px;"></label>
    </div>
    <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_1">
        <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label>
    </div>
    <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_2">
        <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label>
    </div>
    <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_3">
        <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label>
    </div>
    <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_4">
        <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label>
    </div>
</div>


</body>
</html>