Rev 1306 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@ page import="pt.estgp.estgweb.utils.DatesUtils" %>
<%@ page import="java.util.List" %>
<%@ 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/jomm.tld" prefix="jomm" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
<div id="contentIntranet">
<div id="contentPane">
<jomm:messages/>
<%--<jsp:useBean id="ProfileForm" class="pt.estgp.estgweb.web.form.profile.ProfileForm"/>--%>
<%
String fromAction = "";
if (request.getParameter("from") != null && request.getParameter("from").length() != 0)
{
request.setAttribute("from", "&from=" + request.getParameter("from"));
fromAction = "From" + request.getParameter("from");
}
request.setAttribute("fromAction", fromAction);
//separator=${separator}
%>
<html:form action="/user/profile" enctype="multipart/form-data">
<input type="hidden" name="dispatch" value="createRecord">
<html:hidden property="recordView.id"/>
<table class="form">
<tr>
<th>
<bean:message key="profile.record.type"/>
</th>
<td>
<logic:greaterThan value="0" name="ProfileForm" property="recordView.id">
<bean:message key="profile.${ProfileForm.recordView.type}"/>
</logic:greaterThan>
<logic:lessEqual value="0" name="ProfileForm" property="recordView.id">
<html:select property="recordView.type">
<html:option value="RecordThesisImpl" key="profile.RecordThesisImpl"/>
<html:option value="RecordPaperImpl" key="profile.RecordPaperImpl"/>
<%--todo Falta Artigo de OpiniĆ£o e falta meter artigo cientifico, revista, conferencia, workshop--%>
<html:option value="RecordJobImpl" key="profile.RecordJobImpl"/>
<html:option value="RecordEventOrganizationImpl" key="profile.RecordEventOrganizationImpl"/>
<html:option value="RecordProjectImpl" key="profile.RecordProjectImpl"/>
<html:option value="RecordOtherImpl" key="profile.RecordOtherImpl"/>
</html:select>
</logic:lessEqual>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.record.subtype"/>
</th>
<td>
<html:text styleClass="text" property="recordView.subtype"/>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.record.title"/>
</th>
<td>
<html:text styleClass="text" property="recordView.title"/>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.record.subtitle"/>
</th>
<td>
<html:text styleClass="text" property="recordView.subtitle"/>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.record.date"/>
</th>
<td>
<html:select property="recordView.date">
<%
List<String> years = DatesUtils.getYears(30);
for(String year: years)
{
request.setAttribute("year",year);
%>
<html:option value="${year}">${year}</html:option>
<%
}
%>
</html:select>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.record.identifier"/>
</th>
<td>
<html:text styleClass="text" property="recordView.identifier"/>
</td>
</tr>
<tr>
<th>
<logic:equal value="RecordPaperImpl" name="ProfileForm" property="recordView.type">
<bean:message key="profile.record.publisher.paper"/>
</logic:equal>
<logic:notEqual value="RecordPaperImpl" name="ProfileForm" property="recordView.type">
<bean:message key="profile.record.publisher.all"/>
</logic:notEqual>
</th>
<td>
<html:text styleClass="text" property="recordView.publisher"/>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.record.description"/>
</th>
<td>
<html:textarea styleClass="textarea" property="recordView.description"/>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.record.file"/>
</th>
<td>
<html:file property="uploadFile"/>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.record.file.access"/>
</th>
<td>
<html:select property="recordView.fileAccess">
<html:option value="resource.access.publicDomain" key="resource.access.publicDomain"/>
<html:option value="resource.access.privateDomain" key="resource.access.privateDomain"/>
<html:option value="resource.access.authenticatedDomain" key="resource.access.authenticatedDomain"/>
</html:select>
</td>
</tr>
<tr class="buttons">
<td colspan="2">
<input type="button"
onclick="set(this.form,'createRecord');this.form.submit()"
value="<bean:message key="confirm"/>"/>
</td>
</tr>
</table>
</html:form>
</div>
</div>
Generated by GNU Enscript 1.6.5.2.