<?php if($_attach_count = count($d['attach'])) {for ($_attach_i = 0; $_attach_i < $_attach_count; $_attach_i++){ ?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td height="15"><img src="<?php $this->_echo($d['.'][0]['I_SPACER']); ?>" alt="" height="15" border="0" /></td></tr>
</table>

<?php if($_denyrow_count = count($d['attach'][$_attach_i]['denyrow'])) {for ($_denyrow_i = 0; $_denyrow_i < $_denyrow_count; $_denyrow_i++){ ?>
<table class="attachtable" width="95%" align="center" cellpadding="2" cellspacing="0" border="1">
<tr>
<td class="attachheader" width="100%" align="center"><?php $this->_echo($d['attach'][$_attach_i]['L_DENIED']); ?></td>
</tr>
</table>
<?php }}if($_cat_stream_count = count($d['attach'][$_attach_i]['cat_stream'])) {for ($_cat_stream_i = 0; $_cat_stream_i < $_cat_stream_count; $_cat_stream_i++){ ?>
<table class="attachtable" width="95%" align="center" cellpadding="2" cellspacing="0" border="1">
<colgroup>
<col width="15%">
<col width="85%">
</colgroup>
<tr>
<td class="attachheader" align="center" colspan="2"><?php $this->_echo($d['attach'][$_attach_i]['DOWNLOAD_NAME']); ?></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['.'][0]['L_DESCRIPTION']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['COMMENT']); ?></span></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['.'][0]['L_FILESIZE']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['FILESIZE']); ?> <?php $this->_echo($d['attach'][$_attach_i]['SIZE_VAR']); ?></span></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['L_DOWNLOADED_VIEWED']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['L_DOWNLOAD_COUNT']); ?></span></td>
</tr>
<tr>
<td colspan="2" align="center"><br />
<object id="wmp" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> 
<param name="FileName" value="<?php $this->_echo($d['attach'][$_attach_i]['U_DOWNLOAD_LINK']); ?>"> 
<param name="ShowControls" value="1"> 
<param name="ShowDisplay" value="0"> 
<param name="ShowStatusBar" value="1"> 
<param name="AutoSize" value="1"> 
<param name="AutoStart" value="0"> 
<param name="Visible" value="1"> 
<param name="AnimationStart" value="0"> 
<param name="Loop" value="0"> 
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" src="<?php $this->_echo($d['attach'][$_attach_i]['U_DOWNLOAD_LINK']); ?>" name=MediaPlayer2 showcontrols=1 showdisplay=0 showstatusbar=1 autosize=1 autostart=0 visible=1 animationatstart=0 loop=0></embed> 
</object> <br /><br />
</td>
</tr>
</table>
<?php }}if($_cat_swf_count = count($d['attach'][$_attach_i]['cat_swf'])) {for ($_cat_swf_i = 0; $_cat_swf_i < $_cat_swf_count; $_cat_swf_i++){ ?>
<table class="attachtable" width="95%" align="center" cellpadding="2" cellspacing="0" border="1">
<colgroup>
<col width="15%">
<col width="85%">
</colgroup>
<tr>
<td class="attachheader" align="center" colspan="2"><?php $this->_echo($d['attach'][$_attach_i]['DOWNLOAD_NAME']); ?></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['.'][0]['L_DESCRIPTION']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['COMMENT']); ?></span></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['.'][0]['L_FILESIZE']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['FILESIZE']); ?> <?php $this->_echo($d['attach'][$_attach_i]['SIZE_VAR']); ?></span></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['L_DOWNLOADED_VIEWED']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['L_DOWNLOAD_COUNT']); ?></span></td>
</tr>
<tr>
<td colspan="2" align="center"><br />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="<?php $this->_echo($d['attach'][$_attach_i]['WIDTH']); ?>" height="<?php $this->_echo($d['attach'][$_attach_i]['HEIGHT']); ?>"> 
<param name=movie value="<?php $this->_echo($d['attach'][$_attach_i]['U_DOWNLOAD_LINK']); ?>"> 
<param name=loop value=1> 
<param name=quality value=high> 
<param name=scale value=noborder> 
<param name=wmode value=transparent> 
<param name=bgcolor value=#000000> 
<embed src="<?php $this->_echo($d['attach'][$_attach_i]['U_DOWNLOAD_LINK']); ?>" loop=1 quality=high scale=noborder wmode=transparent bgcolor=#000000  width="<?php $this->_echo($d['attach'][$_attach_i]['WIDTH']); ?>" height="<?php $this->_echo($d['attach'][$_attach_i]['HEIGHT']); ?>" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed> 
</object><br /><br />
</td>
</tr>
</table>
<?php }}if($_cat_image_count = count($d['attach'][$_attach_i]['cat_image'])) {for ($_cat_image_i = 0; $_cat_image_i < $_cat_image_count; $_cat_image_i++){ ?>
<table class="attachtable" width="95%" align="center" cellpadding="2" cellspacing="0" border="1">
<colgroup>
<col width="15%">
<col width="85%">
</colgroup>
<tr>
<td class="attachheader" align="center" colspan="2"><?php $this->_echo($d['attach'][$_attach_i]['DOWNLOAD_NAME']); ?></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['.'][0]['L_DESCRIPTION']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['COMMENT']); ?></span></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['.'][0]['L_FILESIZE']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['FILESIZE']); ?> <?php $this->_echo($d['attach'][$_attach_i]['SIZE_VAR']); ?></span></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['L_DOWNLOADED_VIEWED']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['L_DOWNLOAD_COUNT']); ?></span></td>
</tr>
<tr>
<td align="center" colspan="2"><br /><img src="<?php $this->_echo($d['attach'][$_attach_i]['IMG_SRC']); ?>" alt="<?php $this->_echo($d['attach'][$_attach_i]['DOWNLOAD_NAME']); ?>" border="0" /><br /><br /></td>
</tr>
</table>
<?php }}if($_cat_thumbnail_count = count($d['attach'][$_attach_i]['cat_thumbnail'])) {for ($_cat_thumbnail_i = 0; $_cat_thumbnail_i < $_cat_thumbnail_count; $_cat_thumbnail_i++){ ?>
<table class="attachtable" width="95%" align="center" cellpadding="2" cellspacing="0" border="1">
<colgroup>
<col width="15%">
<col width="85%">
</colgroup>
<tr>
<td class="attachheader" align="center" colspan="2"><?php $this->_echo($d['attach'][$_attach_i]['DOWNLOAD_NAME']); ?></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['.'][0]['L_DESCRIPTION']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['COMMENT']); ?></span></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['.'][0]['L_FILESIZE']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['FILESIZE']); ?> <?php $this->_echo($d['attach'][$_attach_i]['SIZE_VAR']); ?></span></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['L_DOWNLOADED_VIEWED']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed">&nbsp;<?php $this->_echo($d['attach'][$_attach_i]['L_DOWNLOAD_COUNT']); ?></span></td>
</tr>
<tr>
<td align="center" colspan="2"><br /><a href="<?php $this->_echo($d['attach'][$_attach_i]['IMG_SRC']); ?>" target="_blank"><img src="<?php $this->_echo($d['attach'][$_attach_i]['IMG_THUMB_SRC']); ?>" alt="<?php $this->_echo($d['attach'][$_attach_i]['DOWNLOAD_NAME']); ?>" border="0" /></a><br /><br /></td>
</tr>
</table>
<?php }}if($_cat_link_count = count($d['attach'][$_attach_i]['cat_link'])) {for ($_cat_link_i = 0; $_cat_link_i < $_cat_link_count; $_cat_link_i++){ ?>
<table class="attachtable" width="95%" align="center" cellpadding="2" cellspacing="0" border="1">
<colgroup>
<col width="15%">
<col width="75%">
<col width="10%">
</colgroup>
<tr>
<td class="attachheader" align="center" colspan="3"><?php $this->_echo($d['attach'][$_attach_i]['DOWNLOAD_NAME']); ?></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['.'][0]['L_DESCRIPTION']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['attach'][$_attach_i]['COMMENT']); ?><br /></span></td>
<td class="attachrow" align="center" rowspan="4"><?php if($_upload_count = count($d['attach'][$_attach_i]['cat_link'][$_cat_link_i]['upload'])) {for ($_upload_i = 0; $_upload_i < $_upload_count; $_upload_i++){ ?><a href="<?php $this->_echo($d['attach'][$_attach_i]['U_DOWNLOAD_LINK']); ?>"<?php $this->_echo($d['attach'][$_attach_i]['TARGET_BLANK']); ?> class="genmed" title="<?php $this->_echo($d['attach'][$_attach_i]['L_UPLOAD']); ?>"><?php if($_img_count = count($d['attach'][$_attach_i]['cat_link'][$_cat_link_i]['upload'][$_upload_i]['img'])) {for ($_img_i = 0; $_img_i < $_img_count; $_img_i++){ ?><img src="<?php $this->_echo($d['attach'][$_attach_i]['I_UPLOAD']); ?>" border="0" alt="<?php $this->_echo($d['attach'][$_attach_i]['L_UPLOAD']); ?>" /><?php }} else {$this->_echo($d['attach'][$_attach_i]['L_UPLOAD']);} ?></a><?php }} ?><br /><br style="font-size: 3px" />&nbsp;<a href="<?php $this->_echo($d['attach'][$_attach_i]['U_DOWNLOAD_LINK']); ?>"<?php $this->_echo($d['attach'][$_attach_i]['TARGET_BLANK']); ?> class="genmed"><b><?php $this->_echo($d['.'][0]['L_DOWNLOAD']); ?></b></a>&nbsp;</td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['.'][0]['L_FILENAME']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['attach'][$_attach_i]['DOWNLOAD_NAME']); ?>&nbsp;</span></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['.'][0]['L_FILESIZE']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['attach'][$_attach_i]['FILESIZE']); ?> <?php $this->_echo($d['attach'][$_attach_i]['SIZE_VAR']); ?>&nbsp;</span></td>
</tr>
<tr>
<td class="attachrow" nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['attach'][$_attach_i]['L_DOWNLOADED_VIEWED']); ?>&nbsp;</span></td>
<td class="attachrow" nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['attach'][$_attach_i]['L_DOWNLOAD_COUNT']); ?>&nbsp;</span></td>
</tr>
</table>
<?php }}}} ?>