Rev 1310 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@ page import="pt.estgp.estgweb.domain.*" %>
<%@ page import="pt.estgp.estgweb.web.UserSessionProxy" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
<%UserSessionImpl userSession = (UserSessionImpl) UserSessionProxy.loadUserSession(request, response);%>
<jomm:messages/>
<div class="panel panel-default">
<div class="panel-body">
<html:form styleClass="form-horizontal" action="/user/profileFromSearchUsers?separator=4&from=ServiceZone">
<input type="hidden" name="dispatch" value="search">
<div class="form-group">
<label class="control-label col-sm-2"><bean:message key="profile.search.user"/></label>
<div class="col-sm-4">
<html:text styleClass="form-control" property="textToSearch" maxlength="250"/>
</div>
<div class="col-sm-2">
<html:select styleClass="form-control" property="typeToSearch">
<html:option value="<%=(UserImpl.class).getName()%>"><bean:message key="user"/></html:option>
<html:option value="<%=(StudentImpl.class).getName()%>"><bean:message key="student"/></html:option>
<html:option value="<%=(TeacherImpl.class).getName()%>"><bean:message key="teacher"/></html:option>
</html:select>
</div>
<div class="col-sm-2">
<input class="btn btn-default" type="button" onclick="set(this.form,'search');this.form.submit()" value="<bean:message key="search"/>">
</div>
</div>
</html:form>
<logic:present name="ProfileForm" property="usersFind">
<table class="tablesorterfiltered">
<thead>
<tr>
<th><bean:message key="profile.siges.student.code"/></th>
<th><bean:message key="username"/> </th>
<th><bean:message key="name"/> </th>
<th><bean:message key="email"/></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<logic:iterate id="userView" name="ProfileForm" property="usersFind" type="pt.estgp.estgweb.domain.views.UserView">
<tr>
<td>${userView.code}</td>
<td>${userView.username}</td>
<td>${userView.name}</td>
<td>${userView.email}</td>
<td><html:link action="/user/startProfileFromSearchUsers?id=${userView.id}"><bean:message key="edit"/></html:link></td>
<td><a href="<%=request.getContextPath()%>/user/startDeleteProfileFromSearchUsers.do?id=${userView.id}" onclick="return confirm('<bean:message key="profile.confirm.delete"/>')"><bean:message key="delete"/></a></td>
<td></td>
</tr>
</logic:iterate>
</tbody>
</table>
</logic:present>
</div>
</div>