<?php if( !defined( 'ONGPHP')) exit( 'Error ONGSOFT');

$shezhi = $Mem1->g('shezhi');

$D = db('');
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>设置</title>
	<script type="text/javascript" src="/jquery-2.1.1.js"></script>
	<link rel="stylesheet" type="text/css" href="/layui/css/layui.css">
	<script type="text/javascript" src="/layui/layui.js" ></script>
	<link rel="stylesheet" type="text/css" href="/webuploader/webuploader.css">

<!--引入JS-->
<script type="text/javascript" src="/webuploader/webuploader.js"></script>

</head>
<body>

<style type="text/css">
	
.manman{
	padding: 2%;
}

</style>

<div class="manman">
	

	<form class="layui-form layui-form-pane" action=""   id="biaobiao">
  
  

<!-- <div>
  


  
  <?php 
    
  if ( isset($shezhi['tiechanshiwan']) && is_array($shezhi['tiechanshiwan'])) {
    
    $uu = 0;
    foreach($shezhi['tiechanshiwan'] as  $k => $v){


  ?>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">铁铲试玩</label>
    <div class="layui-input-inline" style="width:400px">
      <input type="text" name="data[tiechanshiwan][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="<?php echo $v ?>">
    </div>

  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">作弊</label>
    <div class="layui-input-inline" style="width: 400px">
      <input type="text" name="data[tieshiwanzuobi][]" placeholder="请输入作弊组合" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tieshiwanzuobi'][$uu] ?>">
    </div>




  </div>


<?php 
$uu = $uu+1;
    }
  }else{
    ?>
    <div class="layui-form-item">
    <label class="layui-form-label">铁铲试玩</label>
    <div class="layui-input-inline" style="width: 60%">
      <input type="text" name="data[tiechanshiwan][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="">
    </div>
  </div>

    <?php
  }
?>

</div> -->


  <!-- 
  <?php 
    
  if ( isset($shezhi['tiechan']) && is_array($shezhi['tiechan'])) {
    
    $uu = 0;
    foreach($shezhi['tiechan'] as  $k => $v){
  ?>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">铁铲</label>
    <div class="layui-input-inline" style="width:400px">
      <input type="text" name="data[tiechan][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="<?php echo $v ?>">
    </div>





  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">作弊</label>
    <div class="layui-input-inline" style="width: 400px">
      <input type="text" name="data[tiezuobi][]" placeholder="请输入作弊组合" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tiezuobi'][$uu] ?>">
    </div>





  </div> -->

<!-- 
<?php 
$uu = $uu+1;
    }
  }else{
    ?>
    <div class="layui-form-item">
    <label class="layui-form-label">铁铲</label>
    <div class="layui-input-inline" style="width: 60%">
      <input type="text" name="data[tiechan][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="">
    </div>
  </div>

    <?php
  }
?>
 -->
<!-- 

<?php 
  

  
    if ( isset($shezhi['tongchan']) &&  is_array($shezhi['tongchan'])) {
      $u = 0;
    foreach($shezhi['tongchan'] as  $k => $v){
?>

<div>
  

<div class="layui-form-item layui-inline">
    <label class="layui-form-label">铜铲</label>
    <div class="layui-input-inline" style="width:400px">
      <input type="text" name="data[tongchan][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="<?php echo $v ?>">
    </div>





  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">作弊</label>
    <div class="layui-input-inline" style="width: 400px">
      <input type="text" name="data[tongzuobi][]" placeholder="请输入作弊组合" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tongzuobi'][$u] ?>">
    </div>





  </div>
</div>
<?php 
  
    $u = $u+1;
  }

}else{

?>
  
<div class="layui-form-item">
    <label class="layui-form-label">铜铲</label>
    <div class="layui-input-inline" style="width: 60%">
      <input type="text" name="data[tongchan][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="">
    </div>
  </div>


<?php 
  }
?>
 -->


