<%@ page language="java" buffer="64kb" %>

<%@ taglib uri="struts-html"     prefix="html"  %>
<%@ taglib uri="struts-bean"     prefix="bean"  %>
<%@ taglib uri="struts-logic"    prefix="logic" %>
<%@ taglib uri="vkc-taglib"      prefix="vkc"   %>
<%@ page import="org.apache.struts.Globals" %>
<vkc:init/>

<table align='left' width='100%' cellpadding='2' cellspacing='0' border='0'>

  <bean:define id="form" name="form" type="vkc.administration.form.SystemDefaultsForm"/>

  
  <html:hidden property="selectedContext"/>

  <tr bgcolor='#c0c0c0' color='#FFFFFF'>
    <td align='center'>&nbsp;<b><vkc:message key="vkc.administration.systemdefaults.documentviewfields.choose"/></b>&nbsp;</td>
  </tr>

  <tr>
    <td width="100%">
	  <table width=400 border=0 cellpadding=0 cellspacing=5 align=center>

	    <tr>
	      <bean:define id="field1" name="form" property="documentViewField(fileName)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.document.type.file"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field1" property="fieldId"/></html:multibox></td>

	      <bean:define id="field2" name="form" property="documentViewField(fileFormat)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.document.type.fileformat"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field2" property="fieldId"/></html:multibox></td>
	    </tr>
		
	    <tr>
     	  <logic:equal name="categorySettings" property="showDocumentClass" value="true">
	      <bean:define id="field3" name="form" property="documentViewField(classType)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.document.class"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field3" property="fieldId"/></html:multibox></td>
     	  </logic:equal>
     	  <logic:equal name="categorySettings" property="showDocumentClass" value="false">
	      <td colspan="1" valign="top" nowrap="nowrap">&nbsp;</td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%">&nbsp;</td>
     	  </logic:equal>

	      <bean:define id="field4" name="form" property="documentViewField(fileSize)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.document.type.filesize"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field4" property="fieldId"/></html:multibox></td>
	    </tr>
		
	    <tr>
	      <bean:define id="field5" name="form" property="documentViewField(versionNo)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.document.version"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field5" property="fieldId"/></html:multibox></td>

	      <bean:define id="field6" name="form" property="documentViewField(versionLabel)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.document.label"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field6" property="fieldId"/></html:multibox></td>
	    </tr>
		
	    <tr>
	      <bean:define id="field7" name="form" property="documentViewField(versionDescr)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.document.versiondescr"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field7" property="fieldId"/></html:multibox></td>

	      <bean:define id="field8" name="form" property="documentViewField(expires)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.document.expires"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field8" property="fieldId"/></html:multibox></td>
	    </tr>
		
	    <tr>
	      <bean:define id="field9" name="form" property="documentViewField(published)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.published"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field9" property="fieldId"/></html:multibox></td>

	      <bean:define id="field10" name="form" property="documentViewField(author)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.author"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field10" property="fieldId"/></html:multibox></td>
	    </tr>
		
	    <tr>
     	  <logic:equal name="categorySettings" property="showCreationDate" value="true">
	      <bean:define id="field11" name="form" property="documentViewField(creationDate)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.creationdate"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field11" property="fieldId"/></html:multibox></td>
     	  </logic:equal>
     	  <logic:equal name="categorySettings" property="showCreationDate" value="false">
	      <td colspan="1" valign="top" nowrap="nowrap">&nbsp;</td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%">&nbsp;</td>
     	  </logic:equal>


	      <bean:define id="field12" name="form" property="documentViewField(publisher)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.publisher"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field12" property="fieldId"/></html:multibox></td>
	    </tr>
		
	    <tr>
	      <bean:define id="field13" name="form" property="documentViewField(accessCount)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.accesscount"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field13" property="fieldId"/></html:multibox></td>

	      <bean:define id="field14" name="form" property="documentViewField(lastAccessed)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.lastaccessed"/>:</b></td>
	      <td colspan="1" valign="top" nowrap="nowrap" width="100%"><html:multibox property="selectedIds"><vkc:write name="field14" property="fieldId"/></html:multibox></td>
	    </tr>

     	<logic:equal name="categorySettings" property="showDocumentStatus" value="true">		
	    <tr>
	      <bean:define id="field15" name="form" property="documentViewField(statusType)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.document.status"/>:</b></td>
	      <td colspan="3" valign="top" width="100%"><html:multibox property="selectedIds"><vkc:write name="field15" property="fieldId"/></html:multibox></td>
	    </tr>
     	</logic:equal> 
		
	    <tr>
	      <bean:define id="field16" name="form" property="documentViewField(keywords)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.keywords"/>:</b></td>
	      <td colspan="3" valign="top" width="100%"><html:multibox property="selectedIds"><vkc:write name="field16" property="fieldId"/></html:multibox></td>
	    </tr>
		
	    <tr>
	      <bean:define id="field17" name="form" property="documentViewField(description)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.description"/>:</b></td>
	      <td colspan="3" valign="top" width="100%"><html:multibox property="selectedIds"><vkc:write name="field17" property="fieldId"/></html:multibox></td>
	    </tr>
		
	    <tr>
	      <bean:define id="field18" name="form" property="documentViewField(additionalFormats)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.document.additional_formats"/>:</b></td>
	      <td colspan="3" valign="top" width="100%"><html:multibox property="selectedIds"><vkc:write name="field18" property="fieldId"/></html:multibox></td>
	    </tr>
		
	    <tr>
	      <bean:define id="field19" name="form" property="documentViewField(dynaAttributes)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.string.dynaAttributes"/>:</b></td>
	      <td colspan="3" valign="top" width="100%"><html:multibox property="selectedIds"><vkc:write name="field19" property="fieldId"/></html:multibox></td>
	    </tr>
		
	    <tr>
	      <bean:define id="field20" name="form" property="documentViewField(addAttributes)"/>
	      <td colspan="1" valign="top" nowrap="nowrap"><b><vkc:message key="vkc.string.addAttributes"/>:</b></td>
	      <td colspan="3" valign="top" width="100%"><html:multibox property="selectedIds"><vkc:write name="field20" property="fieldId"/></html:multibox></td>
	    </tr>

	  </table>
    </td>
  </tr>

  <vkc:hline bottomSpace="5" topSpace="0" colspan="2" lineClass="hline" lineHeight="1"/>

  <tr>
    <td align="center" nowrap>
      <vkc:button property="action.save.documentview" onclick="javascript:disableAllButtonsAndSubmit(this);"><vkc:message key="button.save"/></vkc:button>
    </td>
  </tr>

</table>