Prev | Current Page 431 | Next

Emilian Balanescu and Cristian Darie

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

As we??™ve done for all the administrative features, we start the
implementation with the presentation tier.
Exercise: Implementing Product Details Presentation Tier
1. Open tshirtshop.css from the styles folder, and add the following style definitions:
.borderless-table {
width: 100%;
}
.borderless-table td {
border: none;
padding-left: 0;
}
.bold-text {
font-size: 93%;
font-weight: bold;
}
2. Create presentation/templates/admin_product_details.tpl, and add the following code in it:
{* admin_product_details.tpl *}
{load_presentation_object filename="admin_product_details" assign="obj"}
action="{$obj->mLinkToProductDetailsAdmin}">


Editing product: ID #{$obj->mProduct.product_id} —
{$obj->mProduct.name} [

back to products ...
]


{if $obj->mErrorMessage}

{$obj->mErrorMessage}

{/if}





Product name:



value="{$obj->mProduct.name}" size="30" />
CHAPTER 11 ?–  CATALOG ADMINISTRATION: PRODUCTS AND ATTRIBUTES 329



Product description:



{strip}

{/strip}



Product price:



value="{$obj->mProduct.


Pages:
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443

best online loans for people with bad credit jak wiązać krawat DERMATOLOG KRAKÓW kolej transsyberyjska Władysławowo wakacje