-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.html
159 lines (142 loc) · 5.27 KB
/
org.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
<!-- SPDX-License-Identifier: Apache-2.0 -->
<!DOCTYPE html>
<html>
<head>
<title>Charity Event Tracker</title>
<!-- require jquery and bootstrap scripts -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
<!-- adding style here -->
<style type="text/css">
body {background-color: #EBF4FA;}
header{
background-color: #000000;
font-size:25px;
padding:25px;
}
header, .form-group{
margin-bottom:2%;
}
.form-group{
width:50%;
margin-bottom:2%;
}
#body{
margin-left:3%;
margin-right:3%;
margin-bottom:2%;
}
.form-control{
margin: 0px;
margin-bottom:1%;
}
#right_header{
width:20%;
font-size:30px;
margin-right:0px;
}
#left_header{
margin-left:0;
width:40%;
display:inline-block;
color: #FEFCFF;
}
#headerline {
width:0%;
font-size:20px;
margin-bottom:2%;
color: #FEFCFF;
/*display: inline-block;*/
}
#line {
width:0%;
font-size:20px;
margin-bottom:2%;
/*display: inline-block;*/
}
table {
font-family: arial, sans-serif;
width: 100%;
}
td, th {
border: 2px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
<body ng-app="application" ng-controller="appController">
<header>
<b id="left_header">Charity Event Registration and Spending Record</b>
<div><i id="headerline">Built with Hyperledger Fabric (Blockchain)</i></div>
<br>
<a id="headerline" href = "index.html" type="submit" style="font-face: 'Comic Sans MS'; font-size: 16px; color: black; background-color: #E6E6E6; border: 2pt black; width: 100px;" class="btn btn-primary" color="red">Homepage</a>
</header>
<div id="body">
<div class="form-group">
<b id=line>All Charity Events</b>
<span id=line>: Find information of all charity events.</span>
<p><input id="queryAllCharities" type="submit" style="font-face: 'Comic Sans MS'; font-size: medium; color: white; background-color: #800000; border: 2pt black" value="Submit" class="btn btn-primary" color="red" ng-click="findEvents()"></p>
</div>
<table id="all_charities" class="table" align="center">
<tr>
<th bgcolor="#FFE87C">Transaction ID</th>
<th bgcolor="#FFE87C">Charity</th>
<th bgcolor="#FFE87C">Event</th>
<th bgcolor="#FFE87C">Country</th>
<th bgcolor="#FFE87C">State</th>
<th bgcolor="#FFE87C">Area</th>
<th bgcolor="#FFE87C">Event_Created</th>
<th bgcolor="#FFE87C">Target</th>
<th bgcolor="#FFE87C">Donated</th>
<th bgcolor="#FFE87C">Balance</th>
</tr>
<tr ng-repeat="event in all_time">
<td>{{event.Key}}</td>
<td>{{event.name}}</td>
<td>{{event.event}}</td>
<td>{{event.country}}</td>
<td>{{event.state}}</td>
<td>{{event.area}}</td>
<td>{{event.date}}</td>
<td>{{event.target}}</td>
<td>{{event.donated}}</td>
<td>{{event.balance}}</td>
</tr>
</table>
<br>
<br>
<div class="form-group">
<b id=line>Create Charity Event</b>
<br>
Enter unique id:
<input class="form-control" type="text" placeholder="Ex: 11" ng-model="event.id">
Enter name of charity:
<input class="form-control" type="text" placeholder="Ex: Red Cross" ng-model="event.name">
Enter name of event:
<input class="form-control" type="text" placeholder="Ex: Domestic Needs" ng-model="event.event">
Enter country:
<input class="form-control" type="text" placeholder="Ex: United States" ng-model="event.country">
Enter state:
<input class="form-control" type="text" placeholder="Ex: Washington" ng-model="event.state">
Enter area:
<input class="form-control" type="text" placeholder="Ex: Seattle" ng-model="event.area">
Enter target amount:
<input class="form-control" type="text" placeholder="100" ng-model="event.target">
<p><input id="createSubmit" type="submit" style="font-face: 'Comic Sans MS'; font-size: medium; color: white; background-color: #800000; border: 2pt black" value="Create" class="btn btn-primary" color="red" ng-click="recordEvent()"></p>
<a href="?" class="btn btn-default">Clear</a>
<i>* Note: This will refresh the page.</i>
<br>
<h5 style="color:green;margin-bottom:2%" id="success_create">Success! Tx ID: {{create_event}}</h5>
<br>
</div>
</div>
</body>
<!-- requiring the angular page -->
<script type="text/javascript" src="org.js"> </script>
</html>