<?php /* EL PSY CONGROO */
require '../../../../zb_system/function/c_system_base.php';
require $blogpath . 'zb_users/theme/qiyeseo/admin/Admin_header.php';
?>

<div class="SubMenu">
    <?php qiyeseo_SubMenu(7);?>
     <a target="_blank" href="https://ixxz.cn/"><span class="m-right">作者官网</span></a><a href="<?php echo $bloghost?>zb_users/plugin/AppCentre/main.php?auth=098236fa-3e93-4127-8a50-6c39ffb8d6a4"><span class="m-right">作者作品</span></a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=3455768911&site=qq&menu=yes"><span class="m-right">联系作者</span></a>
</div>
<link href="../source/colpick.css" rel="stylesheet" type="text/css"/>
<script src="../source/colpick.js" type="text/javascript"></script>
<div id="divMain2">
    <?php
    if ( count( $_POST ) > 0 ) {
        if ( function_exists( 'CheckIsRefererValid' ) )CheckIsRefererValid();
        if ( GetVars( 'coloron' ) ) { //开关  
            $zbp->Config( 'qiyeseo' )->coloron = $_POST[ 'coloron' ];
        } else {
            $zbp->Config( 'qiyeseo' )->coloron = '';
        }
        $zbp->Config( 'qiyeseo' )->color1 = $_POST[ 'color1' ];
        $zbp->Config( 'qiyeseo' )->color2 = $_POST[ 'color2' ];
        $zbp->Config( 'qiyeseo' )->color3 = $_POST[ 'color3' ];
        $zbp->Config( 'qiyeseo' )->color4 = $_POST[ 'color4' ];
        $zbp->Config( 'qiyeseo' )->color5 = $_POST[ 'color5' ];
        $zbp->Config( 'qiyeseo' )->color6 = $_POST[ 'color6' ];
        $zbp->Config( 'qiyeseo' )->color62 = $_POST[ 'color62' ];
      
        $zbp->Config( 'qiyeseo' )->color9 = $_POST[ 'color9' ];
        $zbp->Config( 'qiyeseo' )->bgon = $_POST[ 'bgon' ];
        $zbp->Config( 'qiyeseo' )->bgimg = $_POST[ 'bgimg' ];
        $qiyeseo_css = @file_get_contents( $zbp->path . 'zb_users/theme/qiyeseo/style/style.min.css' );
        $qiyeseo_css = str_replace( "#eae9e6", $zbp->Config( 'qiyeseo' )->color1, $qiyeseo_css );
        $qiyeseo_css = str_replace( "#fcfcfc", $zbp->Config( 'qiyeseo' )->color2, $qiyeseo_css );
        $qiyeseo_css = str_replace( "#333333", $zbp->Config( 'qiyeseo' )->color3, $qiyeseo_css );
        $qiyeseo_css = str_replace( "#b10202", $zbp->Config( 'qiyeseo' )->color4, $qiyeseo_css );
        $qiyeseo_css = str_replace( "#ca0202", $zbp->Config( 'qiyeseo' )->color5, $qiyeseo_css );
        $qiyeseo_css = str_replace( "#444444", $zbp->Config( 'qiyeseo' )->color6, $qiyeseo_css );
        $qiyeseo_css = str_replace( "#970202", $zbp->Config( 'qiyeseo' )->color62, $qiyeseo_css );
      
        $qiyeseo_css = str_replace( "#dddddd", $zbp->Config( 'qiyeseo' )->color9, $qiyeseo_css );
        @file_put_contents( $zbp->path . 'zb_users/theme/qiyeseo/style/style.ok.css', $qiyeseo_css );
        $zbp->SaveConfig( 'qiyeseo' );
        $zbp->ShowHint( 'good' );
    }
    ?>
    <script>
        $( function () {
            //Color2样式
            $( ".colorint input" ).each( function () {
                $( this ).css( 'border-color', $( this ).val() );
            } );
            $( '.colorint input' ).colpick( {
                layout: 'hex',
                submit: 0,
                onChange: function ( hsb, hex, rgb, el, bySetColor ) {
                    $( el ).css( 'border-color', '#' + hex );
                    if ( !bySetColor ) $( el ).val( '#' + hex );
                }
            } ).keyup( function () {
                $( this ).colpickSetColor( this.value );
            } );
        } );
    </script>
    <form id="form3" name="form3" method="post">
        <table width="100%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
  <tr>
        <td width="30%"><p><b>网站背景图片</b> </p></td>
        <td>
         <p>
        <input type="text" id="bgon" name="bgon" class="checkbox" value="<?php echo $zbp->Config('qiyeseo')->bgon;?>"/> &nbsp;&nbsp;&nbsp;开启后设置背景图片才会生效。
         </p>
          <p>
            </span>背景图片固定，不随内容滚动而滚动，请上传上传尺寸至少大于或等于1980×1080px的背景图片。可以在这个免费商业素材网站（pxhere.com）寻找背景图片</p>
          <p><img src="<?php echo $zbp->Config('qiyeseo')->bgimg;?>" alt="网页背景图片" style="height:128px;"/> </p>
          <p class="uploadimg">
            <input name="bgimg" id="bgimg" type="text" class="uplod_img" style="width: 50%;" value="<?php echo $zbp->Config('qiyeseo')->bgimg;?>"/>
            <strong>浏览文件</strong> </p></td>
      </tr>
            <tr>
                <td width="30%"><b>主题配色开关</b>
                </td>
                <td>
                    <p>
                        <input type="text" id="coloron" name="coloron" class="checkbox" value="<?php echo $zbp->Config('qiyeseo')->coloron;?>"/> &nbsp;&nbsp;&nbsp;开启后使用自定义的主题配色
                    </p>
                </td>
            </tr>
            <tr>
                <td><b>网站整体</b>
                </td>
                <td>
                    <div class="colorint lr30"><span>1、网站大背景颜色</span>
                        <input type="text" name="color1" value="<?php echo $zbp->Config('qiyeseo')->color1;?>">
                        <div id="picker"></div>
                    </div> <div class="colorint lr30"><span>2、网站版块背景颜色</span>
                        <input type="text" name="color2" value="<?php echo $zbp->Config('qiyeseo')->color2;?>">
                        <div id="picker"></div>
                    </div><div class="colorint"><span>3、网站字体颜色</span>
                        <input type="text" name="color3" value="<?php echo $zbp->Config('qiyeseo')->color3;?>">
                        <div id="picker"></div>
                    </div>
                </td>
            </tr>
             <tr>
                <td><b>网站导航栏和按钮</b>
                </td>
                <td>
                    <div class="colorint lr30"><span>4、导航栏背景和按钮颜色</span>
                        <input type="text" name="color4" value="<?php echo $zbp->Config('qiyeseo')->color4;?>">
                        <div id="picker"></div>
                    </div> <div class="colorint"><span>5、触发导航栏按钮颜色</span>
                        <input type="text" name="color5" value="<?php echo $zbp->Config('qiyeseo')->color5;?>">
                        <div id="picker"></div>
                    </div>
                </td>
            </tr>
             <tr>
                <td><b>网站列表和关键词</b>
                </td>
                <td>
                     <div class="colorint lr30"><span>6、文章列表标题和关键词颜色</span>
                        <input type="text" name="color6" value="<?php echo $zbp->Config('qiyeseo')->color6;?>">
                        <div id="picker"></div>
                    </div>  <div class="colorint lr30"><span>6-2、触发链接颜色</span>
                        <input type="text" name="color62" value="<?php echo $zbp->Config('qiyeseo')->color62;?>">
                        <div id="picker"></div>
                    </div> 
                </td>
            </tr>
           
              <tr>
                <td><b>其他</b>
                </td>
                <td>
                     <div class="colorint lr30"><span>7、版块标题下划线颜色</span>
                        <input type="text" name="color9" value="<?php echo $zbp->Config('qiyeseo')->color9;?>">
                        <div id="picker"></div>
                    </div> 
                </td>
            </tr>
           
        </table>
        <br/>
        <?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?>
        <input name="" type="Submit" class="button" value="保存"/>
    </form>
</div>
</div>
<script type="text/javascript" src="<?php echo $bloghost?>zb_users/plugin/UEditor/ueditor.config.php"></script> 
<script type="text/javascript" src="<?php echo $bloghost?>zb_users/plugin/UEditor/ueditor.all.min.js"></script> 
<script type="text/javascript" src="<?php echo $bloghost?>zb_users/theme/qiyeseo/style/js/lib.upload.js"></script> 
<script type="text/javascript">
    ActiveTopMenu( "topmenu_qiyeseo" );
</script>
<?php
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>