Listing of index.php: <html> <?php // This PHP file is my resume, but the overall look of the page // can be altered to represent either a short overview, or a // longer more detailed version. // // The neatest thing about this page is the fact that each section of // the resume is a separate text file, pulled in by the PHP include // command. That way, each individual section can be edited with a // basic text editor (not much HTML in there, except a <p> or link). // By keeping the text external to the PHP file, the page itself // doesn't need to be edited to make changes. // // The code on this page was written by hand, using a plain text // editor -- not some code-generating behemoth like Frontpage. As // such, you will notice that it is clean, compact, and well documented // in places where the code isn't self-documenting. // // The page accepts a parameter on the address line for the long/short // option, as well as various font/color choices I use in my testing. // // Another item of interest is the email hiding Javascript that builds // the mailto: string using variables, so that email-harvesting robots // will have a harder time figuring out what the email address really is. // To the user, it will be transparent and they will simply think it's a // regular mailto: link. // // Default colors $pagebg="snow"; $usebgcolor=0; $timebgcolor="lightsteelblue"; // Allow the long or short version using the $form variable echo "<!--- form string as passed is \"$form\" --->\n"; import_request_variables("gP", "rvar_"); echo "<!--- form string requested as \"$rvar_form\" --->\n"; $form=$rvar_form; if ($form=="long") $ext="txt"; else { $form="short"; $ext="sh.txt"; } // Allow a font number to be passed in, or default to #1 if ($fontnum=="") $fontnum=1; switch ($fontnum) { case 1: $MainFont = "Tahoma"; if ($form=="short") $fontsize="13px"; else $fontsize="14px"; break; case 2: $MainFont = "Arial"; $fontsize="13px"; break; case 3: $MainFont = "Trebuchet MS"; $fontsize="13px"; break; case 4: $MainFont = "Times New Roman"; $fontsize="13px"; break; case 5: $MainFont = "Calisto MT"; $fontsize="13px"; break; case 6: $MainFont = "MS Gothic"; $fontsize="13px"; break; default: $MainFont = "Times New Roman"; $fontsize="13px"; break; } // Allow a pic number to be passed in, or default to mine if (($bgpic) && (file_exists($bgpic))) $timebgpic=$bgpic; else $timebgpic="back10.jpg"; echo "<html>\n <head>\n <STYLE TYPE=\"text/css\"><!-- A { text-decoration:none a:link { color: green; text-decoration: none } a:active { color: yellow; text-decoration: none } a:visited { color: green; text-decoration: none } a:hover { color:red } } a.phplink {font-weight: demi-light; color=\"lightseagreen\" } a.phplink:link { text-decoration: none } a.phplink:active { text-decoration: none } a.phplink:visited { text-decoration: none } a.phplink:hover { color: red; text-decoration: none } a.email {font-weight: demi-light; color=\"black\" } a.email:link { text-decoration: none } a.email:active { text-decoration: none } a.email:visited { text-decoration: none } a.email:hover { color: red; text-decoration: none } a.credit {font-weight: demi-light; color=\"darkgreen\" } a.credit:hover {color: red; text-decoration: none } } body { font-family: $MainFont; font-size: $fontsize; color: black; } td { font-family: $MainFont; font-size: $fontsize; color: black} #toptitle { font-family: $MainFont; font-size: 28px; font-weight: bold; color: darkgreen } #undertitle { font-family: $MainFont; font-size: 12px; font-weight: bold; color: black } #tinygreen { font-family: Tahoma; font-size: 9px; color: lightseagreen } #credit { font-family: Tahoma; font-size: 9px; color: darkgreen } #halfline { font-family: $MainFont; font-size: 6px; color: black } //--></STYLE>\n <title>Kelly Hughes Resume -- online version</title>\n <script type='text/javascript'> <!-- function show_alert() { alert('This is the Short version. Use the \"Extended Version\" link on the very last line to get Full version!'); } //--> </script>\n </head>\n"; if ($form=="short") echo "<body bgcolor=$pagebg onload='show_alert()'>\n"; else echo "<body bgcolor=$pagebg>\n"; ?> <table width="100%" border=0 cellpadding=0 cellspacing=0 align="center"> <tr><td valign="bottom" id="toptitle"> <center>Kelly Hughes</center> <!---[switch to toggle long/short form - ?php if ($form=="short") echo "<font id=\"credit\">short<a href=\"index.php?form=long\"><img border=0 src=\"slide_grn_sm1_left.gif\">long</a></font>"; else echo "<font id=\"credit\"><a href=\"index.php?form=short\">short<img border=0 src=\"slide_grn_sm1_right.gif\"></a>long</font>"; ?---> </td></tr> <tr><td valign="middle"><hr width="100%"></td></tr> <tr><td valign="top" id="undertitle"> <table border=0 width="100%" cellpadding=0 cellspacing=0> <td id="undertitle" align="center" width="32%">PO box 170 &nbsp; -- &nbsp; Barker TX 77413</td> <td id="undertitle" align="center">--</td> <td id="undertitle" align="center" width="30%">(713) 376-6590</td> <td id="undertitle" align="center">--</td> <td id="undertitle" align="center" width="28%"> <SCRIPT TYPE="text/javascript"> <!-- // protected email script by Joe Maller // JavaScripts available at http://www.joemaller.com // this script is free to use and distribute // but please credit me and/or link to my site emailE='kel.cc' emailE=('kelly' + '@' + emailE) document.write('<A class="email" href="mailto:' + emailE + '">' + emailE + '</a>') //--> </script> <NOSCRIPT> <em>Email address protected by JavaScript.<BR> Please enable JavaScript and refresh the page to see the address.</em> </NOSCRIPT> </td></table> </td></tr> </table> <br><br> <!--- BGcolors cover up background images in a table, so the trick here is to define the background image for the whole table, then override it cell by cell where you don't want it showing. It's a little messy, but it works and doesn't depend on HTML4.0 like THEAD and COLGROUP commands do. ---> <table border=0 width="100%" cellpadding=3 cellspacing=0 background="back10.jpg"> <tr><td width="22%" valign="top"><b>Summary</b></td> <td bgcolor="snow"><?php include "summary.txt"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top"><b>Skills</b></td> <td bgcolor="snow"><?php include "skills.$ext"; ?></td></tr> <tr><td valign="top"><b>Current Activity</b></td> <td bgcolor="snow">&nbsp;</td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top">Aug 2009 - Present</td> <td bgcolor="snow"><?php include "vid.$ext"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top">Mar 2000 - Present</td> <td bgcolor="snow"><?php include "domainadmin.$ext"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top"><b>Corporate Work History</b></td> <td bgcolor="snow">&nbsp;</td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top">Dec 2005 - July 2009</td> <td bgcolor="snow"><?php include "hp.$ext"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top">Feb 2002 - Dec 2005</td> <td bgcolor="snow"><?php include "fplt.$ext"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top">Apr 1998 - May 2001</td> <td bgcolor="snow"><?php include "compaq.$ext"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top">Jun 1995 - Mar 1998</td> <td bgcolor="snow"><?php include "uts.$ext"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top">Jan 1993 - Jun 1995</td> <td bgcolor="snow"><?php include "tbs.$ext"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top">May 1988 - Jan 1993</td> <td bgcolor="snow"><?php include "maxwell.$ext"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top">May 1984 - Feb 1987</td> <td bgcolor="snow"><?php include "cd.$ext"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top"><b>Education</b></td> <td bgcolor="snow"><?php include "education.txt"; ?></td></tr> <tr><td id="halfline"><p>&nbsp;</p></td><td id="halfline" bgcolor="snow">&nbsp;</td></tr> <tr><td valign="top"><b>Related Experience</b></td> <td bgcolor="snow"><?php include "related.$ext"; ?></td></tr> </table> <hr width="100%"><br> <center> <i>References Made Available Upon Request</i><br> <font id="credit">View this résumé and its <a class="credit" href="showme.php?page=index.php">PHP source</a> online at <a class="credit" href="http://www.kel.cc/resume">http://www.kel.cc/resume</a>. &nbsp; <?php if ($form=="short") echo "<a class=\"credit\" href=\"index.php?form=long\">Extended version</a>"; else echo "<a class=\"credit\" href=\"index.php?form=short\">Abbreviated version</a>"; ?> also available there.</font> </center> <?php if ($piclength=="") { if ($form=="short") { switch ($fontnum) { case 1: $piclength="81%"; break; case 2: $piclength="76%"; break; case 3: $piclength="83%"; break; default: $piclength="81%"; break; } } else $piclength="286%"; } //echo "<img ID=\"bgtile\" STYLE=\"position:absolute;TOP:99px;LEFT:1px;width:20%; \n // height=$piclength; Z-INDEX:-1;\" src=\"$timebgpic\">"; ?> </body> </html>