Prev | Current Page 653 | Next

Emilian Balanescu and Cristian Darie

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

customer_id}"
{if $obj->mCustomers[i].customer_id == $obj->mCustomerId}
selected="selected"
{/if}>
{$obj->mCustomers[i].name}

{/section}




Get by order ID




Show the most recent

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

{$obj->mOrders[i].order_id}
{$obj->mOrders[i].created_on|date_format:"%Y-%m-%d %T"}
{$obj->mOrders[i].shipped_on|date_format:"%Y-%m-%d %T"}
{$obj->mOrderStatusOptions[$status]}
{$obj->mOrders[i].name}

View Details


{/section}

{/if}
2. Add the highlighted members to the AdminOrders class in presentation/admin_orders.php:
public $mLinkToAdmin;
public $mCustomers;
public $mCustomerId;
public $mOrderId;
CHAPTER 17 ?–  STORING CUSTOMER ORDERS 555
3. Add the highlighted code to the init() method of the AdminOrders class in presentation/
admin_orders.php:
// If "Show orders by status" filter is in action .


Pages:
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665

poker online słownik teksty piosenek poker no limit imprezy integracyjne dla firm