Location: PHPKode > projects > phpBazar > classified_ad_att.inc.php
<?
#################################################################################################
#
#  project           	: phpBazar
#  filename          	: classified_adatt.inc.php
#  last modified by  	: 
#  e-mail            	: hide@address.com
#  purpose           	: IncludeModule show classified ad attachments (detail)
#
#################################################################################################
require_once ("library.php");


	for ($i=5;$i>=1;$i--) {
	    $fieldname="attachment".$i;
	    if ($db[$fieldname]) {
    		echo "<a href=\"$att_path/$db[$fieldname]\" onClick='enterWindow=window.open(\"$att_path/$db[$fieldname]\",\"Picture\",\"top=10,left=10,scrollbars=yes,resizable=yes\"); return false'>
	    	    <img src=\"$image_dir/$att_icon\" alt=\"$db[$fieldname]\" align=\"right\" vspace=\"2\" border=\"0\"
	    		onmouseover=\"window.status='$db[$fieldname]'; return true;\"
	    		onmouseout=\"window.status=''; return true;\"></a>\n";
	    }
	}

	echo " $ad_att:";
	echo "   <br><div class=\"spaceleft\">&nbsp</div><br><div class=\"spaceleft\">&nbsp</div><hr>\n";

?>
Return current item: phpBazar