<?php /* EL PSY CONGROO */     	 	 	 	
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('FY_Shang')) {$zbp->ShowError(48);die();}     						 
$blogtitle='插件配置';    						 	
require $blogpath . 'zb_system/admin/admin_header.php';     		 			 
require $blogpath . 'zb_system/admin/admin_top.php';    			   		
require $blogpath . 'zb_users/plugin/FY_Shang/admin-header.php';       		   
     			 	  
     	 		 		
if(count($_POST)>0){    				 		 
	$zbp->Config('FY_Shang')->color = $_POST['color'];    	 	 			 
	$zbp->Config('FY_Shang')->ds_color = $_POST['ds_color'];     		 			 
	$zbp->Config('FY_Shang')->fx_color = $_POST['fx_color'];     	  				
	$zbp->SaveConfig('FY_Shang');     	 	    
	$zbp->ShowHint('good');    	 	  			
	}        		 	
     			  	 
      	   		
?>

<div class="fy-nav">
    <?php FY_Shang_SubMenu(1);?>
</div>
</div>

   <script type="text/javascript" src="<?php echo $bloghost?>zb_users/plugin/FY_Shang/color/farbtastic.js"></script>
<link rel="stylesheet" href="<?php echo $bloghost?>zb_users/plugin/FY_Shang/color/farbtastic.css" type="text/css" />
 <script type="text/javascript" charset="utf-8">
  $(document).ready(function() {
    $('#picker').farbtastic('#color');
    $('#picker2').farbtastic('#ds_color');
    $('#picker3').farbtastic('#fx_color');
  });
 </script>
<style>
input.text{background:#FFF;border:1px double #aaa;font-size:1em;padding:0.25em;}
p{line-height:1.5em;padding:0.5em 0;}
.tc{border: solid 2px #E1E1E1;width: 50px;height: 23px;float: left;margin: 0.25em;cursor: pointer}
.tc:hover,.active{border: 2px solid #2694E8;}
</style>


	<form id="form1" name="form1" method="post">

   <table width="100%" border="1" class="tableBorder">
	<tr>
		<th scope="col" height="32">颜色配置</th>
		<th scope="col" >
		<div style="float:left;margin: 0.25em">推荐颜色：</div>
		</th>
		<th >
			<div id="loadconfig">
			<div class="tc" onclick='$("#color").val("#FF6B57");$("#color").css("background-color","#FF6B57");' style="background-color:#FF6B57"></div>
			<div class="tc" onclick='$("#color").val("#38A3DB");$("#color").css("background-color","#38A3DB");' style="background-color:#38A3DB"></div>
			<div class="tc" onclick='$("#color").val("#6bc30d");$("#color").css("background-color","#6bc30d");' style="background-color:#6bc30d"></div>
			<div class="tc" onclick='$("#color").val("#00ada7");$("#color").css("background-color","#00ada7");' style="background-color:#00ada7"></div>
			<div class="tc" onclick='$("#color").val("#00ccca");$("#color").css("background-color","#00ccca");' style="background-color:#00ccca"></div>
			<div class="tc" onclick='$("#color").val("#088fdc");$("#color").css("background-color","#088fdc");' style="background-color:#088fdc"></div>
			<div class="tc" onclick='$("#color").val("#B433FF");$("#color").css("background-color","#B433FF");' style="background-color:#B433FF"></div>
			</div>
		</th>
	</tr>
	<tr>
		<td>喜欢按钮</td>
		<td><input type="text" id="color" name="color" value="<?php echo $zbp->Config('FY_Shang')->color;?>"/></div></td>
		<td><div id="picker"></div></td>
	</tr>
	<tr>
		<th scope="col" height="32">颜色配置</th>
		<th scope="col" >
		<div style="float:left;margin: 0.25em">推荐颜色：</div>
		</th>
		<th >
			<div id="loadconfig">
			<div class="tc" onclick='$("#ds_color").val("#FF6B57");$("#ds_color").css("background-color","#FF6B57");' style="background-color:#FF6B57"></div>
			<div class="tc" onclick='$("#ds_color").val("#38A3DB");$("#ds_color").css("background-color","#38A3DB");' style="background-color:#38A3DB"></div>
			<div class="tc" onclick='$("#ds_color").val("#6bc30d");$("#ds_color").css("background-color","#6bc30d");' style="background-color:#6bc30d"></div>
			<div class="tc" onclick='$("#ds_color").val("#00ada7");$("#ds_color").css("background-color","#00ada7");' style="background-color:#00ada7"></div>
			<div class="tc" onclick='$("#ds_color").val("#00ccca");$("#ds_color").css("background-color","#00ccca");' style="background-color:#00ccca"></div>
			<div class="tc" onclick='$("#ds_color").val("#088fdc");$("#ds_color").css("background-color","#088fdc");' style="background-color:#088fdc"></div>
			<div class="tc" onclick='$("#ds_color").val("#B433FF");$("#ds_color").css("background-color","#B433FF");' style="background-color:#B433FF"></div>
			</div>
		</th>
	</tr>
	<tr>
		<td>打赏按钮</td>
		<td><input type="text" id="ds_color" name="ds_color" value="<?php echo $zbp->Config('FY_Shang')->ds_color;?>"/></div></td>
		<td><div id="picker2"></div></td>
	</tr>
	<tr>
		<th scope="col" height="32">颜色配置</th>
		<th scope="col" >
		<div style="float:left;margin: 0.25em">推荐颜色：</div>
		</th>
		<th >
			<div id="loadconfig">
			<div class="tc" onclick='$("#fx_color").val("#FF6B57");$("#fx_color").css("background-color","#FF6B57");' style="background-color:#FF6B57"></div>
			<div class="tc" onclick='$("#fx_color").val("#38A3DB");$("#fx_color").css("background-color","#38A3DB");' style="background-color:#38A3DB"></div>
			<div class="tc" onclick='$("#fx_color").val("#6bc30d");$("#fx_color").css("background-color","#6bc30d");' style="background-color:#6bc30d"></div>
			<div class="tc" onclick='$("#fx_color").val("#00ada7");$("#fx_color").css("background-color","#00ada7");' style="background-color:#00ada7"></div>
			<div class="tc" onclick='$("#fx_color").val("#00ccca");$("#fx_color").css("background-color","#00ccca");' style="background-color:#00ccca"></div>
			<div class="tc" onclick='$("#fx_color").val("#088fdc");$("#fx_color").css("background-color","#088fdc");' style="background-color:#088fdc"></div>
			<div class="tc" onclick='$("#fx_color").val("#B433FF");$("#fx_color").css("background-color","#B433FF");' style="background-color:#B433FF"></div>
			</div>
		</th>
	</tr>
	<tr>
		<td>分享按钮</td>
		<td><input type="text" id="fx_color" name="fx_color" value="<?php echo $zbp->Config('FY_Shang')->fx_color;?>"/></div></td>
		<td><div id="picker3"></div></td>
	</tr>
</table>

	<div class="mo-footer">
				<div class="mpanel-submit">
					<input name="" type="Submit" class="mpanel-save" value="保存设置">
				</div>
			</div>
    </form>
</div>


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