<!-- 
<?php 
  

  
    if ( isset($shezhi['yinchan']) &&  is_array($shezhi['yinchan'])) {
      $yy = 0;
    foreach($shezhi['yinchan'] as  $k => $v){
?>


<div>
  

<div class="layui-form-item layui-inline">
    <label class="layui-form-label">银铲</label>
    <div class="layui-input-inline" style="width:400px">
      <input type="text" name="data[yinchan][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="<?php echo $v ?>">
    </div>




  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">作弊</label>
    <div class="layui-input-inline" style="width: 400px">
      <input type="text" name="data[yinzuobi][]" placeholder="请输入作弊组合" autocomplete="off" class="layui-input" value="<?php echo $shezhi['yinzuobi'][$yy] ?>">
    </div>



  </div>
</div>

<?php 
  $yy = $yy+1;

  }

}else{

?>
  
<div class="layui-form-item">
    <label class="layui-form-label">银铲</label>
    <div class="layui-input-inline" style="width: 60%">
      <input type="text" name="data[yinchan][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="">
    </div>
  </div>


<?php 
  }
?>

   -->

<!-- 
<?php 
  

  
    if ( isset($shezhi['jinkuang']) &&  is_array($shezhi['jinkuang'])) {
    $rr = 0;
    foreach($shezhi['jinkuang'] as  $k => $v){

?>
<div>
<div class="layui-form-item layui-inline">
    <label class="layui-form-label">金铲</label>
    <div class="layui-input-inline" style="width:400px">
      <input type="text" name="data[jinkuang][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="<?php echo $v ?>">
    </div>





  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">作弊</label>
    <div class="layui-input-inline" style="width: 400px">
      <input type="text" name="data[jinzuobi][]" placeholder="请输入作弊组合" autocomplete="off" class="layui-input" value="<?php echo $shezhi['jinzuobi'][$rr] ?>">
    </div>



  </div>
</div>

<?php 
  
  $rr = $rr+1;
  }

}else{

?>
  
<div class="layui-form-item">
    <label class="layui-form-label">金矿</label>
    <div class="layui-input-inline" style="width: 60%">
      <input type="text" name="data[jinkuang][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="">
    </div>
  </div>


<?php 
  }
?> -->

<div class="layui-form-item">
    <label class="layui-form-label">网站名称</label>
    <div class="layui-input-block">
      <input type="text" name="data[title]" autocomplete="off" placeholder="网站名称" class="layui-input" value="<?php echo $shezhi['title'] ?>" >
    </div>
  </div>





<div>


<div class="layui-form-item layui-inline">


<div class="layui-input-inline" style="width:60px">
      

    <input type="checkbox" value="1"  <?php if($shezhi['iszengchan']=='1'){ ?> checked=""  <?php } ?> name="data[iszengchan]" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF"><div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>ON</em><i></i></div>
  


    </div>

    <label class="layui-form-label">是否赠铲</label>
    


  </div>


  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">赠送个数</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[geshu]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['geshu'] ?>">
    </div>


  </div>



  

  
</div>



<div>
<div class="layui-form-item layui-inline">
    <label class="layui-form-label">盈利比例</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[bili]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['bili'] ?>">
    </div>
 <div class="layui-form-mid layui-word-aux">% </div>


  </div>


  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">最低提现</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[zuidi]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['zuidi'] ?>">
    </div>
 <div class="layui-form-mid layui-word-aux">元 </div>


  </div>



  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">奖池分包</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[fenbao]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['fenbao'] ?>">
    </div>
 <!-- <div class="layui-form-mid layui-word-aux"> 个 </div> -->


  </div>

  
</div>






<div>

