-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
67 lines (67 loc) · 2.94 KB
/
index.php
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
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<link rel="stylesheet" href="style/bundled/bootstrap.min.css">
<link rel="stylesheet" href="style/bundled/jqModal.css">
<link rel="stylesheet" href="style/style.css">
<script src="script/bundled/jquery-3.1.1.min.js"></script>
<script src="script/bundled/angular.min.js"></script>
<script src="script/bundled/bootstrap.min.js"></script>
<script src="script/bundled/jqModal.js"></script>
<script src="script/main.js"></script>
</head>
<body ng-app="OSMapp" ng-controller="OSMctrl">
<div id="head">
<h1>Open Source Member Manager</h1>
<div id="menu">
<button class="btn btn-default" id="addMemberButton">Add member</button>
<button class="btn btn-default" id="importExportButton">Import/export</button>
</div>
</div>
<div id="content">
<h2 style="margin-left:10px;">Members</h2>
<table>
<tr> <!--table headers-->
<th><!--buttons--></th>
<th ng-repeat="field in memberFields" ng-if="field.editable">
{{field.caption}}
</th>
</tr>
<tr ng-repeat="member in members">
<td><a href="javascript:void(0)" ng-click="editMember(member.id)">✎</a></td>
<td ng-repeat="field in memberFields" ng-if="field.editable">
{{member[field.name]}}
</td>
<td><a href="javascript:void(0)" ng-click="deleteMember(member.id)">❌</a></td>
</tr>
</table>
<hr>
<p align="center"><a href="https://github.com/pascalBokBok/OpenSourceMemberManager" target="_blank">Open Source Member Manager</a></p>
</div><!-- end content-->
<!-- others -->
<div id="addMember" class="jqmWindow">
<h2>Add new member</h2>
</div>
<div id="editMember" class="jqmWindow">
</div>
<div id="importCsv" class="jqmWindow" style="display:none">
<div class="alert alert-info">
<b>CSV file format</b>
<ul>
<li>Fieldsnames on first row.</li>
<li>Comma(",") separated values.</li>
<li>"\" as escape-character.</li>
<li>Encoding: UTF-8</li>
</ul>
</div>
<h2>Import</h2>
<form action="port.php?action=import" method="post" enctype="multipart/form-data">
<input type="file" id="importCsvFileName" name="importFile"><br>
<input type="submit" value="Import">
</form><br>
<h2>Export</h2>
<p><a href="port.php?action=export">Download as CSV.</a></p>
</div>
</body>
</html>