267
C H A P T E R 1 0
Previewing the Catalog Administration Page
Although the long list of objectives might look intimidating at first, they will be easy to implement.
We have already covered most of the theory in the previous chapters, but you??™ll still
learn quite a bit in this chapter.
The first step toward creating the catalog administration page is to create a login mechanism,
which will be implemented as the simple login page that you can see in Figure 10-1.
Figure 10-1. The TShirtShop login page
Next, you build the management part of the site (commonly referred to as the control
panel) by creating its main page (admin.php), its associated template (store_admin.tpl), a main
menu template (admin_menu.tpl) used to navigate through different administrative sections
that we??™ll extend in the next chapters, a componentized template to manage the authentication
(admin_login), and two componentized templates for catalog administration (admin_departments
and admin_categories).
After logging in, the administrator is presented with the list of departments (generated by
the admin_departments Smarty template, which is loaded from the main administration page,
admin.php), as shown in Figure 10-2. Here, the administrator can
??? Edit the department??™s name or description by clicking the Edit button.
??? View the categories that belong to a department by clicking the Edit Categories button.
Pages:
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384