📄 cart.vm
字号:
$validator.getDynamicJavascript()
<table width="550">
<tr><td > </td></tr>
<tr><td class="functitle">$text.cart_title</td></tr>
<tr><td class="message">#messageMarkup( ) </td></tr>
</table>
<table width="550" border="1">
<tr>
<td class="itemtitle">$text.product_item_name</td>
<td class="itemtitle">$text.product_item_price</td>
<td class="itemtitle">$text.cart_item_totalfee</td>
<td class="itemtitle">$text.btn_delete</td>
<td class="itemtitle">$text.cart_item_quantity</td>
</tr>
#foreach( $cartitem in $cart.cartitems )
<tr>
<form name="main" method="post" action="cart.do?p=update" onsubmit='return validateCartForm(this)'>
<input type="hidden" name="productid" value="$cartitem.product.id">
<td >$cartitem.product.name</td>
<td align="right">$cartitem.product.price</td>
<td align="right">$cartitem.totalfee</td>
<td align="center"><a href="cart.do?p=delete&productid=$cartitem.product.id">$text.btn_delete</a></td>
<td align="center">
<input type="input" name="quantity" value="$!cartitem.quantity">
<input type="submit" value="$text.btn_update">
</td>
</form>
</tr>
#end
#if( $cart )
<tr>
<td class="itemprompt">$text.cart_item_total</td>
<td colspan="4" align="right">$cart.totalfee $text.price_unit</td>
</tr>
#end
</table>
<p>
<table width="550">
<tr><td colspan="3"> </td></tr>
<tr>
<td align="right" >
<input type="button" value="$text.btn_cart_continue" onClick="javascript:window.close();">
<td/>
<td align="center" >
#if( $shopping.isLogin() )
<input type="button" value="$text.btn_cart_checkout" onClick="javascript:window.location='order.do';">
#end
<td/>
<td align="left" >
<input type="button" value="$text.btn_cart_clean" onClick="javascript:window.location='cart.do?p=clean';">
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -