In the previous chapter you have programmed extensions with which you can set up customer references and their respective sectors. But this extension has one critical deficiency—it is pretty much a flop design-wise. This section is about beautification of the output. In the simplest of cases, we could integrate the design into the PHP function. But that way we would forfeit the separation of design, function, and content. So we have to find a way to address the design templates with PHP and to integrate them into the extension that way. The foundation is this design template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>References</title> </head> <body> <!-- ###BODY_CONTENT### begin--> <table width="50%" border="1"> <!--###REFERENCE### begin--> <tr> <td...