<?php if( !defined( 'ONGPHP')) exit( 'Error ONGSOFT');
$D = db('');
$shezhi = $Mem1->g('shezhi');

//dump($shezhi);exit;

?>
<!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 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 class="layui-form-item">
      <label class="layui-form-label">网站公告</label>
    <div class="layui-input-block">
      <input type="text" name="data[ad]" autocomplete="off" placeholder="网站公告" class="layui-input" value="<?php echo $shezhi['ad'] ?>" >
    </div>
  </div>

<div>

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

    <label class="layui-form-label">中奖概率</label>
    

  </div>

  

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

    </div>


<div class="layui-form-mid layui-word-aux"> ---》一帆风顺，二龙腾飞，三羊开泰，四季平安，五福临门 之和为100</div>

  </div>

</div>




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

    <label class="layui-form-label">每局抽取盈利比</label>
    

  </div>

  

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

    </div>


    <div class="layui-form-mid layui-word-aux"> /100---》稳赚不亏，盈利比越大，中奖用户的钱越少</div>

  </div>


<div class="layui-form-item">
		<label class="layui-form-label" style="width: 200px">
			
			【是否开启盈利模式】

		</label>  

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


            
 
			</div>
		
		
		</div>
		
		


	</div>

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

    <label class="layui-form-label">每局抽取盈利比</label>
    

  </div>

  

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

    </div>


    <div class="layui-form-mid layui-word-aux"> /100---》稳赚不亏，盈利比越大，中奖用户的钱越少</div>

  </div>-->
  
  <div class="layui-form-item">
		<label class="layui-form-label" style="width: 200px">
			网站维护

		</label>  

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


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

  </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:100px">
      <div id="uploader-demo">
    <!--用来存放item-->
    <div id="fileList" class="uploader-list"></div>
    <div id="filePicker1">选择图片</div>
</div>

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

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

 ?>


   <li><img style="width:100px;" src="<?php echo  $shezhi['kefu'] ?>" alt=""><input type="hidden" name="data[kefu]" value="<?php echo  $shezhi['kefu'] ?>"> </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:100px">
      <div id="uploader-demo">
    用来存放item
    <div id="fileList" class="uploader-list"></div>
    <div id="filePicker3">选择图片</div>
</div>

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

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

 ?>


   <li><img style="width:100px;" src="<?php echo  $shezhi['bodybeijing'] ?>" alt=""><input type="hidden" name="data[bodybeijing]" value="<?php echo  $shezhi['bodybeijing'] ?>"> </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:100px">
      <input type="text" name="data[jifenzuidi]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['jifenzuidi'] ?>">

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

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


  </div>






 <!-- <div class="layui-form-mid layui-word-aux">元 </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 class="layui-form-mid layui-word-aux">元 </div> -->


  </div>

  
</div>





<div class="layui-form-item">
		<label class="layui-form-label" style="width: 200px">
			游戏公告

		</label>  

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

		<input  type="text" name="data[ads]" required="" lay-verify="required" placeholder="请输入值" autocomplete="off" class="layui-input" value="<?php echo $shezhi['ads'] ?>"> 


		</div> 
		</div>


<div>

		


<div class="layui-form-item">
		<label class="layui-form-label" style="width: 200px">
			
			自动提现

		</label>  

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


            
 
			</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 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[siji]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['siji'] ?>">
    </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[wuji]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['wuji'] ?>">
    </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="checkbox" name="data[isweixin]" lay-skin="switch"  style="display:none"
    <?php if ($shezhi['isweixin']) {
       ?> checked="" <?php } ?>  
       
      lay-text="ON|OFF" lay-filter="switchTest"  value="1">
  <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>ON</em><i></i></div>


    </div>




  </div>

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

?>
<div class="layui-form-item layui-inline">
    <label class="layui-form-label">Appid</label>
    <div class="layui-input-inline" style="width:200px">
      

      <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>
    <?php 
       $tiaojian = array( 
        'id' => 6
      ) ;
  $order = '  ';
  $jj = $D -> setbiao('shezhi') -> where( $tiaojian ) ->order(  ) -> find();

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

  </div>




</div>


<div>


  </div>

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

    


    </div>




  </div>

 











<div>

    <!--<label class="layui-form-label">零钱第三方</label>
    
	
  </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[lingkey]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['lingkey'] ?>">
    

    </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 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[tixianfee]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['tixianfee'] ?>">

     
    </div>
 <div class="layui-form-mid layui-word-aux">/%</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[amount]" placeholder="" autocomplete="off" class="layui-input" value="<?php echo $shezhi['amount'] ?>">

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


  </div>

  
</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" style="text-align:center"><!-- 
    <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(){
		if (!confirm('确认删除吗？')) {
			return false;
		}

		jQuery(this).parent().remove();

	})
});
</script>





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

	jQuery(".adyouxiguize").click(function(){
		jQuery("#youxigui").append('<input type="text" name="data[youxigui][]" required="" lay-verify="required" placeholder="请输入值" autocomplete="off" class="layui-input" value="">');
	})
	
  /*删除*/
  

  /*增加提现规则*/

  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: '#filePicker3',

    // 只允许选择图片文件。
    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(".tpul3").html('');

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

   // 初始化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>');
    });


    // 初始化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: '#filePicker2',

        // 只允许选择图片文件。
        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(".tpul2").html('');

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






// 初始化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: '#filePicker1',

        // 只允许选择图片文件。
        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(".tpul1").html('');

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





</script>
</html>