
<script language="Javascript" type="text/javascript">
<!--//
	function check_uncheck(status)
	{
		if ( status == -1 )
		{
			var checked = document.post.select_all.checked;
			for ( i = 0; i < document.post.elements.length; i++ )
			{
				if ( document.post.elements[i].name == 'delete_box[]' )
				{
					document.post.elements[i].checked = checked;
				}
			}
		}
		else if ( !status )
		{
			document.post.select_all.checked = false;
		}
		else
		{
			checked = true;
			for ( i = 0; (i < document.post.elements.length) && checked; i++ )
			{
				if ( document.post.elements[i].name == 'delete_box[]' )
				{
					checked =  document.post.elements[i].checked;
				}
			}
			document.post.select_all.checked = checked;
		}
	}
//-->
</script>

<table cellpadding="4" cellspacing="1" border="0" width="100%" class="forumline">
<colgroup>
	<col width="40%">
	<col width="60%">
</colgroup>
<tr>
	<th colspan="2" class="thHead">{L_FORM}</th>
</tr>
{SEARCH_FORM}
<tr>
	<td class="catBottom" colspan="2" align="center"><span class="gensmall">&nbsp;
		<!-- BEGIN buttons --><input type="image" src="{buttons.I_BUTTON}" name="{buttons.BUTTON}" title="{buttons.L_BUTTON}" <!-- BEGIN accesskey -->accesskey="{buttons.S_BUTTON}"<!-- END accesskey --> />&nbsp;<!-- END buttons -->
	</span></td>
</tr>
</table>
<br style="font-size: 2px" />

<!-- INCLUDE pagination_box.tpl -->
<table cellpadding="4" cellspacing="1" border="0" width="100%" class="forumline">
<colgroup>
	<col width="1%">
	<col width="30%">
	<col width="19%">
	<col width="19%">
	<col width="30%">
	<col width="1%">
</colgroup>
<tr>
	<th class="thCornerL">&nbsp;#&nbsp;</th>
	<th class="thTop">{L_FILE_NAME}</th>
	<th class="thTop">{L_FILE_SIZE}</th>
	<th class="thTop">{L_DOWNLOAD_COUNT}</th>
	<th class="thTop">{L_LOCATION}</th>
	<th class="thCornerR"><input type="checkbox" name="select_all" onChange="javascript:check_uncheck(-1);" /></th>
</tr>
<!-- BEGIN row -->
<tr>
	<td class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->" align="center"><span class="gen">
		{row.ROW_NUMBER}
	</span></td>
	<td class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->"><span class="gen">
		<a href="{row.U_FILE_NAME}" title="{L_DOWNLOAD}" class="gen" target="attachdownload">{row.FILE_NAME}</a>&nbsp;({row.EXTENSION})<br />
	</span><span class="gensmall">{row.FILE_COMMENT}<br />
	</span></td>
	<td class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->" align="center"><span class="gen">
		{row.FILE_SIZE}&nbsp;{row.UNIT}
	</span></td>
	<td class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->" align="center"><span class="gen">
		{row.DOWNLOAD_COUNT}
	</span></td>
	<td nowrap="nowrap" class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->" align="center"><span class="gen">
		<!-- BEGIN privmsgs -->
		{L_PRIVMSGS}&nbsp;({row.L_PM_BOX})
		<!-- BEGINELSE privmsgs -->
		<a href="{row.U_VIEW_POST}" title="{L_VIEW_POST}" class="gen">{row.TOPIC_TITLE}</a>
		<!-- END privmsgs -->
	</span><br /><span class="gensmall">
		{row.FILE_TIME}
	</span></td>
	<td nowrap="nowrap" class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->" align="center"><span class="gen">
		<input type="checkbox" name="delete_box[]" value="{row.ROW_NUMBER}" onChange="javascript:check_uncheck(this.checked);" />
	</span></td>
</tr>
<!-- BEGINELSE row -->
<tr>
	<td colspan="6" height="45" align="center" class="row1"><span class="gen">{L_NO_MATCHES}</span></td>
</tr>
<!-- END row -->
<tr>
	<td class="catBottom" colspan="6" align="center"><!-- BEGIN row --><input type="hidden" name="attach_ids[]" value="{row.ATTACH_ID}"><input type="hidden" name="post_ids[]" value="{row.POST_ID}"><input type="hidden" name="privmsgs_ids[]" value="{row.PRIVMSGS_ID}"><!-- END row --><span class="genmed">&nbsp;<!-- BEGIN details -->
		<!-- BEGIN buttons --><input type="image" src="{details.buttons.I_BUTTON}" name="{details.buttons.BUTTON}" title="{details.buttons.L_BUTTON}" <!-- BEGIN accesskey -->accesskey="{details.buttons.S_BUTTON}"<!-- END accesskey --> />&nbsp;<!-- END buttons -->
	<!-- END details --></span></td>
</tr>
</table>
<!-- INCLUDE pagination_box.tpl -->
<br clear="all" />