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 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
| <%@ page import="java.text.*"%>
<%@ page import="java.util.*"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix='security'
uri='http://www.springframework.org/security/tags'%>
<%@ page
import="org.springframework.security.context.SecurityContextHolder"%>
<%@ page import="org.springframework.security.userdetails.UserDetails"%>
<%@ page import="org.springframework.security.GrantedAuthority"%>
<%@ taglib uri="/WEB-INF/spring.tld" prefix="spring"%>
<%@ page isELIgnored="false"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
@import "../objis.css";
.even {
background-color: #FFFFFF;
}
.hed {
background-color: #CCCCCC;
}
.even {
background-color: silver;
}
.error {
color: red;
}
.style1 {
color: #FFFFFF;
font-weight: bold;
font-style: italic;
}
.style5 {
font-style: italic;
font-size: 0.8em;
}
.style6 {
color: #000000
}
</style>
<title>Registration Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript">
function valider() {
// si la valeur du champ titre est non vide
if(form1.basesalary.value != "" && form1.percentage.value != "" && form1.employes.value != "" ) {
// alors on envoie le formulaire
formConge.submit();
return true;
}
else
{
// sinon on affiche un message
alert("Veuillez remplir le(s) champ(s) vide(s)");
return false;
}
}
</script>
<script language="javascript">
function ExportExcel() {
var oExcel; // Open Excel
var oExcelSheet; // Sheet Excel
var oWkBooks;
// COPY THE CURRENT PAGE
textRange = document.body.createTextRange();
textRange.moveToElementText(divMain);
textRange.execCommand('Copy');
// OPEN EXCEL
oExcel = new ActiveXObject('Excel.Application');
oWkBooks = oExcel.Workbooks.Add;
oExcelSheet = oWkBooks.Worksheets(1);
oExcelSheet.Application.Visible = true;
oExcelSheet.Activate();
oExcel.ActiveSheet.Range('A1').Select;
oExcel.ActiveCell.PasteSpecial(0,false,false);
oExcel.ActiveSheet.Cells.EntireColumn.AutoFit;
oExcel.ActiveSheet.Cells.EntireRow.AutoFit.AutoFit;
oExcel.ActiveSheet.Range('A1').Select;
}
</script>
</head>
<body>
<div class="title">Human Resources Management</div>
<div class="header"><img
src="<%=request.getContextPath()%>/logoProxym-it.PNG" width="183"
height="95" border="0" longdesc="http://www.proxym-it.com">
<center><span class="h1 style15">
<h1>Add Salary</h1>
</span></center>
</div>
<br>
<br>
<div></div>
<br>
<div class="userIdentite" id="login">login : <security:authentication
property="principal.username" /></div>
<table width="100%" height="100%" align="left">
<tr>
<td height="631"></td>
<td width="100%" align="left"><a
href="<c:url value="/index.jsp"/>">
Index</a>
<div class="conTenu"><form:form action="add.htm"
commandName="salary" method="post" id="form1" name="form1">
<div></div>
<br></br>
<table align="center" border="1" background="hed">
<tr>
<td bgcolor="#CCCCCC">Base Salary:</td>
<td><form:input path="basesalary" id="basesalary" /></td>
</tr>
<tr>
<td bgcolor="#CCCCCC">Benefits :</td>
<td><form:input path="indemnities" /></td>
</tr>
<tr>
<td bgcolor="#CCCCCC">Primes:</td>
<td><form:input path="primes" /></td>
</tr>
<tr>
<td bgcolor="#CCCCCC">Percentage of subscription for CNSS</td>
<td><form:input path="percentage" id="percentage" /></td>
</tr>
<tr>
<td bgcolor="#CCCCCC">Employee</td>
<td><form:select path="employes" id="email">
<OPTION selected><form:options items="${employeList}"
itemLabel="nom" itemValue="id" id="email" />
</form:select></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Register"
onclick="return valider()"></td>
</tr>
</table>
</form:form>
<hr style="PAGE-BREAK-BEFORE: always">
<p><input type="submit" name="Export" value="Export Page to Excel"
onclick="ExportExcel();"> <br>
</p>
<div id="divMain">
<table>
<c:if test="${fn:length(salaryList)> 0}">
<div id="divMain">
<table cellpadding="10" border="1" align="center">
<tr class="hed">
<td>
<p>Employee</p>
</td>
<td>
<p>Base salary</p>
</td>
<td>
<p>Brute salary</p>
</td>
<td>
<p>Taxable Salary</p>
</td>
<td>
<p>Fees</p>
</td>
<td>
<p>Net salary</p>
</td>
</tr>
<c:forEach items="${salaryList}" var="salary" varStatus="status">
<tr class="<c:if test="${status.count % 2 == 0}"></c:if>">
<td>
<p>${salary.employes.nom} ${salary.employes.nom}</p>
</td>
<td>
<p>${salary.basesalary}</p>
</td>
<td>
<p>${salary.brutesalary}</p>
</td>
<td>
<p>${salary.imposableSalary}</p>
</td>
<td>
<p>${salary.irpp2}</p>
</td>
<td>
<p>${salary.netsalary}</p>
</td>
<td><a href="<c:url value="delete.htm?idsalary=${salary.idsalary}"/>">delete</a></td>
<td><a href="<c:url value="editDisplay.htm?idsalary=${salary.idsalary}"/>">edit</a></td>
</tr>
</c:forEach>
</table>
</div>
</c:if>
</table>
</div>
</div>
</table>
<p>
</p>
<div id="footer">
<div align="center"><em><a href="Authentification.htm">Homepage</a>
| <a href="http://www.proxymit.com">contact US </a> | © 2010
Proxymit | Design by <a href="http://www.proxymit.com">www.proxymit.com</a>
| Licensed under a <a rel="license" target="_blank"
href="http://creativecommons.org/licenses/by/3.0/">www.proxymit.com</a></em></div>
</div>
</body>
</html> |
Partager