viewUsers.jsp
3.89 KB
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
<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="org.springframework.security.core.Authentication"%>
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page session="true" %>
<jsp:include page="header.jsp">
<jsp:param name="pageTitle" value="View users page"/>
</jsp:include>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="collapse navbar-collapse">
<p class="navbar-text navbar-center"><i class="glyphicon glyphicon-euro"></i> <span class="title">Banque</span> </p>
<ul class="nav navbar-nav navbar-right">
<li>
<p id="usrCo"></p>
</li>
<li>
<a href="login?logout"><spring:message code="view.users.main.logout"/></a>
</li>
</ul>
</div>
</div>
</nav>
<div class="row headerSpace">
<img class="imgTitle" src="/img/money_icon.png" />
</div>
<div class="addDebt">
<form>
<div class="form-group">
<div class="control-group">
<label for="debt">Somme de la dette</label>
</div>
<div class="control-group control-group-big">
<input type="number" class="form-control inputDebt" id="sommeDette"/>
</div>
<div class="control-group">
<label for="debtFor">A : </label>
</div>
<div class="control-group control-group-big">
<input type="text" class="form-control inputDebt" id="username"/>
</div>
<div class="control-group upButton">
<button class="btn btn-danger" type="submit" onclick="updateDebtOfUser()">Update</button>
</div>
</div>
</form>
</div>
<table class="table-container">
<tr>
<td valign="top">
<table class="table table-stripped debtsTable">
<thead>
<td>Créditeur</td>
<td>Somme</td>
</thead>
<tbody id="dettes">
</tbody>
</table>
</td>
<td valign="top">
<table class="table table-stripped debtsTable">
<thead>
<td>Emprunteur</td>
<td>Somme</td>
<td>Action</td>
</thead>
<tbody id="creances">
</tbody>
</table>
</td>
</tr>
</table>
<!-- <ul>
<li><a href="newUser"><spring:message code="new.user.main.header"/></a></li>
<li><a href="login?logout"><spring:message code="view.users.main.logout"/></a></li>
</ul>-->
</body>
<jsp:include page="footer.jsp"/>