<div class="layui-form-item layui-inline">
    <label class="layui-form-label">铁铲提示</label>
    <div class="layui-input-inline" style="width:200px">
      <input type="text" name="data[tietishi]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tietishi'] ?>">
    </div>
  </div>


  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">铜铲提示</label>
    <div class="layui-input-inline" style="width:200px">
      <input type="text" name="data[tongtishi]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tongtishi'] ?>">
    </div>
 


  </div>


  

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">银铲提示</label>
    <div class="layui-input-inline" style="width:200px">
      <input type="text" name="data[yintishi]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['yintishi'] ?>">
    </div>
 


  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">金铲提示</label>
    <div class="layui-input-inline" style="width:200px">
      <input type="text" name="data[jintishi]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['jintishi'] ?>">
    </div>
 


  </div>


  

  
</div>



<div>

<div class="layui-form-item layui-inline">
    <label class="layui-form-label">免费MAX</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[mianfei]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['mianfei'] ?>">
    </div>
 


  </div>



<div class="layui-form-item layui-inline">
      <label class="layui-form-label">免费碰壁</label>
      <div class="layui-input-inline" style="width: 100px;">
        <input type="text" name="data[mkaishi]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['mkaishi'] ?>">
      </div>
      <div class="layui-form-mid">-</div>
      <div class="layui-input-inline" style="width: 100px;">
        <input type="text" name="data[mjieshu]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['mjieshu'] ?>">
      </div>

      <div class="layui-form-mid layui-word-aux">次</div>
    </div>



<div class="layui-form-item layui-inline">
    <label class="layui-form-label">免费奖足</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[mianzu]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['mianzu'] ?>">
    </div>
 


  </div>
<div class="layui-form-item layui-inline">


<div class="layui-input-inline" style="width:60px">
      

    <input type="checkbox" value="1"  <?php if($shezhi['mianyong']=='1'){ ?> checked="" <?php } ?> name="data[mianyong]" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF"><div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>ON</em><i></i></div>
  


    </div>

    <label class="layui-form-label">免费佣金</label>
    


  </div>
  
</div>

<div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">碰壁范围</label>
      <div class="layui-input-inline" style="width: 100px;">
        <input type="text" name="data[kaishi]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['kaishi'] ?>">
      </div>
      <div class="layui-form-mid">-</div>
      <div class="layui-input-inline" style="width: 100px;">
        <input type="text" name="data[jieshu]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['jieshu'] ?>">
      </div>

      <div class="layui-form-mid layui-word-aux">次</div>
    </div>
  </div>

<div>

<div class="layui-form-item layui-inline">
    <label class="layui-form-label">铁铲额度</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[tiee]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tiee'] ?>">
    </div>
  </div>


  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">铜铲额度</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[tonge]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tonge'] ?>">
    </div>
 


  </div>


  

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">银铲额度</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[yine]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['yine'] ?>">
    </div>
 


  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">金铲额度</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[jine]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['jine'] ?>">
    </div>
 


  </div>


  

  
</div>










<div>




  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">铁铲MAX</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[tiemax]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tiemax'] ?>">
    </div>
 


  </div>


  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">铜铲MAX</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[tongmax]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tongmax'] ?>">
    </div>
 


  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">银铲MAX</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[yinmax]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['yinmax'] ?>">
    </div>
 


  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">金铲MAX</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[jinmax]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['jinmax'] ?>">
    </div>
 


  </div>


  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">奖足随机</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[zuida]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['zuida'] ?>">
    </div>
 


  </div>


  

  
</div>



<div>
<div class="layui-form-item layui-inline">
    <label class="layui-form-label">二维码背景</label>
    <div class="layui-input-inline" style="width:100px">
      <div id="uploader-demo">
    <!--用来存放item-->
    <div id="fileList" class="uploader-list"></div>
    <div id="filePicker">选择图片</div>
</div>

    </div>
 <div class="layui-form-mid layui-word-aux">

 <ul class="tpul">
 <?php 
   
if ( $shezhi['beijing']!='') {

 ?>


   <li><img style="width:100px;" src="<?php echo  $shezhi['beijing'] ?>" alt=""><input type="hidden" name="data[beijing]" value="<?php echo  $shezhi['beijing'] ?>"> </li>
<?php 
  }
