02.06.2013 Views

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

188<br />

CHAPTER 5 ■ ADD CONTROLS TO CREATE, EDIT, AND DELETE EVENTS<br />

. "\n\t$event->description$admin";<br />

}<br />

■ Note Make sure that you include the $admin variable at the end of the return string.<br />

■ Note As with the Create a new entry button, checks will be added later to ensure that only authorized users see<br />

the editing controls.<br />

Adding the Admin Stylesheet to the Full Event View Page<br />

The last step before the Edit button is ready for use is to include the admin.css stylesheet in the<br />

$css_files variable of view.php:<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!