1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 pageEncoding="ISO-8859-1"
5 taglib prefix="s" uri="/struts-tags"
7 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
11 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
12 <title><s:text name="name.module"/></title>
13 <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
14 <script language="JavaScript">
16 function initialize () {
17 // ----------------------
18 bring.documentName.focus();
22 <body onLoad="initialize()">
24 =============================================================================================================================
26 <jsp:include page="/jsp/menubar.jsp">
27 <jsp:param name="menu" value="study" />
31 =============================================================================================================================
33 <jsp:include page="/jsp/titlebar.jsp">
34 <jsp:param name="entity" value="study" />
35 <jsp:param name="disable" value="true" />
39 =============================================================================================================================
42 <s:if test="writeAccess">
43 <jsp:include page="/jsp/toolbar.jsp">
44 <jsp:param name="tools" value="study" />
48 <jsp:include page="/jsp/toolbar.jsp">
49 <jsp:param name="tools" value="none" />
52 <div id=top-spacer></div>
53 <jsp:include page="/jsp/menuitem.jsp">
54 <jsp:param name="menu" value="study" />
56 <jsp:include page="/jsp/studyProperties.jsp" />
60 =============================================================================================================================
64 <div id=section><s:text name="title.import"/></div>
65 <div id=article-body class=text>
66 <table width=100% cellpadding=0 cellspacing=0 border=0 class=text>
67 <tr height=25 valign=middle>
69 <s:text name="message.upload">
70 <s:param><s:property value="%{fileName}"/></s:param>
74 <tr height=1 bgcolor=#AAAAAA><td></td></tr>
77 <form name="bring" action="valid-import" method="post">
78 <s:hidden name="fileName" value="%{fileName}" />
79 <s:hidden name="reference" value="%{reference}" />
80 <s:hidden name="documentTitle" value="%{documentName}" />
81 <s:hidden name="defaultDocumentType" value="%{documentType}" />
82 <s:hidden name="defaultDocumentState" value="%{documentState}" />
83 <s:hidden name="version" value="%{version}" />
84 <s:hidden name="documentDate" value="%{documentDate}" />
85 <table cellpadding=0 cellspacing=0 border=0 class=text>
86 <tr height=15><td></td></tr>
88 <td align=right><s:text name="field.documentype"/> </td>
89 <td align=left> <s:text name="field.documentitle"/></td>
93 <s:set var="type" value="defaultDocumentType.index"/>
94 <s:set var="selectype" value="%{'onChange=submit()'}"/>
95 <s:if test="%{documentType != 0}">
96 <s:set var="selectype" value="%{'disabled'}"/>
98 <select name="documentType" <s:property value="%{#selectype}"/>>
99 <option value="-1"><s:text name="menu.select"/></option>
100 <option value="0"> <s:text name="menu.newdoctype"/></option>
101 <optgroup label=" <s:text name="label.doctypes"/>">
102 <s:iterator value="documentTypes">
103 <s:if test="%{index == #type}">
104 <option selected value="<s:property value="index"/>"> <s:text name="type.document.%{name}"/></option>
106 <option value="<s:property value="index"/>"> <s:text name="type.document.%{name}"/></option>
113 <s:set var="setname" value="%{''}"/>
114 <s:if test="%{reference != null}">
115 <s:set var="setname" value="%{'disabled'}"/>
117 <input type="text" name="documentName" size="60" value="<s:property value="documentName"/>" <s:property value="%{#setname}"/> />
120 <s:if test="defaultDocumentUses.size > 0">
121 <tr><td align=right><s:text name="label.uses"/>:</td></tr>
122 <s:iterator value="defaultDocumentUses">
124 <td align=right><input type="checkbox" name="uses" value="<s:property value="index"/>" checked></td>
125 <td><s:property value="title"/></td>
129 <tr height=10><td></td></tr>
132 <input type="submit" name="cancel" value="<s:text name="button.cancel"/>"/>
135 <input type="submit" name="save" value="<s:text name="button.import"/>"/>
136 <select name="documentState" <s:property value="%{#setname}"/>>
137 <s:if test="documentState == 'EXTERN'">
138 <option value="inWORK"><s:text name="label.inWORK"/></option>
139 <option value="inDRAFT"><s:text name="label.inDRAFT"/></option>
140 <option value="EXTERN" selected><s:text name="label.EXTERN"/></option>
142 <s:elseif test="documentState == 'inDRAFT'">
143 <option value="inWORK"><s:text name="label.inWORK"/></option>
144 <option value="inDRAFT" selected><s:text name="label.inDRAFT"/></option>
145 <option value="EXTERN"><s:text name="label.EXTERN"/></option>
148 <option value="inWORK" selected><s:text name="label.inWORK"/></option>
149 <option value="inDRAFT"><s:text name="label.inDRAFT"/></option>
150 <option value="EXTERN"><s:text name="label.EXTERN"/></option>