Location: PHPKode > projects > GiftOrder > admin/templates/order_details.php
<h2>Order <? pv($id) ?></h2>
<blockquote class=default>
	<table>
	<tr>
		<td class=label>Ordered:</td>
		<td class=normal><? pv($order->o_timestamp) ?></td>
		<td nowrap width=25></td>
		<td class=label>Ordered By:</td>
		<td class=normal><a href="users.php?mode=edit&username=<? pv($order->username) ?>"><? pv($order->username) ?></a></td>
	</tr>
	<tr>
		<td class=label>Authorized:</td>
		<td class=normal><? pv($order->a_timestamp) ?></td>
		<td nowrap width=25></td>
		<td class=label>Order Status:</td>
		<td class=normal><? pv($order->status) ?> - <? pv($order->status_details) ?></td>
	</tr>
	<tr>
		<td class=label>Amount:</td>
		<td class=normal>$ <? pv($order->amount) ?></td>
	</tr>
	<tr valign=top>
		<td class=label>Customer Info:</td>
		<td colspan=4 class=normal><?=nl2br(ov($order->custinfo))?></td>
	</tr>
	<tr valign=top>
		<td class=label>Comments:</td>
		<td colspan=4 class=normal><?=nl2br(pv($order->comments))?></td>
	</tr>
	</table>
</blockquote>

<h2>Order Details</h2>
<blockquote>
	<table border=1 cellspacing=1 cellpadding=3>
	<tr>
		<td class=label>Product</td>
		<td class=label align=right>Current Price</td>
		<td class=label align=right>Purchase Price</td>
		<td class=label align=right>Qty</td>
		<td colspan=2 class=label align=right>Total</td>
	</tr>

	<? while ($prod = db_fetch_object($qid_items)) { ?>
		<tr>
			<td class=normal><? pv($prod->name) ?></td>
			<td class=normal align=right><?=$prod->curr_price?></td>
			<td class=normal align=right><?=$prod->purchase_price?></td>
			<td class=normal align=right><?=$prod->qty?></td>
			<td class=normal>$</td>
			<td class=normal align=right><?=$prod->total?></td>
		</tr>
	<? } ?>
	</table>
</blockquote>
Return current item: GiftOrder