<!--#
##
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: cache.tpl.html 2 2011-05-27 02:59:23Z along $
#
#	Copyright (C) 2008-2011 PHPDisk Team. All Rights Reserved.
#
##
#-->
<!--#if($action =='update'){#-->
<div id="container">
<h1>{$L['update_cache_title']}<!--#sitemap_tag($L['update_cache_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['update_cache_tips']}</span>
</div>
<div>
<br />
<br />
<br />
<form name="frm" action="{#urr("admincp","item=cache")#}" method="post">
<input type="hidden" name="action" value="{$action}"/>
<input type="hidden" name="task" value="{$action}"/>
<input type="hidden" name="formhash" value="{$formhash}" />
<ul>
	<li><input type="checkbox" name="datas[cache]" value="cache" id="_c" checked="checked" /><label for="_c">{$L['cache_data']}</label>&nbsp;&nbsp;
	<input type="checkbox" name="datas[tpl]" value="tpl" id="_t" /><label for="_t">{$L['tpl_data']}</label>&nbsp;&nbsp;
	<input type="submit" class="btn" value="{$L['btn_submit']}"/></li>
	<li>&nbsp;</li>
</ul>
</form>
<br />
<br />

</div>
</div>
</div>
<!--#}elseif($action =='search_index'){#-->
<div id="container">
<h1>{$L['search_index']}<!--#sitemap_tag($L['search_index']);#--></h1>
<div>
<div class="tips_box"><img class="img_light" src="images/light.gif" align="absmiddle" /> <b>{$L['tips']}: </b>
<span class="txtgray">{$L['search_index_tips']}</span>
</div>
<div>
<form name="frm" action="{#urr("admincp","item=$item")#}" method="post" onsubmit="return dosubmit(this);">
<input type="hidden" name="action" value="{$action}"/>
<input type="hidden" name="task" value="{$action}"/>
<input type="hidden" name="formhash" value="{$formhash}" />
<table align="center" width="100%" cellpadding="4" cellspacing="0" border="0" class="td_line">
<!--#
if(count($C['search_list'])){
#-->
<tr class="bold">
	<td width="50%">{$L['search_word']}</td>
	<td>{$L['search_time']}</td>
	<td>{$L['search_count']}</td>
</tr>
<!--#
	foreach($C['search_list'] as $v){
#-->
<tr>
	<td><input type="checkbox" name="searchids[]" id="searchids" value="{$v['searchid']}" />&nbsp;<a href="{#urr("search","action=search&word=".rawurlencode($v[word])."&scope=$v[scope]")#}" target="_blank">{$v[word]}</a></td>
	<td>{#date("Y-m-d H:i:s",$v['search_time'])#}</td>
	<td>{$v['total_count']}</td>
</tr>	
<!--#
}
#-->
<tr>
	<td colspan="4">{$page_nav}&nbsp;</td>
</tr>	
<tr>
	<td colspan="4"><input type="submit" class="btn" value="{$L['btn_delete']}"/>&nbsp;<a href="{#urr("admincp","item=$item&action=truncate")#}" onclick="return confirm('{$L['confirm_truncate']}');">{$L['btn_truncate']}</a></td>
</tr>
<!--#
}else{
#-->
<tr>
	<td>{$L['search_index_not_found']}</td>
</tr>
<!--#
}
#-->
</table>
</form>
<script language="javascript">
function dosubmit(o){
	if(checkbox_ids("searchids[]") != true){
		alert("{$L['please_select_operation_index']}");
		return false;
	}
}
</script>
</div>
</div>
</div>
<!--#}#-->
