<?php
use xh\library\url;
?>
	<?php include_once (PATH_VIEW . 'common/header.php');?>
    <!-- START CONTENT -->
      <section id="content">
        
        <!--breadcrumbs start-->
        <div id="breadcrumbs-wrapper">
            <!-- Search for small screen -->
            <div class="header-search-wrapper grey hide-on-large-only">
                <i class="mdi-action-search active"></i>
                <input type="text" name="Search" class="header-search-input z-depth-2" placeholder="Explore Materialize">
            </div>
          <div class="container">
            <div class="row">
              <div class="col s12 m12 l12">
                <h5 class="breadcrumbs-title">接口文档</h5>
                <ol class="breadcrumbs">
                    <li><a href="<?php echo url::s('index/panel/home');?>">仪表盘</a></li>
                    <li><a href="#">文档</a></li>
                    <li class="active">获取订单信息</li>
                </ol>
              </div>
            </div>
          </div>
        </div>
        <!--breadcrumbs end-->
        <!--start container-->
        <div class="container">
          <div class="section">
          
 <p class="caption">获取订单API文档</p>
 
        <!--Striped Table-->
            <div class="divider"></div>
 <div class="divider"></div>
 <p><b style="font-size:14px;">支付宝订单接口URL（商户版<?php echo SYSTEM_VERSION; ?>）：</b><span style="color:green;"><?php echo URL_ROOT; ?>/gateway/pay/automaticAlipay.do</span> </p>
 <div class="divider"></div>
 <p><b style="font-size:14px;">服务版订单接口URL（服务版<?php echo SYSTEM_VERSION; ?>）：</b><span style="color:green;"><?php echo URL_ROOT; ?>/gateway/pay/service.do</span> </p>
            <div id="striped-table">
              
              <div class="row">
             
                <div class="col s12 m12 l12">
                  <table class="striped">
                    <thead>
                      <tr>
                        <th>参数(GET)</th>
                        <th>说明</th>
                        <th>示例</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td>id</td>
                        <td>订单ID、在创建订单时会返回订单ID号、注意，只有json网页类型下才会有返回值</td>
                        <td>10000</td>
                      </tr>
                      <tr>
                        <td>content_type</td>
                        <td>请求过程中返回的网页类型，text或json</td>
                        <td>json</td>
                      </tr>
                     
                      
                    </tbody>
                  </table>
                </div>
              </div>
            </div>

            <!--Hoverable Table-->

 

          </div>


        </div>
        <!--end container-->
        
      </section>
      <!-- END CONTENT -->
      
      
       <!--start container-->
        <div class="container">
          <div class="section">

         

            <div class="divider"></div>

            <!--Input fields-->
            <div id="input-fields">
              <h4 class="header">在线接口调试</h4>
              <div class="row">
            
                <div class="col s12 m12 l12">
                  <div class="row">
                    <form class="col s12" id="ls_url" action="<?php echo URL_ROOT; ?>/gateway/pay/automaticWechat.do" method="get" target="_blank">
                      <div class="row">
        
        		<div  id="input-select">
                  <div class="input-field col s12">
                    <label>接口类型</label>
                    <select onchange="ls(this);">
                      <option value="" disabled>请选择接口</option>
                      <option value="<?php echo URL_ROOT; ?>/gateway/pay/automaticAlipay.do">支付宝商户版：<?php echo URL_ROOT; ?>/gateway/pay/automaticAlipay.do</option>
                      <option value="<?php echo URL_ROOT; ?>/gateway/pay/service.do">服务版（<?php echo SYSTEM_VERSION; ?>）：<?php echo URL_ROOT; ?>/gateway/pay/service.do</option>
                    </select>
                  </div>
                
        		
                  <div class="input-field col s12">
                    <label>content_type</label>
                    <select name="content_type">
                      <option value="" disabled selected>请选择网页类型</option>
                      <option value="text">text</option>
                    </select>
                  </div>
                  </div>
                  
                   <div class="input-field col s12">
                          <input type="text" class="validate" name="id" value="" placeholder="订单ID">
                          <label>id</label>
                        </div>
                  </div>
                  
                     
                      <div class="row">
                        <div class="input-field col s12">
                          <input type="submit" class="btn waves-effect waves-light teal" value="开始测试">
                        </div>
                      </div>
                    
                    </form>
                  </div>
                </div>
              </div>
            </div>
</div></div>
            <div class="divider"></div>

            <!--Prefilling Text Inputs-->
      <script type="text/javascript">



      function ls(obj){
          $('#ls_url').attr('action',$(obj).val());
          }


     
	  </script>
      <?php include_once (PATH_VIEW . 'common/footer.php');?>    
   