<tr>
<th class="thHead" colspan="2"><?php $this->_echo($d['.'][0]['L_ADD_ATTACH_TITLE']); ?></th>
</tr>
<tr>
<td class="row3" colspan="2"><span class="gensmall"><?php $this->_echo($d['.'][0]['L_ADD_ATTACH_EXPLAIN']); ?><br />
<a href="<?php $this->_echo($d['.'][0]['U_RULES']); ?>" onclick="window.open('<?php $this->_echo($d['.'][0]['U_RULES']); ?>', 'attachrules', 'HEIGHT=450,resizable=yes,scrollbars=yes,WIDTH=700');return false;" target="attachrules" class="gensmall"><?php $this->_echo($d['.'][0]['L_RULES']); ?></a>
</span></td>
</tr>
<tr>
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_FILE_NAME']); ?></b></span></td>
<td class="row2"><span class="genmed"><input type="file" name="fileupload" maxlength="<?php $this->_echo($d['.'][0]['FILE_SIZE']); ?>" value="" size="40" class="post" /></span></td>
</tr>
<tr>
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_FILE_COMMENT']); ?></b></span></td>
<td class="row2"><textarea name="filecomment" rows="2" cols="35" class="post" style="width:450px"></textarea></td>
</tr>
<tr>
<td class="catSides" colspan="2" align="center"><span class="genmed">&nbsp;
<input type="submit" name="add_attachment" value="<?php $this->_echo($d['.'][0]['L_ADD_ATTACHMENT']); ?>" class="liteoption" />&nbsp;
</span></td>
</tr>
<tr>
<td class="spaceRow" colspan="2"><img src="<?php $this->_echo($d['.'][0]['I_SPACER']); ?>" border="0" alt="" height="3" /></td>
</tr>
<?php if($_attach_count = count($d['attach'])) {for ($_attach_i = 0; $_attach_i < $_attach_count; $_attach_i++){ ?>
<tr>
<th class="thSides" colspan="2"><?php $this->_echo($d['.'][0]['L_POSTED_ATTACHMENTS']); ?></th>
</tr>
<?php if($_row_count = count($d['attach'][$_attach_i]['row'])) {for ($_row_i = 0; $_row_i < $_row_count; $_row_i++){ ?>
<tr>
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_FILE_NAME']); ?></b></span></td>
<td class="row2"><span class="gen"><a class="gen" href="<?php $this->_echo($d['attach'][$_attach_i]['row'][$_row_i]['U_FILE_NAME']); ?>" target="_blank"><?php $this->_echo($d['attach'][$_attach_i]['row'][$_row_i]['FILE_NAME']); ?></a></span></td>
</tr>
<tr>
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_FILE_COMMENT']); ?></b></span></td>
<td class="row2"><textarea name="comment_list[<?php $this->_echo($d['attach'][$_attach_i]['row'][$_row_i]['ROW_ID']); ?>]" rows="2" cols="35" style="width:450px" class="post"><?php $this->_echo($d['attach'][$_attach_i]['row'][$_row_i]['FILE_COMMENT']); ?></textarea></td>
</tr>
<tr>
<td class="catSides" colspan="2" align="center"><input type="hidden" name="attach_id_list[<?php $this->_echo($d['attach'][$_attach_i]['row'][$_row_i]['ROW_ID']); ?>]" value="<?php $this->_echo($d['attach'][$_attach_i]['row'][$_row_i]['ATTACH_ID']); ?>" /><span class="genmed">&nbsp;
<input type="submit" name="edit_comment[<?php $this->_echo($d['attach'][$_attach_i]['row'][$_row_i]['ROW_ID']); ?>]" value="<?php $this->_echo($d['.'][0]['L_UPDATE_COMMENT']); ?>" class="liteoption" />&nbsp;
<input type="submit" name="update_attachment[<?php $this->_echo($d['attach'][$_attach_i]['row'][$_row_i]['ROW_ID']); ?>]" value="<?php $this->_echo($d['.'][0]['L_UPLOAD_NEW_VERSION']); ?>" class="liteoption" />&nbsp;
<input type="submit" name="del_attachment[<?php $this->_echo($d['attach'][$_attach_i]['row'][$_row_i]['ROW_ID']); ?>]" value="<?php $this->_echo($d['.'][0]['L_DELETE_ATTACHMENT']); ?>" class="liteoption" />&nbsp;
<?php if($_thumbnail_count = count($d['attach'][$_attach_i]['row'][$_row_i]['thumbnail'])) {for ($_thumbnail_i = 0; $_thumbnail_i < $_thumbnail_count; $_thumbnail_i++){ ?><input type="submit" name="del_thumbnail[<?php $this->_echo($d['attach'][$_attach_i]['row'][$_row_i]['ROW_ID']); ?>]" value="<?php $this->_echo($d['.'][0]['L_DELETE_THUMBNAIL']); ?>" class="liteoption" />&nbsp;<?php }} ?>
</span></td>
</tr>
<tr>
<td class="spaceRow" colspan="2"><img src="<?php $this->_echo($d['.'][0]['I_SPACER']); ?>" border="0" alt="" height="3" /></td>
</tr>
<?php }}}} ?>