<?php
	!defined('IN_MANAGE') && exit('Access Denied!');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="admin/template/images/tm_right.css" type="text/css" rel="stylesheet" />
<link href="statics/ui-jquery/jquery-ui.css" type="text/css" rel="stylesheet" />
<title>网站后台管理</title>
<script language="javascript" src="statics/ui-jquery/jquery-1.8.3.js"></script>
<script language="javascript" src="statics/ui-jquery/jquery-ui.js"></script>
<script language="javascript" src="admin/template/images/tm-core.js"></script>
</head>

<body>
	<div class="top-tips">
		<div class="tips-wrap">
			<div class="title">配置选项</div>
			设置会员模块的一些配置新闻。
		</div>
	</div>
	<form action="" method="post" name="myform" enctype="multipart/form-data">
	<input type="hidden" name="do_submit" value="1" />
	<input type="hidden" name="setting[folder]" value="<?php echo $mod;?>" />
	<table class="table-wrap" cellpadding="0" cellspacing="0">
		<tr>
			<td bgcolor="#EFF7FF" class="tb-name">频道标题<span>*</span></td>
			<td><input type="text" title="请输入您的频道标题" value="<?php echo $settings['title'];?>" name="setting[title]" class="input-txt" size="45" /></td>
			<td class="tb-tips">请输入您的频道标题</td>
		</tr>
		<tr>
			<td bgcolor="#EFF7FF"  class="tb-name">频道关键词<span>*</span></td>
			<td><input type="text" class="input-txt" name="setting[keywords]" value="<?php echo $settings['keywords'];?>" size="55" /></td>
			<td class="tb-tips">请输入您的频道关键词</td>
		</tr>
		<tr>
			<td bgcolor="#EFF7FF" class="tb-name">频道描述<span>*</span></td>
			<td><textarea class="input-txtarea" name="setting[description]" cols="55" rows="4"><?php echo $settings['description'];?></textarea></td>
			<td class="tb-tips">请输入您的频道描述</td>
		</tr>
		<tr>
			<td bgcolor="#EFF7FF" class="tb-name">绑定二/三级域名<span>*</span></td>
			<td><input type="text" value="<?php echo $settings['domain'];?>" name="setting[domain]" class="input-txt" size="42" /></td>
			<td class="tb-tips">以 http:// 开头，以 / 结尾 如果不开启请留空</td>
		</tr>
		<tr>
			<td bgcolor="#EFF7FF" class="tb-name">是否开启伪静态<span>*</span></td>
			<td>
			<label><input type="radio" name="setting[is_rewrite]"  value="0" <?php echo $settings['is_rewrite']==0?'checked="checked"':'';?> />不开启</label> &nbsp;&nbsp;
			<label><input type="radio" name="setting[is_rewrite]"  value="1" <?php echo $settings['is_rewrite']==1?'checked="checked"':'';?> />开启</label>
			</td>
			<td class="tb-tips">如开启此选项 ，请先 确保服务器支持伪静态。</td>
		</tr>
		
		<tr>
			<td bgcolor="#EFF7FF" class="tb-name">新闻评论类型<span>*</span></td>
			<td>
			<label><input type="radio" name="setting[comment_type]" onclick="$('#comment_type_1').show();$('#comment_type_2').hide();"  value="0" <?php echo $settings['comment_type']==0?'checked="checked"':'';?> />自带评论系统</label> &nbsp;&nbsp;
			<label><input type="radio" name="setting[comment_type]"  onclick="$('#comment_type_1').hide();$('#comment_type_2').show();"  value="1" <?php echo $settings['comment_type']==1?'checked="checked"':'';?> />多说（<a href="http://duoshuo.com/create-site/?from=www.niubicms.com" title="获取多说代码" target="_blank">社会化评论系统</a>）</label>
			</td>
			<td class="tb-tips">选择多说评论将不进行评论统计。</td>
		</tr>
		
		<tbody id="comment_type_2"<?php echo $settings['comment_type']==0?' style="display:none"':'';?>>
		<tr>
			<td bgcolor="#EFF7FF" class="tb-name">多说调用代码:<span>*</span></td>
			<td colspan="2"><textarea class="input-txtarea" name="setting[duoshuo_code]" cols="55" rows="4"><?php echo $settings['duoshuo_code'];?></textarea></td>
		</tr>
		</tbody>
		<tr>
			<td colspan="3" class="save-td"><input type="submit" class="save-btn" value="保存配置" /></td>
		</tr>
		
	</table>
	</form>
</body>
</html>
