<?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>
				<table name='base' style="padding:0px;margin:0px;width:700px;">
					<form enctype="multipart/form-data" method="post" action="main.php">
					<input type='hidden' name="actiontype" value="logo">
					<tr>
					<td width="35%"><label><p align="center">logo图片 png 大小250*70</p></label></td>
					<td width="75%"><p align="center"><input name="logo" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
					</tr>
					</form>
				</table>
				<form id="sfform" method="post" action="">
				<input type='hidden' name="actiontype" value="set1">
				<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>幻灯片文章ID</b></p>
						</td>
						<td>
							<p><input type="text" name="indextop" value="<?php echo $zbp->Config('sf_skin2')->indextop;?>" style="width:98%" ></p>
						</td>
						<td>
							<span align="center">最高支持5个，使用英文半角逗号分隔</span>
						</td>
					</tr>
					<tr>
						<td>
							<p align="center"><b>随机颜色</b></p>
						</td>
						<td>
							<p><input type="text" name="rancolors" value="<?php echo $zbp->Config('sf_skin2')->rancolors;?>" class="checkbox" ></p>
						</td>
						<td>
							<span align="center">主题随机颜色</span>
						</td>
					</tr>
					<tr>
						<td>
							<p align="center"><b>博主email</b></p>
						</td>
						<td>
							<p><input type="text" name="email" value="<?php echo $zbp->Config('sf_skin2')->email;?>" style="width:98%" ></p>
						</td>
						<td>
							<span align="center">用于评论的admin标签</span>
						</td>
					</tr>
					<tr>
						<td>
							<p align="center"><b>关键词</b></p>
						</td>
						<td>
							<p><input type="text" name="keyword" value="<?php echo $zbp->Config('sf_skin2')->keyword;?>" style="width:98%" ></p>
						</td>
						<td>
							<span align="center">文章页会使用tag作为关键词，其他页面使用这里的内容</span>
						</td>
					</tr>
					<tr>
						<td>
							<p align="center"><b>描述</b></p>
						</td>
						<td>
							<p><input type="text" name="description" value="<?php echo $zbp->Config('sf_skin2')->description;?>" style="width:98%" ></p>
						</td>
						<td>
							<span align="center">文章页会使用文章前135字符作为描述，其他页面使用这里的内容</span>
						</td>
					</tr>
					<tr>
						<td>
							<p align="center"><b>备案号</b></p>
						</td>
						<td>
							<p><input type="text" name="icp" value="<?php echo $zbp->Config('sf_skin2')->icp;?>" style="width:98%" ></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='1']").addClass("current").addClass("default-tab");
});
</script>

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