<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="cases_InputDocument" type="xmlform" width="400px" labelWidth="100px">
  <__DYNAFORM_OPTIONS type="xmlmenu" xmlfile="gulliver/dynaforms_Options">
    <en/>
  </__DYNAFORM_OPTIONS>
  <INP_DOC_UID type="private"/>
  <POSITION type="private"/>
  <INP_DOC_TITLE type="caption">
    <en><![CDATA[Title]]></en>
  </INP_DOC_TITLE>
  <INP_DOC_DESCRIPTION type="caption">
    <en><![CDATA[Description]]></en>
  </INP_DOC_DESCRIPTION>
  <INP_DOC_FORM_NEEDED type="dropdown" colWidth="80" titleAlign="left" align="left" mode="view">
    <en><![CDATA[Document Type]]><option name="VIRTUAL"><![CDATA[Digital]]></option><option name="REAL"><![CDATA[Printed]]></option><option name="VREAL"><![CDATA[Digital/Printed]]></option></en>
  </INP_DOC_FORM_NEEDED>
  <INP_DOC_ORIGINAL type="dropdown" colWidth="80" titleAlign="left" align="left" mode="view">
    <en><![CDATA[Format]]><option name="ORIGINAL"><![CDATA[Original]]></option><option name="COPYLEGAL"><![CDATA[Legal Copy]]></option><option name="COPY"><![CDATA[Copy]]></option></en>
  </INP_DOC_ORIGINAL>
  <APP_DOC_CREATE_DATE type="date" mode="view">
    <en><![CDATA[Created Date]]></en>
  </APP_DOC_CREATE_DATE>
  <CREATOR type="text" mode="view">
    <en><![CDATA[Creator]]></en>
  </CREATOR>
  <APP_DOC_COMMENT type="caption">
    <en><![CDATA[Comments]]></en>
  </APP_DOC_COMMENT>
  <VIEW type="phpVariable"/>
  <FILE type="phpVariable"/>
  <APP_DOC_FILENAME type="link" value="@#VIEW" link="@#FILE" target="_blank">
    <en><![CDATA[File]]></en>
  </APP_DOC_FILENAME>
  <BACK type="button" onclick="back('@#INP_DOC_UID', @#POSITION);">
    <en><![CDATA[Back]]></en>
  </BACK>
  <JS type="javascript"><![CDATA[

leimnud.event.add(window, 'load', function() {
  if (getField('INP_DOC_FORM_NEEDED').value == 'VIRTUAL') {
    hideRow('INP_DOC_ORIGINAL');
  }
});

var back = function(sUID, iPosition)
{
  window.location = 'cases_Step?TYPE=INPUT_DOCUMENT&UID=' + sUID + '&POSITION=' + iPosition + '&ACTION=ATTACH';
};

]]></JS>
</dynaForm>