?>
 </ul>

  </div>


  </div>

  
</div>


<div>
<div class="layui-form-item layui-inline">

    <label class="layui-form-label">防封域名</label>
    <div class="layui-input-inline" style="width:300px">
      <input type="text" name="data[tiaozhuan]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tiaozhuan'] ?>">
    </div>

  </div>
<?php 
  
  $tiaojian = array( 
        'id' => 4
      ) ;
  $order = '  ';
  $jj = $D -> setbiao('shezhi') -> where( $tiaojian ) ->order(  ) -> find();

  
?>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">游戏域名</label>
    <div class="layui-input-inline" style="width:300px">
      <input type="text" name="data[youxiyuming]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $jj['data'] ?>">

     
    </div>





  </div>

  

  
</div>



<div>
<div class="layui-form-item layui-inline">
    <label class="layui-form-label">短信id</label>
    <div class="layui-input-inline" style="width:200px">
      <input type="text" name="data[duanxinid]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['duanxinid'] ?>">

     
    </div>


  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">短信KEY</label>
    <div class="layui-input-inline" style="width:200px">
      <input type="text" name="data[duanxinkey]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['duanxinkey'] ?>">

     
    </div>


  </div>

  
</div>


<div>
<div class="layui-form-item layui-inline">
    <label class="layui-form-label">一级分销</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[yiji]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['yiji'] ?>">

     
    </div>

<div class="layui-form-mid layui-word-aux">%</div>

  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">二级分销</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[erji]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['erji'] ?>">

     
    </div>
<div class="layui-form-mid layui-word-aux">%</div>


  </div>


  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">三级分销</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[sanji]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['sanji'] ?>">
    </div>
<div class="layui-form-mid layui-word-aux">%</div>
  </div>

  
  

  

  
</div>


<div>
<div class="layui-form-item layui-inline">
    <label class="layui-form-label">代理比例</label>
    <div class="layui-input-inline" style="width:100px">
      <input type="text" name="data[daili]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['daili'] ?>">
      
    </div>

<div class="layui-form-mid layui-word-aux">%</div>

  </div>

  
</div>

<div>




<div class="layui-form-item layui-inline">


<div class="layui-input-inline" style="width:100px">
      

    <input type="checkbox" value="1" <?php if ($shezhi['isweixin']) {
       ?> checked="" <?php } ?> name="data[isweixin]" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
  <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>ON</em><i></i></div>


    </div>



    <label class="layui-form-label">微信登录</label>
    




  </div>


<div class="layui-form-item layui-inline">
    <label class="layui-form-label">Appid</label>
    <div class="layui-input-inline" style="width:200px">
      
<?php 
    $tiaojian = array( 
        'id' => 5
      ) ;
  $order = '  ';
  $jj = $D -> setbiao('shezhi') -> where( $tiaojian ) ->order(  ) -> find();

?>
      <input type="text" name="data[appid]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $jj['data'] ?>">
    

    </div>


<!-- <label class="layui-form-label">金矿</label>
    <div class="layui-input-inline" >
      <input type="text" name="data[jinkuang][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="10,20,30,40,0,50,60,70">
    </div> -->


  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">AppSecret</label>
    <div class="layui-input-inline" style="width: 300px">
    <?php 
       $tiaojian = array( 
        'id' => 6
      ) ;
  $order = '  ';
  $jj = $D -> setbiao('shezhi') -> where( $tiaojian ) ->order(  ) -> find();

    ?>
      <input type="text" name="data[appsecret]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $jj['data'] ?>">
    </div>

  </div>
</div>
<div>

