Código PHP:
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><img src="images/line.png" width="500" height="25" /></div></td>
</tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CFEBEF">
<tr>
<td width="80" rowspan="2"><div align="center"><a href="PHOTOS/<? echo str_pad($gal, 3, "0", STR_PAD_LEFT)?>/zips/<? echo str_pad($gal, 3, "0", STR_PAD_LEFT)?>.rar"><img src="images/zip.jpg" width="73" height="60"></div></td>
<td width="200" height="30" valign="bottom"><div align="left" class="Estilo3">Download Full Photoset</div></td>
<td width="200" height="30" valign="bottom"><div align="right" class="Estilo3">Download Full Photoset</div></td>
<td width="80" rowspan="2"><div align="center"><a href="PHOTOS/<? echo str_pad($gal, 3, "0", STR_PAD_LEFT)?>/zips/<? echo str_pad($gal, 3, "0", STR_PAD_LEFT)?>_hi_res.rar"><img src="images/zip.jpg" width="73" height="60"></div></td>
</tr>
<tr>
<td width="200" height="30" valign="top"><div align="left" class="Estilo3">Lo-Res (1024x768)</div></td>
<td width="200" height="30" valign="top"><div align="right" class="Estilo3">Hi-Res (2560x1920)</div></td>
</tr>
<tr>
<td width="80"><div align="center">
<?
$number = str_pad($gal, 3, "0", STR_PAD_LEFT)?>
<?
$endfile = ".rar" ;
$filename = "PHOTOS/$number/zips/$number$endfile" ;
print round(filesize($filename) / 1000000, 1 ) . " Mb" ?>
</div></td>
<td height="30" valign="top"> </td>
<td height="30" valign="top"> </td>
<td width="80"><div align="center">
<?
$number = str_pad($gal, 3, "0", STR_PAD_LEFT)?>
<?
$endfile2 = "_hi_res.rar" ;
$filename2 = "PHOTOS/$number/zips/$number$endfile2" ;
print round(filesize($filename2) / 1000000, 1 ) . " Mb" ?>
</div></td>
</tr>
</table>
Código PHP:
<?
$number = str_pad($gal, 3, "0", STR_PAD_LEFT) ;
$endfile = ".rar" ;
$endfile2 = "_hi_res.rar" ;
$filename = "PHOTOS/$number/zips/$number$endfile" ;
$filename2 = "PHOTOS/$number/zips/$number$endfile2" ; ?>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><img src="images/line.png" width="500" height="25" /></div></td>
</tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CFEBEF">
<tr>
<td width="80" rowspan="2"><div align="center">
<?
if (file_exists($filename))
print <a href="$filename"/zips/"$filename$endfile><img src="images/zip.jpg" width="73" height="60"></div></td>" ;
else print "<img src="images/zip.jpg" width="73" height="60"></div></td>" ; ?>
<td width="200" height="30" valign="bottom"><div align="left" class="Estilo3">Download Full Photoset</div></td>
<td width="200" height="30" valign="bottom"><div align="right" class="Estilo3">Download Full Photoset</div></td>
<td width="80" rowspan="2"><div align="center">
<?
if (file_exists($filename))
print <a href="$filename2"/zips/"$filename2$endfile2><img src="images/zip.jpg" width="73" height="60"></div></td>" ;
else print "<img src="images/zip.jpg" width="73" height="60"></div></td>" ; ?>
</tr>
<tr>
<td width="200" height="30" valign="top"><div align="left" class="Estilo3">Lo-Res (1024x768)</div></td>
<td width="200" height="30" valign="top"><div align="right" class="Estilo3">Hi-Res (2560x1920)</div></td>
</tr>
<tr>
<td width="80"><div align="center"><? print round(filesize($filename) / 1000000, 1 ) . " Mb" ?>
</div></td>
<td height="30" valign="top"> </td>
<td height="30" valign="top"> </td>
<td width="80"><div align="center"><? print round(filesize($filename2) / 1000000, 1 ) . " Mb" ?>
</div></td>
</tr>
</table>
Desde ya muchas gracias por cualquier ayuda que me puedan dar.
Marcelo.