{:tpl head}
<!--{:if $a == 'site'}-->
<script type="text/javascript">
function uptplcache(style){
	$.get('?c=config&a=tpl_cache&style='+style+'&id='+Math.random()*5, function(data){
		if(data == 1) alert('更新成功！');
		else alert('更新失败！');
	});
}
$(function(){
	$('#contrule_help').click(function(){
		$(this).jxbox('{y}、{m}、{d} 年月日<br />{timestamp} int类型的unix时间戳<br />{id} 内容ID<br />{catdir} 栏目目录<br />{catdir1} 1级栏目目录<br />{catdir2} 2级栏目目录<br />{catdir3} 3级栏目目录<br />{module} 模块名称', { title: '提示' });
	});
})
</script>
<div class="tabshead">
 <span>网站配置</span>
 <ul class="tabs" id="tabs_list">
  <li class="active">基本配置</li>
  <li>模板配置</li>
  <li>高级配置</li>
 </ul>
</div>
<form action="?c=config&a={:$a}" method="post" name="siteform">
<div>
<table id="tabs_list_0" cellpadding="0" cellspacing="1" class="table_form">
 <tr>
  <td align="right" width="22%">网站名称：</td>
  <td><input type="text" size="50" value="{:$data['name']}" name="info[name]"></td>
 </tr>
 <tr>
  <td align="right">网站安全码：</td>
  <td><input type="text" size="12" value="" name="info[sid]"> <span class="fred">空白则保留原值，经常更新有利于系统安全</span></td>
 </tr>
 <tr>
  <td align="right">网站联系人：</td>
  <td><input type="text" size="20" value="{:$data['contact']}" name="info[contact]"></td>
 </tr>
 <tr>
  <td align="right">网站地址：</td>
  <td><input type="text" size="50" value="{:$data['address']}" name="info[address]"></td>
 </tr>
 <tr>
  <td align="right">联系电话：</td>
  <td><input type="text" size="20" value="{:$data['phone']}" name="info[phone]"></td>
 </tr>
 <tr>
  <td align="right">移动电话：</td>
  <td><input type="text" size="20" value="{:$data['mobile']}" name="info[mobile]"></td>
 </tr>
 <tr>
  <td align="right">站长QQ：</td>
  <td><input type="text" size="20" value="{:$data['qq']}" name="info[qq]"></td>
 </tr>
 <tr>
  <td align="right">站长MSN：</td>
  <td><input type="text" size="20" value="{:$data['msn']}" name="info[msn]"></td>
 </tr>
 <tr>
  <td align="right">站长Email：</td>
  <td><input type="text" size="20" value="{:$data['ceomail']}" name="info[ceomail]"></td>
 </tr>
 <tr>
  <td align="right">网站ICP：</td>
  <td><input type="text" size="20" value="{:$data['icp']}" name="info[icp]"></td>
 </tr>
 <tr>
  <td align="right">流量统计：</td>
  <td><textarea name="info[statcode]" cols="48" rows="3">{:$data['statcode']}</textarea></td>
 </tr>
 <tr>
  <td align="right">字符过滤设置：</td>
  <td><input type="text" size="50" value="{:$data['fbword']}" name="info[fbword]"></td>
 </tr>
 <tr>
  <td align="right">Seotitle(网站标题)：</td>
  <td><input type="text" size="50" value="{:$data['seotitle']}" name="info[seotitle]"></td>
 </tr>
 <tr>
  <td align="right">Meta Keywords(网页关键词)：</td>
  <td><input type="text" size="60" value="{:$data['keywords']}" name="info[keywords]"></td>
 </tr>
 <tr>
  <td align="right">Meta Description(网页描述)：</td>
  <td><input type="text" size="80" value="{:$data['description']}" name="info[description]"></td>
 </tr>
 <tr>
  <td align="right">版权信息：</td>
  <td><input type="text" size="80" value="{:htmlspecialchars($data['copyright'])}" name="info[copyright]"></td>
 </tr>
