<html><head>
		<meta name="viewport" content="width=device-width, initial-scale=1,  user-scalable=no">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="format-detection" content="telephone=no">
		<title><?php echo $info['name']; ?> 在线支付购买</title>
		<link rel="stylesheet" href="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/css/bootstrap.min.css">
		<link rel="stylesheet" href="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/css/init.css">
		<link rel="stylesheet" href="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/css/main.css">
		<script type="text/javascript" src="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/js/jquery.flexslider-min.js"></script>
		<script type="text/javascript" src="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/js/jquery.SuperSlide.2.1.1.js"></script>
		<link rel="stylesheet" href="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/css/animate.css">
		<script src="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/js/wow.js"></script>
		<script>
		if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){
		    new WOW().init();
		};
		</script>
        <script>
       jQuery(".txtScroll-top").slide({
	   titCell: ".hd ul",
	   mainCell: ".bd ul",
	   autoPage: true,
	   effect: "top",
	   autoPlay: true,
	   vis: 1
        });
        </script>

        <style type="text/css" media="screen">
         .layui-laydate-range{
            width: 550px !important;
         }

        </style>

	</head>
	<body style="background: url(/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/images/tuy.jpg) center;">
<?php include_once("baidu_js_push.php") ?>
  <div id="header" class="header header2">
    <div class="main">
    <span>106网盘</span>
    <dd>
      <a href="http://www.<?php echo C('BEN_BZUSR');?>">首页</a>
      <a href="http://member.<?php echo C('BEN_BZUSR');?>/">会员登录</a>
      <a href="http://member.<?php echo C('BEN_BZUSR');?>/reg">立即注册</a>
	  <a href="javascript:;" class="STYLE1" data-fancybox='{type:"iframe",href:"/Report/add/?pk=<?php echo $info['pk4']; ?>&uid=<?php echo $info['pk1']; ?>",width:660,height:600}'>在线举报</a>
	  <a href="<?php echo "http://" . $userconfig['domain'] . '.' . C('DOMAIN_WANGPAN'); ?>">我的网盘</a>
	  <a href="http://pan.<?php echo C('BEN_BZUSR');?>/pay/order_search">订单查询</a>

    </dd>
    </div>
  </div>



  <div class="main">

    <div class="bai bai2">
      <div class="baitou">
       <h2><img src="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/images/cc.jpg" alt=""><?php echo $info['name']; ?></h2>
       <p>文件大：<?php echo $info['size']; ?>      更新时间：<?php echo date('Y-m-d H:i:s', $info['pk4'] / 1000); ?>     <?php if($userconfig['file_downloads_show']!=2){echo '下载量：'.$info['donwload_num'].'次';}?></p>
      </div>
      <dd class="left xinxi2">
      	<form action="/pay/file" target="_blank" method="post" id="pay">
	 	<input type="hidden" name="model_id" value="58" />
		<input type="hidden" name="ctime" value="<?php echo time(); ?>" />
		<input type="hidden" name="file_id" value="<?php echo $info['id']; ?>" />
		<input type="hidden" name="uid" value="<?php echo $info['uid']; ?>" />
		<input type="hidden" name="pk1" value="<?php echo $info['pk1']; ?>" />
		<input type="hidden" name="pk2" value="<?php echo $info['pk2']; ?>" />
		<input type="hidden" name="pk3" value="<?php echo $info['pk3']; ?>" />
		<input type="hidden" name="pk4" value="<?php echo $info['pk4']; ?>" />
		<input type="hidden" name="pay_way" id="pay_way" value="" />
        <h3>商品价格：<?php echo $info['price']; ?>元</h3>
		<?php if($info['iszengsong']=='赠送'){?>
        <h3 class="xuant">购买数量： <input type="jifen" name="num" value="1" >(库存 <?php echo $kucun; ?>)
        </h3>
		<?php }?>
       	<h3>联系方式：<?php echo $info['service']; ?></h3>
		
			<?php if(!empty($userconfig['member_idcard'])){?>
		 
		 <h3>实名认证：<img src="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/images/V.png" />已实名</h3>
		 <?php }?>
		 <?php if(empty($userconfig['member_idcard'])){?>
		  <h3>实名认证：<img src="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/images/xx.png" />未实名</h3>
		  <?php }?>
		
       	<h3 class="xuant">邮箱地址： <input type="email" name="email" value="" placeholder="请输入您的邮箱"><span class="red">为必填项</span></h3>


       	<h3 class="xuant">短信接收： <input type="text" name="mobile" value="" placeholder="请输入您的手机号"><span class="xuan">短信接收将收取0.1元短信费</span></h3>

		</form>
      </dd>



      <dd class="right youhui2">
        <h3>优惠价格：</h3>
        <ul class="yuhu">
             <?php
			foreach ($info['youhui'] as $k => $v) {
				echo '<li><i>' . $v[1] . '</i><span>元</span><b>' . $v[0] . '张</b></li>';
			}
       		?>
        </ul>

        <form action="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/index2_submit" method="get" accept-charset="utf-8" class="chax">
          <img src="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/images/ddd.jpg" alt="">
          <dd>
            <input type="text" name="" value="" placeholder="请输入您的订单">
            <button type="">确定查询</button>
          </dd>

          <p>
            公告：有关于最新的消息制有关于最新的消息制有关于最新的消
            息制有关于最新的消息制有关于最新的消息制
          </p>
        </form>


      </dd>
      <br class="qc">
    </div>



    <div class="zfpt1">
      <h2>付款方式 <span>商品总价：<b><?php echo $info['price']; ?></b>元</span></h2>
    </div>

    <div>
     <ul>
	 	<form  class="zifu zifu3">
		<?php
		$list_pay_way = get_pay_way(1, 1);
		foreach ($list_pay_way as $k => $v) {
			if($k==0){
			    $checked='checked="checked"';
				$on='';
			}else{
				$checked=''; 
				$on='';
			}
			echo ' <li data-id="'.$v['id'].'" class="pay_way '.$on.'"><input '.$checked.' required="required" type="radio" name="pay_way" value="' . $v['id'] . '" placeholder=""><img src="/app/uhome/view/File_saletpl' . $info['infotpl'] . '/images/' . $v['name'] . '.jpg" alt=""></span></li>';
		}
    	?>
	 
     

       

        <div class="dit dit2">
         <button type="button" class=" tjtj btn_pay_way" >提交付款</button>

        <button type="button"  class="tjtj tjtj2"  data-toggle="modal" data-target="#download">软件下载</button>

         </div>

        </form>
     </ul>

     <script >

     $('.zifu2 li').click(function(event) {
       $(this).addClass('on').siblings('li').removeClass('on')
     });

     </script>



    </div>

    <p class="dixin">Copyright 2006-<?php echo date('Y')?> <?php echo C('BEN_BZUSR'); ?> Corporation,All Rights Reserved 扎兰屯市姝妍计算机服务有限公司（106网盘） <?php echo html_entity_decode(C('WEB_TJDM'));?></p>


