markup improvements.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813224 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Anil Patel
2009-09-10 04:21:51 +00:00
parent 3678724587
commit 7bb5bea8d3
@@ -23,35 +23,30 @@ under the License.
<#assign shoppingCartSize = 0>
</#if>
<div id="microcart">
<div>
<#if (shoppingCartSize > 0)>
<span id="microCartNotEmpty">
${uiLabelMap.EcommerceCartHas} <span id="microCartQuantity">${shoppingCart.getTotalQuantity()}</span>
<p id="microCartNotEmpty">
${uiLabelMap.EcommerceCartHas} <strong id="microCartQuantity">${shoppingCart.getTotalQuantity()}</strong>
<#if shoppingCart.getTotalQuantity() == 1>${uiLabelMap.OrderItem}<#else/>${uiLabelMap.OrderItems}</#if>,
<span id="microCartTotal"><@ofbizCurrency amount=shoppingCart.getGrandTotal() isoCode=shoppingCart.getCurrency()/></span>
</span>
<span id="microCartEmpty" style="display:none">${uiLabelMap.OrderShoppingCartEmpty}</span>
<strong id="microCartTotal"><@ofbizCurrency amount=shoppingCart.getGrandTotal() isoCode=shoppingCart.getCurrency()/></strong>
</p>
<#else>
${uiLabelMap.OrderShoppingCartEmpty}
<p>${uiLabelMap.OrderShoppingCartEmpty}</p>
</#if>
&nbsp;&nbsp;
</div>
<div>
<a href="<@ofbizUrl>view/showcart</@ofbizUrl>">[${uiLabelMap.OrderViewCart}]</a>
<ul>
<li><a href="<@ofbizUrl>view/showcart</@ofbizUrl>">[${uiLabelMap.OrderViewCart}]</a></li>
<#if (shoppingCartSize > 0)>
<span id="quickCheckoutEnabled"><a href="<@ofbizUrl>quickcheckout</@ofbizUrl>">[${uiLabelMap.OrderCheckoutQuick}]</a></span>
<span id="quickCheckoutDisabled" style="display:none" class="disabled">[${uiLabelMap.OrderCheckoutQuick}]</span>
<span id="onePageCheckoutEnabled"><a href="<@ofbizUrl>onePageCheckout</@ofbizUrl>">[${uiLabelMap.EcommerceOnePageCheckout}]</a></span>
<span id="onePageCheckoutDisabled" style="display:none" class="disabled">[${uiLabelMap.EcommerceOnePageCheckout}]</span>
<span id="googleCheckoutEnabled"><a href="<@ofbizUrl>googleCheckout</@ofbizUrl>">[${uiLabelMap.EcommerceCartToGoogleCheckout}]</a></span>
<span id="googleCheckoutDisabled" style="display:none" class="disabled">[${uiLabelMap.EcommerceCartToGoogleCheckout}]</span>
<li id="quickCheckoutEnabled"><a href="<@ofbizUrl>quickcheckout</@ofbizUrl>">[${uiLabelMap.OrderCheckoutQuick}]</a></li>
<li id="quickCheckoutDisabled" style="display:none" class="disabled">[${uiLabelMap.OrderCheckoutQuick}]</li>
<li id="onePageCheckoutEnabled"><a href="<@ofbizUrl>onePageCheckout</@ofbizUrl>">[${uiLabelMap.EcommerceOnePageCheckout}]</a></li>
<li id="onePageCheckoutDisabled" style="display:none" class="disabled">[${uiLabelMap.EcommerceOnePageCheckout}]</li>
<li id="googleCheckoutEnabled"><a href="<@ofbizUrl>googleCheckout</@ofbizUrl>">[${uiLabelMap.EcommerceCartToGoogleCheckout}]</a></li>
<li id="googleCheckoutDisabled" style="display:none" class="disabled">[${uiLabelMap.EcommerceCartToGoogleCheckout}]</li>
<#if shoppingCart?has_content && (shoppingCart.getGrandTotal() > 0)>
<span id="microCartPayPalCheckout"><a href="<@ofbizUrl>setPayPalCheckout</@ofbizUrl>"><img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"/></a>
<li id="microCartPayPalCheckout"><a href="<@ofbizUrl>setPayPalCheckout</@ofbizUrl>"><img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"/></a><li>
</#if>
<#else>
<span class="disabled">[${uiLabelMap.OrderCheckoutQuick}]</span>
<span class="disabled">[${uiLabelMap.EcommerceOnePageCheckout}]</span>
<li class="disabled">[${uiLabelMap.OrderCheckoutQuick}]</li>
<li class="disabled">[${uiLabelMap.EcommerceOnePageCheckout}]</li>
</#if>
&nbsp;&nbsp;
</div>
</ul>
</div>