</table>
<table id="tabs_list_1" cellpadding="0" cellspacing="1" class="table_form" style="display:none;">
 <tr>
  <td align="right" width="22%">默认风格：</td>
  <td style="line-height:28px;">
  {:loop $style $tmp}
  <input name="info[style]" type="radio" value="{:$tmp}"{:Tag::checked($data['style'],$tmp)}>{:$tmp}
  <button name="btn{:$tmp}" type="button" onclick="uptplcache('{:$tmp}')">更新缓存</button>
  <br />
  {:/loop}
  </td>
 </tr>
 <tr>
  <td align="right">模板文件扩展名：</td>
  <td><input type="text" size="5" value="{:$data['tplext']}" name="info[tplext]"> <span class="fred">*更改扩展名有利于保护模板文件</span></td>
 </tr>
</table>
<table id="tabs_list_2" cellpadding="0" cellspacing="1" class="table_form" style="display:none;">
 <tr>
  <td align="right">启用评论：</td>
  <td>
   <select name="info[iscomment]">
    {:Tag::option('0_否|1_是', $data['iscomment'])}
   </select>
  </td>
 </tr>
 <tr>
  <td align="right">使用完整链接地址：</td>
  <td>
   <select name="info[fullurl]">
    {:Tag::option('0_否|1_是', $data['fullurl'])}
   </select>
  </td>
 </tr>
 <tr>
  <td align="right">网址模型：</td>
  <td>
   <select name="info[urlmodel]">
    {:Tag::option('0_动态|1_静态|2_伪静态', $data['urlmodel'])}
   </select>
  </td>
 </tr>
 <tr>
  <td align="right">HTML页面存放根目录：</td>
  <td><input type="text" size="15" value="{:$data['htmldir']}" name="info[htmldir]">&nbsp;<span class="fblue">HTML存放的根目录，可以留空白</span></td>
 </tr>
 <tr>
  <td align="right">内容HTML命名规则：</td>
  <td><input type="text" size="26" name="info[contrule]" value="{:$data['contrule']}"> <span class="fblue">设置内容存放目录及名称规则，例如： {catdir1}/{module}-{id}<a href="javascript:void(0)" id="contrule_help" class="fred">支持变量</a></span></td>
 </tr>
 <tr>
  <td align="right">自定义伪静态：</td>
  <td>
   <input name="info[user_defined_url]" type="radio" value="1"{:Tag::checked($data['user_defined_url'],1)}>是
   <input name="info[user_defined_url]" type="radio" value="0"{:Tag::checked($data['user_defined_url'],0)}>否
   <span class="fblue">设置成是,内容将使用上面的规则生成</span>
  </td>
 </tr>
 <tr>
  <td align="right">HTML页面扩展名：</td>
  <td><input type="text" size="5" value="{:$data['htmlext']}" name="info[htmlext]"></td>
 </tr>
 <tr>
  <td align="right">列表每批显示数量：</td>
  <td><input type="text" size="5" value="{:$data['listnum']}" name="info[listnum]"></td> 
 </tr>
 <tr>
  <td align="right">搜索列表每批显示数量：</td>
  <td><input type="text" size="5" value="{:$data['searchnum']}" name="info[searchnum]"></td> 
 </tr>
 <tr>
  <td align="right">提取摘要字符数：</td>
  <td><input type="text" size="5" value="{:$data['cutedeslen']}" name="info[cutedeslen]"> <span class="fblue">内容前多少个字符</span></td> 
 </tr>
 <tr>
  <td align="right">内容页seotitle：</td>
  <td><input type="text" size="26" value="{:$data['contentseotitle']}" name="info[contentseotitle]"> <span class="fblue">可以为 {catname} {sitename} 的组合</span></td> 
 </tr>
</table>
</div>
<div style="text-align:center"><button name="submit" type="submit">提交</button></div>
</form>
{:/if}
{:tpl foot}