<div class="layui-form-item layui-inline">
<div class="layui-input-inline" style="width:60px">
      

    <input type="checkbox" value="1" <?php if ($shezhi['zidongtixian']) {
       ?> checked="" <?php } ?> name="data[zidongtixian]" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
  <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>ON</em><i></i></div>


    </div>
    <label class="layui-form-label">自动提现</label>
    

  </div>

  <div class="layui-form-item layui-inline">
  <div class="layui-input-inline" style="width:60px">
      

    <input type="checkbox" value="1" <?php if ($shezhi['hongbao']=='1') {
       ?> checked="" <?php } ?> name="data[hongbao]" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
  <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>ON</em><i></i></div>


    </div>
    <label class="layui-form-label">现金红包</label>
  </div>

  <div class="layui-form-item layui-inline">

  <div class="layui-input-inline" style="width:60px">
      

    <input type="checkbox" value="2" <?php if ($shezhi['hongbao']=='2') {
       ?> checked="" <?php } ?> name="data[hongbao]" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
  <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>ON</em><i></i></div>


    </div>

    <label class="layui-form-label">零钱入账</label>
    




  </div>

  


  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">MCHID</label>
    <div class="layui-input-inline" style="width: 200px">
      <input type="text" name="data[mchid]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['mchid'] ?>">
    </div>

  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">Partnerkey</label>
    <div class="layui-input-inline" style="width: 300px">
      <input type="text" name="data[partnerkey]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['partnerkey'] ?>">
    </div>

  </div>


  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">最大自动提</label>
    <div class="layui-input-inline" style="width: 300px">
      <input type="text" name="data[zuidati]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['zuidati'] ?>">
    </div>

  </div>




</div>





<div>
  
<div class="layui-form-item layui-inline">
<div class="layui-input-inline" style="width:60px">
      

    <input type="checkbox" value="1" <?php if ($shezhi['ling3']) {
       ?> checked="" <?php } ?> name="data[ling3]" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
  <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>ON</em><i></i></div>


    </div>
    <label class="layui-form-label">零钱第三方</label>
    

  </div>


  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">零到账3KEY</label>
    <div class="layui-input-inline" style="width:200px">
      
      <input type="text" name="data[lingkey]" placeholder="" autocomplete="off" class="layui-input"  value="<?php echo $shezhi['lingkey'] ?>">
    

    </div>


<!-- <label class="layui-form-label">金矿</label>
    <div class="layui-input-inline" >
      <input type="text" name="data[jinkuang][]" placeholder="请输入奖池组合" autocomplete="off" class="layui-input" value="10,20,30,40,0,50,60,70">
    </div> -->


  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">零到账uid</label>
    <div class="layui-input-inline" style="width:200px">
      
      <input type="text" name="data[linguid]" placeholder="" autocomplete="off" class="layui-input"  value="<?php echo $shezhi['linguid'] ?>">
    

    </div>



  </div>

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">零钱网址</label>
    <div class="layui-input-inline" style="width:300px">
      
      <input type="text" name="data[lingurl]" placeholder="" autocomplete="off" class="layui-input"  value="<?php echo $shezhi['lingurl'] ?>">
    

    </div>




  </div>


</div>


<div>




  

  

  


  

  <div class="layui-form-item layui-inline">
    <label class="layui-form-label">证书路径</label>
    <div class="layui-input-inline" style="width: 500px">
      <input type="text" name="data[lujing]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['lujing'] ?>">
    </div>

  </div>




</div>




  <div class="layui-form-item">
    <label class="layui-form-label">挖宝规则  </label>
    <div class="layui-input-block" style="display: flex;">
    <div style="width: 80%" id="guieze">
      
<?php 
  
  if (is_array($shezhi['guize'])) {
    foreach($shezhi['guize'] as  $k => $v){
    ?>


    <div class="ss" style="display: flex;">
      <input   type="text" name="data[guize][]" autocomplete="off" placeholder="" class="layui-input" value="<?php echo $v ?>"  >

       <label class="layui-form-label shanchu"> 删除  </label>

    </div>

    <?php
  }
}


