<%! String revize_document_center = ""; %><%--#RevizeProperties: USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW: status=edit options= server=localhost:8080 projectName=plugins label=document_center_code_include location=document_center/document_center_code_include.jsp version=0 docType=template subType=dependent moduleName=revize_document_center fieldName= channels=revize| description= --%><% { //retain variable scope to this block String linkcontent = ""; String linktype = ""; int index = 0; String linkurl = ""; String searchChar = ""; String srcImg = "/revize/plugins/document_center/_images_/icon_link.gif"; String docType = "Link/URL"; boolean isFile = true; 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";docType="Microsoft Excel Document";} if(searchChar.equals("doc") || searchChar.equals("txt")){srcImg = "/revize/plugins/document_center/_images_/icon_doc.gif";docType="Microsoft Word Document";} if(searchChar.equals("pdf")){srcImg = "/revize/plugins/document_center/_images_/icon_pdf.gif";docType="PDF File";} if(searchChar.equals("ppt")){srcImg = "/revize/plugins/document_center/_images_/icon_ppt.gif";docType="Microsoft PowerPoint Document";} } linkcontent = rz.fetch("revize_document_center","document_header"); linktype = rz.fetch("revize_document_center","document_type_flag"); %>
<% if(!linktype.equals("file")) { %> <% isFile = false; } %>
Name:
<%if(linktype.equals("file")){ %> Click to download <% } %> <%=linkcontent%> <% if (!linktype.equals("file")) { %> <% } %>
Type:
 <%=docType%>
Category:
Link URL:
<%=linkurl%>
>
Description:
>
>
Last Updated:
>
<% } //end local scope %>