Prev | Current Page 555 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

Now, it??™s time to implement the admin_orders componentized template. Create a new file named
admin_orders.tpl in the presentation/templates folder with the following code in it:
{* admin_orders.tpl *}
{load_presentation_object filename="admin_orders" assign="obj"}
{if $obj->mErrorMessage}

{$obj->mErrorMessage}

{/if}



Show the most recent

orders



Show all records created between

and




Show orders by status
{html_options name="status" options=$obj->mOrderStatusOptions
selected=$obj->mSelectedStatus}



{if $obj->mOrders}





CHAPTER 14 ?–  ACCEPTING CUSTOMER ORDERS 449




{section name=i loop=$obj->mOrders}
{assign var=status value=$obj->mOrders[i].


Pages:
543544545546547548549550551552553554 555 556557558559560561562563564565566567
imprezy integracyjne dla firmpoker onlineteksty piosenekteksty piosenekfreeroll titan poker
Order IDDate CreatedDate ShippedStatusCustomer