User's Manual
Building the Departments Page
Beta Draft Getting Connected 3-3
{ border-bottom: solid #334B66 4px;
font-size: 160%; }
table
{ padding: 5px; }
td
{ border: solid #000000 1px;
text-align: left;
padding: 5px; }
th
{ text-align: left;
padding: 5px; }
.footer
{ border-top: solid #334B66 4px;
font-size: 90%; }
.company
{ padding-top: 5px;
float: right; }
.date
{ padding-top: 5px;
float: left; }
4. To call the user interface functions create anyco.php with the following text:
<?php
require('anyco_ui.inc');
ui_print_header('Departments');
ui_print_footer(date('Y-m-d H:i:s'));
?>
The anyco.php file uses PHP functions to produce HTML content. The
require() PHP function is used to include the code in anyco_ui.inc, such
that the functions defined in it can be called to produce the desired result. If the
required file cannot be found, PHP will generate an error and stop running the
script.
5. To tes t anyco.php, enter the following URL in your browser:
http://localhost/~<username>/chap3/anyco.php
The resulting Web page produced is:
The date and time appear in the page footer section.