orderdetail.vm

来自「JDBC数据库高级编程源代码」· VM 代码 · 共 60 行

VM
60
字号
<table width="550">
	<tr><td >&nbsp;</td></tr>
	<tr><td class="functitle">$text.cart_title</td></tr>
	<tr><td class="message">#messageMarkup( )&nbsp;</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>
	</tr>
	#foreach( $orderitem in $orderitems )
	<tr>
		<td >$orderitem.product.name</td>
		<td align="right">$orderitem.price</td>
		<td align="right">$orderitem.totalfee</td>
	</tr>
	#end
	<tr>
		<td align="right">$text.cart_item_total</td>
		<td colspan="4" align="right">$order.totalfee&nbsp;$text.price_unit</td>
	</tr>
</table>
<table width="550">
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr>
		<td class="itemprompt">$text.order_item_name</td>
		<td >$!order.name</td>
	</tr>
	<tr>
		<td class="itemprompt">$text.userinfo_item_postcode</td>
		<td >$!order.postcode</td>
	</tr>
	<tr>
		<td class="itemprompt">$text.userinfo_item_address</td>
		<td >$!order.address</td>
	</tr>
	<tr>
		<td class="itemprompt">$text.userinfo_item_email</td>
		<td >$!order.email</td>
	</tr>
	<tr>
		<td class="itemprompt">$text.userinfo_item_telp</td>
		<td >$!order.telp</td>
	</tr>
	<tr>
		<td align="center" colspan="2">
			#if( $shopping.isAdmin() && $order.isNotDispose() )
			<input type="button" value="$text.btn_order_finish" 
				onClick="javascript:window.location='disposeorder.do?p=finish&id=$!order.id';">&nbsp;&nbsp;
			<input type="button" value="$text.btn_order_cancel" 
				onClick="javascript:window.location='disposeorder.do?p=cancel&id=$!order.id';">&nbsp;&nbsp;
			#end
			<input type="button" value="$text.btn_close" onClick="javascript:window.close();">&nbsp;&nbsp;
			<input type="button" value="$text.btn_back" onClick="javascript:window.history.go(-1);">
		</td>
		</td>
	</tr>
</table>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?