<!--#
##
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: report.tpl.html 2 2011-05-27 02:59:23Z along $
#
#	Copyright (C) 2008-2011 PHPDisk Team. All Rights Reserved.
#
##
#-->
<!--#
if($action == 'user' || $action =='system' || $action =='file_unlocked'){
#-->
<div id="container">
<h1>{$title}<!--#sitemap_tag($title);#--></h1>
<div>
<div class="tips_box"><img class="img_light" src="images/light.gif" align="absmiddle" /> <b>{$L['tips']}: </b>
<span class="txtgray">{$tips}</span>
</div>
<table align="center" width="100%" cellpadding="4" cellspacing="0" border="0" class="td_line">
<!--#
if(count($files_array)){
#-->
<tr>
	<td width="40%" class="bold">{$L['file_name']}</td>
	<td align="center" width="50" class="bold">{$L['status']}</td>
	<td align="center" width="100" class="bold">{$L['owner']}</td>
	<td align="center" width="80" class="bold">{$L['reporter']}</td>
	<td align="center" class="bold">{$L['file_size']}</td>
	<td align="center" width="100" class="bold">{$L['file_upload_time']}</td>
</tr>
<form name="file_frm" action="{#urr("admincp","item=$item")#}" method="post" onsubmit="return dosubmit(this);">
<input type="hidden" name="action" value="{$action}"/>
<input type="hidden" name="formhash" value="{$formhash}" />
<!--#
	foreach($files_array as $k => $v){
		$color = ($k%2 ==0) ? 'color1' :'color4';
#-->
<tr class="{$color}">
	<td><input type="checkbox" name="file_ids[]" id="file_ids" value="{$v['file_id']}" />&nbsp;<a href="{$v['a_downfile']}" title="{$L['download']}">{#file_icon($v['file_extension'])#}</a>&nbsp;
	<!--#if($v['is_image']){#-->
	<a href="{$v['a_viewfile']}" id="p_{$k}" target="_blank" title="{$v['file_name_all']} {$v['file_size']}">{$v['file_name']}</a><br />
<div id="c_{$k}" class="menu_thumb"><img src="{$v['file_thumb']}" /></div>
<script type="text/javascript">on_menu('p_{$k}','c_{$k}','x','');</script>
	<!--#}else{#-->
	<a href="{$v['a_viewfile']}" target="_blank" title="{$v['file_name_all']} {$v['file_size']}">{$v['file_name']}</a>
	<!--#}#-->
	<span class="txtgray">{$v['reason']}</span>
	</td>
	<td align="center">{$v['status_txt']}</td>
	<td align="center">{$v['owner']}</td>
	<td align="center">{$v['reporter']}</td>
	<td align="center">{$v['file_size']}</td>
	<td align="center" class="td_line txtgray">{$v['file_time']}</td>
</tr>
<!--#		
	}
	unset($files_array);
#-->
<tr>
	<td colspan="6"><a href="javascript:void(0);" onclick="reverse_ids(document.file_frm.file_ids);">{$L['select_all']}</a>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="cancel_ids(document.file_frm.file_ids);">{$L['select_cancel']}</a>&nbsp;&nbsp;
	<input type="radio" name="task" value="change_status" checked="checked" />{$op_action} 
	<input type="radio" name="task" value="delete" /><span class="txtred">{$L['delete']}</span>
	<input type="submit" class="btn" value="{$L['btn_submit']}"/></td>
</tr>
</form>
<!--#		
}else{
#-->
<tr>
	<td colspan="6">{$L['file_not_found']}</td>
</tr>
<!--#
}
#-->
<!--#if($page_nav){#-->
<tr>
	<td colspan="6">{$page_nav}</td>
</tr>
<!--#}#-->
</table>
</div>
</div>
<!--#
}else{
#-->
<div id="container">
<h1>{$L['report_title']}<!--#sitemap_tag($L['report_title']);#--></h1>
<div>
<div class="tips_box"><img class="img_light" src="images/light.gif" align="absmiddle" /> <b>{$L['tips']}: </b>
<span class="txtgray">{$L['report_list_tips']}</span>
</div>
<form action="{#urr("admincp","item=$item")#}" method="post">
<input type="hidden" name="action" value="{$action}" />
<input type="hidden" name="task" value="update" />
<input type="hidden" name="formhash" value="{$formhash}" />
<table align="center" width="100%" cellpadding="4" cellspacing="0" border="0" class="td_line">
<tr>
	<td width="40%"><span class="bold">{$L['open_report']}</span>: <br /><span class="txtgray">{$L['open_report_tips']}</span></td>
	<td><input type="radio" name="setting[open_report]" value="1" {#ifchecked(1,$setting['open_report'])#} /> {$L['yes']}&nbsp;&nbsp;<input type="radio" name="setting[open_report]" value="0" {#ifchecked(0,$setting['open_report'])#}/> {$L['no']}</td>
</tr>
<tr>
	<td><span class="bold">{$L['report_word']}</span>: <br /><span class="txtgray">{$L['report_word_tips']}</span></td>
	<td><textarea name="setting[report_word]" id="report_word" style="width:300px;height:50px">{$settings['report_word']}</textarea><br />
	<a href="javascript:void(0);" onclick="resize_textarea('report_word','plus');">[+]</a> <a href="javascript:void(0);" onclick="resize_textarea('report_word','sub');">[-]</a></td>
</tr>
<tr>
	<td>&nbsp;</td>
	<td><input type="submit" class="btn" value="{$L['btn_submit']}"/>&nbsp;&nbsp;<input type="button" class="btn" value="{$L['btn_back']}" onclick="javascript:history.back();" /></td>
</tr>
</table>
</form>
</div>
</div>
<!--#
}
#-->
<script language="javascript">
function dosubmit(o){
	if(checkbox_ids("file_ids[]") != true){
		alert("{$L['please_select_operation_files']}");
		return false;
	}
}
getId('n_{$action}').className = 'sel_a';
</script>
