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
| <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<logic:notPresent scope="session" name="user">
<logic:forward name="logon"/>
</logic:notPresent>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><bean:message key="application.title"/></title>
<style type="text/css" media="all">
@import url("./css/site.css");
</style>
<script type="text/javascript">
<!--
window.onload=show;
function show(id) {
var d = document.getElementById(id);
for (var i = 1; i<=10; i++) {
if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
}
if (d) {d.style.display='block';}
}
//-->
</script>
</head>
<body>
<div id="titre">
<bean:message key="application.title"/>
</div>
<div id="soustitre">
<bean:message key="application.user.logged"/><bean:write scope="session" name="user" property="login"/>
</div>
<div id="topRow">
<div id="menu">
<dl>
<dt onmouseover="javascript:show();"><a href="" title="Go to Home page">Home</a></dt>
</dl>
<dl>
<dt onmouseover="javascript:show('smenu1');">TODO</dt>
<dd id="smenu1">
<ul>
<li><a href="#" title="See the current Applicant file">Applicant</a></li>
<li><a href="#">Mail</a></li>
<li><a href="#">Sous-Menu 1.3</a></li>
<li><a href="#">Sous-Menu 1.4</a></li>
<li><a href="#">Sous-Menu 1.5</a></li>
<li><a href="#">Sous-Menu 1.6</a></li>
</ul>
</dd>
</dl>
<dl>
<dt onmouseover="javascript:show('smenu2');">Applicant</dt>
<dd id="smenu2">
<ul>
<li><a href="#">Search</a></li>
<li><a href="applicant/applicant.jsp">Create</a></li>
<li><a href="#">Sous-Menu 2.3</a></li>
<li><a href="#">Sous-Menu 2.4</a></li>
</ul>
</dd>
</dl>
<dl>
<dt onmouseover="javascript:show('smenu3');">Other</dt>
<dd id="smenu3">
<ul>
<li><a href="#">Statistics</a></li>
<li><a href="#">Sous-Menu 3.2</a></li>
<li><a href="#">Sous-Menu 3.3</a></li>
<li><a href="#">Sous-Menu 3.4</a></li>
<li><a href="#">Sous-Menu 3.5</a></li>
</ul>
</dd>
</dl>
<dl>
<dt onmouseover="javascript:show('smenu4');">Tools</dt>
<dd id="smenu4">
<ul>
<li><a href="#">Help</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Sous-Menu 4.3</a></li>
</ul>
</dd>
</dl>
<dl>
<dt onmouseover="javascript:show();"><html:link action="/logout" linkName="Log me out">Logout</html:link></dt>
</dl>
</div>
</div>
<div id="bodyRow">
<fieldset>
<legend>User</legend>
<div id="beauxTableaux">
<display:table cellpadding="0" cellspacing="0" name="allUser" decorator="be.qspin.qats.utilities.Decorator" defaultsort="1" requestURI="/logonSubmit.do" pagesize="20" sort="list">
<display:column property="login" title="login" sortable="true"/>
<display:column property="password" title="password" sortable="true"/>
<%--logic:iterate id="role" name="roles">
<display:column property="role" title="Roles" sortable="true"/>
</logic:iterate--%>
<display:column property="userSelected" title="Action"/>
</display:table>
</div>
</fieldset>
<html:form action="createUser">
<fieldset>
<legend>Create an User</legend>
<table>
<tr>
<td valign="middle" align="right"><bean:message key="logon.name" /> :</td>
<td valign="middle" align="left"><html:text title="login" property="login" tabindex="1"></html:text></td>
</tr>
<tr>
<td valign="middle" align="right"><bean:message key="logon.password"/> : </td>
<td valign="middle" align="left"><html:text title="password" property="password" tabindex="1"></html:text></td>
</tr>
<tr>
<td valign="middle" align="right"><bean:message key="message.role"/> : </td> <td valign="middle" align="right">
<td valign="middle" align="left">
<logic:present name="allRole" scope="request">
<html:select title="role" property="selectRole" tabindex="3" multiple="true">
<html:options collection="allRole" property="id" labelProperty="role"/>
</html:select>
</logic:present>
</td>
</tr>
</table>
<html:submit tabindex="4"><bean:message key="button.submit" /></html:submit>
<html:cancel tabindex="5"><bean:message key="button.cancel" /></html:cancel>
<html:reset tabindex="6"><bean:message key="button.reset" /></html:reset>
</fieldset>
</html:form>
</div>
<div id="footer">
<bean:message key="application.footer" /><br><bean:message key="application.version" />
</div>
</body>
</html> |