diff options
author | 2017-01-20 17:43:08 +0530 | |
---|---|---|
committer | 2017-01-20 17:43:08 +0530 | |
commit | f0b211f269df2b0bb10d5552d14aeb8991a750ed (patch) | |
tree | 1bd6ccf7503f8dad0785e03ce52937a55ae9555b /openo-portal/portal-monitor | |
parent | 68036a69f0dd0dad6b6a715d9850997d21f82940 (diff) |
GUI Code refactor
GUI Code refactor for the sun release code.
Issue-Id : CLIENT-11
Change-Id: I771cc25ff3c8ff7a4e939ce7baef7dd94a67974b
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'openo-portal/portal-monitor')
11 files changed, 2595 insertions, 2595 deletions
diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/css/dac.css b/openo-portal/portal-monitor/src/main/webapp/monitor/css/dac.css index 64e1f67d..f96692ec 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/css/dac.css +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/css/dac.css @@ -1,220 +1,220 @@ -/** - * Copyright 2016, CMCC 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. - */ -body { - color: #333; - font-size: 14px; - font-family: "Microsoft yahei", arial; - background-color: #ffffff !important; -} - - -a { - - text-decoration: none !important; -} - - - -.titlefont { - font-size: 16px; -} - - - -.container-fluid { - background-color: #fff; -} - - -div.separator div { - text-align: center; - line-height: 0; -} - -.row{ - margin-left: 0px; - margin-right: 0px; - margin-bottom: 10px; - margin-top: 10px; -} - - -p[tooltip], div[tooltip], td[tooltip], span[tooltip]{ - overflow: hidden; - text-overflow: ellipsis; - white-space:nowrap; -} - -.control-label .required { - color: #e02222; - font-size: 12px; - padding-left: 2px; -} - -.stats_box { - display: inline-block; - list-style: none outside none; - margin-left: 0; - margin-top: 10px; - padding: 0; - float: left; -} - - - -.stats_box .policyDiv{ - background: #eee; - box-shadow: 0 0 0 1px #f8f8f8 inset,0 0 0 1px #ccc; - display: inline-block; - line-height: 18px; - margin: 0 10px 10px; - padding: 0 10px; - float: left; - height: 105px; -} - - - -.sparkline { - min-width: 60px; - /* border-right: 1px solid #dcdcdc; */ - /* box-shadow: 1px 0 0 0 #fff; */ - float: left; - /* margin-right: 9pt; */ - padding: 0px 24px 0 34px; - height: 90px; -} - -.sparkline i{ -color:#5bc0de; -} - - - - - - - -.animated-panel { - -webkit-animation-duration: .5s; - animation-duration: .5s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -} - -/* -.panel-footer { - padding: 6px 15px; -}*/ - - -/*卡片面板样式*/ -.animated-panel { - -webkit-animation-duration: .5s; - animation-duration: .5s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -} - -.hpanel { - background-color: none; - border: none; - box-shadow: none; - margin-bottom: 35px; - -} - -.hpanel .panel-body { - border: 1px solid #e4e5e7; - border-radius: 2px; - padding: 20px; - position: relative; -} -.h-200 { - min-height: 220px; -} -.m-t-xl { - margin-top: 20px; -} -.text-success { - color: #0d638f; -} - -.hpanel_div_list{ - height:30px; -} - -.hpanel > .panel-footer { - color: inherit; - border: 1px solid #e4e5e7; - border-top: none; - font-size: 90%; - background: #f7f9fa; - height:40px; - padding: 5px 15px; -} - -.color_cloud{ - color:#BAB9B9; -} -.stats-title{ - -} - -h3{ - margin-top: 10px; - margin-bottom: 40px; - font-weight: 200; - color: #357ebd -} - -.blue-font{ - color:#428bca; -} - -.hpanel > .panel-footer .pull-right a{ - margin-left: 5px; -} - -.font-bold { - font-weight: 600; - margin-bottom: 15px; -} - -.hpanel_show{ - cursor: pointer; - background-color: #f7f9fa; -} - -.hpanel > .panel-footer .pull-right .btn { - min-width: 30px !important; -} - - -div[data-name="cond_zone"] div { - background-color: #fff; - margin-bottom: 15px; -} - -span.response_throbber { - background-image: url('../images/throbber.gif'); - width: 128px; - height: 16px; - display: block; - clear: none; - float: left; - margin-top: 50px; +/**
+ * Copyright 2016, CMCC 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.
+ */
+body {
+ color: #333;
+ font-size: 14px;
+ font-family: "Microsoft yahei", arial;
+ background-color: #ffffff !important;
+}
+
+
+a {
+
+ text-decoration: none !important;
+}
+
+
+
+.titlefont {
+ font-size: 16px;
+}
+
+
+
+.container-fluid {
+ background-color: #fff;
+}
+
+
+div.separator div {
+ text-align: center;
+ line-height: 0;
+}
+
+.row{
+ margin-left: 0px;
+ margin-right: 0px;
+ margin-bottom: 10px;
+ margin-top: 10px;
+}
+
+
+p[tooltip], div[tooltip], td[tooltip], span[tooltip]{
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space:nowrap;
+}
+
+.control-label .required {
+ color: #e02222;
+ font-size: 12px;
+ padding-left: 2px;
+}
+
+.stats_box {
+ display: inline-block;
+ list-style: none outside none;
+ margin-left: 0;
+ margin-top: 10px;
+ padding: 0;
+ float: left;
+}
+
+
+
+.stats_box .policyDiv{
+ background: #eee;
+ box-shadow: 0 0 0 1px #f8f8f8 inset,0 0 0 1px #ccc;
+ display: inline-block;
+ line-height: 18px;
+ margin: 0 10px 10px;
+ padding: 0 10px;
+ float: left;
+ height: 105px;
+}
+
+
+
+.sparkline {
+ min-width: 60px;
+ /* border-right: 1px solid #dcdcdc; */
+ /* box-shadow: 1px 0 0 0 #fff; */
+ float: left;
+ /* margin-right: 9pt; */
+ padding: 0px 24px 0 34px;
+ height: 90px;
+}
+
+.sparkline i{
+color:#5bc0de;
+}
+
+
+
+
+
+
+
+.animated-panel {
+ -webkit-animation-duration: .5s;
+ animation-duration: .5s;
+ -webkit-animation-fill-mode: both;
+ animation-fill-mode: both;
+}
+
+/*
+.panel-footer {
+ padding: 6px 15px;
+}*/
+
+
+/*卡片面板样式*/
+.animated-panel {
+ -webkit-animation-duration: .5s;
+ animation-duration: .5s;
+ -webkit-animation-fill-mode: both;
+ animation-fill-mode: both;
+}
+
+.hpanel {
+ background-color: none;
+ border: none;
+ box-shadow: none;
+ margin-bottom: 35px;
+
+}
+
+.hpanel .panel-body {
+ border: 1px solid #e4e5e7;
+ border-radius: 2px;
+ padding: 20px;
+ position: relative;
+}
+.h-200 {
+ min-height: 220px;
+}
+.m-t-xl {
+ margin-top: 20px;
+}
+.text-success {
+ color: #0d638f;
+}
+
+.hpanel_div_list{
+ height:30px;
+}
+
+.hpanel > .panel-footer {
+ color: inherit;
+ border: 1px solid #e4e5e7;
+ border-top: none;
+ font-size: 90%;
+ background: #f7f9fa;
+ height:40px;
+ padding: 5px 15px;
+}
+
+.color_cloud{
+ color:#BAB9B9;
+}
+.stats-title{
+
+}
+
+h3{
+ margin-top: 10px;
+ margin-bottom: 40px;
+ font-weight: 200;
+ color: #357ebd
+}
+
+.blue-font{
+ color:#428bca;
+}
+
+.hpanel > .panel-footer .pull-right a{
+ margin-left: 5px;
+}
+
+.font-bold {
+ font-weight: 600;
+ margin-bottom: 15px;
+}
+
+.hpanel_show{
+ cursor: pointer;
+ background-color: #f7f9fa;
+}
+
+.hpanel > .panel-footer .pull-right .btn {
+ min-width: 30px !important;
+}
+
+
+div[data-name="cond_zone"] div {
+ background-color: #fff;
+ margin-bottom: 15px;
+}
+
+span.response_throbber {
+ background-image: url('../images/throbber.gif');
+ width: 128px;
+ height: 16px;
+ display: block;
+ clear: none;
+ float: left;
+ margin-top: 50px;
}
\ No newline at end of file diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/css/monitorSetting.css b/openo-portal/portal-monitor/src/main/webapp/monitor/css/monitorSetting.css index 576dc18e..6ec0c701 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/css/monitorSetting.css +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/css/monitorSetting.css @@ -1,167 +1,167 @@ -/** - * Copyright 2016, CMCC 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. - */ -body { - color: #333; - font-family: "Microsoft yahei", Verdana, Arial, Helvetica, sans-serif !important; - padding: 0px !important; - margin: 0px !important; - direction: ltr; - background-color: #ffffff !important; -} - -a { - text-decoration: none !important; - cursor: pointer; -} - -.label{ - font-size: 80%; -} - -.row{ - margin-left: 0px; - margin-right: 0px; - padding-left: 0px; - padding-right: 0px; -} - -.chart_row{ - - padding-left:5px; - padding-right: 5px; -} - -.titlefont { - font-size: 16px; -} - -.container-fluid { - background-color: #fff; -} - -.blue-font { - color: #428bca; -} - - - -.separator-line { - height: 1px; - width: 100%; - background: #ddd; - overflow: hidden; - margin-bottom: 15px; - margin-top: 6px; - opacity: 0.6; -} - - - - - -.main { - - overflow: hidden; - margin-bottom: 10px; - border: 1px solid #e3e3e3; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - padding-top: 10px; - padding-right: 10px; -} - -.panel-tools { - display: inline-block; - float: right; - margin-top: 0; - padding: 0; - position: relative; -} - -.panel-tools a { - margin-left: 5px; - color: #9d9fa2; - cursor: pointer; -} - -.panel-tools a:hover{ - color: #34495e; - text-decoration: none; -} - - -.timeline-badge { - width: 100px; - height: 100px; - border-radius: 50% 50% 50% 50%; - text-align: center; - font-size: 50px; - line-height: 100px; - color: #fff; - background-color: #999999; -} -.timeline-badge.info { - background-color: #378AE8 !important; -} - -.collapseContent ul { - padding-left: 0; - list-style: none; -} - -.collapseContent ul li{ - height:40px; - font-size: 15px; -} - -#MonitorContent{ - padding-top: 30px; - padding-bottom: 20px; -} - -.border-right { - border-right: 1px solid #e4e5e7; -} - -.tipArea { - border-bottom: 1px solid #d4d4d4; - width: 85%; - text-align: center; - margin-bottom: 15px; - margin-left: 30px; - font-weight: bold; -} -.monitor-icon{ - - width:180px; - float:left; - padding-left:40px - -} - -.proxy_div{ - float:left; - padding-left:20px - -} - -#MonitorContent b{ - margin-right: 5px; +/**
+ * Copyright 2016, CMCC 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.
+ */
+body {
+ color: #333;
+ font-family: "Microsoft yahei", Verdana, Arial, Helvetica, sans-serif !important;
+ padding: 0px !important;
+ margin: 0px !important;
+ direction: ltr;
+ background-color: #ffffff !important;
+}
+
+a {
+ text-decoration: none !important;
+ cursor: pointer;
+}
+
+.label{
+ font-size: 80%;
+}
+
+.row{
+ margin-left: 0px;
+ margin-right: 0px;
+ padding-left: 0px;
+ padding-right: 0px;
+}
+
+.chart_row{
+
+ padding-left:5px;
+ padding-right: 5px;
+}
+
+.titlefont {
+ font-size: 16px;
+}
+
+.container-fluid {
+ background-color: #fff;
+}
+
+.blue-font {
+ color: #428bca;
+}
+
+
+
+.separator-line {
+ height: 1px;
+ width: 100%;
+ background: #ddd;
+ overflow: hidden;
+ margin-bottom: 15px;
+ margin-top: 6px;
+ opacity: 0.6;
+}
+
+
+
+
+
+.main {
+
+ overflow: hidden;
+ margin-bottom: 10px;
+ border: 1px solid #e3e3e3;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
+ padding-top: 10px;
+ padding-right: 10px;
+}
+
+.panel-tools {
+ display: inline-block;
+ float: right;
+ margin-top: 0;
+ padding: 0;
+ position: relative;
+}
+
+.panel-tools a {
+ margin-left: 5px;
+ color: #9d9fa2;
+ cursor: pointer;
+}
+
+.panel-tools a:hover{
+ color: #34495e;
+ text-decoration: none;
+}
+
+
+.timeline-badge {
+ width: 100px;
+ height: 100px;
+ border-radius: 50% 50% 50% 50%;
+ text-align: center;
+ font-size: 50px;
+ line-height: 100px;
+ color: #fff;
+ background-color: #999999;
+}
+.timeline-badge.info {
+ background-color: #378AE8 !important;
+}
+
+.collapseContent ul {
+ padding-left: 0;
+ list-style: none;
+}
+
+.collapseContent ul li{
+ height:40px;
+ font-size: 15px;
+}
+
+#MonitorContent{
+ padding-top: 30px;
+ padding-bottom: 20px;
+}
+
+.border-right {
+ border-right: 1px solid #e4e5e7;
+}
+
+.tipArea {
+ border-bottom: 1px solid #d4d4d4;
+ width: 85%;
+ text-align: center;
+ margin-bottom: 15px;
+ margin-left: 30px;
+ font-weight: bold;
+}
+.monitor-icon{
+
+ width:180px;
+ float:left;
+ padding-left:40px
+
+}
+
+.proxy_div{
+ float:left;
+ padding-left:20px
+
+}
+
+#MonitorContent b{
+ margin-right: 5px;
}
\ No newline at end of file diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/dacList.html b/openo-portal/portal-monitor/src/main/webapp/monitor/dacList.html index c0115c47..23d71865 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/dacList.html +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/dacList.html @@ -1,250 +1,250 @@ -<!-- - Copyright 2016, CMCC 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> -<head lang="en"> - <meta charset="UTF-8"> - <title></title> - <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/font-awesome/css/font-awesome.min.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/bootstrap/css/bootstrap.min.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/css/ngict-component.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/css/ZteIctIcons/style.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/css/animate.css"/> - <link rel="stylesheet" type="text/css" href="css/dac.css"/> - <style> - .ms-controller { - visibility: hidden - } - </style> -</head> -<body> -<div class="ms-controller container-fluid" ms-controller="dacController"> - -<div class="row" style=" margin-top: 15px;"> - <div class="col-xs-6 col-sm-12 col-md-6 col-lg-6"> - <span class=" titlefont" id="com_zte_openo_umc_monitor_monitorList_dac_manage" name_i18n="com_zte_openo_umc_monitor_ui_i18n">DAC Manage </span> - </div> - <div class="pull-right"> - <a href="#" ms-click="gotoMonitorPage()" ><i class="fa fa-reply "></i> - <span id="com_zte_openo_umc_monitor_return" name_i18n="com_zte_openo_umc_monitor_ui_i18n">return</span></a> - - </div> - - </div> - <div class="separator-line"></div> - - - <div id="dacDlg" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" > - <div class="modal-dialog"> - <div class="modal-content"> - <div class="content"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h4 id="myModalLabel" ms-text="dacDlgInfo.titleName"></h4> - </div> - <div class="modal-body"> - <div class="alert alert-info" ms-visible="server_rtn.info_block" ms-html="server_rtn.rtn_info"></div> - <div class="alert alert-danger " ms-visible="server_rtn.warning_block" ms-text="server_rtn.rtn_info"></div> - <form class="form-horizontal" id="dac_form" role="form"> - <div class="form-group"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_dac_label" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Node Label</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" ms-duplex="dacInfo.nodeLabel" name="nodeLabel" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - - <div class="form-group"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_dac_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n">IP Address</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="ipAddress" ms-duplex="dacInfo.ipAddress" class="form-control" ms-attr-disabled="dacDlgInfo.saveType=='update'"/> - <span class="help-block"></span> - </div> - </div> - - <div class="form-group"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_dac_note" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Note</span> - - </label> - <div class="col-sm-7"> - <textarea class="form-control" name="note" ms-duplex="dacInfo.note" rows="3"></textarea> - - </div> - </div> - - </form> - </div> - <div class="modal-footer"> - <!--button class="btn btn-success" type="submit" ms-click="testDAC()">Access Test</button--> - <button class="btn btn-primary" type="submit" ms-click="saveDAC()" id="com_zte_openo_umc_monitor_btn_save" name_i18n="com_zte_openo_umc_monitor_ui_i18n" ms-attr-disabled="vm.dacChecking==true">Save</button> - <button class="btn" data-dismiss="modal" aria-hidden="true" id="com_zte_openo_umc_monitor_btn_cancel" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Cancel</button> - </div> - </div> - - </div> - </div> - </div> - - <div class="row-fluid" data-name="cond_zone"> - <div class="col-sm-12"> - <button class="btn white radius_l" id="app-new-btn" ms-click="addDAC()" > - <i class=" ict-new"></i> <span id="com_zte_openo_umc_monitor_dac_register" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Register DAC</span> - </button> - </div> - </div> - - <span class="response_throbber" ms-visible="vm.dacLoading"></span> - - <div ms-visible="!vm.dacLoading"> - <div class="row" ms-each-dac="dacInfoArray"> - <div class="col-sm-4 col-md-4 animated-panel zoomIn" style="-webkit-animation-delay: 0.1s;" > - <div class="hpanel stats" > - - <div class="panel-body h-200" > - <div class="stats-icon pull-right"> - <i class="ict-it-net fa-5x color_cloud"></i> - </div> - <div class="m-t-xl"> - <h3>{{dac.nodeLabel}}</h3> - <div class="hpanel_div_list"><span class="font-bold" id="com_zte_openo_umc_monitor_dac_panel_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n">IP Address:</span><span>{{dac.ipAddress}}</span></div> - <div class="hpanel_div_list"><span class="font-bold" id="com_zte_openo_umc_monitor_dac_panel_note" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Note:</span><span>{{dac.note}}</span> </div> - </div> - </div> - - <div class="panel-footer"> - <div class="pull-right"> - <a class="btn btn-default btn-sm" ms-click="updateDAC(dac)"><i class="fa fa-pencil-square-o fa-lg"></i></a> - <a class="btn btn-default btn-sm" ms-click="delDAC(dac.oid)"><i class="fa fa-trash-o fa-lg"> </i></a> - </div> - </div> - </div> - </div> - - - - </div> - - - <div class="row-fluid"> - <div class="col-md-12" style="padding-left:0px;"> - <div class="pull-left"> - <small><span id="com_zte_openo_umc_monitor_monitorList_total" name_i18n="com_zte_openo_umc_monitor_ui_i18n">total</span> - <span ms-text="dacInfoArray.size()"></span> - <span id="com_zte_openo_umc_monitor_monitorList_records" name_i18n="com_zte_openo_umc_monitor_ui_i18n">records</span> - </small> - </div> - </div> - </div> - </div> - -</div> - -<script type="text/javascript" src="/openoui/common/thirdparty/jquery/jquery-1.10.2.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap/js/bootstrap.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/jquery-validation/js/jquery.validate.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/bootbox/bootbox.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap-growl/bootstrap-growl.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/avalon/avalon.js"></script> -<script type="text/javascript" src="/openoui/common/js/tools.js"></script> -<script type="text/javascript" src="/openoui/common/js/core/hk.min.js" ></script> -<script type="text/javascript" src="js/monitorSettingUtil.js"></script> -<script type="text/javascript" src="js/dacController.js"></script> -<script type="text/javascript" src="js/loadi18nApp_ngict-umc-monitor.js"></script> -<script> - var lang= getLanguage(); - loadPropertiesSideMenu(lang, 'umc-monitor-iui-i18n', 'i18n/'); - - jQuery.validator.addMethod("ip", function(value, element) { - return this.optional(element) || /^(([-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))\.)(([0-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))\.){2}([1-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))$/.test(value); - }, $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_ipaddress_format_errInfo')); - - var form = $('#dac_form'); - var error = $('.alert-danger', form); - var success = $('.alert-success', form); - - form.validate({ - doNotHideMessage: true, //this option enables to show the error/success messages on tab switch. - errorElement: 'span', //default input error message container - errorClass: 'help-block', // default input error message class - focusInvalid: false, // do not focus the last invalid input - rules: { - - nodeLabel:{ - required: true, - maxlength:50 - }, - ipAddress:{ - required: true, - ip:true, - maxlength:20 - } - }, - messages: { - nodeLabel:{ - required: $.i18n.prop('com_zte_openo_umc_monitor_dac_label_empty_errInfo') - }, - ipAddress:{ - required: $.i18n.prop('com_zte_openo_umc_monitor_dac_ipaddress_empty_errInfo') - - }, - - }, - errorPlacement: function (error, element) { // render error placement for each input type - error.insertAfter(element); // for other inputs, just perform default behavior - }, - - invalidHandler: function (event, validator) { //display error alert on form submit - success.hide(); - error.show(); - //ZteFrameWork.scrollTo(error, -200); - }, - - highlight: function (element) { // hightlight error inputs - $(element) - .closest('.form-group').removeClass('has-success').addClass('has-error'); // set error class to the control group - }, - - unhighlight: function (element) { // revert the change done by hightlight - $(element) - .closest('.form-group').removeClass('has-error'); // set error class to the control group - }, - - success: function (label) { - label - .addClass('valid') // mark the current input as valid and display OK icon - .closest('.form-group').removeClass('has-error'); // set success class to the control group - }, - submitHandler: function (form) { - success.show(); - error.hide(); - //add here some ajax code to submit your form or just call form.submit() if you want to submit the form without ajax - } - - }); - - -</script> - -</body> +<!--
+ Copyright 2016, CMCC 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>
+<head lang="en">
+ <meta charset="UTF-8">
+ <title></title>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/font-awesome/css/font-awesome.min.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/bootstrap/css/bootstrap.min.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/css/ngict-component.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/css/ZteIctIcons/style.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/css/animate.css"/>
+ <link rel="stylesheet" type="text/css" href="css/dac.css"/>
+ <style>
+ .ms-controller {
+ visibility: hidden
+ }
+ </style>
+</head>
+<body>
+<div class="ms-controller container-fluid" ms-controller="dacController">
+
+<div class="row" style=" margin-top: 15px;">
+ <div class="col-xs-6 col-sm-12 col-md-6 col-lg-6">
+ <span class=" titlefont" id="com_zte_openo_umc_monitor_monitorList_dac_manage" name_i18n="com_zte_openo_umc_monitor_ui_i18n">DAC Manage </span>
+ </div>
+ <div class="pull-right">
+ <a href="#" ms-click="gotoMonitorPage()" ><i class="fa fa-reply "></i>
+ <span id="com_zte_openo_umc_monitor_return" name_i18n="com_zte_openo_umc_monitor_ui_i18n">return</span></a>
+
+ </div>
+
+ </div>
+ <div class="separator-line"></div>
+
+
+ <div id="dacDlg" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
+ <h4 id="myModalLabel" ms-text="dacDlgInfo.titleName"></h4>
+ </div>
+ <div class="modal-body">
+ <div class="alert alert-info" ms-visible="server_rtn.info_block" ms-html="server_rtn.rtn_info"></div>
+ <div class="alert alert-danger " ms-visible="server_rtn.warning_block" ms-text="server_rtn.rtn_info"></div>
+ <form class="form-horizontal" id="dac_form" role="form">
+ <div class="form-group">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_dac_label" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Node Label</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" ms-duplex="dacInfo.nodeLabel" name="nodeLabel" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_dac_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n">IP Address</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="ipAddress" ms-duplex="dacInfo.ipAddress" class="form-control" ms-attr-disabled="dacDlgInfo.saveType=='update'"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_dac_note" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Note</span>
+
+ </label>
+ <div class="col-sm-7">
+ <textarea class="form-control" name="note" ms-duplex="dacInfo.note" rows="3"></textarea>
+
+ </div>
+ </div>
+
+ </form>
+ </div>
+ <div class="modal-footer">
+ <!--button class="btn btn-success" type="submit" ms-click="testDAC()">Access Test</button-->
+ <button class="btn btn-primary" type="submit" ms-click="saveDAC()" id="com_zte_openo_umc_monitor_btn_save" name_i18n="com_zte_openo_umc_monitor_ui_i18n" ms-attr-disabled="vm.dacChecking==true">Save</button>
+ <button class="btn" data-dismiss="modal" aria-hidden="true" id="com_zte_openo_umc_monitor_btn_cancel" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Cancel</button>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ </div>
+
+ <div class="row-fluid" data-name="cond_zone">
+ <div class="col-sm-12">
+ <button class="btn white radius_l" id="app-new-btn" ms-click="addDAC()" >
+ <i class=" ict-new"></i> <span id="com_zte_openo_umc_monitor_dac_register" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Register DAC</span>
+ </button>
+ </div>
+ </div>
+
+ <span class="response_throbber" ms-visible="vm.dacLoading"></span>
+
+ <div ms-visible="!vm.dacLoading">
+ <div class="row" ms-each-dac="dacInfoArray">
+ <div class="col-sm-4 col-md-4 animated-panel zoomIn" style="-webkit-animation-delay: 0.1s;" >
+ <div class="hpanel stats" >
+
+ <div class="panel-body h-200" >
+ <div class="stats-icon pull-right">
+ <i class="ict-it-net fa-5x color_cloud"></i>
+ </div>
+ <div class="m-t-xl">
+ <h3>{{dac.nodeLabel}}</h3>
+ <div class="hpanel_div_list"><span class="font-bold" id="com_zte_openo_umc_monitor_dac_panel_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n">IP Address:</span><span>{{dac.ipAddress}}</span></div>
+ <div class="hpanel_div_list"><span class="font-bold" id="com_zte_openo_umc_monitor_dac_panel_note" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Note:</span><span>{{dac.note}}</span> </div>
+ </div>
+ </div>
+
+ <div class="panel-footer">
+ <div class="pull-right">
+ <a class="btn btn-default btn-sm" ms-click="updateDAC(dac)"><i class="fa fa-pencil-square-o fa-lg"></i></a>
+ <a class="btn btn-default btn-sm" ms-click="delDAC(dac.oid)"><i class="fa fa-trash-o fa-lg"> </i></a>
+ </div>
+ </div>
+ </div>
+ </div>
+
+
+
+ </div>
+
+
+ <div class="row-fluid">
+ <div class="col-md-12" style="padding-left:0px;">
+ <div class="pull-left">
+ <small><span id="com_zte_openo_umc_monitor_monitorList_total" name_i18n="com_zte_openo_umc_monitor_ui_i18n">total</span>
+ <span ms-text="dacInfoArray.size()"></span>
+ <span id="com_zte_openo_umc_monitor_monitorList_records" name_i18n="com_zte_openo_umc_monitor_ui_i18n">records</span>
+ </small>
+ </div>
+ </div>
+ </div>
+ </div>
+
+</div>
+
+<script type="text/javascript" src="/openoui/common/thirdparty/jquery/jquery-1.10.2.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap/js/bootstrap.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/jquery-validation/js/jquery.validate.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/bootbox/bootbox.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap-growl/bootstrap-growl.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/avalon/avalon.js"></script>
+<script type="text/javascript" src="/openoui/common/js/tools.js"></script>
+<script type="text/javascript" src="/openoui/common/js/core/hk.min.js" ></script>
+<script type="text/javascript" src="js/monitorSettingUtil.js"></script>
+<script type="text/javascript" src="js/dacController.js"></script>
+<script type="text/javascript" src="js/loadi18nApp_ngict-umc-monitor.js"></script>
+<script>
+ var lang= getLanguage();
+ loadPropertiesSideMenu(lang, 'umc-monitor-iui-i18n', 'i18n/');
+
+ jQuery.validator.addMethod("ip", function(value, element) {
+ return this.optional(element) || /^(([-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))\.)(([0-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))\.){2}([1-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))$/.test(value);
+ }, $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_ipaddress_format_errInfo'));
+
+ var form = $('#dac_form');
+ var error = $('.alert-danger', form);
+ var success = $('.alert-success', form);
+
+ form.validate({
+ doNotHideMessage: true, //this option enables to show the error/success messages on tab switch.
+ errorElement: 'span', //default input error message container
+ errorClass: 'help-block', // default input error message class
+ focusInvalid: false, // do not focus the last invalid input
+ rules: {
+
+ nodeLabel:{
+ required: true,
+ maxlength:50
+ },
+ ipAddress:{
+ required: true,
+ ip:true,
+ maxlength:20
+ }
+ },
+ messages: {
+ nodeLabel:{
+ required: $.i18n.prop('com_zte_openo_umc_monitor_dac_label_empty_errInfo')
+ },
+ ipAddress:{
+ required: $.i18n.prop('com_zte_openo_umc_monitor_dac_ipaddress_empty_errInfo')
+
+ },
+
+ },
+ errorPlacement: function (error, element) { // render error placement for each input type
+ error.insertAfter(element); // for other inputs, just perform default behavior
+ },
+
+ invalidHandler: function (event, validator) { //display error alert on form submit
+ success.hide();
+ error.show();
+ //ZteFrameWork.scrollTo(error, -200);
+ },
+
+ highlight: function (element) { // hightlight error inputs
+ $(element)
+ .closest('.form-group').removeClass('has-success').addClass('has-error'); // set error class to the control group
+ },
+
+ unhighlight: function (element) { // revert the change done by hightlight
+ $(element)
+ .closest('.form-group').removeClass('has-error'); // set error class to the control group
+ },
+
+ success: function (label) {
+ label
+ .addClass('valid') // mark the current input as valid and display OK icon
+ .closest('.form-group').removeClass('has-error'); // set success class to the control group
+ },
+ submitHandler: function (form) {
+ success.show();
+ error.hide();
+ //add here some ajax code to submit your form or just call form.submit() if you want to submit the form without ajax
+ }
+
+ });
+
+
+</script>
+
+</body>
</html>
\ No newline at end of file diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/i18n/umc-monitor-iui-i18n-en-US.properties b/openo-portal/portal-monitor/src/main/webapp/monitor/i18n/umc-monitor-iui-i18n-en-US.properties index c8607f41..81ecbb81 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/i18n/umc-monitor-iui-i18n-en-US.properties +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/i18n/umc-monitor-iui-i18n-en-US.properties @@ -1,102 +1,102 @@ -# -# Copyright 2016, CMCC 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. -# -com_zte_openo_umc_monitor_monitorList_titeName=Monitor Para List -com_zte_openo_umc_monitor_monitorList_dac_manage= DAC Manage -com_zte_openo_umc_monitor_monitorList_monitor_sn=SN -com_zte_openo_umc_monitor_monitorList_monitor_name=Display Name -com_zte_openo_umc_monitor_monitorList_monitor_ipaddress=IP Address -com_zte_openo_umc_monitor_monitorList_monitor_type=Type -com_zte_openo_umc_monitor_monitorList_total=total -com_zte_openo_umc_monitor_monitorList_records=records -com_zte_openo_umc_monitor_monitorList_monitor_dacip=DAC -com_zte_openo_umc_monitor_monitorList_monitor_opr=Operation - - -com_zte_openo_umc_monitor_return=return -com_zte_openo_umc_monitor_dac_label=Node Label -com_zte_openo_umc_monitor_dac_ipaddress=IP Address -com_zte_openo_umc_monitor_dac_note=Note -com_zte_openo_umc_monitor_btn_save=Save -com_zte_openo_umc_monitor_btn_cancel=Cancel -com_zte_openo_umc_monitor_dac_register=Register DAC -com_zte_openo_umc_monitor_dac_edit=Edit DAC -com_zte_openo_umc_monitor_dac_panel_ipaddress=IP Address: -com_zte_openo_umc_monitor_dac_panel_note=Note: - -com_zte_openo_umc_monitor_dac_register_repeat_errInfo=DAC IP: {0} has been registerd -com_zte_openo_umc_monitor_dac_register_check_Info=check IPAddress and save DAC ,please wait -com_zte_openo_umc_monitor_dac_register_successInfo=DAC save success -com_zte_openo_umc_monitor_dac_update_successInfo=DAC update success -com_zte_openo_umc_monitor_dac_delete_sureInfo=Are you sure delete this DAC? -com_zte_openo_umc_monitor_dac_delete_successInfo=DAC delete success -com_zte_openo_umc_monitor_dac_query_failInfo=query DAC Info fail: -com_zte_openo_umc_monitor_dac_save_failInfo=DAC save fail: -com_zte_openo_umc_monitor_dac_delete_failInfo=DAC delete fail: -com_zte_openo_umc_monitor_tip=Tip: -com_zte_openo_umc_monitor_dac_label_empty_errInfo=please input Node Label -com_zte_openo_umc_monitor_dac_ipaddress_empty_errInfo=please input IP address - -com_zte_openo_umc_monitor_monitorsetting_delete=Delete -com_zte_openo_umc_monitor_monitorsetting_ipaddress=IP Address -com_zte_openo_umc_monitor_monitorsetting_dac=DAC -com_zte_openo_umc_monitor_monitorsetting_user=User -com_zte_openo_umc_monitor_monitorsetting_password=Password -com_zte_openo_umc_monitor_monitorsetting_protocol=Protocol -com_zte_openo_umc_monitor_monitorsetting_port=Port -com_zte_openo_umc_monitor_monitorsetting_version=Version -com_zte_openo_umc_monitor_monitorsetting_snmpport=SNMP Port -com_zte_openo_umc_monitor_monitorsetting_snmpversion=SNMP Version -com_zte_openo_umc_monitor_monitorsetting_snmpcommunity=SNMP Community - -com_zte_openo_umc_monitor_monitorsetting_titlename=Monitor Para Setting -com_zte_openo_umc_monitor_btn_monitorset=Monitor Set -com_zte_openo_umc_monitor_monitorsetting_ipaddress_format_errInfo=Please input the correct IP address -com_zte_openo_umc_monitor_monitorsetting_user_empty_errInfo=please input Login User -com_zte_openo_umc_monitor_monitorsetting_password_empty_errInfo=please input Login Password -com_zte_openo_umc_monitor_monitorsetting_dac_empty_errInfo=please select DAC IP -com_zte_openo_umc_monitor_monitorsetting_protocol_empty_errInfo=please select Login Protocol -com_zte_openo_umc_monitor_monitorsetting_ipaddress_empty_errInfo=please input IP address -com_zte_openo_umc_monitor_monitorsetting_port_empty_errInfo=please input Login Port -com_zte_openo_umc_monitor_monitorsetting_name_empty_errInfo=please input Node Label - -com_zte_openo_umc_monitor_monitorsetting_query_list_errInfo=query monitor List fail -com_zte_openo_umc_monitor_monitorsetting_query_monitor_errInfo=query monitor Instance fail -com_zte_openo_umc_monitor_monitorsetting_monitor_checkInfo=Monitor Set saveing...,please wait -com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo=Monitor Set save fail -com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo=Monitor Set save success -com_zte_openo_umc_monitor_monitorsetting_dac_query_failInfo=query DAC Info fail: -com_zte_openo_umc_monitor_monitorsetting_task_checkInfo=Monitor Task updating...,please wait -com_zte_openo_umc_monitor_monitorsetting_monitor_task_failInfo=Monitor Task update fail: - - -openo-umc-monitor-iui-table-sLengthMenu=View _MENU_ records -openo-umc-monitor-iui-table-sZeroRecords=No matching records found -openo-umc-monitor-iui-table-sInfo= | Found total _TOTAL_ records -openo-umc-monitor-iui-table-sInfoEmpty=No records found to show -openo-umc-monitor-iui-table-sGroupActions=_TOTAL_ records selected: -openo-umc-monitor-iui-table-sAjaxRequestGeneralError=Could not complete request. Please check your internet connection. -openo-umc-monitor-iui-table-sEmptyTable=No data available in table -openo-umc-monitor-iui-table-sPrevious=Prev -openo-umc-monitor-iui-table-sNext=Next -openo-umc-monitor-iui-table-sPage=Page -openo-umc-monitor-iui-table-sPageOf=of -com_zte_openo_umc_monitor_monitorsetting_agentIP=Agent Ip -com_zte_openo_umc_monitor_monitorsetting_agentUsername=Agent Username -com_zte_openo_umc_monitor_monitorsetting_agentPassword=Agent Password -com_zte_openo_umc_monitor_monitorsetting_agentProtocol=Agent Protocol -com_zte_openo_umc_monitor_monitorsetting_agentPort=Agent Port -com_zte_openo_umc_monitor_monitorsetting_ppMaxCount=PP MaxCount - +#
+# Copyright 2016, CMCC 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.
+#
+com_zte_openo_umc_monitor_monitorList_titeName=Monitor Para List
+com_zte_openo_umc_monitor_monitorList_dac_manage= DAC Manage
+com_zte_openo_umc_monitor_monitorList_monitor_sn=SN
+com_zte_openo_umc_monitor_monitorList_monitor_name=Display Name
+com_zte_openo_umc_monitor_monitorList_monitor_ipaddress=IP Address
+com_zte_openo_umc_monitor_monitorList_monitor_type=Type
+com_zte_openo_umc_monitor_monitorList_total=total
+com_zte_openo_umc_monitor_monitorList_records=records
+com_zte_openo_umc_monitor_monitorList_monitor_dacip=DAC
+com_zte_openo_umc_monitor_monitorList_monitor_opr=Operation
+
+
+com_zte_openo_umc_monitor_return=return
+com_zte_openo_umc_monitor_dac_label=Node Label
+com_zte_openo_umc_monitor_dac_ipaddress=IP Address
+com_zte_openo_umc_monitor_dac_note=Note
+com_zte_openo_umc_monitor_btn_save=Save
+com_zte_openo_umc_monitor_btn_cancel=Cancel
+com_zte_openo_umc_monitor_dac_register=Register DAC
+com_zte_openo_umc_monitor_dac_edit=Edit DAC
+com_zte_openo_umc_monitor_dac_panel_ipaddress=IP Address:
+com_zte_openo_umc_monitor_dac_panel_note=Note:
+
+com_zte_openo_umc_monitor_dac_register_repeat_errInfo=DAC IP: {0} has been registerd
+com_zte_openo_umc_monitor_dac_register_check_Info=check IPAddress and save DAC ,please wait
+com_zte_openo_umc_monitor_dac_register_successInfo=DAC save success
+com_zte_openo_umc_monitor_dac_update_successInfo=DAC update success
+com_zte_openo_umc_monitor_dac_delete_sureInfo=Are you sure delete this DAC?
+com_zte_openo_umc_monitor_dac_delete_successInfo=DAC delete success
+com_zte_openo_umc_monitor_dac_query_failInfo=query DAC Info fail:
+com_zte_openo_umc_monitor_dac_save_failInfo=DAC save fail:
+com_zte_openo_umc_monitor_dac_delete_failInfo=DAC delete fail:
+com_zte_openo_umc_monitor_tip=Tip:
+com_zte_openo_umc_monitor_dac_label_empty_errInfo=please input Node Label
+com_zte_openo_umc_monitor_dac_ipaddress_empty_errInfo=please input IP address
+
+com_zte_openo_umc_monitor_monitorsetting_delete=Delete
+com_zte_openo_umc_monitor_monitorsetting_ipaddress=IP Address
+com_zte_openo_umc_monitor_monitorsetting_dac=DAC
+com_zte_openo_umc_monitor_monitorsetting_user=User
+com_zte_openo_umc_monitor_monitorsetting_password=Password
+com_zte_openo_umc_monitor_monitorsetting_protocol=Protocol
+com_zte_openo_umc_monitor_monitorsetting_port=Port
+com_zte_openo_umc_monitor_monitorsetting_version=Version
+com_zte_openo_umc_monitor_monitorsetting_snmpport=SNMP Port
+com_zte_openo_umc_monitor_monitorsetting_snmpversion=SNMP Version
+com_zte_openo_umc_monitor_monitorsetting_snmpcommunity=SNMP Community
+
+com_zte_openo_umc_monitor_monitorsetting_titlename=Monitor Para Setting
+com_zte_openo_umc_monitor_btn_monitorset=Monitor Set
+com_zte_openo_umc_monitor_monitorsetting_ipaddress_format_errInfo=Please input the correct IP address
+com_zte_openo_umc_monitor_monitorsetting_user_empty_errInfo=please input Login User
+com_zte_openo_umc_monitor_monitorsetting_password_empty_errInfo=please input Login Password
+com_zte_openo_umc_monitor_monitorsetting_dac_empty_errInfo=please select DAC IP
+com_zte_openo_umc_monitor_monitorsetting_protocol_empty_errInfo=please select Login Protocol
+com_zte_openo_umc_monitor_monitorsetting_ipaddress_empty_errInfo=please input IP address
+com_zte_openo_umc_monitor_monitorsetting_port_empty_errInfo=please input Login Port
+com_zte_openo_umc_monitor_monitorsetting_name_empty_errInfo=please input Node Label
+
+com_zte_openo_umc_monitor_monitorsetting_query_list_errInfo=query monitor List fail
+com_zte_openo_umc_monitor_monitorsetting_query_monitor_errInfo=query monitor Instance fail
+com_zte_openo_umc_monitor_monitorsetting_monitor_checkInfo=Monitor Set saveing...,please wait
+com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo=Monitor Set save fail
+com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo=Monitor Set save success
+com_zte_openo_umc_monitor_monitorsetting_dac_query_failInfo=query DAC Info fail:
+com_zte_openo_umc_monitor_monitorsetting_task_checkInfo=Monitor Task updating...,please wait
+com_zte_openo_umc_monitor_monitorsetting_monitor_task_failInfo=Monitor Task update fail:
+
+
+openo-umc-monitor-iui-table-sLengthMenu=View _MENU_ records
+openo-umc-monitor-iui-table-sZeroRecords=No matching records found
+openo-umc-monitor-iui-table-sInfo= | Found total _TOTAL_ records
+openo-umc-monitor-iui-table-sInfoEmpty=No records found to show
+openo-umc-monitor-iui-table-sGroupActions=_TOTAL_ records selected:
+openo-umc-monitor-iui-table-sAjaxRequestGeneralError=Could not complete request. Please check your internet connection.
+openo-umc-monitor-iui-table-sEmptyTable=No data available in table
+openo-umc-monitor-iui-table-sPrevious=Prev
+openo-umc-monitor-iui-table-sNext=Next
+openo-umc-monitor-iui-table-sPage=Page
+openo-umc-monitor-iui-table-sPageOf=of
+com_zte_openo_umc_monitor_monitorsetting_agentIP=Agent Ip
+com_zte_openo_umc_monitor_monitorsetting_agentUsername=Agent Username
+com_zte_openo_umc_monitor_monitorsetting_agentPassword=Agent Password
+com_zte_openo_umc_monitor_monitorsetting_agentProtocol=Agent Protocol
+com_zte_openo_umc_monitor_monitorsetting_agentPort=Agent Port
+com_zte_openo_umc_monitor_monitorsetting_ppMaxCount=PP MaxCount
+
diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/images/License.txt b/openo-portal/portal-monitor/src/main/webapp/monitor/images/License.txt index 8e698ecb..d1ce787a 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/images/License.txt +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/images/License.txt @@ -1,362 +1,362 @@ -THIS LICENSE FILE CONTAINS THE LICENSE APPLICABLE DEPENDING ON THE TYPE OF CONTRIBUTIONS. - -APACHE LICENSE 2 IS APPLICABLE FOR SOURCE CODE, CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL FOR DOCUMENTATION - -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - - -Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - -Attribution 4.0 International - -https://creativecommons.org/licenses/by/4.0/legalcode - -Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an "as-is" basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees -Creative Commons Attribution 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - c. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - d. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - e. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - f. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - g. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - h. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - i. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - j. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - k. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - -Section 2 -- Scope. - - a. License grant. - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - a. reproduce and Share the Licensed Material, in whole or - in part; and - b. produce, reproduce, and Share Adapted Material. - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - 3. Term. The term of this Public License is specified in Section - 6(a). - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - 5. Downstream recipients. - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - b. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - b. Other rights. - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - 2. Patent and trademark rights are not licensed under this - Public License. - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties. - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the following conditions. - - a. Attribution. - 1. If You Share the Licensed Material (including in modified - form), You must: - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - ii. a copyright notice; - iii. a notice that refers to this Public License; - iv. a notice that refers to the disclaimer of - warranties; - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - 4. If You Share Adapted Material You produce, the Adapter's - License You apply must not prevent recipients of the Adapted - Material from complying with this Public License. - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database; - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material; and - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. -For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - 2. upon express reinstatement by the Licensor. - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. -Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the "Licensor." The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark "Creative Commons" or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. - +THIS LICENSE FILE CONTAINS THE LICENSE APPLICABLE DEPENDING ON THE TYPE OF CONTRIBUTIONS.
+
+APACHE LICENSE 2 IS APPLICABLE FOR SOURCE CODE, CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL FOR DOCUMENTATION
+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+
+Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License.
+
+Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License.
+
+Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution.
+
+You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions.
+
+Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks.
+
+This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty.
+
+Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability.
+
+In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability.
+
+While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+Attribution 4.0 International
+
+https://creativecommons.org/licenses/by/4.0/legalcode
+
+Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an "as-is" basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
+
+Using Creative Commons Public Licenses
+
+Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
+
+ Considerations for licensors: Our public licenses are
+ intended for use by those authorized to give the public
+ permission to use material in ways otherwise restricted by
+ copyright and certain other rights. Our licenses are
+ irrevocable. Licensors should read and understand the terms
+ and conditions of the license they choose before applying it.
+ Licensors should also secure all rights necessary before
+ applying our licenses so that the public can reuse the
+ material as expected. Licensors should clearly mark any
+ material not subject to the license. This includes other CC-
+ licensed material, or material used under an exception or
+ limitation to copyright. More considerations for licensors:
+ wiki.creativecommons.org/Considerations_for_licensors
+ Considerations for the public: By using one of our public
+ licenses, a licensor grants the public permission to use the
+ licensed material under specified terms and conditions. If
+ the licensor's permission is not necessary for any reason--for
+ example, because of any applicable exception or limitation to
+ copyright--then that use is not regulated by the license. Our
+ licenses grant only permissions under copyright and certain
+ other rights that a licensor has authority to grant. Use of
+ the licensed material may still be restricted for other
+ reasons, including because others have copyright or other
+ rights in the material. A licensor may make special requests,
+ such as asking that all changes be marked or described.
+ Although not required by our licenses, you are encouraged to
+ respect those requests where reasonable. More_considerations
+ for the public:
+ wiki.creativecommons.org/Considerations_for_licensees
+Creative Commons Attribution 4.0 International Public License
+
+By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
+
+
+Section 1 -- Definitions.
+
+ a. Adapted Material means material subject to Copyright and Similar
+ Rights that is derived from or based upon the Licensed Material
+ and in which the Licensed Material is translated, altered,
+ arranged, transformed, or otherwise modified in a manner requiring
+ permission under the Copyright and Similar Rights held by the
+ Licensor. For purposes of this Public License, where the Licensed
+ Material is a musical work, performance, or sound recording,
+ Adapted Material is always produced where the Licensed Material is
+ synched in timed relation with a moving image.
+ b. Adapter's License means the license You apply to Your Copyright
+ and Similar Rights in Your contributions to Adapted Material in
+ accordance with the terms and conditions of this Public License.
+ c. Copyright and Similar Rights means copyright and/or similar rights
+ closely related to copyright including, without limitation,
+ performance, broadcast, sound recording, and Sui Generis Database
+ Rights, without regard to how the rights are labeled or
+ categorized. For purposes of this Public License, the rights
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
+ Rights.
+ d. Effective Technological Measures means those measures that, in the
+ absence of proper authority, may not be circumvented under laws
+ fulfilling obligations under Article 11 of the WIPO Copyright
+ Treaty adopted on December 20, 1996, and/or similar international
+ agreements.
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
+ any other exception or limitation to Copyright and Similar Rights
+ that applies to Your use of the Licensed Material.
+ f. Licensed Material means the artistic or literary work, database,
+ or other material to which the Licensor applied this Public
+ License.
+ g. Licensed Rights means the rights granted to You subject to the
+ terms and conditions of this Public License, which are limited to
+ all Copyright and Similar Rights that apply to Your use of the
+ Licensed Material and that the Licensor has authority to license.
+ h. Licensor means the individual(s) or entity(ies) granting rights
+ under this Public License.
+ i. Share means to provide material to the public by any means or
+ process that requires permission under the Licensed Rights, such
+ as reproduction, public display, public performance, distribution,
+ dissemination, communication, or importation, and to make material
+ available to the public including in ways that members of the
+ public may access the material from a place and at a time
+ individually chosen by them.
+ j. Sui Generis Database Rights means rights other than copyright
+ resulting from Directive 96/9/EC of the European Parliament and of
+ the Council of 11 March 1996 on the legal protection of databases,
+ as amended and/or succeeded, as well as other essentially
+ equivalent rights anywhere in the world.
+ k. You means the individual or entity exercising the Licensed Rights
+ under this Public License. Your has a corresponding meaning.
+
+Section 2 -- Scope.
+
+ a. License grant.
+ 1. Subject to the terms and conditions of this Public License,
+ the Licensor hereby grants You a worldwide, royalty-free,
+ non-sublicensable, non-exclusive, irrevocable license to
+ exercise the Licensed Rights in the Licensed Material to:
+ a. reproduce and Share the Licensed Material, in whole or
+ in part; and
+ b. produce, reproduce, and Share Adapted Material.
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
+ Exceptions and Limitations apply to Your use, this Public
+ License does not apply, and You do not need to comply with
+ its terms and conditions.
+ 3. Term. The term of this Public License is specified in Section
+ 6(a).
+ 4. Media and formats; technical modifications allowed. The
+ Licensor authorizes You to exercise the Licensed Rights in
+ all media and formats whether now known or hereafter created,
+ and to make technical modifications necessary to do so. The
+ Licensor waives and/or agrees not to assert any right or
+ authority to forbid You from making technical modifications
+ necessary to exercise the Licensed Rights, including
+ technical modifications necessary to circumvent Effective
+ Technological Measures. For purposes of this Public License,
+ simply making modifications authorized by this Section 2(a)
+ (4) never produces Adapted Material.
+ 5. Downstream recipients.
+ a. Offer from the Licensor -- Licensed Material. Every
+ recipient of the Licensed Material automatically
+ receives an offer from the Licensor to exercise the
+ Licensed Rights under the terms and conditions of this
+ Public License.
+ b. No downstream restrictions. You may not offer or impose
+ any additional or different terms or conditions on, or
+ apply any Effective Technological Measures to, the
+ Licensed Material if doing so restricts exercise of the
+ Licensed Rights by any recipient of the Licensed
+ Material.
+ 6. No endorsement. Nothing in this Public License constitutes or
+ may be construed as permission to assert or imply that You
+ are, or that Your use of the Licensed Material is, connected
+ with, or sponsored, endorsed, or granted official status by,
+ the Licensor or others designated to receive attribution as
+ provided in Section 3(a)(1)(A)(i).
+ b. Other rights.
+ 1. Moral rights, such as the right of integrity, are not
+ licensed under this Public License, nor are publicity,
+ privacy, and/or other similar personality rights; however, to
+ the extent possible, the Licensor waives and/or agrees not to
+ assert any such rights held by the Licensor to the limited
+ extent necessary to allow You to exercise the Licensed
+ Rights, but not otherwise.
+ 2. Patent and trademark rights are not licensed under this
+ Public License.
+ 3. To the extent possible, the Licensor waives any right to
+ collect royalties from You for the exercise of the Licensed
+ Rights, whether directly or through a collecting society
+ under any voluntary or waivable statutory or compulsory
+ licensing scheme. In all other cases the Licensor expressly
+ reserves any right to collect such royalties.
+
+Section 3 -- License Conditions.
+
+Your exercise of the Licensed Rights is expressly made subject to the following conditions.
+
+ a. Attribution.
+ 1. If You Share the Licensed Material (including in modified
+ form), You must:
+ a. retain the following if it is supplied by the Licensor
+ with the Licensed Material:
+ i. identification of the creator(s) of the Licensed
+ Material and any others designated to receive
+ attribution, in any reasonable manner requested by
+ the Licensor (including by pseudonym if
+ designated);
+ ii. a copyright notice;
+ iii. a notice that refers to this Public License;
+ iv. a notice that refers to the disclaimer of
+ warranties;
+ v. a URI or hyperlink to the Licensed Material to the
+ extent reasonably practicable;
+ b. indicate if You modified the Licensed Material and
+ retain an indication of any previous modifications; and
+ c. indicate the Licensed Material is licensed under this
+ Public License, and include the text of, or the URI or
+ hyperlink to, this Public License.
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
+ reasonable manner based on the medium, means, and context in
+ which You Share the Licensed Material. For example, it may be
+ reasonable to satisfy the conditions by providing a URI or
+ hyperlink to a resource that includes the required
+ information.
+ 3. If requested by the Licensor, You must remove any of the
+ information required by Section 3(a)(1)(A) to the extent
+ reasonably practicable.
+ 4. If You Share Adapted Material You produce, the Adapter's
+ License You apply must not prevent recipients of the Adapted
+ Material from complying with this Public License.
+
+Section 4 -- Sui Generis Database Rights.
+
+Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
+
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
+ to extract, reuse, reproduce, and Share all or a substantial
+ portion of the contents of the database;
+ b. if You include all or a substantial portion of the database
+ contents in a database in which You have Sui Generis Database
+ Rights, then the database in which You have Sui Generis Database
+ Rights (but not its individual contents) is Adapted Material; and
+ c. You must comply with the conditions in Section 3(a) if You Share
+ all or a substantial portion of the contents of the database.
+For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
+
+
+Section 5 -- Disclaimer of Warranties and Limitation of Liability.
+
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
+ c. The disclaimer of warranties and limitation of liability provided
+ above shall be interpreted in a manner that, to the extent
+ possible, most closely approximates an absolute disclaimer and
+ waiver of all liability.
+
+Section 6 -- Term and Termination.
+
+ a. This Public License applies for the term of the Copyright and
+ Similar Rights licensed here. However, if You fail to comply with
+ this Public License, then Your rights under this Public License
+ terminate automatically.
+ b. Where Your right to use the Licensed Material has terminated under
+ Section 6(a), it reinstates:
+ 1. automatically as of the date the violation is cured, provided
+ it is cured within 30 days of Your discovery of the
+ violation; or
+ 2. upon express reinstatement by the Licensor.
+ For the avoidance of doubt, this Section 6(b) does not affect any
+ right the Licensor may have to seek remedies for Your violations
+ of this Public License.
+ c. For the avoidance of doubt, the Licensor may also offer the
+ Licensed Material under separate terms or conditions or stop
+ distributing the Licensed Material at any time; however, doing so
+ will not terminate this Public License.
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
+ License.
+
+Section 7 -- Other Terms and Conditions.
+
+ a. The Licensor shall not be bound by any additional or different
+ terms or conditions communicated by You unless expressly agreed.
+ b. Any arrangements, understandings, or agreements regarding the
+ Licensed Material not stated herein are separate from and
+ independent of the terms and conditions of this Public License.
+
+Section 8 -- Interpretation.
+
+ a. For the avoidance of doubt, this Public License does not, and
+ shall not be interpreted to, reduce, limit, restrict, or impose
+ conditions on any use of the Licensed Material that could lawfully
+ be made without permission under this Public License.
+ b. To the extent possible, if any provision of this Public License is
+ deemed unenforceable, it shall be automatically reformed to the
+ minimum extent necessary to make it enforceable. If the provision
+ cannot be reformed, it shall be severed from this Public License
+ without affecting the enforceability of the remaining terms and
+ conditions.
+ c. No term or condition of this Public License will be waived and no
+ failure to comply consented to unless expressly agreed to by the
+ Licensor.
+ d. Nothing in this Public License constitutes or may be interpreted
+ as a limitation upon, or waiver of, any privileges and immunities
+ that apply to the Licensor or You, including from the legal
+ processes of any jurisdiction or authority.
+Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the "Licensor." The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark "Creative Commons" or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
+
Creative Commons may be contacted at creativecommons.org.
\ No newline at end of file diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/js/dacController.js b/openo-portal/portal-monitor/src/main/webapp/monitor/js/dacController.js index 872be4d2..ce0197c9 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/js/dacController.js +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/js/dacController.js @@ -1,275 +1,275 @@ -/* - * Copyright 2016, CMCC 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. - */ -var vm = avalon - .define({ - $id : "dacController", - $queryDACsRestUrl : '/openoapi/umc/v1/monitor/dacs', - server_rtn:{ - info_block:false, - warning_block:false, - rtn_info:"" - }, - dacLoading:false, - dacChecking:false, - dacInfoArray : [], - dacInfo:{ - oid:"", - moc:"", - nodeLabel : '', - ipAddress : '', - note : '' - }, - dacDlgInfo:{ - titleName:"", - saveType:"" - }, - initDAC:function(){ - vm.dacLoading=true; - - $.ajax({ - "type": 'get', - "url": vm.$queryDACsRestUrl, - "dataType": "json", - success: function (resp) { - vm.dacInfoArray = (resp==null)?[]:resp; - vm.dacInfoArray.sort(function(a,b){return a.nodeLabel>b.nodeLabel?1:-1}); - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - // bootbox.alert("query DAC Info fail:"+":"+errorThrown); - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_query_failInfo')+errorThrown,"danger"); - return; - }, - complete:function(){ - vm.dacLoading=false; - } - }); - }, - testDAC:function(){ - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info="DAC Access Test Pass"; - }, - addDAC:function(){ - - vm.dacInfo.oid=""; - vm.dacInfo.moc="it.dac"; - vm.dacInfo.nodeLabel=""; - vm.dacInfo.ipAddress=""; - vm.dacInfo.note=""; - - vm.dacDlgInfo.saveType = "add"; - vm.dacDlgInfo.titleName=$.i18n.prop('com_zte_openo_umc_monitor_dac_register'); - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=false; - - - $(".form-group").each(function () { - $(this).removeClass('has-success'); - $(this).removeClass('has-error'); - $(this).find(".help-block[id]").remove(); - }); - $("#dacDlg").modal("show"); - }, - saveDAC : function() { - success.hide(); - error.hide(); - if (form.valid() == false) { - return false; - } - - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info='<i class="fa fa-spinner fa-spin fa-lg"></i> '+$.i18n.prop('com_zte_openo_umc_monitor_dac_register_check_Info'); - - - var data= JSON.stringify({ - "oid":vm.dacInfo.oid, - "moc": vm.dacInfo.moc, - "nodeLabel":vm.dacInfo.nodeLabel, - "ipAddress":vm.dacInfo.ipAddress, - "note":vm.dacInfo.note - }); - - if(vm.dacDlgInfo.saveType=="add") - { - vm.dacChecking=true; - for(var i=0;i<vm.dacInfoArray.length;i++){ - - if(vm.dacInfoArray[i].ipAddress==vm.dacInfo.ipAddress) - { - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_dac_register_repeat_errInfo',[vm.dacInfo.ipAddress]); - vm.dacChecking=false; - return; - } - - } - - $.ajax({ - "type": 'POST', - "url": vm.$queryDACsRestUrl, - "data" : data, - "dataType": "json", - "contentType":"application/json", - success: function (resp) { - if(resp.result=="SUCCESS"){ - var newDac=JSON.parse(data); - newDac.oid=resp.info; - - vm.dacInfoArray.push(newDac); - // vm.dacInfoArray.sort(function(a,b){return a.nodeLabel>b.nodeLabel?1:-1}); - $('#dacDlg').modal('hide'); - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_register_successInfo'),"success"); - vm.dacChecking=false; - } - else{ - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= resp.info; - vm.dacChecking=false; - } - - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_dac_save_failInfo')+errorThrown; - vm.dacChecking=false; - - } - }); - } - else{ - - $.ajax({ - "type": 'PUT', - "url": vm.$queryDACsRestUrl, - "data" :data, - "dataType": "json", - "contentType":"application/json", - success: function (resp) { - if(resp.result=="SUCCESS"){ - for(var i=0;i<vm.dacInfoArray.length;i++){ - if(vm.dacInfoArray[i].oid == vm.dacInfo.oid) - { - vm.dacInfoArray[i].nodeLabel=vm.dacInfo.nodeLabel; - vm.dacInfoArray[i].ipAddress=vm.dacInfo.ipAddress; - vm.dacInfoArray[i].note=vm.dacInfo.note; - - - break; - } - } - - - - $('#dacDlg').modal('hide'); - - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_update_successInfo'),"success"); - - } - else{ - - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= resp.info; - } - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_dac_save_failInfo')+errorThrown; - - } - }); - - - } - - - }, - updateDAC:function(dacInfo){ - - vm.dacInfo.oid=dacInfo.oid; - vm.dacInfo.moc=dacInfo.moc; - vm.dacInfo.nodeLabel=dacInfo.nodeLabel; - vm.dacInfo.ipAddress=dacInfo.ipAddress; - vm.dacInfo.note=dacInfo.note; - - - vm.dacDlgInfo.saveType = "update"; - vm.dacDlgInfo.titleName=$.i18n.prop('com_zte_openo_umc_monitor_dac_edit'); - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=false; - - - $(".form-group").each(function () { - $(this).removeClass('has-success'); - $(this).removeClass('has-error'); - $(this).find(".help-block[id]").remove(); - }); - - $("#dacDlg").modal("show"); - }, - delDAC:function(oid){ - bootbox.confirm($.i18n.prop('com_zte_openo_umc_monitor_dac_delete_sureInfo'),function(result){ - if(result){ - $.ajax({ - "type": 'DELETE', - "url": vm.$queryDACsRestUrl+"/"+oid, - "dataType": "json", - success: function (resp) { - - if(resp.result=="SUCCESS"){ - for(var i=0;i<vm.dacInfoArray.length;i++){ - if(vm.dacInfoArray[i].oid == oid){ - vm.dacInfoArray.splice(i, 1); - break; - } - } - - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_delete_successInfo'),"success"); - } - else{ - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_delete_failInfo')+resp.info,"danger"); - } - - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_delete_failInfo')+errorThrown,"danger"); - - } - }); - } - - - }); - - }, - gotoMonitorPage:function(){ - window.location.href="monitorSettingList.html"; - } - - - }); -avalon.scan(); -vm.initDAC(); +/*
+ * Copyright 2016, CMCC 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.
+ */
+var vm = avalon
+ .define({
+ $id : "dacController",
+ $queryDACsRestUrl : '/openoapi/umc/v1/monitor/dacs',
+ server_rtn:{
+ info_block:false,
+ warning_block:false,
+ rtn_info:""
+ },
+ dacLoading:false,
+ dacChecking:false,
+ dacInfoArray : [],
+ dacInfo:{
+ oid:"",
+ moc:"",
+ nodeLabel : '',
+ ipAddress : '',
+ note : ''
+ },
+ dacDlgInfo:{
+ titleName:"",
+ saveType:""
+ },
+ initDAC:function(){
+ vm.dacLoading=true;
+
+ $.ajax({
+ "type": 'get',
+ "url": vm.$queryDACsRestUrl,
+ "dataType": "json",
+ success: function (resp) {
+ vm.dacInfoArray = (resp==null)?[]:resp;
+ vm.dacInfoArray.sort(function(a,b){return a.nodeLabel>b.nodeLabel?1:-1});
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ // bootbox.alert("query DAC Info fail:"+":"+errorThrown);
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_query_failInfo')+errorThrown,"danger");
+ return;
+ },
+ complete:function(){
+ vm.dacLoading=false;
+ }
+ });
+ },
+ testDAC:function(){
+ vm.server_rtn.warning_block=false;
+ vm.server_rtn.info_block=true;
+ vm.server_rtn.rtn_info="DAC Access Test Pass";
+ },
+ addDAC:function(){
+
+ vm.dacInfo.oid="";
+ vm.dacInfo.moc="it.dac";
+ vm.dacInfo.nodeLabel="";
+ vm.dacInfo.ipAddress="";
+ vm.dacInfo.note="";
+
+ vm.dacDlgInfo.saveType = "add";
+ vm.dacDlgInfo.titleName=$.i18n.prop('com_zte_openo_umc_monitor_dac_register');
+ vm.server_rtn.warning_block=false;
+ vm.server_rtn.info_block=false;
+
+
+ $(".form-group").each(function () {
+ $(this).removeClass('has-success');
+ $(this).removeClass('has-error');
+ $(this).find(".help-block[id]").remove();
+ });
+ $("#dacDlg").modal("show");
+ },
+ saveDAC : function() {
+ success.hide();
+ error.hide();
+ if (form.valid() == false) {
+ return false;
+ }
+
+ vm.server_rtn.warning_block=false;
+ vm.server_rtn.info_block=true;
+ vm.server_rtn.rtn_info='<i class="fa fa-spinner fa-spin fa-lg"></i> '+$.i18n.prop('com_zte_openo_umc_monitor_dac_register_check_Info');
+
+
+ var data= JSON.stringify({
+ "oid":vm.dacInfo.oid,
+ "moc": vm.dacInfo.moc,
+ "nodeLabel":vm.dacInfo.nodeLabel,
+ "ipAddress":vm.dacInfo.ipAddress,
+ "note":vm.dacInfo.note
+ });
+
+ if(vm.dacDlgInfo.saveType=="add")
+ {
+ vm.dacChecking=true;
+ for(var i=0;i<vm.dacInfoArray.length;i++){
+
+ if(vm.dacInfoArray[i].ipAddress==vm.dacInfo.ipAddress)
+ {
+ vm.server_rtn.warning_block=true;
+ vm.server_rtn.info_block=false;
+ vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_dac_register_repeat_errInfo',[vm.dacInfo.ipAddress]);
+ vm.dacChecking=false;
+ return;
+ }
+
+ }
+
+ $.ajax({
+ "type": 'POST',
+ "url": vm.$queryDACsRestUrl,
+ "data" : data,
+ "dataType": "json",
+ "contentType":"application/json",
+ success: function (resp) {
+ if(resp.result=="SUCCESS"){
+ var newDac=JSON.parse(data);
+ newDac.oid=resp.info;
+
+ vm.dacInfoArray.push(newDac);
+ // vm.dacInfoArray.sort(function(a,b){return a.nodeLabel>b.nodeLabel?1:-1});
+ $('#dacDlg').modal('hide');
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_register_successInfo'),"success");
+ vm.dacChecking=false;
+ }
+ else{
+ vm.server_rtn.warning_block=true;
+ vm.server_rtn.info_block=false;
+ vm.server_rtn.rtn_info= resp.info;
+ vm.dacChecking=false;
+ }
+
+
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+
+ vm.server_rtn.warning_block=true;
+ vm.server_rtn.info_block=false;
+ vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_dac_save_failInfo')+errorThrown;
+ vm.dacChecking=false;
+
+ }
+ });
+ }
+ else{
+
+ $.ajax({
+ "type": 'PUT',
+ "url": vm.$queryDACsRestUrl,
+ "data" :data,
+ "dataType": "json",
+ "contentType":"application/json",
+ success: function (resp) {
+ if(resp.result=="SUCCESS"){
+ for(var i=0;i<vm.dacInfoArray.length;i++){
+ if(vm.dacInfoArray[i].oid == vm.dacInfo.oid)
+ {
+ vm.dacInfoArray[i].nodeLabel=vm.dacInfo.nodeLabel;
+ vm.dacInfoArray[i].ipAddress=vm.dacInfo.ipAddress;
+ vm.dacInfoArray[i].note=vm.dacInfo.note;
+
+
+ break;
+ }
+ }
+
+
+
+ $('#dacDlg').modal('hide');
+
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_update_successInfo'),"success");
+
+ }
+ else{
+
+ vm.server_rtn.warning_block=true;
+ vm.server_rtn.info_block=false;
+ vm.server_rtn.rtn_info= resp.info;
+ }
+
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+
+ vm.server_rtn.warning_block=true;
+ vm.server_rtn.info_block=false;
+ vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_dac_save_failInfo')+errorThrown;
+
+ }
+ });
+
+
+ }
+
+
+ },
+ updateDAC:function(dacInfo){
+
+ vm.dacInfo.oid=dacInfo.oid;
+ vm.dacInfo.moc=dacInfo.moc;
+ vm.dacInfo.nodeLabel=dacInfo.nodeLabel;
+ vm.dacInfo.ipAddress=dacInfo.ipAddress;
+ vm.dacInfo.note=dacInfo.note;
+
+
+ vm.dacDlgInfo.saveType = "update";
+ vm.dacDlgInfo.titleName=$.i18n.prop('com_zte_openo_umc_monitor_dac_edit');
+ vm.server_rtn.warning_block=false;
+ vm.server_rtn.info_block=false;
+
+
+ $(".form-group").each(function () {
+ $(this).removeClass('has-success');
+ $(this).removeClass('has-error');
+ $(this).find(".help-block[id]").remove();
+ });
+
+ $("#dacDlg").modal("show");
+ },
+ delDAC:function(oid){
+ bootbox.confirm($.i18n.prop('com_zte_openo_umc_monitor_dac_delete_sureInfo'),function(result){
+ if(result){
+ $.ajax({
+ "type": 'DELETE',
+ "url": vm.$queryDACsRestUrl+"/"+oid,
+ "dataType": "json",
+ success: function (resp) {
+
+ if(resp.result=="SUCCESS"){
+ for(var i=0;i<vm.dacInfoArray.length;i++){
+ if(vm.dacInfoArray[i].oid == oid){
+ vm.dacInfoArray.splice(i, 1);
+ break;
+ }
+ }
+
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_delete_successInfo'),"success");
+ }
+ else{
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_delete_failInfo')+resp.info,"danger");
+ }
+
+
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_delete_failInfo')+errorThrown,"danger");
+
+ }
+ });
+ }
+
+
+ });
+
+ },
+ gotoMonitorPage:function(){
+ window.location.href="monitorSettingList.html";
+ }
+
+
+ });
+avalon.scan();
+vm.initDAC();
diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/js/loadi18nApp_ngict-umc-monitor.js b/openo-portal/portal-monitor/src/main/webapp/monitor/js/loadi18nApp_ngict-umc-monitor.js index 590f13a4..2c7f7ba0 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/js/loadi18nApp_ngict-umc-monitor.js +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/js/loadi18nApp_ngict-umc-monitor.js @@ -1,43 +1,43 @@ -/* - * Copyright 2016, CMCC 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. - */ -function loadPropertiesSideMenu(lang, propertiesFileNamePrefix, propertiesFilePath){ - jQuery.i18n.properties({ - language:lang, - name:propertiesFileNamePrefix, - path:propertiesFilePath, - mode:'map', - callback: function() { - var i18nItems = $('[name_i18n=com_zte_openo_umc_monitor_ui_i18n]'); - for(var i=0;i<i18nItems.length;i++){ - var $item = $(i18nItems.eq(i)); - var itemId = $item.attr('id'); - var itemTitle = $item.attr('title'); - - if(typeof($item.attr("title")) == "string"){ - $item.attr("title", ($.i18n.prop(itemTitle))); - } - - if(undefined != itemId && typeof($item.attr("placeholder"))=="undefined"){ - $item.text($.i18n.prop(itemId)); - }else if(undefined != itemId && typeof($item.attr("placeholder"))!="undefined"){ - $item.attr("placeholder", $.i18n.prop(itemId)); - } - } - } - }); -} - - +/*
+ * Copyright 2016, CMCC 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.
+ */
+function loadPropertiesSideMenu(lang, propertiesFileNamePrefix, propertiesFilePath){
+ jQuery.i18n.properties({
+ language:lang,
+ name:propertiesFileNamePrefix,
+ path:propertiesFilePath,
+ mode:'map',
+ callback: function() {
+ var i18nItems = $('[name_i18n=com_zte_openo_umc_monitor_ui_i18n]');
+ for(var i=0;i<i18nItems.length;i++){
+ var $item = $(i18nItems.eq(i));
+ var itemId = $item.attr('id');
+ var itemTitle = $item.attr('title');
+
+ if(typeof($item.attr("title")) == "string"){
+ $item.attr("title", ($.i18n.prop(itemTitle)));
+ }
+
+ if(undefined != itemId && typeof($item.attr("placeholder"))=="undefined"){
+ $item.text($.i18n.prop(itemId));
+ }else if(undefined != itemId && typeof($item.attr("placeholder"))!="undefined"){
+ $item.attr("placeholder", $.i18n.prop(itemId));
+ }
+ }
+ }
+ });
+}
+
+
diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/js/monitorSettingController.js b/openo-portal/portal-monitor/src/main/webapp/monitor/js/monitorSettingController.js index 6eb0c4f2..e6200848 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/js/monitorSettingController.js +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/js/monitorSettingController.js @@ -1,429 +1,429 @@ -/* - * Copyright 2016, CMCC 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. - */ -var vm = avalon - .define({ - $id : "monitorController", - server_rtn:{ - info_block:false, - warning_block:false, - rtn_info:"" - }, - resource:{ - monitorList:[] - }, - ifPROXYIPChange:"", - monitorUrl:"", - oldmonitorInfo:{ - ipAddress:"", - label:"", - customPara:{ - - } - }, - monitorInfo:{ - oid:"", - origin:"", - neTypeId:"", - label:"", - ipAddress:"", - extendPara:"", - customPara:{ - - } - }, - dataTableLanguage: { - "sProcessing": "<img src='/openoui/common/thirdparty/data-tables/images/loading-spinner-grey.gif'/><span> Loadding...</span>", - "sLengthMenu": $.i18n.prop("openo-umc-monitor-iui-table-sLengthMenu"), - "sZeroRecords": $.i18n.prop("openo-umc-monitor-iui-table-sZeroRecords"), - "sInfo": "<span class='seperator'></span>" + $.i18n.prop("openo-umc-monitor-iui-table-sInfo"), - "sInfoEmpty": $.i18n.prop("openo-umc-monitor-iui-table-sInfoEmpty"), - "sGroupActions": $.i18n.prop("openo-umc-monitor-iui-table-sGroupActions"), - "sAjaxRequestGeneralError": $.i18n.prop("openo-umc-monitor-iui-table-sAjaxRequestGeneralError"), - "sEmptyTable": $.i18n.prop("openo-umc-monitor-iui-table-sEmptyTable"), - "oPaginate": { - "sPrevious": $.i18n.prop("openo-umc-monitor-iui-table-sPrevious"), - "sNext": $.i18n.prop("openo-umc-monitor-iui-table-sNext"), - "sPage": $.i18n.prop("openo-umc-monitor-iui-table-sPage"), - "sPageOf": $.i18n.prop("openo-umc-monitor-iui-table-sPageOf") - } - }, - - $monitorListRestUrl :'/openoapi/umc/v1/monitor/monitorinfos', - $monitorInstanceRestUrl :'/openoapi/umc/v1/monitor/monitorinfo/', - $queryDacsRestUrl : '/openoapi/umc/v1/monitor/dacs', - $updateMonitorTaskRestUrl : '/openoapi/umc/v1/monitor/monitortask/', - - $loginProtocol: { - selectItems : [ - { - cond_value : 'SSH', - name :"SSH" - }, - { - cond_value : 'TELNET', - name : "TELNET" - } - - ] - }, - dac: { - selectItems : [] - }, - - monitorSettingDlgInfo:{ - titleName:"", - saveType:"" - }, - queryMonitorList : function() { - - $.ajax({ - "type": 'get', - "url": vm.$monitorListRestUrl, - "dataType": "json", - "success": function (resp) { - for(index in resp) - { - var monitorInfo=resp[index] - var customPara={}; - if(monitorInfo.customPara!=""){ - customPara=JSON.parse(monitorInfo.customPara); - if(typeof(customPara.PROXYIP) == "undefined") - { - customPara.PROXYIP="127.0.0.1"; - } - } - else{ - customPara={PROXYIP:"127.0.0.1"}; - } - monitorInfo.customPara=customPara; - } - - vm.resource.monitorList = resp; - - $('#monitorManagerTable').DataTable({ - "oLanguage": vm.dataTableLanguage, - "sDom": '<"top"rt><"bottom"lip>', - "sPaginationType": "bootstrap_extended", - "bSort": false - }); - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_query_list_errInfo')+errorThrown,"danger"); - } - - }); - - - }, - queryMonitorInstance : function(oid){ - - vm.monitorInfo.oid=oid; - vm.monitorUrl=vm.$monitorInstanceRestUrl+oid; - - $.ajax({ - "type": 'GET', - "url": vm.monitorUrl, - "dataType": "json", - "success": function (resp) { - - var monitorInfo=resp; - var customPara={}; - if(monitorInfo.customPara!=""){ - customPara=JSON.parse(monitorInfo.customPara); - if(typeof(customPara.PROXYIP) == "undefined") - { - customPara.PROXYIP="127.0.0.1"; - } - } - else{ - customPara={PROXYIP:"127.0.0.1"}; - } - monitorInfo.customPara=customPara; - vm.monitorInfo=monitorInfo; - - vm.oldmonitorInfo.ipAddress=monitorInfo.ipAddress; - vm.oldmonitorInfo.label=monitorInfo.label; - vm.oldmonitorInfo.customPara=customPara; - - - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_query_monitor_errInfo')+errorThrown,"danger"); - } - - - }); - - }, - - deleteMonitorInfo : function(oid){ - vm.monitorInfo.oid=oid; - vm.monitorUrl=vm.$monitorInstanceRestUrl+oid; - - $.ajax({ - "type": 'DELETE', - "url": vm.monitorUrl, - "dataType": "json", - "success": function (resp) { - vm.gotoMonitorListPage(); - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_query_monitor_errInfo')+errorThrown,"danger"); - } - - - }); - - }, - updateMonitorSet:function(){ - - - vm.monitorSettingDlgInfo.titleName=$.i18n.prop('com_zte_openo_umc_monitor_btn_monitorset'); - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=false; - - $(".form-group").each(function () { - $(this).removeClass('has-success'); - $(this).removeClass('has-error'); - $(this).find(".help-block[id]").remove(); - }); - - if(vm.monitorInfo.customPara.PROXYIP=="" && vm.dac.selectItems.length>0){ - vm.monitorInfo.customPara.PROXYIP=vm.dac.selectItems[0].ipAddress; - } - - if(vm.monitorInfo.customPara.PROTOCOL==""){ - vm.monitorInfo.customPara.PROTOCOL="SSH"; - vm.monitorInfo.customPara.PORT="22"; - } - - $("#monitorSettingDlg").modal("show"); - }, - testMonitorSet:function(){ - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info="Monitor Set Access Test Pass"; - }, - saveMonitorSet : function() { - success.hide(); - error.hide(); - if (form.valid() == false) { - return false; - } - var propertyNames=vm.monitorInfo.customPara.$propertyNames.split("­"); - var isPropertyUnEqual=false; - for(index in propertyNames) - { - var name=propertyNames[index] - if(vm.oldmonitorInfo.customPara[name]!=vm.monitorInfo.customPara[name]) - { - isPropertyUnEqual=true; - break; - } - } - // judge monitorInfo whether change - if( vm.oldmonitorInfo.ipAddress!=vm.monitorInfo.ipAddress || - isPropertyUnEqual){ - - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info=$.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_checkInfo'); - var customPara=JSON.stringify(vm.monitorInfo.customPara.$model); - $.ajax({ - "type": 'POST', - "url": vm.monitorUrl, - "data": JSON.stringify({ - "ipAddress": vm.monitorInfo.ipAddress, - "oid": vm.monitorInfo.oid, - "neTypeId": vm.monitorInfo.neTypeId, - "label": vm.monitorInfo.label, - "origin": vm.monitorInfo.origin, - "extendPara": vm.monitorInfo.extendPara, - "customPara": customPara - }), - "dataType": "json", - "contentType" : "application/json", - success: function (resp) { - // judge PROXYIP whether change - - if(vm.oldmonitorInfo.customPara.PROXYIP!=vm.monitorInfo.customPara.PROXYIP){ - vm.ifPROXYIPChange=1; - } - else{ - vm.ifPROXYIPChange=0; - } - - vm.updateMonitorTask(); - - vm.oldmonitorInfo.ipAddress=vm.monitorInfo.ipAddress; - vm.oldmonitorInfo.label=vm.monitorInfo.label; - var customPara=vm.monitorInfo.customPara.$model; - vm.oldmonitorInfo.customPara=customPara; - - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo')+errorThrown; - } - }); - - } - else if(vm.oldmonitorInfo.label!=vm.monitorInfo.label){ - //only change label label - - //save new monitorInfo - - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info=$.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_checkInfo'); - var customPara=JSON.stringify(vm.monitorInfo.customPara.$model); - - $.ajax({ - "type": 'POST', - "url": vm.monitorUrl, - "data": JSON.stringify({ - "ipAddress": vm.monitorInfo.ipAddress, - "oid": vm.monitorInfo.oid, - "neTypeId": vm.monitorInfo.neTypeId, - "label": vm.monitorInfo.label, - "origin": vm.monitorInfo.origin, - "extendPara": vm.monitorInfo.extendPara, - "customPara": customPara - }), - "dataType": "json", - "contentType" : "application/json", - success: function (resp) { - if(resp.result=="SUCCESS"){ - - vm.oldmonitorInfo.label=vm.monitorInfo.label; - $('#monitorSettingDlg').modal('hide'); - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo'),"success"); - - - } - else{ - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo'); - } - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo')+errorThrown; - } - }); - - } - else{ - //no change - $('#monitorSettingDlg').modal('hide'); - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo'),"success"); - } - - - - - - }, - cancelMonitorSet: function() { - - vm.monitorInfo.ipAddress=vm.oldmonitorInfo.ipAddress; - vm.monitorInfo.name=vm.oldmonitorInfo.name; - vm.monitorInfo.customPara=vm.oldmonitorInfo.customPara; - $('#monitorSettingDlg').modal('hide'); - - }, - queryDACs:function(){ - - - $.ajax({ - "type": 'get', - "url": vm.$queryDacsRestUrl, - "dataType": "json", - success: function (resp) { - vm.dac.selectItems = (resp==null)?[]:resp; - // vm.proxy.selectItems.sort(function(a,b){return a.ipAddress>b.ipAddress?1:-1}); - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_dac_query_failInfo')+errorThrown,"danger"); - } - }); - }, - updateMonitorTask:function(){ - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info=$.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_task_checkInfo'); - - - var data= JSON.stringify({ - oid:vm.monitorInfo.oid, - moc:vm.monitorInfo.neTypeId, - proxyIp:vm.monitorInfo.customPara.PROXYIP - }); - - $.ajax({ - "type": 'PUT', - "url": vm.$updateMonitorTaskRestUrl+vm.ifPROXYIPChange, - "data" :data, - "dataType": "json", - "contentType":"application/json", - success: function (resp) { - if(resp.result=="SUCCESS"){ - - $('#monitorSettingDlg').modal('hide'); - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo'),"success"); - - } - else - { - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_task_failInfo')+resp.info; - } - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_task_failInfo')+errorThrown; - - } - }); - - }, - gotoDACPage:function(){ - window.location.href="dacList.html"; - }, - gotoMonitorSettingPage:function(oid){ - window.location.href="monitorSetting.html?"+oid; - }, - gotoMonitorListPage:function(){ - window.location.href="monitorSettingList.html"; - } - }); - -avalon.scan(); - - +/*
+ * Copyright 2016, CMCC 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.
+ */
+var vm = avalon
+ .define({
+ $id : "monitorController",
+ server_rtn:{
+ info_block:false,
+ warning_block:false,
+ rtn_info:""
+ },
+ resource:{
+ monitorList:[]
+ },
+ ifPROXYIPChange:"",
+ monitorUrl:"",
+ oldmonitorInfo:{
+ ipAddress:"",
+ label:"",
+ customPara:{
+
+ }
+ },
+ monitorInfo:{
+ oid:"",
+ origin:"",
+ neTypeId:"",
+ label:"",
+ ipAddress:"",
+ extendPara:"",
+ customPara:{
+
+ }
+ },
+ dataTableLanguage: {
+ "sProcessing": "<img src='/openoui/common/thirdparty/data-tables/images/loading-spinner-grey.gif'/><span> Loadding...</span>",
+ "sLengthMenu": $.i18n.prop("openo-umc-monitor-iui-table-sLengthMenu"),
+ "sZeroRecords": $.i18n.prop("openo-umc-monitor-iui-table-sZeroRecords"),
+ "sInfo": "<span class='seperator'></span>" + $.i18n.prop("openo-umc-monitor-iui-table-sInfo"),
+ "sInfoEmpty": $.i18n.prop("openo-umc-monitor-iui-table-sInfoEmpty"),
+ "sGroupActions": $.i18n.prop("openo-umc-monitor-iui-table-sGroupActions"),
+ "sAjaxRequestGeneralError": $.i18n.prop("openo-umc-monitor-iui-table-sAjaxRequestGeneralError"),
+ "sEmptyTable": $.i18n.prop("openo-umc-monitor-iui-table-sEmptyTable"),
+ "oPaginate": {
+ "sPrevious": $.i18n.prop("openo-umc-monitor-iui-table-sPrevious"),
+ "sNext": $.i18n.prop("openo-umc-monitor-iui-table-sNext"),
+ "sPage": $.i18n.prop("openo-umc-monitor-iui-table-sPage"),
+ "sPageOf": $.i18n.prop("openo-umc-monitor-iui-table-sPageOf")
+ }
+ },
+
+ $monitorListRestUrl :'/openoapi/umc/v1/monitor/monitorinfos',
+ $monitorInstanceRestUrl :'/openoapi/umc/v1/monitor/monitorinfo/',
+ $queryDacsRestUrl : '/openoapi/umc/v1/monitor/dacs',
+ $updateMonitorTaskRestUrl : '/openoapi/umc/v1/monitor/monitortask/',
+
+ $loginProtocol: {
+ selectItems : [
+ {
+ cond_value : 'SSH',
+ name :"SSH"
+ },
+ {
+ cond_value : 'TELNET',
+ name : "TELNET"
+ }
+
+ ]
+ },
+ dac: {
+ selectItems : []
+ },
+
+ monitorSettingDlgInfo:{
+ titleName:"",
+ saveType:""
+ },
+ queryMonitorList : function() {
+
+ $.ajax({
+ "type": 'get',
+ "url": vm.$monitorListRestUrl,
+ "dataType": "json",
+ "success": function (resp) {
+ for(index in resp)
+ {
+ var monitorInfo=resp[index]
+ var customPara={};
+ if(monitorInfo.customPara!=""){
+ customPara=JSON.parse(monitorInfo.customPara);
+ if(typeof(customPara.PROXYIP) == "undefined")
+ {
+ customPara.PROXYIP="127.0.0.1";
+ }
+ }
+ else{
+ customPara={PROXYIP:"127.0.0.1"};
+ }
+ monitorInfo.customPara=customPara;
+ }
+
+ vm.resource.monitorList = resp;
+
+ $('#monitorManagerTable').DataTable({
+ "oLanguage": vm.dataTableLanguage,
+ "sDom": '<"top"rt><"bottom"lip>',
+ "sPaginationType": "bootstrap_extended",
+ "bSort": false
+ });
+
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_query_list_errInfo')+errorThrown,"danger");
+ }
+
+ });
+
+
+ },
+ queryMonitorInstance : function(oid){
+
+ vm.monitorInfo.oid=oid;
+ vm.monitorUrl=vm.$monitorInstanceRestUrl+oid;
+
+ $.ajax({
+ "type": 'GET',
+ "url": vm.monitorUrl,
+ "dataType": "json",
+ "success": function (resp) {
+
+ var monitorInfo=resp;
+ var customPara={};
+ if(monitorInfo.customPara!=""){
+ customPara=JSON.parse(monitorInfo.customPara);
+ if(typeof(customPara.PROXYIP) == "undefined")
+ {
+ customPara.PROXYIP="127.0.0.1";
+ }
+ }
+ else{
+ customPara={PROXYIP:"127.0.0.1"};
+ }
+ monitorInfo.customPara=customPara;
+ vm.monitorInfo=monitorInfo;
+
+ vm.oldmonitorInfo.ipAddress=monitorInfo.ipAddress;
+ vm.oldmonitorInfo.label=monitorInfo.label;
+ vm.oldmonitorInfo.customPara=customPara;
+
+
+
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_query_monitor_errInfo')+errorThrown,"danger");
+ }
+
+
+ });
+
+ },
+
+ deleteMonitorInfo : function(oid){
+ vm.monitorInfo.oid=oid;
+ vm.monitorUrl=vm.$monitorInstanceRestUrl+oid;
+
+ $.ajax({
+ "type": 'DELETE',
+ "url": vm.monitorUrl,
+ "dataType": "json",
+ "success": function (resp) {
+ vm.gotoMonitorListPage();
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_query_monitor_errInfo')+errorThrown,"danger");
+ }
+
+
+ });
+
+ },
+ updateMonitorSet:function(){
+
+
+ vm.monitorSettingDlgInfo.titleName=$.i18n.prop('com_zte_openo_umc_monitor_btn_monitorset');
+ vm.server_rtn.warning_block=false;
+ vm.server_rtn.info_block=false;
+
+ $(".form-group").each(function () {
+ $(this).removeClass('has-success');
+ $(this).removeClass('has-error');
+ $(this).find(".help-block[id]").remove();
+ });
+
+ if(vm.monitorInfo.customPara.PROXYIP=="" && vm.dac.selectItems.length>0){
+ vm.monitorInfo.customPara.PROXYIP=vm.dac.selectItems[0].ipAddress;
+ }
+
+ if(vm.monitorInfo.customPara.PROTOCOL==""){
+ vm.monitorInfo.customPara.PROTOCOL="SSH";
+ vm.monitorInfo.customPara.PORT="22";
+ }
+
+ $("#monitorSettingDlg").modal("show");
+ },
+ testMonitorSet:function(){
+ vm.server_rtn.warning_block=false;
+ vm.server_rtn.info_block=true;
+ vm.server_rtn.rtn_info="Monitor Set Access Test Pass";
+ },
+ saveMonitorSet : function() {
+ success.hide();
+ error.hide();
+ if (form.valid() == false) {
+ return false;
+ }
+ var propertyNames=vm.monitorInfo.customPara.$propertyNames.split("­");
+ var isPropertyUnEqual=false;
+ for(index in propertyNames)
+ {
+ var name=propertyNames[index]
+ if(vm.oldmonitorInfo.customPara[name]!=vm.monitorInfo.customPara[name])
+ {
+ isPropertyUnEqual=true;
+ break;
+ }
+ }
+ // judge monitorInfo whether change
+ if( vm.oldmonitorInfo.ipAddress!=vm.monitorInfo.ipAddress ||
+ isPropertyUnEqual){
+
+ vm.server_rtn.warning_block=false;
+ vm.server_rtn.info_block=true;
+ vm.server_rtn.rtn_info=$.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_checkInfo');
+ var customPara=JSON.stringify(vm.monitorInfo.customPara.$model);
+ $.ajax({
+ "type": 'POST',
+ "url": vm.monitorUrl,
+ "data": JSON.stringify({
+ "ipAddress": vm.monitorInfo.ipAddress,
+ "oid": vm.monitorInfo.oid,
+ "neTypeId": vm.monitorInfo.neTypeId,
+ "label": vm.monitorInfo.label,
+ "origin": vm.monitorInfo.origin,
+ "extendPara": vm.monitorInfo.extendPara,
+ "customPara": customPara
+ }),
+ "dataType": "json",
+ "contentType" : "application/json",
+ success: function (resp) {
+ // judge PROXYIP whether change
+
+ if(vm.oldmonitorInfo.customPara.PROXYIP!=vm.monitorInfo.customPara.PROXYIP){
+ vm.ifPROXYIPChange=1;
+ }
+ else{
+ vm.ifPROXYIPChange=0;
+ }
+
+ vm.updateMonitorTask();
+
+ vm.oldmonitorInfo.ipAddress=vm.monitorInfo.ipAddress;
+ vm.oldmonitorInfo.label=vm.monitorInfo.label;
+ var customPara=vm.monitorInfo.customPara.$model;
+ vm.oldmonitorInfo.customPara=customPara;
+
+
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+
+ vm.server_rtn.warning_block=true;
+ vm.server_rtn.info_block=false;
+ vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo')+errorThrown;
+ }
+ });
+
+ }
+ else if(vm.oldmonitorInfo.label!=vm.monitorInfo.label){
+ //only change label label
+
+ //save new monitorInfo
+
+ vm.server_rtn.warning_block=false;
+ vm.server_rtn.info_block=true;
+ vm.server_rtn.rtn_info=$.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_checkInfo');
+ var customPara=JSON.stringify(vm.monitorInfo.customPara.$model);
+
+ $.ajax({
+ "type": 'POST',
+ "url": vm.monitorUrl,
+ "data": JSON.stringify({
+ "ipAddress": vm.monitorInfo.ipAddress,
+ "oid": vm.monitorInfo.oid,
+ "neTypeId": vm.monitorInfo.neTypeId,
+ "label": vm.monitorInfo.label,
+ "origin": vm.monitorInfo.origin,
+ "extendPara": vm.monitorInfo.extendPara,
+ "customPara": customPara
+ }),
+ "dataType": "json",
+ "contentType" : "application/json",
+ success: function (resp) {
+ if(resp.result=="SUCCESS"){
+
+ vm.oldmonitorInfo.label=vm.monitorInfo.label;
+ $('#monitorSettingDlg').modal('hide');
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo'),"success");
+
+
+ }
+ else{
+ vm.server_rtn.warning_block=true;
+ vm.server_rtn.info_block=false;
+ vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo');
+ }
+
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+
+ vm.server_rtn.warning_block=true;
+ vm.server_rtn.info_block=false;
+ vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo')+errorThrown;
+ }
+ });
+
+ }
+ else{
+ //no change
+ $('#monitorSettingDlg').modal('hide');
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo'),"success");
+ }
+
+
+
+
+
+ },
+ cancelMonitorSet: function() {
+
+ vm.monitorInfo.ipAddress=vm.oldmonitorInfo.ipAddress;
+ vm.monitorInfo.name=vm.oldmonitorInfo.name;
+ vm.monitorInfo.customPara=vm.oldmonitorInfo.customPara;
+ $('#monitorSettingDlg').modal('hide');
+
+ },
+ queryDACs:function(){
+
+
+ $.ajax({
+ "type": 'get',
+ "url": vm.$queryDacsRestUrl,
+ "dataType": "json",
+ success: function (resp) {
+ vm.dac.selectItems = (resp==null)?[]:resp;
+ // vm.proxy.selectItems.sort(function(a,b){return a.ipAddress>b.ipAddress?1:-1});
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_dac_query_failInfo')+errorThrown,"danger");
+ }
+ });
+ },
+ updateMonitorTask:function(){
+ vm.server_rtn.warning_block=false;
+ vm.server_rtn.info_block=true;
+ vm.server_rtn.rtn_info=$.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_task_checkInfo');
+
+
+ var data= JSON.stringify({
+ oid:vm.monitorInfo.oid,
+ moc:vm.monitorInfo.neTypeId,
+ proxyIp:vm.monitorInfo.customPara.PROXYIP
+ });
+
+ $.ajax({
+ "type": 'PUT',
+ "url": vm.$updateMonitorTaskRestUrl+vm.ifPROXYIPChange,
+ "data" :data,
+ "dataType": "json",
+ "contentType":"application/json",
+ success: function (resp) {
+ if(resp.result=="SUCCESS"){
+
+ $('#monitorSettingDlg').modal('hide');
+ monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo'),"success");
+
+ }
+ else
+ {
+ vm.server_rtn.warning_block=true;
+ vm.server_rtn.info_block=false;
+ vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_task_failInfo')+resp.info;
+ }
+
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+
+ vm.server_rtn.warning_block=true;
+ vm.server_rtn.info_block=false;
+ vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_task_failInfo')+errorThrown;
+
+ }
+ });
+
+ },
+ gotoDACPage:function(){
+ window.location.href="dacList.html";
+ },
+ gotoMonitorSettingPage:function(oid){
+ window.location.href="monitorSetting.html?"+oid;
+ },
+ gotoMonitorListPage:function(){
+ window.location.href="monitorSettingList.html";
+ }
+ });
+
+avalon.scan();
+
+
diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/js/monitorSettingUtil.js b/openo-portal/portal-monitor/src/main/webapp/monitor/js/monitorSettingUtil.js index b1792afe..730fcd85 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/js/monitorSettingUtil.js +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/js/monitorSettingUtil.js @@ -1,169 +1,169 @@ -/* - * Copyright 2016, CMCC 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. - */ -var monitorUtil = {}; - -monitorUtil.growl=function(message,type){ - var delay; - if(type=="success"){ - delay=3000; - } - else{ - delay=0; - } - - $.growl({ - icon: "fa fa-envelope-o fa-lg", - title: " "+$.i18n.prop('com_zte_openo_umc_monitor_tip')+" ", - message: message+" " - },{ - type: type, - delay:delay - }); -} - - -$.fn.dataTableExt.oApi.fnPagingInfo = function (oSettings) { - return { - "iEnd": oSettings.fnDisplayEnd(), - "iLength": oSettings._iDisplayLength, - "iTotal": oSettings.fnRecordsTotal(), - "iFilteredTotal": oSettings.fnRecordsDisplay(), - "iPage": Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength), - "iTotalPages": Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength) - }; -}; - -$.extend($.fn.dataTableExt.oPagination, { - "bootstrap_extended": { - "fnInit": function (oSettings, nPaging, fnDraw) { - var oLang = oSettings.oLanguage.oPaginate; - var oPaging = oSettings.oInstance.fnPagingInfo(); - - var fnClickHandler = function (e) { - e.preventDefault(); - if (oSettings.oApi._fnPageChange(oSettings, e.data.action)) { - fnDraw(oSettings); - } - }; - - $(nPaging).append( - '<div class="pagination-panel"> ' + oLang.sPage + ' ' + - '<a href="#" class="btn btn-sm default prev disabled" title="' + oLang.sPrevious + '"><i class="fa fa-angle-left"></i></a>' + - '<input type="text" class="pagination-panel-input input-mini input-inline input-sm" maxlenght="5" style="text-align:center; margin: 0 4px; border: 1px solid rgb(169, 169, 169);height: 28px;">' + - '<a href="#" class="btn btn-sm default next disabled" title="' + oLang.sNext + '"><i class="fa fa-angle-right"></i></a> ' + - oLang.sPageOf + ' <span class="pagination-panel-total"></span>' + - '</div>' - ); - - var els = $('a', nPaging); - - $(els[0]).bind('click.DT', {action: "previous"}, fnClickHandler); - $(els[1]).bind('click.DT', {action: "next"}, fnClickHandler); - - $('.pagination-panel-input', nPaging).bind('change.DT', function (e) { - var oPaging = oSettings.oInstance.fnPagingInfo(); - e.preventDefault(); - var page = parseInt($(this).val()); - if (page > 0 && page < oPaging.iTotalPages) { - if (oSettings.oApi._fnPageChange(oSettings, page - 1)) { - fnDraw(oSettings); - } - } else { - $(this).val(oPaging.iPage + 1); - } - }); - - $('.pagination-panel-input', nPaging).bind('keypress.DT', function (e) { - var oPaging = oSettings.oInstance.fnPagingInfo(); - if (e.which == 13) { - var page = parseInt($(this).val()); - if (page > 0 && page < oSettings.oInstance.fnPagingInfo().iTotalPages) { - if (oSettings.oApi._fnPageChange(oSettings, page - 1)) { - fnDraw(oSettings); - } - } else { - $(this).val(oPaging.iPage + 1); - } - e.preventDefault(); - } - }); - }, - - "fnUpdate": function (oSettings, fnDraw) { - var iListLength = 5; - var oPaging = oSettings.oInstance.fnPagingInfo(); - var an = oSettings.aanFeatures.p; - var i, j, sClass, iStart, iEnd, iHalf = Math.floor(iListLength / 2); - - if (oPaging.iTotalPages < iListLength) { - iStart = 1; - iEnd = oPaging.iTotalPages; - } - else if (oPaging.iPage <= iHalf) { - iStart = 1; - iEnd = iListLength; - } else if (oPaging.iPage >= (oPaging.iTotalPages - iHalf)) { - iStart = oPaging.iTotalPages - iListLength + 1; - iEnd = oPaging.iTotalPages; - } else { - iStart = oPaging.iPage - iHalf + 1; - iEnd = iStart + iListLength - 1; - } - - - for (i = 0, iLen = an.length; i < iLen; i++) { - var wrapper = $(an[i]).parents(".dataTables_wrapper"); - - if (oPaging.iTotalPages <= 0) { - $('.pagination-panel, .dataTables_length', wrapper).hide(); - } else { - $('.pagination-panel, .dataTables_length', wrapper).show(); - } - - $('.pagination-panel-total', an[i]).html(oPaging.iTotalPages); - $('.pagination-panel-input', an[i]).val(oPaging.iPage + 1); - - // Remove the middle elements - $('li:gt(1)', an[i]).filter(':not(.next)').remove(); - - // Add the new list items and their event handlers - for (j = iStart; j <= iEnd; j++) { - sClass = (j == oPaging.iPage + 1) ? 'class="active"' : ''; - $('<li ' + sClass + '><a href="#">' + j + '</a></li>') - .insertBefore($('li.next:first', an[i])[0]) - .bind('click', function (e) { - e.preventDefault(); - oSettings._iDisplayStart = (parseInt($('a', this).text(), 10) - 1) * oPaging.iLength; - fnDraw(oSettings); - }); - } - - // Add / remove disabled classes from the static elements - if (oPaging.iPage === 0) { - $('a.prev', an[i]).addClass('disabled'); - } else { - $('a.prev', an[i]).removeClass('disabled'); - } - - if (oPaging.iPage === oPaging.iTotalPages - 1 || oPaging.iTotalPages === 0) { - $('a.next', an[i]).addClass('disabled'); - } else { - $('a.next', an[i]).removeClass('disabled'); - } - } - } - } -}); +/*
+ * Copyright 2016, CMCC 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.
+ */
+var monitorUtil = {};
+
+monitorUtil.growl=function(message,type){
+ var delay;
+ if(type=="success"){
+ delay=3000;
+ }
+ else{
+ delay=0;
+ }
+
+ $.growl({
+ icon: "fa fa-envelope-o fa-lg",
+ title: " "+$.i18n.prop('com_zte_openo_umc_monitor_tip')+" ",
+ message: message+" "
+ },{
+ type: type,
+ delay:delay
+ });
+}
+
+
+$.fn.dataTableExt.oApi.fnPagingInfo = function (oSettings) {
+ return {
+ "iEnd": oSettings.fnDisplayEnd(),
+ "iLength": oSettings._iDisplayLength,
+ "iTotal": oSettings.fnRecordsTotal(),
+ "iFilteredTotal": oSettings.fnRecordsDisplay(),
+ "iPage": Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength),
+ "iTotalPages": Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength)
+ };
+};
+
+$.extend($.fn.dataTableExt.oPagination, {
+ "bootstrap_extended": {
+ "fnInit": function (oSettings, nPaging, fnDraw) {
+ var oLang = oSettings.oLanguage.oPaginate;
+ var oPaging = oSettings.oInstance.fnPagingInfo();
+
+ var fnClickHandler = function (e) {
+ e.preventDefault();
+ if (oSettings.oApi._fnPageChange(oSettings, e.data.action)) {
+ fnDraw(oSettings);
+ }
+ };
+
+ $(nPaging).append(
+ '<div class="pagination-panel"> ' + oLang.sPage + ' ' +
+ '<a href="#" class="btn btn-sm default prev disabled" title="' + oLang.sPrevious + '"><i class="fa fa-angle-left"></i></a>' +
+ '<input type="text" class="pagination-panel-input input-mini input-inline input-sm" maxlenght="5" style="text-align:center; margin: 0 4px; border: 1px solid rgb(169, 169, 169);height: 28px;">' +
+ '<a href="#" class="btn btn-sm default next disabled" title="' + oLang.sNext + '"><i class="fa fa-angle-right"></i></a> ' +
+ oLang.sPageOf + ' <span class="pagination-panel-total"></span>' +
+ '</div>'
+ );
+
+ var els = $('a', nPaging);
+
+ $(els[0]).bind('click.DT', {action: "previous"}, fnClickHandler);
+ $(els[1]).bind('click.DT', {action: "next"}, fnClickHandler);
+
+ $('.pagination-panel-input', nPaging).bind('change.DT', function (e) {
+ var oPaging = oSettings.oInstance.fnPagingInfo();
+ e.preventDefault();
+ var page = parseInt($(this).val());
+ if (page > 0 && page < oPaging.iTotalPages) {
+ if (oSettings.oApi._fnPageChange(oSettings, page - 1)) {
+ fnDraw(oSettings);
+ }
+ } else {
+ $(this).val(oPaging.iPage + 1);
+ }
+ });
+
+ $('.pagination-panel-input', nPaging).bind('keypress.DT', function (e) {
+ var oPaging = oSettings.oInstance.fnPagingInfo();
+ if (e.which == 13) {
+ var page = parseInt($(this).val());
+ if (page > 0 && page < oSettings.oInstance.fnPagingInfo().iTotalPages) {
+ if (oSettings.oApi._fnPageChange(oSettings, page - 1)) {
+ fnDraw(oSettings);
+ }
+ } else {
+ $(this).val(oPaging.iPage + 1);
+ }
+ e.preventDefault();
+ }
+ });
+ },
+
+ "fnUpdate": function (oSettings, fnDraw) {
+ var iListLength = 5;
+ var oPaging = oSettings.oInstance.fnPagingInfo();
+ var an = oSettings.aanFeatures.p;
+ var i, j, sClass, iStart, iEnd, iHalf = Math.floor(iListLength / 2);
+
+ if (oPaging.iTotalPages < iListLength) {
+ iStart = 1;
+ iEnd = oPaging.iTotalPages;
+ }
+ else if (oPaging.iPage <= iHalf) {
+ iStart = 1;
+ iEnd = iListLength;
+ } else if (oPaging.iPage >= (oPaging.iTotalPages - iHalf)) {
+ iStart = oPaging.iTotalPages - iListLength + 1;
+ iEnd = oPaging.iTotalPages;
+ } else {
+ iStart = oPaging.iPage - iHalf + 1;
+ iEnd = iStart + iListLength - 1;
+ }
+
+
+ for (i = 0, iLen = an.length; i < iLen; i++) {
+ var wrapper = $(an[i]).parents(".dataTables_wrapper");
+
+ if (oPaging.iTotalPages <= 0) {
+ $('.pagination-panel, .dataTables_length', wrapper).hide();
+ } else {
+ $('.pagination-panel, .dataTables_length', wrapper).show();
+ }
+
+ $('.pagination-panel-total', an[i]).html(oPaging.iTotalPages);
+ $('.pagination-panel-input', an[i]).val(oPaging.iPage + 1);
+
+ // Remove the middle elements
+ $('li:gt(1)', an[i]).filter(':not(.next)').remove();
+
+ // Add the new list items and their event handlers
+ for (j = iStart; j <= iEnd; j++) {
+ sClass = (j == oPaging.iPage + 1) ? 'class="active"' : '';
+ $('<li ' + sClass + '><a href="#">' + j + '</a></li>')
+ .insertBefore($('li.next:first', an[i])[0])
+ .bind('click', function (e) {
+ e.preventDefault();
+ oSettings._iDisplayStart = (parseInt($('a', this).text(), 10) - 1) * oPaging.iLength;
+ fnDraw(oSettings);
+ });
+ }
+
+ // Add / remove disabled classes from the static elements
+ if (oPaging.iPage === 0) {
+ $('a.prev', an[i]).addClass('disabled');
+ } else {
+ $('a.prev', an[i]).removeClass('disabled');
+ }
+
+ if (oPaging.iPage === oPaging.iTotalPages - 1 || oPaging.iTotalPages === 0) {
+ $('a.next', an[i]).addClass('disabled');
+ } else {
+ $('a.next', an[i]).removeClass('disabled');
+ }
+ }
+ }
+ }
+});
diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/monitorSetting.html b/openo-portal/portal-monitor/src/main/webapp/monitor/monitorSetting.html index 92a97baa..0f988a3b 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/monitorSetting.html +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/monitorSetting.html @@ -1,480 +1,480 @@ -<!-- - Copyright 2016, CMCC 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> -<head lang="en"> -<meta charset="UTF-8"> - <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/font-awesome/css/font-awesome.min.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/bootstrap/css/bootstrap.min.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/css/ngict-component.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/css/ZteIctIcons/style.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/animate/animate.min.css"/> - <link rel="stylesheet" type="text/css" href="css/monitorSetting.css"/> - <style> - .ms-controller { - visibility: hidden - } - </style> -</head> -<body> -<div> - <div class="container-fluid" class="ms-controller" ms-controller="monitorController"> - - <div id="monitorSettingDlg" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" > - <div class="modal-dialog"> - <div class="modal-content"> - <div class="content"> - <div class="modal-header"> - <button type="button" class="close" ms-click="cancelMonitorSet()">×</button> - <h4 id="myModalLabel" ms-text="monitorSettingDlgInfo.titleName"></h4> - </div> - <div class="modal-body"> - <div class="alert alert-info" ms-visible="server_rtn.info_block" ms-text="server_rtn.rtn_info"></div> - <div class="alert alert-danger " ms-visible="server_rtn.warning_block" ms-text="server_rtn.rtn_info"></div> - <form class="form-horizontal" id="monitorSetting_form" role="form"> - <div class="form-group"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_dac_label" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="name" ms-duplex="monitorInfo.label" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - - <div class="form-group"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n">IP Address</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="ipAddress" ms-duplex="monitorInfo.ipAddress" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - - <div class="form-group"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_dac" name_i18n="com_zte_openo_umc_monitor_ui_i18n">DAC</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <select ms-each="dac.selectItems" name="PROXYIP" ms-duplex="monitorInfo.customPara.PROXYIP" class="form-control" style="width:150px"> - <option ms-attr-value='el.ipAddress'>{{el.ipAddress}}</option> - </select> - <span class="help-block"></span> - </div> - </div> - <div class="form-group" ms-if="monitorInfo.customPara.VERSION!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_version" name_i18n="com_zte_openo_umc_monitor_ui_i18n">version</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="VERSION" ms-duplex="monitorInfo.customPara.VERSION" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - <div class="form-group" ms-if="monitorInfo.customPara.USERNAME!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_user" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Login User</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="USERNAME" ms-duplex="monitorInfo.customPara.USERNAME" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - - <div class="form-group" ms-if="monitorInfo.customPara.PASSWORD!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_password" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Login Password</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="password" name="PASSWORD" ms-duplex="monitorInfo.customPara.PASSWORD" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - - <div class="form-group" ms-if="monitorInfo.customPara.PROTOCOL!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_protocol" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Login Protocol</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <select ms-each="$loginProtocol.selectItems" ms-duplex="monitorInfo.customPara.PROTOCOL" class="form-control" style="width:150px" name="ROTOCOL" id="select_protocol"> - <option ms-attr-value='el.cond_value'>{{el.name}}</option> - </select> - <span class="help-block"></span> - </div> - </div> - - <div class="form-group" ms-if="monitorInfo.customPara.PORT!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_port" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Login Port</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="PORT" ms-duplex="monitorInfo.customPara.PORT" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - - <div class="form-group" ms-if="monitorInfo.customPara.DBPORT!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_port" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Login Port</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="DBPORT" ms-duplex="monitorInfo.customPara.DBPORT" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - - <div class="form-group" ms-if="monitorInfo.customPara.SNMPPORT!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_snmpport" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Snmp Port</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="SNMPPORT" ms-duplex="monitorInfo.customPara.SNMPPORT" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - <div class="form-group" ms-if="monitorInfo.customPara.SNMPVERSION!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_snmpversion" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Snmp Version</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="SNMPVERSION" ms-duplex="monitorInfo.customPara.SNMPVERSION" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - <div class="form-group" ms-if="monitorInfo.customPara.SNMPCOMMUNITY!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_snmpcommunity" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Snmp Community</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="SNMPCOMMUNITY" ms-duplex="monitorInfo.customPara.SNMPCOMMUNITY" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - <div class="form-group" ms-if="monitorInfo.customPara.IPADDRESS2!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_agentIP" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Agent IP</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="IPADDRESS2" ms-duplex="monitorInfo.customPara.IPADDRESS2" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - <div class="form-group" ms-if="monitorInfo.customPara.USERNAME2!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_agentUsername" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Agent Username</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="USERNAME2" ms-duplex="monitorInfo.customPara.USERNAME2" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - <div class="form-group" ms-if="monitorInfo.customPara.PASSWORD2!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_agentPassword" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Agent Password</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="PASSWORD2" ms-duplex="monitorInfo.customPara.PASSWORD2" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - <div class="form-group" ms-if="monitorInfo.customPara.PROTOCOL2!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_agentProtocol" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Agent Protocol</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="PROTOCOL2" ms-duplex="monitorInfo.customPara.PROTOCOL2" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - <div class="form-group" ms-if="monitorInfo.customPara.PORT2!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_agentPort" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Agent port</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="PORT2" ms-duplex="monitorInfo.customPara.PORT2" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - <div class="form-group" ms-if="monitorInfo.customPara.PPMAXCOUNT!=null"> - <label class="control-label col-sm-3"> - <span id="com_zte_openo_umc_monitor_monitorsetting_ppMaxCount" name_i18n="com_zte_openo_umc_monitor_ui_i18n">PP Max Count</span> - <span class="required" aria-required="true">*</span> - </label> - <div class="col-sm-7"> - <input type="text" name="PPMAXCOUNT" ms-duplex="monitorInfo.customPara.PPMAXCOUNT" class="form-control"/> - <span class="help-block"></span> - </div> - </div> - </form> - </div> - <div class="modal-footer"> - <button class="btn btn-primary" type="submit" ms-click="saveMonitorSet()" id="com_zte_openo_umc_monitor_btn_save" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Save</button> - <button class="btn" ms-click="cancelMonitorSet()" id="com_zte_openo_umc_monitor_btn_cancel" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Cancel</button> - </div> - </div> - </div> - </div> - </div> - - <div class="row" style=" margin-top: 15px;"> - <div class="col-xs-6 col-sm-12 col-md-6 col-lg-6"> - <span class=" titlefont" id="com_zte_openo_umc_monitor_monitorsetting_titlename" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Monitor Para Setting </span> - - </div> - <div class="pull-right"> - <a href="#" ms-click="gotoMonitorListPage()" ><i class="fa fa-reply "></i> <span id="com_zte_openo_umc_monitor_return" name_i18n="com_zte_openo_umc_monitor_ui_i18n">return</span></a> - - </div> - - </div> - <div class="separator-line"></div> - - <div class="row row-fluid"> - - <button class="btn white radius_l" id="app-new-btn" style=" margin-bottom: 10px;" - ms-click="updateMonitorSet()"> - <i class="ict-gear"></i> <span id="com_zte_openo_umc_monitor_btn_monitorset" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Monitor Set</span> - </button> - - - <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 row" > - - <div class="form-body"> - - <div style="width:100%;" id="MonitorContent" class="collapse in main collapseContent"> - <div class="col-xs-6 col-md-6 col-sm-6 col-lg-6 border-right" > - <div class="monitor-icon"> - <div class="timeline-badge info"> - <i class="ict-VDU"></i> - </div> - </div> - <div style="float:left"> - <ul> - <li><b><span id="com_zte_openo_umc_monitor_dac_label" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.label"></span></li> - <li><b><span id="com_zte_openo_umc_monitor_monitorsetting_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.ipAddress"></span></li> - <li><b><span id="com_zte_openo_umc_monitor_monitorsetting_dac" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PROXYIP"></span></li> - - </ul> - </div> - </div> - - <div class="col-xs-6 col-md-6 col-sm-6 col-lg-6" > - - <div class="proxy_div"> - <ul> - <li ms-if="monitorInfo.customPara.VERSION!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_version" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.VERSION"></span></li> - <li ms-if="monitorInfo.customPara.USERNAME!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_user" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.USERNAME"></span></li> - <li ms-if="monitorInfo.customPara.PROTOCOL!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_protocol" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PROTOCOL"></span></li> - <li ms-if="monitorInfo.customPara.PORT!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_port" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PORT"></span></li> - <li ms-if="monitorInfo.customPara.DBPORT!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_port" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.DBPORT"></span></li> - <li ms-if="monitorInfo.customPara.SNMPPORT!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_snmpport" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.SNMPPORT"></span></li> - <li ms-if="monitorInfo.customPara.SNMPVERSION!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_snmpversion" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.SNMPVERSION"></span></li> - <li ms-if="monitorInfo.customPara.SNMPCOMMUNITY!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_snmpcommunity" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.SNMPCOMMUNITY"></span></li> - <li ms-if="monitorInfo.customPara.IPADDRESS2!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_agentIP" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.IPADDRESS2"></span></li> - <li ms-if="monitorInfo.customPara.USERNAME2!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_agentUsername" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.USERNAME2"></span></li> - <li ms-if="monitorInfo.customPara.PASSWORD2!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_agentPassword" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PASSWORD2"></span></li> - <li ms-if="monitorInfo.customPara.PROTOCOL2!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_agentProtocol" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PROTOCOL2"></span></li> - <li ms-if="monitorInfo.customPara.PORT2!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_agentPort" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PORT2"></span></li> - <li ms-if="monitorInfo.customPara.PPMAXCOUNT!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_ppMaxCount" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PPMAXCOUNT"></span></li> - </ul> - </div> - </div> - - </div> - </div> - </div> - - - - </div> - - -</div> - -<script type="text/javascript" src="/openoui/common/thirdparty/jquery/jquery-1.10.2.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap/js/bootstrap.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/jquery-validation/js/jquery.validate.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap-growl/bootstrap-growl.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/avalon/avalon.js"></script> -<script type="text/javascript" src="/openoui/common/js/tools.js"></script> -<script type="text/javascript" src="/openoui/common/js/core/hk.min.js" ></script> -<script type="text/javascript" src="js/monitorSettingUtil.js"></script> -<script type="text/javascript" src="js/monitorSettingController.js"></script> -<script type="text/javascript" src="js/loadi18nApp_ngict-umc-monitor.js"></script> - -<script> - - - - var lang= getLanguage(); - loadPropertiesSideMenu(lang, 'umc-monitor-iui-i18n', 'i18n/'); - - - var monitorUrlParm = window.location.search.split(":"); - if (monitorUrlParm && monitorUrlParm.length > 0) { - var oid = decodeURIComponent(monitorUrlParm[0]).replace("?",""); - - } - - vm.queryMonitorInstance(oid); - vm.queryDACs(); - - - - - jQuery.validator.addMethod("ip", function(value, element) { - return this.optional(element) || /^(([-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))\.)(([0-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))\.){2}([1-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))$/.test(value); - }, $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_ipaddress_format_errInfo')); - - var form = $('#monitorSetting_form'); - var error = $('.alert-danger', form); - var success = $('.alert-success', form); - - form.validate({ - doNotHideMessage: true, //this option enables to show the error/success messages on tab switch. - errorElement: 'span', //default input error message container - errorClass: 'help-block', // default input error message class - focusInvalid: false, // do not focus the last invalid input - rules: { - - USERNAME:{ - required: true, - maxlength:30 - }, - PASSWORD:{ - required: true, - maxlength:30 - }, - PORT:{ - required: true, - digits:true, - maxlength:5 - }, - DBPORT:{ - required: true, - digits:true, - maxlength:5 - }, - PROXYIP:{ - required: true, - }, - PROTOCOL:{ - required: true - }, - ipAddress:{ - required: true, - ip:true, - maxlength:20 - }, - name:{ - required: true, - maxlength:30 - } - }, - messages: { - USERNAME:{ - required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_user_empty_errInfo') - - }, - PASSWORD:{ - required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_password_empty_errInfo') - }, - PORT:{ - required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_port_empty_errInfo') - }, - DBPORT:{ - required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_port_empty_errInfo') - }, - PROXYIP:{ - required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_dac_empty_errInfo') - }, - PROTOCOL:{ - required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_protocol_empty_errInfo') - }, - ipAddress:{ - required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_ipaddress_empty_errInfo') - }, - name:{ - required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_name_empty_errInfo') - } - - }, - errorPlacement: function (error, element) { // render error placement for each input type - error.insertAfter(element); // for other inputs, just perform default behavior - }, - - invalidHandler: function (event, validator) { //display error alert on form submit - success.hide(); - error.show(); - //ZteFrameWork.scrollTo(error, -200); - }, - - highlight: function (element) { // hightlight error inputs - $(element) - .closest('.form-group').removeClass('has-success').addClass('has-error'); // set error class to the control group - }, - - unhighlight: function (element) { // revert the change done by hightlight - $(element) - .closest('.form-group').removeClass('has-error'); // set error class to the control group - }, - - success: function (label) { - label - .addClass('valid') // mark the current input as valid and display OK icon - .closest('.form-group').removeClass('has-error'); // set success class to the control group - }, - submitHandler: function (form) { - success.show(); - error.hide(); - //add here some ajax code to submit your form or just call form.submit() if you want to submit the form without ajax - } - - }); - - $("#select_protocol").change(function(){ - var checkValue=$("#select_protocol").val(); - if(checkValue=="SSH"){ - vm.monitorInfo.customPara.LOGINPORT="22"; - } - else if(checkValue=="TELNET"){ - vm.monitorInfo.customPara.LOGINPORT="23"; - } - }); - -</script> - -</body> +<!--
+ Copyright 2016, CMCC 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>
+<head lang="en">
+<meta charset="UTF-8">
+ <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/font-awesome/css/font-awesome.min.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/bootstrap/css/bootstrap.min.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/css/ngict-component.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/css/ZteIctIcons/style.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/animate/animate.min.css"/>
+ <link rel="stylesheet" type="text/css" href="css/monitorSetting.css"/>
+ <style>
+ .ms-controller {
+ visibility: hidden
+ }
+ </style>
+</head>
+<body>
+<div>
+ <div class="container-fluid" class="ms-controller" ms-controller="monitorController">
+
+ <div id="monitorSettingDlg" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="content">
+ <div class="modal-header">
+ <button type="button" class="close" ms-click="cancelMonitorSet()">×</button>
+ <h4 id="myModalLabel" ms-text="monitorSettingDlgInfo.titleName"></h4>
+ </div>
+ <div class="modal-body">
+ <div class="alert alert-info" ms-visible="server_rtn.info_block" ms-text="server_rtn.rtn_info"></div>
+ <div class="alert alert-danger " ms-visible="server_rtn.warning_block" ms-text="server_rtn.rtn_info"></div>
+ <form class="form-horizontal" id="monitorSetting_form" role="form">
+ <div class="form-group">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_dac_label" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="name" ms-duplex="monitorInfo.label" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n">IP Address</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="ipAddress" ms-duplex="monitorInfo.ipAddress" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_dac" name_i18n="com_zte_openo_umc_monitor_ui_i18n">DAC</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <select ms-each="dac.selectItems" name="PROXYIP" ms-duplex="monitorInfo.customPara.PROXYIP" class="form-control" style="width:150px">
+ <option ms-attr-value='el.ipAddress'>{{el.ipAddress}}</option>
+ </select>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ <div class="form-group" ms-if="monitorInfo.customPara.VERSION!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_version" name_i18n="com_zte_openo_umc_monitor_ui_i18n">version</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="VERSION" ms-duplex="monitorInfo.customPara.VERSION" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ <div class="form-group" ms-if="monitorInfo.customPara.USERNAME!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_user" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Login User</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="USERNAME" ms-duplex="monitorInfo.customPara.USERNAME" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+
+ <div class="form-group" ms-if="monitorInfo.customPara.PASSWORD!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_password" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Login Password</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="password" name="PASSWORD" ms-duplex="monitorInfo.customPara.PASSWORD" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+
+ <div class="form-group" ms-if="monitorInfo.customPara.PROTOCOL!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_protocol" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Login Protocol</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <select ms-each="$loginProtocol.selectItems" ms-duplex="monitorInfo.customPara.PROTOCOL" class="form-control" style="width:150px" name="ROTOCOL" id="select_protocol">
+ <option ms-attr-value='el.cond_value'>{{el.name}}</option>
+ </select>
+ <span class="help-block"></span>
+ </div>
+ </div>
+
+ <div class="form-group" ms-if="monitorInfo.customPara.PORT!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_port" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Login Port</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="PORT" ms-duplex="monitorInfo.customPara.PORT" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+
+ <div class="form-group" ms-if="monitorInfo.customPara.DBPORT!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_port" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Login Port</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="DBPORT" ms-duplex="monitorInfo.customPara.DBPORT" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+
+ <div class="form-group" ms-if="monitorInfo.customPara.SNMPPORT!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_snmpport" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Snmp Port</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="SNMPPORT" ms-duplex="monitorInfo.customPara.SNMPPORT" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ <div class="form-group" ms-if="monitorInfo.customPara.SNMPVERSION!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_snmpversion" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Snmp Version</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="SNMPVERSION" ms-duplex="monitorInfo.customPara.SNMPVERSION" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ <div class="form-group" ms-if="monitorInfo.customPara.SNMPCOMMUNITY!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_snmpcommunity" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Snmp Community</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="SNMPCOMMUNITY" ms-duplex="monitorInfo.customPara.SNMPCOMMUNITY" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ <div class="form-group" ms-if="monitorInfo.customPara.IPADDRESS2!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_agentIP" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Agent IP</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="IPADDRESS2" ms-duplex="monitorInfo.customPara.IPADDRESS2" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ <div class="form-group" ms-if="monitorInfo.customPara.USERNAME2!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_agentUsername" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Agent Username</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="USERNAME2" ms-duplex="monitorInfo.customPara.USERNAME2" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ <div class="form-group" ms-if="monitorInfo.customPara.PASSWORD2!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_agentPassword" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Agent Password</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="PASSWORD2" ms-duplex="monitorInfo.customPara.PASSWORD2" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ <div class="form-group" ms-if="monitorInfo.customPara.PROTOCOL2!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_agentProtocol" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Agent Protocol</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="PROTOCOL2" ms-duplex="monitorInfo.customPara.PROTOCOL2" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ <div class="form-group" ms-if="monitorInfo.customPara.PORT2!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_agentPort" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Agent port</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="PORT2" ms-duplex="monitorInfo.customPara.PORT2" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ <div class="form-group" ms-if="monitorInfo.customPara.PPMAXCOUNT!=null">
+ <label class="control-label col-sm-3">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_ppMaxCount" name_i18n="com_zte_openo_umc_monitor_ui_i18n">PP Max Count</span>
+ <span class="required" aria-required="true">*</span>
+ </label>
+ <div class="col-sm-7">
+ <input type="text" name="PPMAXCOUNT" ms-duplex="monitorInfo.customPara.PPMAXCOUNT" class="form-control"/>
+ <span class="help-block"></span>
+ </div>
+ </div>
+ </form>
+ </div>
+ <div class="modal-footer">
+ <button class="btn btn-primary" type="submit" ms-click="saveMonitorSet()" id="com_zte_openo_umc_monitor_btn_save" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Save</button>
+ <button class="btn" ms-click="cancelMonitorSet()" id="com_zte_openo_umc_monitor_btn_cancel" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Cancel</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="row" style=" margin-top: 15px;">
+ <div class="col-xs-6 col-sm-12 col-md-6 col-lg-6">
+ <span class=" titlefont" id="com_zte_openo_umc_monitor_monitorsetting_titlename" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Monitor Para Setting </span>
+
+ </div>
+ <div class="pull-right">
+ <a href="#" ms-click="gotoMonitorListPage()" ><i class="fa fa-reply "></i> <span id="com_zte_openo_umc_monitor_return" name_i18n="com_zte_openo_umc_monitor_ui_i18n">return</span></a>
+
+ </div>
+
+ </div>
+ <div class="separator-line"></div>
+
+ <div class="row row-fluid">
+
+ <button class="btn white radius_l" id="app-new-btn" style=" margin-bottom: 10px;"
+ ms-click="updateMonitorSet()">
+ <i class="ict-gear"></i> <span id="com_zte_openo_umc_monitor_btn_monitorset" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Monitor Set</span>
+ </button>
+
+
+ <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 row" >
+
+ <div class="form-body">
+
+ <div style="width:100%;" id="MonitorContent" class="collapse in main collapseContent">
+ <div class="col-xs-6 col-md-6 col-sm-6 col-lg-6 border-right" >
+ <div class="monitor-icon">
+ <div class="timeline-badge info">
+ <i class="ict-VDU"></i>
+ </div>
+ </div>
+ <div style="float:left">
+ <ul>
+ <li><b><span id="com_zte_openo_umc_monitor_dac_label" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.label"></span></li>
+ <li><b><span id="com_zte_openo_umc_monitor_monitorsetting_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.ipAddress"></span></li>
+ <li><b><span id="com_zte_openo_umc_monitor_monitorsetting_dac" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PROXYIP"></span></li>
+
+ </ul>
+ </div>
+ </div>
+
+ <div class="col-xs-6 col-md-6 col-sm-6 col-lg-6" >
+
+ <div class="proxy_div">
+ <ul>
+ <li ms-if="monitorInfo.customPara.VERSION!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_version" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.VERSION"></span></li>
+ <li ms-if="monitorInfo.customPara.USERNAME!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_user" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.USERNAME"></span></li>
+ <li ms-if="monitorInfo.customPara.PROTOCOL!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_protocol" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PROTOCOL"></span></li>
+ <li ms-if="monitorInfo.customPara.PORT!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_port" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PORT"></span></li>
+ <li ms-if="monitorInfo.customPara.DBPORT!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_port" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.DBPORT"></span></li>
+ <li ms-if="monitorInfo.customPara.SNMPPORT!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_snmpport" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.SNMPPORT"></span></li>
+ <li ms-if="monitorInfo.customPara.SNMPVERSION!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_snmpversion" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.SNMPVERSION"></span></li>
+ <li ms-if="monitorInfo.customPara.SNMPCOMMUNITY!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_snmpcommunity" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.SNMPCOMMUNITY"></span></li>
+ <li ms-if="monitorInfo.customPara.IPADDRESS2!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_agentIP" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.IPADDRESS2"></span></li>
+ <li ms-if="monitorInfo.customPara.USERNAME2!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_agentUsername" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.USERNAME2"></span></li>
+ <li ms-if="monitorInfo.customPara.PASSWORD2!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_agentPassword" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PASSWORD2"></span></li>
+ <li ms-if="monitorInfo.customPara.PROTOCOL2!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_agentProtocol" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PROTOCOL2"></span></li>
+ <li ms-if="monitorInfo.customPara.PORT2!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_agentPort" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PORT2"></span></li>
+ <li ms-if="monitorInfo.customPara.PPMAXCOUNT!=null"><b><span id="com_zte_openo_umc_monitor_monitorsetting_ppMaxCount" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>: </b> <span ms-text="monitorInfo.customPara.PPMAXCOUNT"></span></li>
+ </ul>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ </div>
+
+
+
+ </div>
+
+
+</div>
+
+<script type="text/javascript" src="/openoui/common/thirdparty/jquery/jquery-1.10.2.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap/js/bootstrap.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/jquery-validation/js/jquery.validate.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap-growl/bootstrap-growl.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/avalon/avalon.js"></script>
+<script type="text/javascript" src="/openoui/common/js/tools.js"></script>
+<script type="text/javascript" src="/openoui/common/js/core/hk.min.js" ></script>
+<script type="text/javascript" src="js/monitorSettingUtil.js"></script>
+<script type="text/javascript" src="js/monitorSettingController.js"></script>
+<script type="text/javascript" src="js/loadi18nApp_ngict-umc-monitor.js"></script>
+
+<script>
+
+
+
+ var lang= getLanguage();
+ loadPropertiesSideMenu(lang, 'umc-monitor-iui-i18n', 'i18n/');
+
+
+ var monitorUrlParm = window.location.search.split(":");
+ if (monitorUrlParm && monitorUrlParm.length > 0) {
+ var oid = decodeURIComponent(monitorUrlParm[0]).replace("?","");
+
+ }
+
+ vm.queryMonitorInstance(oid);
+ vm.queryDACs();
+
+
+
+
+ jQuery.validator.addMethod("ip", function(value, element) {
+ return this.optional(element) || /^(([-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))\.)(([0-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))\.){2}([1-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))$/.test(value);
+ }, $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_ipaddress_format_errInfo'));
+
+ var form = $('#monitorSetting_form');
+ var error = $('.alert-danger', form);
+ var success = $('.alert-success', form);
+
+ form.validate({
+ doNotHideMessage: true, //this option enables to show the error/success messages on tab switch.
+ errorElement: 'span', //default input error message container
+ errorClass: 'help-block', // default input error message class
+ focusInvalid: false, // do not focus the last invalid input
+ rules: {
+
+ USERNAME:{
+ required: true,
+ maxlength:30
+ },
+ PASSWORD:{
+ required: true,
+ maxlength:30
+ },
+ PORT:{
+ required: true,
+ digits:true,
+ maxlength:5
+ },
+ DBPORT:{
+ required: true,
+ digits:true,
+ maxlength:5
+ },
+ PROXYIP:{
+ required: true,
+ },
+ PROTOCOL:{
+ required: true
+ },
+ ipAddress:{
+ required: true,
+ ip:true,
+ maxlength:20
+ },
+ name:{
+ required: true,
+ maxlength:30
+ }
+ },
+ messages: {
+ USERNAME:{
+ required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_user_empty_errInfo')
+
+ },
+ PASSWORD:{
+ required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_password_empty_errInfo')
+ },
+ PORT:{
+ required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_port_empty_errInfo')
+ },
+ DBPORT:{
+ required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_port_empty_errInfo')
+ },
+ PROXYIP:{
+ required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_dac_empty_errInfo')
+ },
+ PROTOCOL:{
+ required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_protocol_empty_errInfo')
+ },
+ ipAddress:{
+ required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_ipaddress_empty_errInfo')
+ },
+ name:{
+ required: $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_name_empty_errInfo')
+ }
+
+ },
+ errorPlacement: function (error, element) { // render error placement for each input type
+ error.insertAfter(element); // for other inputs, just perform default behavior
+ },
+
+ invalidHandler: function (event, validator) { //display error alert on form submit
+ success.hide();
+ error.show();
+ //ZteFrameWork.scrollTo(error, -200);
+ },
+
+ highlight: function (element) { // hightlight error inputs
+ $(element)
+ .closest('.form-group').removeClass('has-success').addClass('has-error'); // set error class to the control group
+ },
+
+ unhighlight: function (element) { // revert the change done by hightlight
+ $(element)
+ .closest('.form-group').removeClass('has-error'); // set error class to the control group
+ },
+
+ success: function (label) {
+ label
+ .addClass('valid') // mark the current input as valid and display OK icon
+ .closest('.form-group').removeClass('has-error'); // set success class to the control group
+ },
+ submitHandler: function (form) {
+ success.show();
+ error.hide();
+ //add here some ajax code to submit your form or just call form.submit() if you want to submit the form without ajax
+ }
+
+ });
+
+ $("#select_protocol").change(function(){
+ var checkValue=$("#select_protocol").val();
+ if(checkValue=="SSH"){
+ vm.monitorInfo.customPara.LOGINPORT="22";
+ }
+ else if(checkValue=="TELNET"){
+ vm.monitorInfo.customPara.LOGINPORT="23";
+ }
+ });
+
+</script>
+
+</body>
</html>
\ No newline at end of file diff --git a/openo-portal/portal-monitor/src/main/webapp/monitor/monitorSettingList.html b/openo-portal/portal-monitor/src/main/webapp/monitor/monitorSettingList.html index ec8dbfe7..2026b5e4 100644 --- a/openo-portal/portal-monitor/src/main/webapp/monitor/monitorSettingList.html +++ b/openo-portal/portal-monitor/src/main/webapp/monitor/monitorSettingList.html @@ -1,103 +1,103 @@ -<!-- - Copyright 2016, CMCC 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> -<head lang="en"> -<meta charset="UTF-8"> - <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/font-awesome/css/font-awesome.min.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/bootstrap/css/bootstrap.min.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/animate/animate.min.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/data-tables/dataTables.bootstrap.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/css/ngict-component.css"/> - <link rel="stylesheet" type="text/css" href="/openoui/common/css/ZteIctIcons/style.css"/> - <link rel="stylesheet" type="text/css" href="css/monitorSetting.css"/> - <style> - .ms-controller { - visibility: hidden - } - </style> -</head> -<body> - - <div class="container-fluid" class="ms-controller" ms-controller="monitorController"> - - - - <div class="row" style=" margin-top: 15px;"> - <div class="col-xs-6 col-sm-12 col-md-6 col-lg-6"> - <span class=" titlefont" id="com_zte_openo_umc_monitor_monitorList_titeName" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Monitor Para List </span> - </div> - - </div> - <div class="separator-line"></div> - <button class="btn white radius_l" id="app-new-btn" style=" margin-bottom: 10px;" ms-click="gotoDACPage()"> - <i class="ict-it-net"></i> - <span id="com_zte_openo_umc_monitor_monitorList_dac_manage" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span> - </button> - - - <div class="row row-fluid"> - <table class="table table-striped table-bordered table-hover dataTable " id="monitorManagerTable"> - <thead> - <tr class="heading"> - <th style="width: 80px;" id="com_zte_openo_umc_monitor_monitorList_monitor_sn" name_i18n="com_zte_openo_umc_monitor_ui_i18n">SN</th> - <th id="com_zte_openo_umc_monitor_monitorList_monitor_name" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Display Name</th> - <th id="com_zte_openo_umc_monitor_monitorList_monitor_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n">IP Address</th> - <th id="com_zte_openo_umc_monitor_monitorList_monitor_dacip" name_i18n="com_zte_openo_umc_monitor_ui_i18n">DAC IP Address</th> - <th id="com_zte_openo_umc_monitor_monitorList_monitor_type" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Type</th> - <th id="com_zte_openo_umc_monitor_monitorList_monitor_opr" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Opr</th> - - </tr> - </thead> - <tbody ms-each-monitor="resource.monitorList"> - <tr> - <td>{{$index+1}}</td> - <td><a href="#" ms-click="gotoMonitorSettingPage(monitor.oid)">{{monitor.label}}</a></td> - <td ms-text="monitor.ipAddress"></td> - <td ms-text="monitor.customPara.PROXYIP"></td> - <td>{{monitor.neTypeId}}</td> - <td> - <a href="#" ms-click="deleteMonitorInfo(monitor.oid)"> - <span id="com_zte_openo_umc_monitor_monitorsetting_delete" name_i18n="com_zte_openo_umc_monitor_ui_i18n">delete</span> - </a> - </td> - </tr> - </tbody> - </table> - </div> - </div> -<script type="text/javascript" src="/openoui/common/thirdparty/jquery/jquery-1.10.2.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap/js/bootstrap.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script> -<script type="text/javascript" src="js/loadi18nApp_ngict-umc-monitor.js"></script> -<script type="text/javascript" src="/openoui/common/js/tools.js"></script> -<script type="text/javascript" src="/openoui/common/js/core/hk.min.js" ></script> -<script type="text/javascript"> - var lang= getLanguage(); - loadPropertiesSideMenu(lang, 'umc-monitor-iui-i18n', 'i18n/'); -</script> -<script type="text/javascript" src="/openoui/common/thirdparty/data-tables/jquery.dataTables.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap-growl/bootstrap-growl.min.js"></script> -<script type="text/javascript" src="/openoui/common/thirdparty/avalon/avalon.js"></script> -<script type="text/javascript" src="js/monitorSettingUtil.js"></script> -<script type="text/javascript" src="js/monitorSettingController.js"></script> -<script> - $(function(){ - vm.queryMonitorList(); - }); -</script> -</body> -</html> +<!--
+ Copyright 2016, CMCC 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>
+<head lang="en">
+<meta charset="UTF-8">
+ <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/font-awesome/css/font-awesome.min.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/bootstrap/css/bootstrap.min.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/animate/animate.min.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/thirdparty/data-tables/dataTables.bootstrap.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/css/ngict-component.css"/>
+ <link rel="stylesheet" type="text/css" href="/openoui/common/css/ZteIctIcons/style.css"/>
+ <link rel="stylesheet" type="text/css" href="css/monitorSetting.css"/>
+ <style>
+ .ms-controller {
+ visibility: hidden
+ }
+ </style>
+</head>
+<body>
+
+ <div class="container-fluid" class="ms-controller" ms-controller="monitorController">
+
+
+
+ <div class="row" style=" margin-top: 15px;">
+ <div class="col-xs-6 col-sm-12 col-md-6 col-lg-6">
+ <span class=" titlefont" id="com_zte_openo_umc_monitor_monitorList_titeName" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Monitor Para List </span>
+ </div>
+
+ </div>
+ <div class="separator-line"></div>
+ <button class="btn white radius_l" id="app-new-btn" style=" margin-bottom: 10px;" ms-click="gotoDACPage()">
+ <i class="ict-it-net"></i>
+ <span id="com_zte_openo_umc_monitor_monitorList_dac_manage" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>
+ </button>
+
+
+ <div class="row row-fluid">
+ <table class="table table-striped table-bordered table-hover dataTable " id="monitorManagerTable">
+ <thead>
+ <tr class="heading">
+ <th style="width: 80px;" id="com_zte_openo_umc_monitor_monitorList_monitor_sn" name_i18n="com_zte_openo_umc_monitor_ui_i18n">SN</th>
+ <th id="com_zte_openo_umc_monitor_monitorList_monitor_name" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Display Name</th>
+ <th id="com_zte_openo_umc_monitor_monitorList_monitor_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n">IP Address</th>
+ <th id="com_zte_openo_umc_monitor_monitorList_monitor_dacip" name_i18n="com_zte_openo_umc_monitor_ui_i18n">DAC IP Address</th>
+ <th id="com_zte_openo_umc_monitor_monitorList_monitor_type" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Type</th>
+ <th id="com_zte_openo_umc_monitor_monitorList_monitor_opr" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Opr</th>
+
+ </tr>
+ </thead>
+ <tbody ms-each-monitor="resource.monitorList">
+ <tr>
+ <td>{{$index+1}}</td>
+ <td><a href="#" ms-click="gotoMonitorSettingPage(monitor.oid)">{{monitor.label}}</a></td>
+ <td ms-text="monitor.ipAddress"></td>
+ <td ms-text="monitor.customPara.PROXYIP"></td>
+ <td>{{monitor.neTypeId}}</td>
+ <td>
+ <a href="#" ms-click="deleteMonitorInfo(monitor.oid)">
+ <span id="com_zte_openo_umc_monitor_monitorsetting_delete" name_i18n="com_zte_openo_umc_monitor_ui_i18n">delete</span>
+ </a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+<script type="text/javascript" src="/openoui/common/thirdparty/jquery/jquery-1.10.2.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap/js/bootstrap.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
+<script type="text/javascript" src="js/loadi18nApp_ngict-umc-monitor.js"></script>
+<script type="text/javascript" src="/openoui/common/js/tools.js"></script>
+<script type="text/javascript" src="/openoui/common/js/core/hk.min.js" ></script>
+<script type="text/javascript">
+ var lang= getLanguage();
+ loadPropertiesSideMenu(lang, 'umc-monitor-iui-i18n', 'i18n/');
+</script>
+<script type="text/javascript" src="/openoui/common/thirdparty/data-tables/jquery.dataTables.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/bootstrap-growl/bootstrap-growl.min.js"></script>
+<script type="text/javascript" src="/openoui/common/thirdparty/avalon/avalon.js"></script>
+<script type="text/javascript" src="js/monitorSettingUtil.js"></script>
+<script type="text/javascript" src="js/monitorSettingController.js"></script>
+<script>
+ $(function(){
+ vm.queryMonitorList();
+ });
+</script>
+</body>
+</html>
|