?>

    </div>

    <div style="width: 20%">
      
    
    <span class="layui-btn layui-btn-normal adguize">
        增加规则
    </span>



    </div>

    </div>
  </div>



  <div class="layui-form-item">
    <label class="layui-form-label">弹窗作弊  </label>
    <div class="layui-input-block" style="display: flex;">
    <div style="width: 80%" id="zuobi">
      
<?php 
  
  if (is_array($shezhi['zuobi'])) {
    foreach($shezhi['zuobi'] as  $k => $v){
    ?>


<div class="ss" style="display: flex;">
<input type="text" name="data[zuobi][]" autocomplete="off" placeholder="" class="layui-input" value="<?php echo $v ?>"  >
  
  <label class="layui-form-label shanchu"> 删除  </label>
</div>


    <?php
  }
}


?>

    </div>

    <div style="width: 20%">
      
    
    <span class="layui-btn layui-btn-normal adzuobi">
        增加作弊
    </span>

    &nbsp;
    &nbsp;
    &nbsp;
    &nbsp;

    是否作弊
      <input type="checkbox" value="1" 
      <?php 
        if ($shezhi['istanchuang']=='1') {
            ?>
              checked="" 
            <?php
        }
      ?>

    

      name="data[istanchuang]" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF"><div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>ON</em><i></i>







      </div>











    </div>

    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">邀请规则  </label>
    <div class="layui-input-block" style="display: flex;">
    <div style="width: 80%" id="yaoqing">
      
<?php 
  
  if (is_array($shezhi['yaoqing'])) {
    foreach($shezhi['yaoqing'] as  $k => $v){
    ?>


<div style="display: flex" class="ss">
<input type="text" name="data[yaoqing][]" autocomplete="off" placeholder="" class="layui-input" value="<?php echo $v ?>"  >
 <label class="layui-form-label shanchu"> 删除  </label>
  </div>

    <?php
  }
}


?>

    </div>

    <div style="width: 20%">
      
    
    <span class="layui-btn layui-btn-normal adyaoqing">
        增加规则
    </span>




    </div>

    </div>
  </div>



  <div class="layui-form-item">
    <label class="layui-form-label">提现规则  </label>
    <div class="layui-input-block" style="display: flex;">
    <div style="width: 80%" id="tixian">
      
<?php 
  
  if (is_array($shezhi['tixian'])) {
    foreach($shezhi['tixian'] as  $k => $v){
    ?>

<div style="display: flex" class="ss">

<input type="text" name="data[tixian][]" autocomplete="off" placeholder="" class="layui-input" value="<?php echo $v ?>"  >
 <label class="layui-form-label shanchu"> 删除  </label>

</div>

    <?php
  }
}


