Learning PHP Design Patterns by William Sanders

Learning PHP Design Patterns by William Sanders

Author:William Sanders
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Programming Languages / PHP
ISBN: 9781449344863
Publisher: O’Reilly Media
Published: 2013-02-11T05:00:00+00:00


Figure 8-4. Data input for Decorator

The data input is simple, and all that’s required are the standard HTML/CSS files for the page. First, the page uses the following CSS file:

@charset "UTF-8"; /* CSS Document */ /* devedate.css */ header { font-family:Cracked; font-size:72px; color:#F00; background-color:#000; } h2 { font-family:"Courier New", Courier, monospace; font-size:24px; } h3 { font-family:"Courier New", Courier, monospace; font-size:18px; color:#fff; background-color:#000; } body { font-family:"Courier New", Courier, monospace; font-size:14px; } #sex { display:table; } #fem { display:table-cell; width:150px; text-align:center; } aside { display:table-cell; width:150px; text-align:center; }

The page is set up for mobile vertical, but it works just as well on a table or desktop system. Next, the HTML for the page is listed in the following code block. It calls a page, ClientH.php. The H in the class and filename indicates that it is set up to receive HTML data (you may want to add validation code either to the HTML or PHP scripts; it throws errors for any unchecked radio buttons!):



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.