<?php defined('IN_YUNYECMS') or exit('No permission.'); ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Document Title -->
	<title><?php echo $seo["title"] ;?></title>
	<meta name="keywords" content="<?php echo $seo["keywords"] ;?>" />
	<meta name="description" content="<?php echo $seo["description"] ;?>" />
       <!-- Favicon -->
    <link rel="shortcut icon" href="<?php echo $lang["icon"] ;?>" />
    <link href="<?php echo YUNYECMS_PUBLIC;?>plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
    <!-- CSS Files -->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/font-awesome.min.css">
    <!--==== Bootstrap css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/bootstrap.min.css">
    <!--==== Shop Style css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/shop-style.css">
    <!--==== Style css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/style.css?<?php echo time();?>">
    <!--==== Responsive css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/responsive.css?201901">
    <!--==== Theme Color 1 css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/theme-color-1.css">
    <!--==== Custom css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/custom.css">
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/member.css">
</head>
<body>
    
    <!-- Main header -->
    <!-- End of Main header -->
     <?php include tpl("head",'content'); ?>
    <!-- Page title -->
    <?php $find_parse = core::load_class('tag_parse');$data=$find_parse->find_tag(array('catid'=>'42'));?>
    <section class="page-title-wrap" data-bg-img="<?php echo $data["pic"] ;?>" data-rjs="2">
        <div class="container">
            <div class="row align-items-center">
                <div class="col">
                    <div class="page-title" data-animate="fadeInUp" data-delay="1.05">
                        <h1>在线支付</h1>
                    </div>
                </div>
            </div>
        </div>
    </section>
   
     <!-- End of Page title -->
<div class="breadcumb-wrapper">
    <div class="container">
        <div class="pull-left">
            <ul class="list-inline link-list">
                <li><a href="<?php echo ROOT;?>index.php?lang=<?php echo $lang["id"] ;?>">Home</a></li>
				</li>
				 <?php if(is_array($breadcumb)): $i = -1; $__DATA__ = $breadcumb;if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($i % 2 );++$i;?>
				       <?php if($i+1!=count($breadcumb)) { ?>
					   <li><a href="<?php echo $v["url"] ;?>"><?php echo $v["title"] ;?></a></li> 
					   <?php } else { ?>
					   <li><span><?php echo $v["title"] ;?></span></li> 
					   <?php } ?>
				 <?php  endforeach;  endif; ?>
            </ul>
        </div>
        <div class="pull-right">
        </div>
        <div class="clearfix"></div>
    </div>
</div>   

<section class="pt-30 default-bg">
            <div class="container">
                <div class="row">
                    
                <div class="col-md-12">
                    <!-- shop your order table -->
                    <div class="shop--your-order" data-animate="fadeInUp" data-delay=".8">
                        <h4 class="font-weight-bold PT-sens text-center">Your order has been submitted and the order number is <span class="text-danger"><?php echo $orderitem["sn"] ;?></span>
</h4>
                        <table class="order-table table PT-sens">
                            <tbody>
                                <tr>
                                    <td>
                                       product
                                    </td>
                                    <td>
                                        Total
                                    </td>
                                </tr>
                                <?php if(is_array($orderitem['goods'])): $i = -1; $__DATA__ = $orderitem['goods'];if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                <tr>
                                    <td>
                                        <a href="<?php echo $v["url"] ;?>" target="_blank"> <?php echo $v["title"] ;?>   <span><svg 
                                             xmlns="http://www.w3.org/2000/svg"
                                             xmlns:xlink="http://www.w3.org/1999/xlink"
                                             width="8px" height="8px">
                                            <path fill-rule="evenodd"  fill="rgb(130, 135, 167)"
                                             d="M0.070,7.929 C0.118,7.976 0.179,8.000 0.241,8.000 C0.302,8.000 0.364,7.976 0.411,7.929 L3.992,4.341 L7.573,7.929 C7.620,7.976 7.682,8.000 7.743,8.000 C7.805,8.000 7.867,7.976 7.914,7.929 C8.008,7.835 8.008,7.682 7.914,7.588 L4.333,4.000 L7.914,0.412 C8.008,0.318 8.008,0.165 7.914,0.070 C7.820,-0.024 7.667,-0.024 7.573,0.070 L3.992,3.658 L0.411,0.071 C0.317,-0.024 0.165,-0.024 0.070,0.071 C-0.024,0.165 -0.024,0.318 0.070,0.412 L3.651,4.000 L0.070,7.588 C-0.024,7.682 -0.024,7.835 0.070,7.929 Z"/>
                                            </svg></span>    <?php echo $v["num"] ;?> </a>
                                    </td>
                                    <td>
                                        ￥<?php echo $v["price"]*$v["num"]?><br>
                                    </td>
                                </tr>
                                <?php  endforeach;  endif; ?>
                                <tr>
                                    <td>
                                       Total :
                                    </td>
                                    <td class="text-danger" style="font-size: 20px;">
                                        ￥<?php echo $orderitem["money"] ;?>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="shop-payment-method pb-30 text-center">
								Address：<?php echo $orderitem["address"] ;?> &nbsp;&nbsp; Name： <?php echo $orderitem["name"] ;?> &nbsp;&nbsp; Mobile: <?php echo $orderitem["mobile"] ;?>
                        </div>
                        
     <div class="well well-lg">		    
    <form action="<?php echo url('shop/alipay/doalipay')?>"  method="post" target="_blank">
    <div class="containter text-center">
                <input type="hidden" name="WIDout_trade_no" id="out_trade_no" value="<?php echo $orderitem["sn"] ;?>">
                <input type="hidden" name="WIDsubject" value="<?php echo $lang["sitename"] ;?> order -<?php echo $orderitem["sn"] ;?>">
                <input type="hidden" name="WIDtotal_fee" value="<?php echo $orderitem["money"] ;?>">
                <input type="hidden" name="WIDbody" value='<?php echo $lang["sitename"] ;?> order -<?php echo $orderitem["sn"] ;?>-<?php echo $orderitem["name"] ;?>-<?php echo $orderitem["mobile"] ;?>-<?php echo $orderitem["address"] ;?>'>
                 <button type="submit" name="button" value="Send" class="btn btn-primary btn-flat"><i class="  icon-paper-plane"></i> Alipay payment  </button>
</div>         
	</form>
</div> 
                        
                        
                        
                        
                    </div>
                    <!--ENd of shop your order table -->
                </div>
            </div>
        </div>
    </section>

    <!-- End of Subscription -->  
   <?php include tpl('foot','content'); ?>

    <!-- JS Files -->
    <!-- ==== JQuery 3.3.1 js file==== -->
    <script src="<?php echo TPL;?>static/js/jquery-3.3.1.min.js"></script>
        <!-- ==== Bootstrap js file==== -->
    <script src="<?php echo TPL;?>static/js/bootstrap.bundle.min.js"></script>
    <!-- ==== JQuery Waypoint js file==== -->
    <script src="<?php echo TPL;?>static/js/jquery.waypoints.min.js"></script>
    <!-- ==== Sticky js file==== -->
    <script src="<?php echo TPL;?>static/js/sticky.min.js"></script>
    <!-- ==== Menu  js file==== -->
    <script src="<?php echo TPL;?>static/js/menu.min.js"></script>
    <!-- ==== Scrippt js file==== -->
    <script src="<?php echo TPL;?>static/js/scripts.js?20190123"></script>
    <!-- ==== Custom js file==== -->
    <script src="<?php echo TPL;?>static/js/custom.js"></script>

</body>
</html>