-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
239 lines (197 loc) · 11.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!doctype html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Ping</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="style/animate.css" />
<link rel="stylesheet" href="style/bootstrap.min.css">
<link rel="stylesheet" href="style/main.css">
<link rel="stylesheet" href="style/style.css">
<link rel="stylesheet" href="style/ng-modal.css">
<link rel="stylesheet" href="style/angular-material.min.css">
<link rel="stylesheet" href="style/toaster.css">
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<style>
.Loading {
display: inline-block;
vertical-align: middle;
background-position: center;
background:no-repeat;
background-image: url('data:image/gif;base64,R0lGODlh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LSNAqpildyZRBlyFB2EYlaFcwkTbPZpIJYDASjC4/BwMQM0NhiOshlEkzmJDM5YTKR6ZTAmmSRqocY8RIlMBNBm5R4IChkkQS3Wk0CKRIHEAd5fRkBAIoPg42HIg6KAA6NhI8ZkYoOBIQQEpcPkg9XfJcZCg9bLBWFc0kEBxVWIgeNFSucg7csnbUZggefjYNtF5WyvXu9cwm6N704FYSzLG0JnRBWF659wJ99IQAh+QQIBgAAACwAAAAAFAAUAAAFtaAmjiJEURCpipYlEoZBGYRmSYmaIFCVQLIYhBA4ZFIsHo9Qmc0Ij4M0k7NBlAiNCaXJSKWSUUVZWVEa0oBLlBgT1qQEJfCosXGrlcAg0EggV3Z5GgYXhhQIWIMiA4YXEVeAWYuNhgN/iYJ5hYcaCQRhiyICFH0sbnAjEgcTEZMiY4ErBwC1CmsWkYl+iWEFtbV2Fko9P0oSEcAOVZ48PphXEggKAA4YKi1sumEWBMyD0hChKyEAIfkECAYAAAAsAAAAABQAFACEZGZktLa03N7clJKU9PL0zM7MpKak7OrsnJqc/Pr81NbUhIaExMbErK6sdHJ0vLq85ObklJaU9Pb01NLUrKqs7O7snJ6c/P783Nrc////AAAAAAAAAAAAAAAAAAAAAAAABbRgJo6idBwSqYrXJSYQdEBJdiU1mcxVQswziWTCKFRGFyCEYJKhMIxoIXeROTPNFDHKyGUqwKNKIJ14E2CCSwWbmEcJiXc1gkwg2NiBQB8pKAYUCidXfRkNgQYNVjKGhwaBFBJOfIZ/kAoZPimOGXYHSGlrOgEIFGIiYDKVJAELrxZrVUAHFwEODgEXCK+vlUlWFQoAxAATFL0DZzwJAcUAARW8AxgqLSITzxM2BHN0D7gBfSEAOw==');
width:20px;
height:20px;
margin-top:6px;
margin-right:7px;
}
.AutocompleteDropDown {
background-color: #fcf8e3;
}
</style>
</head>
<body ng-app="pingmonitor">
<!-- Show the directory currently used - remove it on a production server to not display the internal disk structure -->
<!-- Page Directory: @_PAGEDIRECTORY_@ -->
<h1><center>Ping the server</center></h1>
<div class="container-fluid" id="accordion">
<div class="row">
<div class="component col-xs-12" ng-controller="PingControler as pingctrl">
<legend class="text-primary"><span class="glyphicon glyphicon-th"></span>Ping server 2.5.1</legend>
<div class="panel panel-primary">
<div class="explanation">
Ping Controler.
</div>
<table>
<tr><td style="padding-right: 40px;vertical-align: top;">
<button ng-click="pingctrl.ping()" ng-disable="pingctrl.inprogress" class="btn btn-info btn-xs">Collect informations</button>
</td><td style="padding-right: 40px;vertical-align: top;">
<button ng-click="pingctrl.openDialog()" ng-disable="pingctrl.inprogress" class="btn btn-info btn-xs">Dialog</button> <p>
</td><td>
<div ng-show="pingctrl.inprogress">
<span class="Loading">.</span>
Please wait, collect in progress
</div>
</td></tr>
</table>
<toaster-container></toaster-container>
<div class="row">
<div class="col-lg-1">
</div>
<div class="col-lg-5">
<div class="panel panel-info">
<div class="panel-heading">Status of operation (events)</div>
<div>
<p>
<div class="well">
Operations return BonitaEvent. An event give a code, a title, a level (INFO,ERROR,...),an action in case of ERROR and a Consequence in case of ERROR
</div>
<center>
<div ng-bind-html="pingctrl.getListEvents(pingctrl.listevents )"></div>
</center>
<p>
</div>
</div>
</div>
<div class="col-lg-5">
<div class="panel panel-primary">
<div class="panel-heading">Bonita Properties</div>
<div>
<div class="well">
This information is save via the BonitaProperties, in the Bonita Database. So, it's persistent and can be share in a clsuter. It's saved in the backup too.<br>
Give a value, save it.<br>
Click again on the page (or logout) : the value is retrieve from the database and it visible again.
</div>
<center>
<button class="btn btn-success" ng-click="pingctrl.loadProps()">Refresh</button> <p>
</center>
My First name : <input type="input" ng-model="pingctrl.propsFirstName" size="50"><p>
<center>
<button class="btn btn-success " ng-click="pingctrl.saveProps()">Save</button> <p>
</center>
</div>
</div>
</div>
</div>
<p>
<h3>Server state</h3>
<table class="table table-striped table-hover table-condensed">
<tr> <td>Ping date</td><td>{{pingctrl.pingdate}}</td></tr>
<tr> <td>Ping info</td><td>{{pingctrl.pinginfo}}</td></tr>
</table>
<h3>List of processes</h3>
<a ng-click="pingctrl.exportData()" title="Click to export to Excel file"><img src="img/docexcel.gif" /></a>
<table class="table table-striped table-hover table-condensed" style="background-color:#dff0d8">
<tr>
<th>Name</th>
<th>Version</th>
<th>State</th>
<th>Deployed</th>
</tr>
<tr ng-repeat="processinfo in pingctrl.listprocesses track by $index">
<td>{{processinfo.name}}</td>
<td>{{processinfo.version}}</td>
<td>{{processinfo.state}}</td>
<td>{{processinfo.deployeddate}}</td>
</tr>
</table>
<h3>List of users</h3>
<table class="table table-striped table-hover table-condensed" style="background-color:#fcf8e3">
<tr>
<th>UserName</th>
<th>FirstName</th>
<th>lastName</th>
<th>Enable</th>
</tr>
<tr ng-repeat="userinfo in pingctrl.listusers track by $index">
<td>{{userinfo.username}}</td>
<td>{{userinfo.firstname}}</td>
<td>{{userinfo.lastname}}</td>
<td>{{userinfo.enable}}</td>
</tr>
</table>
<table>
<tr>
<td>My preferate user: (enjoy the autocomplete)</td>
<td> <span ng-show="pingctrl.autocomplete.inprogress" class="Loading"></span></td>
<td>
<md-autocomplete md-selected-item="pingctrl.autocomplete.selecteduser" md-search-text="pingctrl.autocomplete.searchuser" md-items="item in pingctrl.queryUser( adminctrl.autocomplete.searchuser )"
md-item-text="item.display" md-delay="500"
md-floating-label="User"
md-clear-button="false"
style="width:300px"
md-menu-class="AutocompleteDropDown">
<span md-highlight-text="pingctrl.autocomplete.searchuser">{{item.display}}</span>
</md-autocomplete>
</td>
</tr>
</table>
<h3>Chart</h3>
<div google-chart chart="chartObject" style="height: 400px; width: 100%; position: relative; "></div>
</div>
<modal-dialog show='pingctrl.isshowDialog' dialog-title='Details' width='75%' height='80%' close="pingctrl.closeDialog()">
<div class="modal-content" width='100%' height='100%'>
<h2>Here a modal</h2>
<p>
<p>
So, here you can set up different information here. To close it, click on the close button on the top left
</div>
</modal-dialog>
</div>
</div>
</div>
<!-- Third party dependencies -->
<script src="3rd-party/jquery.min.js"></script>
<script src="3rd-party/angular.min.js"></script>
<script src="3rd-party/angular-resource.min.js"></script>
<script src="3rd-party/angular-cookies.min.js"></script>
<script src="3rd-party/bootstrap/js/bootstrap.min.js"></script>
<script src="3rd-party/angular-bootstrap-tpls.min.js"></script>
<script src="3rd-party/angular-file-upload.js"></script>
<script src="3rd-party/ng-google-chart.js"></script>
<script src="3rd-party/angular-sanitize.min.js"></script>
<script src="3rd-party/ng-modal.min.js"></script>
<!-- Material (autocomplete) -->
<script src="3rd-party/angular-animate.min.js"></script>
<script src="3rd-party/angular-aria.min.js"></script>
<script src="3rd-party/angular-messages.min.js"></script>
<script src="3rd-party/angular-material.min.js"></script>
<script src="3rd-party/toaster.min.js"></script>
<!-- Application dependencies -->
<!-- to be sure to reload every time the JS file, add this marker -->
<script src="pageResource?page=custompage_ping&location=pingmonitor.js&t=@_CURRENTTIMEMILIS_@"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/alasql/0.3/alasql.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.10.3/xlsx.full.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.10.3/xlsx.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.10.3/xlsx.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.10.3/xlsx.core.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.10.3/cpexcel.js"></script>
</body>
</html>