?>

    </div>

    <div style="width: 20%">
      
    
    <span class="layui-btn layui-btn-normal adtixcian">
        增加规则
    </span>




    </div>

    </div>
  </div>





  <!-- <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">范围</label>
      <div class="layui-input-inline" style="width: 100px;">
        <input type="text" name="price_min" placeholder="￥" autocomplete="off" class="layui-input">
      </div>
      <div class="layui-form-mid">-</div>
      <div class="layui-input-inline" style="width: 100px;">
        <input type="text" name="price_max" placeholder="￥" autocomplete="off" class="layui-input">
      </div>
    </div>
  </div> -->
  
  <!-- <div class="layui-form-item">
    <label class="layui-form-label">单行选择框</label>
    <div class="layui-input-block">
      <select name="interest" lay-filter="aihao">
        <option value=""></option>
        <option value="0">写作</option>
        <option value="1" selected="">阅读</option>
        <option value="2">游戏</option>
        <option value="3">音乐</option>
        <option value="4">旅行</option>
      </select><div class="layui-unselect layui-form-select"><div class="layui-select-title"><input type="text" placeholder="请选择" value="阅读" readonly="" class="layui-input layui-unselect"><i class="layui-edge"></i></div><dl class="layui-anim layui-anim-upbit"><dd lay-value="0" class="">写作</dd><dd lay-value="1" class="layui-this">阅读</dd><dd lay-value="2" class="">游戏</dd><dd lay-value="3" class="">音乐</dd><dd lay-value="4" class="">旅行</dd></dl></div>
    </div>
  </div> -->
  
  <!-- <div class="layui-form-item">
    <label class="layui-form-label">行内选择框</label>
    <div class="layui-input-inline">
      <select name="quiz1">
        <option value="">请选择省</option>
        <option value="浙江" selected="">浙江省</option>
        <option value="你的工号">江西省</option>
        <option value="你最喜欢的老师">福建省</option>
      </select><div class="layui-unselect layui-form-select"><div class="layui-select-title"><input type="text" placeholder="请选择省" value="浙江省" readonly="" class="layui-input layui-unselect"><i class="layui-edge"></i></div><dl class="layui-anim layui-anim-upbit"><dd lay-value="浙江" class="layui-this">浙江省</dd><dd lay-value="你的工号" class="">江西省</dd><dd lay-value="你最喜欢的老师" class="">福建省</dd></dl></div>
    </div>
    <div class="layui-input-inline">
      <select name="quiz2">
        <option value="">请选择市</option>
        <option value="杭州">杭州</option>
        <option value="宁波" disabled="">宁波</option>
        <option value="温州">温州</option>
        <option value="温州">台州</option>
        <option value="温州">绍兴</option>
      </select><div class="layui-unselect layui-form-select"><div class="layui-select-title"><input type="text" placeholder="请选择市" value="" readonly="" class="layui-input layui-unselect"><i class="layui-edge"></i></div><dl class="layui-anim layui-anim-upbit"><dd lay-value="杭州" class="">杭州</dd><dd lay-value="宁波" class=" layui-disabled">宁波</dd><dd lay-value="温州" class="">温州</dd><dd lay-value="温州" class="">台州</dd><dd lay-value="温州" class="">绍兴</dd></dl></div>
    </div>
    <div class="layui-input-inline">
      <select name="quiz3">
        <option value="">请选择县/区</option>
        <option value="西湖区">西湖区</option>
        <option value="余杭区">余杭区</option>
        <option value="拱墅区">临安市</option>
      </select><div class="layui-unselect layui-form-select"><div class="layui-select-title"><input type="text" placeholder="请选择县/区" value="" readonly="" class="layui-input layui-unselect"><i class="layui-edge"></i></div><dl class="layui-anim layui-anim-upbit"><dd lay-value="西湖区" class="">西湖区</dd><dd lay-value="余杭区" class="">余杭区</dd><dd lay-value="拱墅区" class="">临安市</dd></dl></div>
    </div>
  </div> -->
  <!-- <div class="layui-form-item" pane="">
    <label class="layui-form-label">开关-开</label>
    <div class="layui-input-block">
      <input type="checkbox" checked="" name="open" lay-skin="switch" lay-filter="switchTest" title="开关"><div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em></em><i></i></div>
    </div>
  </div> -->
  <!-- <div class="layui-form-item" pane="">
    <label class="layui-form-label">单选框</label>
    <div class="layui-input-block">
      <input type="radio" name="sex" value="男" title="男" checked=""><div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i><span>男</span></div>
      <input type="radio" name="sex" value="女" title="女"><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><span>女</span></div>
      <input type="radio" name="sex" value="禁" title="禁用" disabled=""><div class="layui-unselect layui-form-radio layui-radio-disbaled layui-disabled"><i class="layui-anim layui-icon"></i><span>禁用</span></div>
    </div>
  </div> -->
  <!-- <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">文本域</label>
    <div class="layui-input-block">
      <textarea placeholder="请输入内容" class="layui-textarea"></textarea>
    </div>
  </div> -->
  <div class="layui-form-item"><!-- 
    <button class="layui-btn" lay-submit="" lay-filter="demo2">跳转式提交</button>
   -->
   	

   <span class="layui-btn tijiaoshezhi">提交设置</span>


   </div>
