<?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('animatebg')) {$zbp->ShowError(48);die();}

$blogtitle='仿知乎动态背景';
require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';
?>
<div id="divMain">
  <div class="divHeader"><?php echo $blogtitle;?></div>
  <div class="SubMenu">
 	<a href="main.php" ><span class="m-left">参数设置</span></a>
    <a href="../../plugin/AppCentre/main.php?auth=115"><span class="m-left">作者作品</span></a>
    <a href="http://www.yiwuku.com/" target="_blank"><span class="m-right">作者网站</span></a>
  </div>
  <div id="divMain2">
    <?php
	if(isset($_POST['anbgcolor'])){
		$zbp->Config('animatebg')->anbgcolor = $_POST['anbgcolor'];
        $zbp->Config('animatebg')->anbgspeed = $_POST['anbgspeed'];
		$zbp->Config('animatebg')->anbgpnum = $_POST['anbgpnum'];
		$zbp->SaveConfig('animatebg');
		$zbp->SetHint('good');
		Redirect('./main.php');
	}
	?>
    <table class="tb-set" width="100%">
        <form action="main.php" method="post">
        <tr height="50">
            <td  colspan="2" width="150"><b style="margin-left:5px;font-size:15px;">一款基于HTML5画布标签Canvas自动构建网页动态动画背景的插件</b></td>
        </tr>
        <tr height="50">
            <td align="right" width="120"><b>背景颜色：</b></td>
            <td><input type="text" name="anbgcolor" value="<?php echo $zbp->Config('animatebg')->anbgcolor; ?>" size="6" /> <span style="color:#888;margin-left:15px;font-size:12px;">获取颜色值<a href="http://i.ewceo.com/yanse.html" target="_blank" style="color:#39C;">请点这里</a>，色值必须带有#号，透明则填写none（无需#号）</span></td>
        </tr>
        <tr height="50">
            <td align="right"><b>移动速度：</b></td>
            <td><input type="text" name="anbgspeed" value="<?php echo $zbp->Config('animatebg')->anbgspeed; ?>" size="6" /> <span style="color:#888;margin-left:15px;font-size:12px;">数值越大背景动画移动速度越慢</span></td>
        </tr>
        <tr height="50">
            <td align="right"><b>节点数量：</b></td>
            <td><input type="text" name="anbgpnum" value="<?php echo $zbp->Config('animatebg')->anbgpnum; ?>" size="6" /> <span style="color:#888;margin-left:15px;font-size:12px;">可按网页实际内容风格设置合理的节点数量</span></td>
        </tr>
        <tr>
            <td height="80">&nbsp;</td>
            <td valign="top"><input type="submit" name="submit" value="保存设置" /></td>
        </tr>
        <tr height="50">
            <td  colspan="2" width="150"><div style="color:#888;line-height:1.6;padding-left:5px;">温馨提示：如果喜欢本人作品，还可以<a href="../../plugin/AppCentre/main.php?auth=115">点击这里</a>了解更多；</div></td>
        </tr>
    </table>
  </div>
</div>
<script type="text/javascript">AddHeaderIcon("<?php echo $bloghost . 'zb_users/plugin/animatebg/logo.png';?>");</script>
<?php
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>