Commit 6c5bf8ce authored by Saket Patel's avatar Saket Patel Committed by Saket Patel

ZCS-11205 Remove tags which are not in use currently

parent 877cd84e
<%--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
--%>
<%@ tag body-content="empty" %>
<%@ attribute name="content" rtexprvalue="true" required="true" type="java.lang.String" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<c:url var="url" value="/h/ads">
<c:param name="f" value="${content}"/>
</c:url>
<!-- ||${content}|| -->
<iframe width="163" height="606" frameborder="0" scrolling="no" src="${url}"></iframe>
<%--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
--%>
<%@ tag body-content="empty" %>
<%@ attribute name="attachment" rtexprvalue="true" required="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<c:choose><c:when test="${attachment}"><app:img altkey="ALT_ATTACHMENT" src="startup/ImgAttachment.png" /></c:when><c:otherwise>&nbsp;</c:otherwise></c:choose>
This diff is collapsed.
<%--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
--%>
<%@ tag body-content="empty" %>
<%@ attribute name="folder" rtexprvalue="true" required="true" type="com.zimbra.cs.taglib.bean.ZFolderBean" %>
<%@ attribute name="base" rtexprvalue="true" required="false" %>
<%@ attribute name="keys" rtexprvalue="true" required="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<c:set var="label" value="${zm:getFolderName(pageContext, folder.id)}"/>
<c:set var="truncatedLabel" value="${zm:getTruncatedFolderName(pageContext, folder.id, 15, true)}"/>
<c:set var="padFudge" value="${folder.hasChildren ? 0 : 20}"/>
<fmt:message var="colorMsg" key="${folder.rgbColorMsg}"/>
<c:set var="color" value="${zm:lightenColor(not empty folder.rgb ? folder.rgb : colorMsg)}"/>
<tr>
<td nowrap colspan="3" style="background-color:${color}" class='Folder<c:if test="${folder.hasUnread}"> Unread</c:if>'
style="padding-left: ${padFudge+folder.depth*8}px">
<c:url var="url" value="/h/${empty base ? 'search' : base}">
<c:param name="sfi" value="${folder.id}"/>
<c:param name="st" value="briefcase"/>
<c:param name="view" value="${param.view}"/>
</c:url>
<c:if test="${folder.hasChildren}">
<c:set var="expanded" value="${sessionScope.expanded[folder.id] ne 'collapse'}"/>
<c:url var="toggleUrl" value="/h/search">
<c:param name="${expanded ? 'collapse' : 'expand'}" value="${folder.id}"/>
<c:param name="st" value="briefcase"/>
<c:param name="view" value="${param.view}"/>
</c:url>
<a href="${fn:escapeXml(toggleUrl)}">
<app:img src="${expanded ? 'startup/ImgNodeExpanded.png' : 'startup/ImgNodeCollapsed.png'}" altkey="${expanded ? 'ALT_TREE_EXPANDED' : 'ALT_TREE_COLLAPSED'}"/>
</a>
</c:if>
<%--<span style='width:20px'><c:if test="${folder.hasChildren}"><app:img src="startup/ImgNodeExpanded.gif"/></c:if></span>--%>
<a href='${fn:escapeXml(url)}' id="FLDR${folder.id}">
<app:img src="${folder.image}" alt='${label}'/>
<span <c:if test="${folder.id eq requestScope.context.selectedId}"> class='ZhTISelected'</c:if>>
${truncatedLabel}
<c:if test="${folder.hasUnread}">(${folder.unreadCount}) </c:if>
</span>
</a>
</td></tr>
<%--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2008, 2009, 2010, 2011, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
--%>
<%@ tag body-content="empty" %>
<%@ attribute name="editmode" rtexprvalue="true" required="false" %>
<%@ attribute name="keys" rtexprvalue="true" required="true" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<zm:getMailbox var="mailbox"/>
<jsp:useBean id="expanded" scope="session" class="java.util.HashMap" />
<c:set var="expanded" value="${sessionScope.expanded.briefcases ne 'collapse'}"/>
<div class="Tree">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<c:url var="toggleUrl" value="/h/search">
<c:param name="st" value="briefcase"/>
<c:param name="${expanded ? 'collapse' : 'expand'}" value="briefcases"/>
</c:url>
<th style='width:20px'><a href="${fn:escapeXml(toggleUrl)}"><app:img altkey="${ expanded ? 'ALT_TREE_EXPANDED' : 'ALT_TREE_COLLAPSED'}" src="${ expanded ? 'startup/ImgNodeExpanded.png' : 'startup/ImgNodeCollapsed.png'}"/></a></th>
<th class='Header'><fmt:message key="folders"/></th>
<th nowrap="nowrap" align='right' class='ZhTreeEdit'>
<c:url value="/h/mbriefcases" var="mabUrl">
<c:if test="${not empty param.sfi}">
<c:param name="sfi" value="${param.sfi}"/>
</c:if>
</c:url>
<a id="MBRIEFCASES" href="${mabUrl}" ><fmt:message key="TREE_EDIT"/></a>
</th>
</tr>
<c:if test="${expanded}">
<app:briefcaseFolder folder="${mailbox.briefcase}"/>
<%--
Display the children of Briefcase folder, if any. Folders with unknown view also get listed.
--%>
<zm:forEachFolder var="folder" parentid="${mailbox.briefcase.id}" skiproot="${true}" skipsystem="${false}" expanded="${sessionScope.expanded}" skiptrash="${true}">
<c:if test="${not folder.isSearchFolder and not folder.isSystemFolder and (folder.isNullView or folder.isUnknownView or folder.isDocumentView)}">
<app:briefcaseFolder folder="${folder}" keys="${keys}"/>
</c:if>
</zm:forEachFolder>
<%--
Rest of the briefcase folders, do not display folders with unknown view here.
--%>
<zm:forEachFolder var="folder" skiproot="${true}" skipsystem="${true}" expanded="${sessionScope.expanded}" skiptrash="${true}">
<c:if test="${!folder.isSearchFolder and folder.isDocumentView}">
<app:briefcaseFolder folder="${folder}" keys="${keys}"/>
</c:if>
</zm:forEachFolder>
</c:if>
</table>
</div>
\ No newline at end of file
This diff is collapsed.
<%--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2008, 2009, 2010, 2012, 2013, 2014, 2015, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
--%>
<%@ tag body-content="empty" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<app:handleError>
<zm:requirePost/>
<zm:getMailbox var="mailbox"/>
<c:set var="ids" value="${fn:join(paramValues.id, ',')}"/>
<c:set var="folderId" value="${not empty paramValues.folderId[0] ? paramValues.folderId[0] : paramValues.folderId[1]}"/>
<c:set var="actionOp" value="${not empty paramValues.actionOp[0] ? paramValues.actionOp[0] : paramValues.actionOp[1]}"/>
<c:set var="view" value="${not empty param.view ? param.view : 'dv'}"/>
<c:set var="viewId" value="${not empty paramValues.viewId[0] ? (paramValues.viewId[0] eq view ? paramValues.viewId[1] : paramValues.viewId[0]) : (paramValues.viewId[1] eq view ? paramValues.viewId[0] : paramValues.viewId[1])}"/>
<zm:composeUploader var="uploader"/>
<c:choose>
<c:when test="${zm:actionSet(param, 'actionAttachAdd')}">
<jsp:forward page="/h/briefcaseupload"/>
</c:when>
<c:when test="${zm:actionSet(param, 'actionChange')}">
<c:choose>
<c:when test="${viewId eq 'dv'}">
<c:redirect url="/h/search?st=briefcase&view=dv${not empty param.sfi ? '&sfi=' : ''}${param.sfi}"/>
</c:when>
<c:when test="${viewId eq 'ev'}">
<c:redirect url="/h/search?st=briefcase&view=ev${not empty param.sfi ? '&sfi=' : ''}${param.sfi}"/>
</c:when>
<c:when test="${viewId eq 'bv'}">
<c:redirect url="/h/search?st=briefcase&view=bv${not empty param.sfi ? '&sfi=' : ''}${param.sfi}"/>
</c:when>
<c:otherwise>
<c:redirect url="/h/search?st=briefcase&view=dv${not empty param.sfi ? '&sfi=' : ''}${param.sfi}"/>
</c:otherwise>
</c:choose>
</c:when>
<c:when test="${empty ids}">
<app:status style="Warning"><fmt:message key="actionNoItemSelected"/></app:status>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${zm:actionSet(param, 'actionDelete')}">
<zm:checkCrumb crumb="${param.crumb}"/>
<c:set var="count" value="${0}"/>
<c:forEach var="briefcaseId" items="${paramValues.id}">
<zm:deleteBriefcase var="delBriefcase" id="${briefcaseId}"/>
<c:set var="count" value="${count+1}"/>
</c:forEach>
<app:status>
<fmt:message key="actionBriefcaseItemsDeleted">
<fmt:param value="${count}"/>
</fmt:message>
</app:status>
</c:when>
<c:when test="${fn:startsWith(actionOp, 't:') or fn:startsWith(actionOp, 'u:')}">
<zm:checkCrumb crumb="${param.crumb}"/>
<c:set var="untagall" value="${fn:startsWith(actionOp, 'u:all')}"/>
<c:choose>
<c:when test="${untagall}" >
<zm:forEachTag var="eachtag">
<zm:tagItem tagid="${eachtag.id}" var="result" id="${ids}" tag="false"/>
</zm:forEachTag>
<zm:clearSearchCache/>
<app:status>
<fmt:message key="${'actionBriefcaseUntagAll'}" >
<fmt:param value="${result.idCount}"/>
</fmt:message>
</app:status>
</c:when>
<c:otherwise>
<c:set var="tag" value="${fn:startsWith(actionOp, 't')}"/>
<c:set var="tagid" value="${fn:substring(actionOp, 2, -1)}"/>
<zm:tagItem tagid="${tagid}" var="result" id="${ids}" tag="${tag}"/>
<zm:clearSearchCache/>
<app:status>
<fmt:message key="${tag ? 'actionBriefcaseTag' : 'actionBriefcaseUntag'}">
<fmt:param value="${result.idCount}"/>
<fmt:param value="${zm:getTagName(pageContext, tagid)}"/>
</fmt:message>
</app:status>
</c:otherwise>
</c:choose>
</c:when>
<c:when test="${fn:startsWith(folderId, 'm:')}">
<zm:checkCrumb crumb="${param.crumb}"/>
<c:set var="folderid" value="${fn:substring(folderId, 2, -1)}"/>
<zm:moveItem folderid="${folderid}" var="result" id="${ids}"/>
<zm:clearSearchCache/>
<app:status>
<fmt:message key="actionBriefcaseItemsMoved">
<fmt:param value="${result.idCount}"/>
<fmt:param value="${zm:getFolderName(pageContext, folderid)}"/>
</fmt:message>
</app:status>
</c:when>
<c:when test="${zm:actionSet(param, 'actionMove')}">
<app:status style="Warning"><fmt:message key="actionNoFolderSelected"/></app:status>
</c:when>
<c:otherwise>
<app:status style="Warning"><fmt:message key="actionNoActionSelected"/></app:status>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
</app:handleError>
\ No newline at end of file
<%--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2008, 2009, 2010, 2012, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
--%>
<%@ tag body-content="empty" %>
<%@ attribute name="context" rtexprvalue="true" required="true" type="com.zimbra.cs.taglib.tag.SearchContext"%>
<%@ attribute name="keys" rtexprvalue="true" required="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<zm:getMailbox var="mailbox"/>
<table width="100%" cellspacing="0" class='Tb'>
<tr>
<td align="left" class=TbBt>
<table cellspacing="0" cellpadding="0" class='Tb'>
<tr>
<td nowrap>
<zm:currentResultUrl var="refreshUrl" value="/h/search?view=${param.view}" context="${context}" refresh="true" />
<a href="${fn:escapeXml(refreshUrl)}" <c:if test="${keys}"></c:if>><app:img src="startup/ImgRefresh.png" altkey="refresh"/><span>&nbsp;<fmt:message key="refresh"/></span></a>
</td>
<td><div class='vertSep'></div></td>
<td>
<zm:currentResultUrl var="newUploadUrl" value="" context="${context}" action="newbrief" crumb="${mailbox.accountInfo.crumb}"/>
<a <c:if test="${keys}">id="NEW_UPLOAD" </c:if>href="${fn:escapeXml(newUploadUrl)}&lbfums="><app:img altkey="uploadNewFile" src="startup/ImgAttachment.png"/><span>&nbsp;<fmt:message key="uploadNewFile"/></span></a>
</td>
<td><div class='vertSep'></div></td>
<c:choose>
<c:when test="${context.isFolderSearch and context.folder.isTrash}">
<app:button id="${keys ? 'OPDELETE' : ''}" name="actionHardDelete" src="startup/ImgDelete.png" text="actionDelete" tooltip="actionTrashTT" />
</c:when>
<c:otherwise>
<app:button id="${keys ? 'OPDELETE' : ''}" name="actionDelete" src="startup/ImgDelete.png" text="actionDelete" tooltip="actionTrashTT"/>
</c:otherwise>
</c:choose>
<td><div class='vertSep'></div></td>
<td nowrap>
<select name="folderId" onchange="zclick('SOPMOVE')">
<option value="" selected/><fmt:message key="moveAction"/>
<option disabled /><fmt:message key="actionOptSep"/>
<zm:forEachFolder var="folder">
<c:if test="${folder.isDocumentMoveTarget and !folder.isTrash}">
<option value="m:${folder.id}" />${zm:getFolderPath(pageContext, folder.id)}
</c:if>
</zm:forEachFolder>
</select>
</td>
<app:button id="${keys ? 'OPMOVE' :''}" name="actionMove" text="actionMove" tooltip="actionMoveTT"/>
<td><div class='vertSep'></div></td>
<c:if test="${mailbox.features.tagging and mailbox.hasTags}">
<td nowrap>
<select name="actionOp" onchange="zclick('SOPGO')">
<option value="" selected/><fmt:message key="moreActions"/>
</c:if>
<app:tagOptions mailbox="${mailbox}" keys="${keys}"/>
<c:if test="${mailbox.features.tagging and mailbox.hasTags}">
</select>
</td>
<app:button id="${keys ? 'OPGO' : ''}" name="action" tooltip="actionTaskListGoTT" text="actionGo" />
</c:if>
<td><div class='vertSep'></div></td>
<td nowrap>
<select name="viewId" onchange="zclick('SOPCHNGVIEW')">
<option value="dv" <c:if test="${param.view eq 'dv'}"> selected </c:if> /><fmt:message key="briefcaseDtlView"/>
<option value="ev" <c:if test="${param.view eq 'ev'}"> selected </c:if> /><fmt:message key="briefcaseExpView"/>
</select>
</td>
<app:button id="${keys ? 'OPCHNGVIEW' :''}" name="actionChange" text="actionChange" tooltip="actionChangeTT"/>
</tr>
</table>
</td>
</tr>
</table>
<%--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2009, 2010, 2011, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
--%>
<%@ tag body-content="empty" %>
<%@ attribute name="contenttype" rtexprvalue="true" required="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<c:choose>
<c:when test="${contenttype eq 'application'}">
<c:set var="mimeImg" value="doctypes/ImgExeDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeUnknownBinaryType" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/pdf'}">
<c:set var="mimeImg" value="doctypes/ImgPDFDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeAdobePdfDocument" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/postscript'}">
<c:set var="mimeImg" value="doctypes/ImgGenericDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeAdobePsDocument" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/exe'}">
<c:set var="mimeImg" value="doctypes/ImgExeDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeApplication" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/x-msdownload'}">
<c:set var="mimeImg" value="doctypes/ImgExeDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeMsDownload" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/vnd.ms-excel'}">
<c:set var="mimeImg" value="doctypes/ImgMSExcelDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeMsExcelDocument" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/vnd.ms-powerpoint'}">
<c:set var="mimeImg" value="doctypes/ImgMSPowerpointDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeMsPPTDocument" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/vnd.ms-project'}">
<c:set var="mimeImg" value="doctypes/ImgMSProjectDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeMsProjectDocument" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/vnd.visio'}">
<c:set var="mimeImg" value="doctypes/ImgMSVisioDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeMsVisioDocument" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/msword'}">
<c:set var="mimeImg" value="doctypes/ImgMSWordDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeMsWordDocument" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/octet-stream'}">
<c:set var="mimeImg" value="doctypes/ImgUnknownDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeUnknownBinaryType" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/zip'}">
<c:set var="mimeImg" value="doctypes/ImgZipDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeZipFile" scope="request"/>
</c:when>
<c:when test="${zm:contains(contenttype,'audio')}">
<c:set var="mimeImg" value="doctypes/ImgAudioDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeAudio" scope="request"/>
</c:when>
<c:when test="${zm:contains(contenttype,'video')}">
<c:set var="mimeImg" value="doctypes/ImgVideoDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeVideo" scope="request"/>
</c:when>
<c:when test="${zm:contains(contenttype,'image')}">
<c:set var="mimeImg" value="doctypes/ImgImageDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeImage" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'message/rfc822'}">
<c:set var="mimeImg" value="doctypes/ImgMessageDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeMailMessage" scope="request"/>
</c:when>
<c:when test="${zm:contains(contenttype,'text')}">
<c:set var="mimeImg" value="doctypes/ImgGenericDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeTextFile" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'text/html'}">
<c:set var="mimeImg" value="doctypes/ImgHtmlDoc.png" scope="request"/>
<c:set var="mimeDesc" value="mimeHtmlDocument" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/x-zimbra-doc'}">
<c:set var="mimeImg" value="doctypes/ImgGenericDoc.png" scope="request"/>
<c:set var="mimeDesc" value="zimbraDocument" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/x-zimbra-slides'}">
<c:set var="mimeImg" value="doctypes/ImgPresentation.png" scope="request"/>
<c:set var="mimeDesc" value="zimbraPresentation" scope="request"/>
</c:when>
<c:when test="${contenttype eq 'application/x-zimbra-xls'}">
<c:set var="mimeImg" value="doctypes/ImgZSpreadSheet.png" scope="request"/>
<c:set var="mimeDesc" value="zimbraSpreadsheet" scope="request"/>
</c:when>
<c:otherwise>
<c:set var="mimeImg" value="doctypes/ImgUnknownDoc.png" scope="request"/>
<c:set var="mimeDesc" value="" scope="request"/>
</c:otherwise>
</c:choose>
\ No newline at end of file
<%--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2008, 2009, 2010, 2011, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
--%>
<%@ tag body-content="empty" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<app:handleError>
<zm:getMailbox var="mailbox"/>
<zm:composeUploader var="uploader"/>
<zm:checkCrumb crumb="${param.crumb}"/>
<c:set var="needUploadView" value="${param.action eq 'newbrief'}"/>
<c:set var="needListView" value="${false}"/>
<c:if test="${uploader.isUpload}">
<c:choose>
<c:when test="${uploader.isAttachCancel}">
<c:set var="needListView" value="${true}"/>
<c:set var="needUploadView" value="${false}"/>
</c:when>
<c:when test="${uploader.isAttachDone}">
<c:set var="needListView" value="${true}"/>
<c:set var="needUploadView" value="${false}"/>
<c:if test="${uploader.compose.hasFileItems}">
<c:forEach var="part" items="${uploader.compose.fileItems}" varStatus="status">
<c:set var="emptyfile" value="${part.size eq 0 ? true : false}"/>
<c:if test="${emptyfile}">
<app:status><fmt:message key="zeroSizedAtts"/></app:status>
</c:if>
</c:forEach>
<zm:saveBriefcase var="result" folderId="${empty param.sfi ? mailbox.briefcase.id : param.sfi}" compose="${uploader.compose}"/>
</c:if>
</c:when>
<c:when test="${uploader.isLimitExceeded}">
<c:set var="needUploadView" value="${false}"/>
<c:set var="needListView" value="${false}"/>
<fmt:message var="errorMsg" key="zclient.UPLOAD_SIZE_LIMIT_EXCEEDED"/>
<app:status style="Warning">${errorMsg}</app:status>
</c:when>
</c:choose>
</c:if>
<c:if test="${needUploadView}">
<jsp:forward page="/h/briefcaseupload"/>
</c:if>
<c:if test="${needListView}">
<c:redirect url="/h/search?st=briefcase&sfi=${empty param.sfi ? mailbox.briefcase.id : param.sfi}"/>
</c:if>
</app:handleError>
<%--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2007, 2008, 2009, 2010, 2011, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* ***** END LICENSE BLOCK *****
--%>
<%@ tag body-content="empty" %>
<%@ attribute name="src" rtexprvalue="true" required="false" %>
<%@ attribute name="tooltip" rtexprvalue="true" required="false" %>
<%@ attribute name="clazz" rtexprvalue="true" required="false" %>
<%@ attribute name="disabled" rtexprvalue="true" required="false" %>
<%@ attribute name="name" rtexprvalue="true" required="true" %>
<%@ attribute name="text" rtexprvalue="true" required="false" %>
<%@ attribute name="id" rtexprvalue="true" required="false" %>
<%@ attribute name="width" rtexprvalue="true" required="false" %>
<%@ attribute name="extra" rtexprvalue="true" required="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<c:if test="${not empty text}"><fmt:message key="${text}" var="text"/></c:if>
<c:if test="${not empty tooltip}"><fmt:message key="${tooltip}" var="tooltip"/></c:if>
<c:choose>
<c:when test="${app:boolean(disabled)}"><c:set var="clazz" value="${clazz} ImgDisabled"/></c:when>
<c:otherwise> <c:set var="clazz" value="${clazz}"/> </c:otherwise>
</c:choose>
<c:if test="${app:boolean(width)}"><c:set var="width" value="${width}"/></c:if>
<c:if test="${not empty src}">
<td height="100%" nowrap="nowrap" valign="middle"><input name="${zm:cook(name)}" type="image" src="<app:imgurl value='${zm:cook(src)}' />" ${zm:cook(extra)} <c:if test="${not empty id}">id="I${zm:cook(id)}"</c:if> <c:if test="${app:boolean(disabled)}">disabled </c:if> <c:if test="${not empty tooltip}">alt="${fn:escapeXml(tooltip)}" title="${fn:escapeXml(tooltip)}"</c:if> <c:if test="${not empty clazz}">class='${zm:cook(clazz)}'</c:if>></td>
</c:if>
<c:if test="${not empty text}">
<td height="100%" <c:if test="${not empty width}">width="${zm:cook(width)}"</c:if> valign="middle" class="IEbutton"><input align=left ${zm:cook(extra)} <c:if test="${not empty id}">id="S${zm:cook(id)}"</c:if> <c:if test="${app:boolean(disabled)}">disabled class='ImgDisabled' </c:if> <c:if test="${not empty clazz}">class="${zm:cook(clazz)}"</c:if> name="${zm:cook(name)}" type="submit" value="${fn:escapeXml(text)}" <c:if test="${not empty tooltip}">title="${fn:escapeXml(tooltip)}"</c:if>></td>
</c:if>
<%--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2007, 2008, 2009, 2010, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.