<!DOCTYPE html>
<html lang="zh">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>正在为您跳转到支付页面，请稍候...</title>
  <style>
    body {
      margin: 0;
      padding: 0
    }
    p {
      position: absolute;
      left: 50%;
      top: 50%;
      height: 35px;
      margin: -35px 0 0 -160px;
      padding: 20px;
      font: bold 16px/30px "宋体", Arial;
      text-indent: 40px;
      border: 1px solid #c5d0dc
    }
  </style>
</head>
<body>
<?php
if ($_POST['type'] && $_POST['WIDsubject'] && $_POST['WIDtotal_fee']) {
  include(dirname(dirname(dirname(__FILE__))) . '/zdmsl_dada/conn.php');
  $epay_config['apiurl'] = $payurl;
  $epay_config['pid'] = $payid;
  $epay_config['key'] = $paykey;
  include(dirname(dirname(dirname(__FILE__))) . '/zdmsl_include/pay/lib/EpayCore.class.php');
  $notify_url = $siteurl . 'zdmsl_dada/adfabu.php';
  $return_url = $siteurl . 'zdmsl_dada/adfabu.php';
  $out_trade_no = $_POST['WIDout_trade_no'];
  $type = $_POST['type'];
  $name = $_POST['WIDsubject'];
  $money = $_POST['WIDtotal_fee'];
  $parameter = array("pid" => $epay_config['pid'], "type" => $type, "notify_url" => $notify_url, "return_url" => $return_url, "out_trade_no" => $out_trade_no, "name" => $name, "money" => $money,);
  $epay = new EpayCore($epay_config);
  $html_text = $epay->pagePay($parameter);
  echo $html_text;
}
?>
<p>正在为您跳转到支付页面，请稍候...</p>
</body>
</html>