//-------------------------
function photoIt($_pic,
$_float = 'right',
$_alt = 'Default Text') {
if ( file_exists($_pic) ) {
list($_w, $_h, $_t, $_a) = getimagesize($_pic);
$_wide = $_w + 11 + 17;
$_high = $_h + 12 + 16;
$_w .= "px";
$_h .= "px";
$_wide .= "px";
$_high .= "px";
print "<SPAN STYLE='float: $_float; border: 0px; width:
$_wide; height: $_high; ";
print "margin: 0px; padding: 0px;'>";
print "<IMG STYLE='margin: 0px; height: 12px; width: 11px;'
SRC='i/phTopLef.jpg'>";
print "<IMG STYLE='margin: 0px; height: 12px; width: $_w;'
SRC='i/phTop.jpg'>";
print "<IMG STYLE='margin: 0px; height: 12px; width: 17px;'
SRC='i/phTopRig.jpg'>";
print "<IMG STYLE='margin: 0px; height: $_h; width: 11px;'
SRC='i/phLeft.jpg'>";
print "<IMG STYLE='margin: 0px; height: $_h; width: $_w;'
ALT='$_alt' SRC='$_pic'>";
print "<IMG STYLE='margin: 0px; height: $_h; width: 17px;'
SRC='i/phRight.jpg'>";
print "<IMG STYLE='margin: 0px; height: 16px; width: 11px;'
SRC='i/phBotLef.jpg'>";
print "<IMG STYLE='margin: 0px; height: 16px; width: $_w;'
SRC='i/phBottom.jpg'>";
print "<IMG STYLE='margin: 0px; height: 16px; width: 17px;'
SRC='i/phBotRig.jpg'>";
print "</SPAN>";
} else {
print "<IMG BORDER=0 SRC='bogusPic' ALT='NO PHOTO'>";
}
}
Save the following images to your i directory:
http://nwraasoccer.com/dev/i/phTopLef.jpg
http://nwraasoccer.com/dev/i/phTop.jpg
http://nwraasoccer.com/dev/i/phTopRig.jpg
http://nwraasoccer.com/dev/i/phLeft.jpg
http://nwraasoccer.com/dev/i/phRight.jpg
http://nwraasoccer.com/dev/i/phBotLef.jpg
http://nwraasoccer.com/dev/i/phBot.jpg
http://nwraasoccer.com/dev/i/phBotRig.jpg
They are very small images.