<%@ page buffer="8kb" autoFlush="true" %>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<%@ taglib prefix="mo" uri="com.zimbra.mobileclient" %>
<%@ 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" %>
<mo:handleError>
    <zm:getMailbox var="mailbox"/>
    <c:choose>
        <c:when test="${not empty mailbox.prefs.locale}">
            <fmt:setLocale value='${mailbox.prefs.locale}' scope='request'/>
        </c:when>
        <c:otherwise>
            <fmt:setLocale value='${pageContext.request.locale}' scope='request'/>
        </c:otherwise>
    </c:choose>
    <fmt:setBundle basename="/messages/ZhMsg" scope="request"/>
</mo:handleError>
<c:set var="context_url" value="${requestScope.baseURL!=null?requestScope.baseURL:'zmain'}"/>
<div class="stb tbl">
    <div class="tr">
        <div class="td">
            <fmt:message key="lowBandwidth" var="lbw"/> <fmt:message key="default" var="def"/>
            <span class="Title">      <%-- !TODO i18n Pending, please do that now --%>
                    <fmt:message key="view"/> &raquo;
                    <c:choose>
                        <c:when test="${fn:startsWith(sessionScope.zms, 'iphone')}">
                            iPhone
                        </c:when>
                        <c:when test="${fn:startsWith(sessionScope.zms, 'wm6')}">
                            Windows Mobile
                        </c:when>
                        <%--<c:when test="${fn:startsWith(sessionScope.zms, 'nok')}">
                            Nokia
                        </c:when>--%>
                        <c:when test="${fn:startsWith(sessionScope.zms, 'xlite')}">
                            Generic
                        </c:when>
                     </c:choose>
                    &raquo; ${fn:endsWith(sessionScope.zms,'xlite') ? lbw : def }
                </span>
        </div>
    </div>
</div>

<div class="tb tbl">
    <div class="tr">
        <div class="td">
            <span class="Title left">         <%-- !TODO i18n Pending, please do that now --%>
                    iPhone/iPod<%--<fmt:message key="iPhone"/>--%>
                </span>
        </div>
    </div>
</div>
<div onclick='zClickLink("FLDR_iph1")' class='Folders list-row'>
    <span>
        <a noajax="true" id="FLDR_iph1" href="?zms=iphone&amp;limit=10">
            Default
        </a>
        <div class="small-gray-text">iPhone/iPod classic</div>
    </span>
</div>
<div class="tb tbl">
    <div class="tr">
        <div class="td">
            <span class="Title left">
                    <%--<fmt:message key="WindowsMobile"/> --%>Windows Mobile
                </span>
        </div>
    </div>
</div>
<div onclick='zClickLink("FLDR_wm1")' class='Folders list-row'>
    <span>
        <a noajax="true" id="FLDR_wm1" href="?zms=wm6&amp;limit=10">
            Default
        </a>
        <div class="small-gray-text">
            WindowsMobile/IE classic
        </div>
    </span>
</div>
<div class="tb tbl">
    <div class="tr">
        <div class="td">
            <span class="Title left">
                    <%--<fmt:message key="Generic"/>--%>Generic
            </span>
        </div>
    </div>
</div>
<div onclick='zClickLink("FLDR_xlite")' class='Folders list-row'>
    <span>
        <a noajax="true" id="FLDR_xlite" href="?zms=xlite&amp;limit=10">
            ${lbw}
        </a>
        <div class="small-gray-text">lightweight for small screen devices/slow networks</div>    
    </span>
</div>