<?php
require '../../../../zb_system/function/c_system_base.php';
require '../../../../zb_system/function/c_system_admin.php';
$zbp->Load();
$action='root';
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}
if (!$zbp->CheckPlugin('sf_skin2')) {$zbp->ShowError(48);die();}

$blogtitle='主题配置';
require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';
SF_skin2::saveconfig();
?>
<div id="divMain">
  <div class="divHeader"><?php echo $blogtitle;?></div>
  <div class="SubMenu"></div>
  <div id="divMain2">
<!--代码-->
	<div class="content-box">
		<!-- Start Content Box -->
		<div class="content-box-header">
			<ul class="content-box-tabs">
				<?php SF_skin2::showAdminTitle(); ?>
			</ul>
		</div>
		<!-- End .content-box-header -->
		<div class="content-box-content">
			<div class="tab-content default-tab" style="border:none;padding:0px;margin:0;" >
				<div style="clear:both;" ></div>
				<form id="sfform" method="post" action="">
				<input type='hidden' name="actiontype" value="set2">
				<table name='base' style="padding:0px;margin:0px;width:100%;">
					<tr>
						<th width="15%">
							<p><b>项目</b></p>
						</th>
						<th width="30%">
							<p><b>配置</b></p>
						</th>
						<th width="55%">
							<p><b>说明</b></p>
						</th>
					</tr>
					<tr>
						<td>
							<p align="center"><b>订阅reed</b></p>
						</td>
						<td>
							<p><input type="text" name="reed" value="<?php echo $zbp->Config('sf_skin2')->reed;?>" style="width:98%" ></p>
						</td>
						<td>
							<span align="center">订阅reed链接，包含http://</span>
						</td>
					</tr>
					<tr>
						<td>
							<p align="center"><b>新浪微博</b></p>
						</td>
						<td>
							<p><input type="text" name="weibo" value="<?php echo $zbp->Config('sf_skin2')->weibo;?>" style="width:98%" ></p>
						</td>
						<td>
							<span align="center">新浪微博链接，包含http://</span>
						</td>
					</tr>
					<tr>
						<td>
							<p align="center"><b>腾讯微博</b></p>
						</td>
						<td>
							<p><input type="text" name="qqweibo" value="<?php echo $zbp->Config('sf_skin2')->qqweibo;?>" style="width:98%" ></p>
						</td>
						<td>
							<span align="center">腾讯微博链接，包含http://</span>
						</td>
					</tr>
					<tr>
						<td>
							<p align="center"><b>QQ</b></p>
						</td>
						<td>
							<p><input type="text" name="qq" value="<?php echo $zbp->Config('sf_skin2')->qq;?>" style="width:98%" ></p>
						</td>
						<td>
							<span align="center">QQ号</span>
						</td>
					</tr>
					<tr>
						<td>
							<p align="center"><b>QQ邮箱订阅</b></p>
						</td>
						<td>
							<p><input type="text" name="qqmail" value="<?php echo $zbp->Config('sf_skin2')->qqmail;?>" style="width:98%" ></p>
						</td>
						<td>
							<span align="center">QQ邮箱订阅ID</span>
						</td>
					</tr>
					<tr>
						<td>
							<p align="center"><b>顶部文字</b></p>
						</td>
						<td>
							<p><textarea name="showtitle1" style="width:98%" ><?php echo $zbp->Config('sf_skin2')->showtitle1;?></textarea></p>
						</td>
						<td>
							<span align="center">顶部欢迎信息，当然你也可以写其他的-__-</span>
						</td>
					</tr>
				</table>
				<input name="set" type="button" class="button" value="提交"/>&nbsp;&nbsp;
				</form>
			</div>
	</div>
  </div>
</div>

<script type="text/javascript">
$(document).ready(function(){
	$("table[name='base']").each(function(){
		$(this).find("tr:even").addClass("color2");
		$(this).find("tr:odd").addClass("color3");
	});
	$("input[name='set']").click(function(){
		$("#sfform").submit();
	});
	$("a[index='2']").addClass("current").addClass("default-tab");
});
</script>

<?php
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>