<!--投诉-->
 <?php if($userconfig['wangpan_id']<2){?>
          <?php
		  $ad_right=M('advert')->where(array('position'=>9,'stime'=>array('lt',time()),'etime'=>array('gt',time())))->order('sort')->getField('content',true);
		   ?>
     <div style='position:fixed; width:230px; top: 330px;right:10px;font-size:9pt;text-align:left;'><div style='background-color:#124F85;height:20;color:white;padding-top:2px;margin-top:20px;padding-left:5px;'><label style='float:right;'>[<a href='http://www.<?php echo C('BEN_BZUSR');?>/advert/isement#search' target="_blank"  ><font color='white'>广告位联系</font></a>]</label>106网盘推荐</div><div style='border:2px solid #124F85;color:#fff;padding-top:0px;padding-bottom:3px;padding-left:0px;word-wrap:break-word;'><ul style='margin:1px;padding:1px;background-color: #fff;list-style-type:none;'><li>
><li>
           <?php foreach($ad_right as $k=>$v){?>
		   <p style='text-decoration:none;'>
           <li><?php echo $v;?></li>
		   
           <?php }?>
		   </div>
     </div>
    </div>
          <?php }?>

<div class="modal fade" id="toushu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body"> ... </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>
<!-- 下载 -->
<div class="modal fade" id="download" tabindex="-1" role="dialog" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">软件下载</h4>
      </div>
      <form   class="am-form buy">
	      <div class="modal-body">
				<input type="hidden" name="pk1" value="<?php echo $info['pk1'];?>" />
				<input type="hidden" name="pk2" value="<?php echo $info['pk2'];?>" />
				<input type="hidden" name="pk3" value="<?php echo $info['pk3'];?>" />
				<input type="hidden" name="pk4" value="<?php echo $info['pk4'];?>" />
				<div class="form-group">
				    <label for="exampleInputEmail1">邮箱</label>
					<input type="email" name="email" class="form-control" id="email" placeholder="请输入邮箱">
				</div>
				<div class="form-group">
				    <label for="exampleInputEmail1">提取码</label>
					<input type="text" class="form-control" name="code" id="code" id="exampleInputEmail1" placeholder="请输入提取码">
				</div>
	      </div>
	      <div class="modal-footer">
	        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
	        <button type="button" class="btn btn-primary btn_download_tqm1">确定下载</button>
	      </div>
      </form>
    </div>
  </div>
