<!--#
##
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: seo.tpl.html 2 2011-05-27 02:59:23Z along $
#
#	Copyright (C) 2008-2011 PHPDisk Team. All Rights Reserved.
#
##
#-->
<div id="container">
<h1>{$L['seo_manage']}<!--#sitemap_tag($L['seo_manage']);#--></h1>
<div>
<div class="tips_box"><img class="img_light" src="images/light.gif" align="absmiddle" /> <b>{$L['tips']}: </b>
<span class="txtgray">{$L['seo_manage_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_setting" />
<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_seo']}</span>: <br /><span class="txtgray">{$L['open_seo_tips']}</span></td>
	<td><input type="radio" name="setting[open_seo]" value="1" {#ifchecked(1,$setting['open_seo'])#} /> {$L['yes']}&nbsp;&nbsp;<input type="radio" name="setting[open_seo]" value="0" {#ifchecked(0,$setting['open_seo'])#}/> {$L['no']}</td>
</tr>
<tr>
	<td><span class="bold">{$L['meta_keywords']}</span>: <br /><span class="txtgray">{$L['meta_keywords_tips']}</span></td>
	<td><textarea id="meta_keywords" name="setting[meta_keywords]" style="width:300px;height:30px">{$setting['meta_keywords']}</textarea><br />
	<a href="javascript:void(0);" onclick="resize_textarea('meta_keywords','plus');">[+]</a> <a href="javascript:void(0);" onclick="resize_textarea('meta_keywords','sub');">[-]</a>
	</td>
</tr>
<tr>
	<td><span class="bold">{$L['meta_description']}</span>: <br /><span class="txtgray">{$L['meta_description_tips']}</span></td>
	<td><textarea id="meta_description" name="setting[meta_description]" style="width:300px;height:30px">{$setting['meta_description']}</textarea><br />
	<a href="javascript:void(0);" onclick="resize_textarea('meta_description','plus');">[+]</a> <a href="javascript:void(0);" onclick="resize_textarea('meta_description','sub');">[-]</a>
	</td>
</tr>
<tr>
	<td colspan="2">&nbsp;</td>
</tr>
<tr>
	<td width="40%"><span class="bold">{$L['open_rewrite']}</span>: <br /><span class="txtgray">{$L['open_rewrite_tips']}</span></td>
	<td><input type="radio" name="setting[open_rewrite]" value="1" id="or1" onclick="op();" {#ifchecked(1,$setting['open_rewrite'])#} /> {$L['yes']}&nbsp;&nbsp;<input type="radio" name="setting[open_rewrite]" value="0" id="or2" onclick="op();" {#ifchecked(0,$setting['open_rewrite'])#}/> {$L['no']}</td>
</tr>
<tbody id="or">
<tr>
	<td class="f14" colspan="2">{$L['apache_host']}：</td>
</tr>
<tr>
	<td colspan="2">
	{$L['apache_step']}
	{$L['apache_host_rewrite']}:<br /><textarea id="apache_rewrite_rules" style="height:80px; width:700px" readonly="readonly">{$apache_rewrite_rules}</textarea>
	<a href="###" onclick="getId('apache_rewrite_rules').select();copy_text('apache_rewrite_rules');">[{$L['copy']}]</a></p>
	{$L['last_step']}
	</td>
</tr>
<tr>
	<td colspan="2">&nbsp;</td>
</tr>
<tr>
	<td class="f14" colspan="2">{$L['iis_host']}：</td>
</tr>
<tr>
	<td colspan="2">
	{$L['iis_step']}
	{$L['iis_host_rewrite']}:<br /><textarea id="iis_rewrite_rules" style="height:80px; width:700px" readonly="readonly">{$iis_rewrite_rules}</textarea>
	<a href="###" onclick="getId('iis_rewrite_rules').select();copy_text('iis_rewrite_rules');">[{$L['copy']}]</a></p>
	{$L['last_step']}
	</td>
</tr>
<tr>
	<td colspan="2">&nbsp;</td>
</tr>
<tr>
	<td class="f14" colspan="2">{$L['nginx_host']}：</td>
</tr>
<tr>
	<td colspan="2">
	{$L['nginx_step']}
	{$L['nginx_host_rewrite']}:<br /><textarea id="nginx_rewrite_rules" style="height:80px; width:700px" readonly="readonly">{$nginx_rewrite_rules}</textarea>
	<a href="###" onclick="getId('nginx_rewrite_rules').select();copy_text('nginx_rewrite_rules');">[{$L['copy']}]</a></p>
	{$L['last_step']}
	</td>
</tr>
</tbody>
<tr>
	<td align="center" colspan="2"><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 type="text/javascript">
function op(){
	return getId('or').style.display = getId('or1').checked ==true ? '' : 'none';
}
op();
function copy_text(id){
	var field = getId(id);
	if (field){
		if (document.all){
			field.createTextRange().execCommand('copy');
			alert("{$L['copy_success']}");
		}else{
			alert("{$L['alert_ie_copytext']}");
		}	
	}
}

</script>