-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
217 lines (201 loc) · 9.03 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
<!DOCTYPE html>
<html ng-app="myApp">
<head lang="en">
<script src="js/jquery.min.js"></script>
<script src="js/chart/d3.js"></script>
<script src="squel.js"></script>
<link rel="stylesheet" href="ms/angular-multi-select.css">
<script type="text/javascript" src="angular.js"></script>
<link rel="stylesheet" type="text/css" href="ng-grid.css"/>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script type="text/javascript" src="ng-grid.js"></script>
<script src="js/chart/nv.d3.js"></script>
<script src="js/chart/angularjs-nvd3-directives.js"></script>
<script src="ms/angular-multi-select.js"></script>
<script type="text/javascript" src="ng-grid.js"></script>
<script type="text/javascript" src="main.js"></script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>MIFOS Query Builder</title>
<link href="stylesheets/bootstrap.min.css" rel="stylesheet">
<link href="stylesheets/dashboard.css" rel="stylesheet">
<link rel="stylesheet" href="stylesheets/jquery.dataTables.css">
<script src="js/jquery.min.js"></script>
<script src="js/jquery.dataTables.js"></script>
<link rel="stylesheet" type="text/css" href="shCore.css">
<script type="text/javascript" language="javascript" src="shCore.js"></script>
</head>
<body ng-controller="MyCtrl">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Query Builder</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a id="exportCsv" href="#">export csv</a></li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<ul class="nav nav-sidebar">
<li class="businessObjects" ng-repeat="b in businesObjects"><a ng-click="selectBo(b.name)" href="#">{{b.name}}</a></li>
</ul>
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header">Filters</h1>
<div class="row placeholders">
<div class="col-xs-6 col-sm-3 placeholder" ng-repeat="(key,value) in currentBOFilters">
{{key}}:
<div
multi-select
input-model="filterInputData[key]"
button-label="icon name"
max-labels="2"
item-label="icon name maker"
tick-property="ticked"
output-model="filterOutputData[key]"
>
</div>
</div>
</div>
<h1 class="page-header">Report Settings:</h1>
<div class="row placeholders">
<div class="col-xs-6 col-sm-3 placeholder">
<h2>Search in fields:</h2>
<div
multi-select
max-labels="2"
input-model="tableFields"
button-label="text"
item-label="text operator"
helper-elements="all"
tick-property="ticked"
output-model="searchInFields"
>
</div>
</div>
<div class="col-xs-6 col-sm-3 placeholder">
<h2>Fields in Report:</h2>
<div
multi-select
max-labels="2"
input-model="boFields"
button-label="name"
item-label="name operator"
helper-elements="all"
tick-property="ticked"
output-model="boFieldsChecked"
>
</div>
</div>
</div>
<h1 class="page-header">Custom filters:</h1>
<div class="row placeholders">
<div class="col-xs-9 col-sm-6 placeholder">
<table class="table">
<tr ng-repeat="(key,value) in searchFields" condition="$first" >
<td ng-if="!$first">
<select ng-model="value.andOr">
<option value="and">and</option>
<option value="or">or</option>
</select>
</td>
<td ng-if="$first" >
</td>
<td>{{key}}</td>
<td><select ng-model="value.operator">
<option value="=">is</option>
<option value=">">greater than</option>
<option value="<">less than</option>
<option value="!=">is not</option>
<option ng-if="!value.compareToOtherField" value="like">like</option>
<option ng-if="!value.compareToOtherField&&value.type!=='text'" value="BETWEEN">BETWEEN</option>
</select></td>
<td>
<input title="Compare to other field" ng-model="value.compareToOtherField" type="checkbox">
</td>
<td ng-if="value.compareToOtherField">
<select ng-model="value.value2">
<option ng-repeat="(key,value) in tableFields" value="{{value.name}}">{{value.text}}</option>
</select>
</td>
<td ng-if="value.compareToOtherField"><select ng-model="value.operator2">
<option value="+">+</option>
<option value="-">-</option>
<option value="*">*</option>
<option value="/">/</option>
</select></td>
<td><input type="{{value.type}}" ng-model="value.value"></td>
<td ng-if="value.operator=='BETWEEN'"><input type="{{value.type}}" ng-model="value.value3"></td>
</tr>
</table>
</div>
</div>
<button class="button" ng-click="loadData()">Get Data</button>
<h2 class="sub-header">results</h2>
<div class="table-responsive">
<!--<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>Header</th>
<th>Header</th>
<th>Header</th>
<th>Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>1,001</td>
<td>Lorem</td>
<td>ipsum</td>
<td>dolor</td>
<td>sit</td>
</tr>
</tbody>
</table>-->
<!--<div style="height: 400px" class="gridStyle" ng-grid="gridOptions">
</div>-->
<table id="dataTable">
<thead>
<tr>
<td ng-repeat="(key,value) in myData[0]">
{{key}}
</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="data in myData">
<td ng-repeat="(key,value) in data">
{{value}}
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td ng-repeat="(key,value) in myData[0]">
{{key}}
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
<script src="js/bootstrap.min.js"></script>
</body>
</html>