<%-- #RevizeProperties USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW: status=edit options= server=localhost:8080 projectName=plugins label=document_center location=document_center/document_center.list.template_include.jsp version= docType=include subType=include moduleName= fieldName= channels=| description= --%><%! String revize_document_center = ""; %>
Search for file type:
<%-- #BeginRZ-ActionButton --%> <%-- Option:type=ForwardEditFormImage --%> <%-- Option:caption=Sort Options --%> <%-- #EndRZ-ActionButton --%> <%-- #BeginRZ-ActionButton --%> <%-- Option:type=EditListInsertButton --%> <%-- Option:caption=New Category --%> <%-- #EndRZ-ActionButton --%>
 You must click on one of the categories below to see uploaded documents.

<% String document_center_category_sort = "_recordid asc"; String document_center_document_sort = "_recordid asc"; //backward compatibility before 10-16-2011 String document_center_sort_field = ""; if (rz.isvalidfield("revize_document_center","seq")) { document_center_category_sort = "seq asc, _recordid asc"; %>" /><% if (rz.content.equals("")) rz.content = "seq"; document_center_sort_field = rz.content; %>" /><% if (rz.content.equals("")) rz.content = "asc"; String document_center_sort_order = rz.content; document_center_document_sort = document_center_sort_field + " " + document_center_sort_order; //document_center_document_sort += ", _recordid " + document_center_sort_order; } %> "> <% while ( rz.listnext() && rz.listindex >= 0){ %>
"> <% while ( rz.listnext() && rz.listindex>=0){ %> <%} // end while inner list %>
<% String doc_header = rz.content; String doc_header_encoded = java.net.URLEncoder.encode(doc_header,"UTF-8"); String doc_recordid = rz.recordid; if (!doc_header.equals("")) { %>

<%=doc_header%>

<% if (rz.isvalidfield("revize_document_center","seq")) { %> <% } %> <%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListEditImage --%> <%-- Option:imageSrcURL=images/edit/edit_small.jpg --%> <%-- #EndRZ-ActionImage --%> <%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListDeleteImage --%> <%-- Option:forwardURL= --%> <%-- Option:imageSrcURL=images/edit/delete_small.jpg --%> <%-- #EndRZ-ActionImage --%>
<% String setFolder = rz.pagesectionfolder; if(setFolder == null || setFolder.equals("")) setFolder = "../"; %> <%-- #BeginRZ-ActionButton --%> <%-- Option:type=EditListInsertButton --%> <%-- Option:caption=New Document --%> <%-- #EndRZ-ActionButton --%>
<%}%>
<% String linkcontent = ""; String linkurl = ""; int index = 0 ; String searchChar = ""; String srcImg = ""; linkcontent = rz.fetch("revize_document_center","document_header"); srcImg = "/revize/plugins/document_center/_images_/icon_link.gif"; if (!rz.fetch("revize_document_center","document_external_url").equals("")) { linkurl = rz.fetch("revize_document_center","document_external_url"); if (linkurl.startsWith("www")) linkurl = "http://" + linkurl; } else { linkurl = rz.fetch("revize_document_center","document_file","file,auto,location=,extensions="); linkurl = rz.src; index = linkurl.lastIndexOf("."); searchChar = linkurl.substring(index+1,linkurl.length()); if(searchChar.equals("xls")){srcImg = "/revize/plugins/document_center/_images_/icon_xls.gif";} if(searchChar.equals("doc") || searchChar.equals("txt")){srcImg = "/revize/plugins/document_center/_images_/icon_doc.gif";} if(searchChar.equals("pdf")){srcImg = "/revize/plugins/document_center/_images_/icon_pdf.gif";} if(searchChar.equals("ppt")){srcImg = "/revize/plugins/document_center/_images_/icon_ppt.gif";} } %>
Download File
<% if (rz.isvalidfield("revize_document_center","seq")) { %> <% } %> <%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListEditImage --%> <%-- Option:imageSrcURL=images/edit/edit_small.jpg --%> <%-- #EndRZ-ActionImage --%> <%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListDeleteImage --%> <%-- Option:forwardURL= --%> <%-- Option:imageSrcURL=images/edit/delete_small.jpg --%> <%-- #EndRZ-ActionImage --%>
<%} // end which outer list %>