13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

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

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

Implementing Administrative Functions<br />

725<br />

Figure 30.12<br />

The Create Mail option gives the administrator an interface for<br />

uploading newsletter files.<br />

Remember that for this application you are assuming that the administrator has created a<br />

newsletter offline in both HTML <strong>and</strong> text formats <strong>and</strong> will upload both versions before<br />

sending.We chose to implement the application this way so that administrators can use<br />

their favorite software to create the newsletters.This makes the application more accessible.<br />

This form has a number of fields for an administrator to fill out. At the top is a dropdown<br />

box of mailing lists to choose from.The administrator must also fill in a subject for<br />

the newsletter; this is the Subject line for the eventual email.<br />

All the other form fields are file upload fields, which you can see from the Browse<br />

buttons next to them.To send a newsletter, an administrator must list both the text <strong>and</strong><br />

HTML versions of this newsletter (although, obviously, you could change this to suit<br />

your needs).There are also a number of optional image fields where an administrator can<br />

upload any images that she has embedded in her HTML. Each of these files must be<br />

specified <strong>and</strong> uploaded separately.

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

Saved successfully!

Ooh no, something went wrong!