</form>

</div>




</body>
<script>
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form()
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  
  //创建一个编辑器
  var editIndex = layedit.build('LAY_demo_editor');
 
  //自定义验证规则
  form.verify({
    title: function(value){
      if(value.length < 5){
        return '标题至少得5个字符啊';
      }
    }
    ,pass: [/(.+){6,12}$/, '密码必须6到12位']
    ,content: function(value){
      layedit.sync(editIndex);
    }
  });
  
  //监听指定开关
  form.on('switch(switchTest)', function(data){
    // layer.msg('开关checked：'+ (this.checked ? 'true' : 'false'), {
    //   offset: '6px'
    // });
    // layer.tips('温馨提示：请注意开关状态的文字可以随意定义，而不仅仅是ON|OFF', data.othis)
  });
  
  //监听提交
  form.on('submit(demo1)', function(data){
    layer.alert(JSON.stringify(data.field), {
      title: '最终的提交信息'
    })
    return false;
  });
  
  
});
</script>









<script type="text/javascript">
jQuery(function(){

  /*删除*/
  jQuery(".shanchu").click(function(){
    var p = jQuery(this).parent('.ss');
    p.remove();

  })

  /*增加提现规则*/

  jQuery(".adtixcian").click(function(){
      
      jQuery("#tixian").append('<input type="text" name="data[tixian][]" autocomplete="off" placeholder="" class="layui-input"  >');

  })

  /*增加邀请规则*/
  jQuery(".adyaoqing").click(function(){

    jQuery("#yaoqing").append('<input type="text" name="data[yaoqing][]" autocomplete="off" placeholder="" class="layui-input"  >');

  })




  /*增加作弊*/
  jQuery(".adzuobi").click(function(){
    
    jQuery("#zuobi").append('<input type="text" name="data[zuobi][]" autocomplete="off" placeholder="" class="layui-input"  >');

  })

  /*增加规则*/

  jQuery(".adguize").click(function(){
    jQuery("#guieze").append('<input type="text" name="data[guize][]" autocomplete="off" placeholder="" class="layui-input"  >');

  })


  	jQuery(".tijiaoshezhi").click(function(){

        var biaobiao = jQuery("#biaobiao").serialize();
        var data = biaobiao+'&action=shezhi';

        $.ajax({
          async: true,
          type:"POST",
          url:"?action=ajax",
          data:data,
          dataType:'json',
          success:function(data){
            if (data.o=='yes') {
              alert('更新成功');
              location.reload(true);
            }


            
          }



        })



	})
});
</script>


<script type="text/javascript">
  

   // 初始化Web Uploader
    var uploader = WebUploader.create({
        // 选完文件后，是否自动上传。
        auto: true,
            fileVal: 'all',
        // swf文件路径
        swf:   'http://cdn.staticfile.org/webuploader/0.1.0/Uploader.swf',
        // 文件接收服务端。
        server: '<?php  echo '?action=ajax&upload=yes&uplx=all'?>',

        // 选择文件的按钮。可选。
        // 内部根据当前运行是创建，可能是input元素，也可能是flash.
        pick: '#filePicker',

        // 只允许选择图片文件。
        accept: {
            title: 'Images',
            extensions: 'gif,jpg,jpeg,bmp,png',
            mimeTypes: 'image/jpg,image/jpeg,image/png'
        }
    });



    // 文件上传成功，给item添加成功class, 用样式标记上传成功。
    uploader.on( 'uploadSuccess', function( file,respond ) {
        var tupian = respond.url;
        jQuery(".tpul").html('');

        jQuery(".tpul").append('<li><img style="width:100px;" src="'+tupian+'" alt=""><input type="hidden" name="data[beijing]" value="'+tupian+'" /> </li>');
    });

</script>

</html>