</div>
<script src="/static/public/js/angular.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/public/js/pc.1.0.0.js"></script>
<script src="<?php echo S('STATIC');?>/static/uhome/js/file_show.js"></script>
<script type="text/javascript" src="/app/uhome/view/File_saletpl<?php echo $info['infotpl']?>/js/main.js"></script> 
<script type="text/javascript">jQuery(".txtScroll-top").slide({
	titCell: ".hd ul",
	mainCell: ".bd ul",
	autoPage: true,
	effect: "top",
	autoPlay: true,
	vis: 1
});

jQuery(document).on('click','.pay_way',function () {
	var the=jQuery(this);
	the.siblings('li').removeClass('on');
	the.addClass('on');     
	jQuery("#pay_way").val(the.data('id'));       
})
jQuery(document).on('click','.btn_pay_way',function () {
	var the=jQuery(this);
	if (jQuery("[name='email']").val()=='') {
		alert('请输入邮箱');
		return false;
	}
	if (jQuery("#pay_way").val()=='') {
		alert('请选择支付方式');
		return false;
	}
	jQuery("form#pay").submit(); 
})

function add(n) {
	var text = Number($('.el-input input').val()) + n;

	if(text > 0) {
		$('.el-input input').val(text)
	};
	if(text > $('.el-input input').attr('max')) {
		$('.el-input input').val($('.el-input input').attr('max'));
	}

	jQuery.ajax({
		url: "<?php echo U('Pay/getPrice'); ?>",
		data: {
			pk1: '<?php echo I("pk1"); ?>',
			pk4: '<?php echo I("pk4"); ?>',
			num: $('.el-input input').val()
		},
		dataType: "json",
		type: "post",
		timeout: 10000,
		success: function(data) {
			jQuery(".amount").html(data.amount);
			console.log(data);
		},
		error: function() {
			mui.toast("网络连接超时");
		}
	});

}
jQuery(document).on('click', '.btn_download_tqm1', function() {
	var the = jQuery(this);
	jQuery.ajax({
		url: "/file/download",
		data: the.closest('form').serializeArray(),
		dataType: "json",
		type: "post",
		timeout: 10000,
		success: function(data) {
			if(data.status == 1) {
				jQuery('#download').modal('hide');
				the.closest('form')[0].reset();
				location.href = data.url;
			} else {
				wd_alert({
					msg: data.info,
					background: '#f00'
				})
			}

		},
		error: function() {}
	});
});
</script>
</body>
</html>