Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1346 → Rev 1349

/branches/v3/impl/src/web/admin/profile/findUser.jsp
9,51 → 9,56
 
<%UserSessionImpl userSession = (UserSessionImpl) UserSessionProxy.loadUserSession(request, response);%>
<jomm:messages/>
<html:form action="/user/profileFromSearchUsers?separator=4&amp;from=ServiceZone">
<input type="hidden" name="dispatch" value="search">
<div class="panel panel-default">
<div class="panel-body">
<html:form styleClass="form-horizontal" action="/user/profileFromSearchUsers?separator=4&amp;from=ServiceZone">
<input type="hidden" name="dispatch" value="search">
 
<table class="form">
<tr>
<th>
<bean:message key="profile.search.user"/>
</th>
<td>
<html:text property="textToSearch" maxlength="50"/>
</td>
<td>
<html:select 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>
</td>
<td>
<input type="button" onclick="set(this.form,'search');this.form.submit()" value="<bean:message key="search"/>">
</td>
</tr>
</table>
</html:form>
<logic:present name="ProfileForm" property="usersFind">
<table class="dataTable">
<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>
<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: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>
</table>
</logic:present>
<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>