Prev | Current Page 385 | Next

Emilian Balanescu and Cristian Darie

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

Create the presentation/templates/store_admin.tpl template file, which is loaded from the
admin.php file we just created, and add the following code in it:
{load_presentation_object filename="store_admin" assign="obj"}
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Demo Store Admin from Beginning PHP and MySQL E-Commerce

rel="stylesheet" />

CHAPTER 10 ?–  CATALOG ADMINISTRATION: DEPARTMENTS AND CATEGORIES 277




{include file=$obj->mMenuCell}


{include file=$obj->mContentsCell}





5. Create presentation/store_admin.php, and add the following code in it:
class StoreAdmin
{
public $mSiteUrl;
// Define the template file for the page menu
public $mMenuCell = 'blank.tpl';
// Define the template file for the page contents
public $mContentsCell = 'blank.tpl';
// Class constructor
public function __construct()
{
$this->mSiteUrl = Link::Build('', 'https');
// Enforce page to be accessed through HTTPS if USE_SSL is on
if (USE_SSL == 'yes' && getenv('HTTPS') != 'on')
{
header ('Location: https://' .


Pages:
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397