pay.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  5. <meta charset="utf-8" />
  6. <title>校本课程平台</title>
  7. <meta name="description" content="" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
  9. <!-- bootstrap & fontawesome -->
  10. <link rel="stylesheet" href="../css/bootstrap.min.css" />
  11. <link rel="stylesheet" href="../css/font-awesome/4.2.0/css/font-awesome.min.css" />
  12. <!-- page specific plugin styles -->
  13. <!-- text fonts -->
  14. <link rel="stylesheet" href="../css/fonts/fonts.googleapis.com.css" />
  15. <!-- ace styles -->
  16. <link rel="stylesheet" href="../css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
  17. <!--[if lte IE 9]>
  18. <link rel="stylesheet" href="assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
  19. <![endif]-->
  20. <link rel="stylesheet" href="../css/style.css" />
  21. <!--[if lte IE 9]>
  22. <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
  23. <![endif]-->
  24. <!-- inline styles related to this page -->
  25. <!-- ace settings handler -->
  26. <script src="../js/ace-extra.min.js"></script>
  27. <script src="../js/jquery-2.2.2.min.js"></script>
  28. <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
  29. <script src="../js/layer/layer.js"></script>
  30. <!--[if lte IE 8]>
  31. <script src="assets/js/html5shiv.min.js"></script>
  32. <script src="assets/js/respond.min.js"></script>
  33. <![endif]-->
  34. <script type="text/javascript">
  35. jQuery(document).ready(function(){
  36. jQuery(window.parent.document).find("#iframe").ready(function(){
  37. jQuery(window.parent.document).find(".menuLi, .menuTop").click(function(){
  38. var url = jQuery(this).attr("url");
  39. window.parent.location.href = "xxx"+url;
  40. });
  41. window.parent.document.url = window.location.href;
  42. var main = jQuery(window.parent.document).find("#iframe");
  43. var thisheight = jQuery("body").height()+30;
  44. main.height(thisheight);
  45. });
  46. jQuery(window.parent.document).find("#iframe").load(function(){
  47. var main = jQuery(window.parent.document).find("#iframe");
  48. var thisheight = jQuery("body").height()+30;
  49. main.height(thisheight);
  50. });
  51. });
  52. </script>
  53. <style type="text/css">
  54. .errorMessage{color:red;margin-left:10px;}
  55. .breadcrumb>li{padding:3px 5px;color:#fff; background:#6fb3e0;}
  56. .breadcrumb>li>a{color:#fff!important;}
  57. .li_backgrond_color{background-color: #00CC99!important;}
  58. .li_backgrond_color>a{color:#fff!important;}
  59. .breadcrumb>li+li:before{display:none;}
  60. </style>
  61. </head>
  62. <body class="no-skin">
  63. <div class="shade"></div>
  64. <div class="main-container" id="main-container">
  65. <script type="text/javascript">
  66. try{ace.settings.check('main-container' , 'fixed')}catch(e){}
  67. </script>
  68. <div class="main-content">
  69. <form action="<?php echo Yii::app()->createUrl('order/dopay')?>" method="post" id="orderAdd" enctype="multipart/form-data">
  70. <div class="">
  71. <ul class="table-hide">
  72. <li class="row marginNo table-hide-li pt20">
  73. <div class="textRight lineHeight30 fl" style="width:160px"><span class="vitalColor">*&nbsp;</span><span class="mt15">剩余未付款:<span id="shengyu"><?php $money=$order_classify['total_price']-$paymoneys;if($money>=0){echo $money;}else{echo 0;} ?></span>&nbsp;</div>
  74. <div class="col-xs-9 paddingNo fl">
  75. <input type="hidden" value="<?php echo $order_classify['total_price']-$paymoneys ?>" id="nowshengyu">
  76. </div>
  77. </li>
  78. <li class="row marginNo table-hide-li pt20">
  79. <div class="textRight lineHeight30 fl" style="width:160px"><span class="vitalColor">*&nbsp;</span><span class="mt15">付款账户:</span>&nbsp;</div>
  80. <div class="col-xs-9 paddingNo fl">
  81. <input class="students-search" type="text" placeholder="" id="pay_account" name="pay_account" style="width:240px">
  82. </div>
  83. </li>
  84. <li class="row marginNo table-hide-li pt20">
  85. <div class="textRight lineHeight30 fl" style="width:160px"><span class="vitalColor">*&nbsp;</span><span class="mt15">金额:</span>&nbsp;</div>
  86. <div class="col-xs-9 paddingNo fl">
  87. <input class="students-search" type="text" placeholder="" id="pay_money" name="pay_money" onkeyup="this.value=this.value.replace(/[^\d.]/g,'');var num=$('#nowshengyu').val()-this.value;if(num>=0){$('#shengyu').html(num.toFixed(2))}else{$('#shengyu').html(0)}" style="width:240px">
  88. </div>
  89. </li>
  90. <li class="row marginNo table-hide-li pt20">
  91. <div class="textRight lineHeight30 fl" style="width:160px"><span class="vitalColor">*&nbsp;</span><span class="mt15">打款时间:</span>&nbsp;</div>
  92. <div class="col-xs-9 paddingNo fl">
  93. <input class="datainp" id="datebut" value="" readonly name="pay_time" id="pay_time" type="text" placeholder="请选择" onClick="jeDate({dateCell:'#datebut',isTime:true,format:'YYYY-MM-DD hh:mm:ss'})" >
  94. </div>
  95. </li>
  96. <li class="row marginNo table-hide-li pt20">
  97. <div class="textRight lineHeight30 fl" style="width:160px"><span class="vitalColor">*&nbsp;</span><span class="mt15">凭证:</span>&nbsp;</div>
  98. <div class="col-xs-9 paddingNo fl">
  99. <input type="file" name="pic" id="pic" value="">
  100. </div>
  101. </li>
  102. <li class="row marginNo table-hide-li pt20">
  103. <div class="textRight lineHeight30 fl" style="width:160px"><span class="vitalColor"></span><span class="mt15">下次打款时间:</span>&nbsp;</div>
  104. <div class="col-xs-9 paddingNo fl">
  105. <input class="datainp" id="datebut1" value="" readonly name="next_pay_time" id="next_pay_time" type="text" placeholder="请选择" onClick="jeDate({dateCell:'#datebut1',isTime:true,format:'YYYY-MM-DD hh:mm:ss'})" >
  106. </div>
  107. </li>
  108. </ul>
  109. <div class="create-orders">
  110. <span id="goods_price" style="display: none"></span>
  111. <span id="t_num" style="display: none"></span>
  112. <input type="hidden" name="order_id" value="<?php echo $order_id ?>">
  113. <input type="button" name="my_submit" id="my_submit" class="btn btn-success btn-sm" value="提交审核" style="width:100px">
  114. <input type="button" class="btn btn-success btn-sm" value="返回" onclick="location.href=document.referrer;" style="width:100px">
  115. </div>
  116. </div><!-- /.main-content -->
  117. </form>
  118. </div><!-- /.main-container -->
  119. <div class="ttd dn">
  120. <div class="s-state clearfix posirela">
  121. <div class="hint_size clearfix">
  122. <span class="fl ml15">错误信息</span>
  123. </div>
  124. <div class="mistake_character">
  125. <p class="ml15" id="err_msg"></p>
  126. <div class="clearfix" style="width:180px;margin:0px auto;text-align:center">
  127. <p class="mt20"><button class="roger shut">确定</button></p>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. <script type="text/javascript" src="/js/times/jedate.js"></script>
  133. <script>
  134. $(function(){
  135. $(".ttd").hide();
  136. var tp = $(".ttd");
  137. $('#my_submit').click(function(){
  138. var pay_account = $('#pay_account').val();
  139. var pay_money = $('#pay_money').val();
  140. var datebut = $('#datebut').val();
  141. var pic = $('#pic').val();
  142. if(!pay_account)
  143. {
  144. $('#err_msg').html('支付帐号不能为空');
  145. tp.fadeIn();
  146. $("body").css({height : lq+"px",overflow:"hidden"});
  147. return;
  148. }if(!pay_money)
  149. {
  150. $('#err_msg').html('支付金额不能为空');
  151. tp.fadeIn();
  152. $("body").css({height : lq+"px",overflow:"hidden"});
  153. return;
  154. }else
  155. {
  156. var j = /(^[-+]?[1-9]\d*(\.\d{1,2})?$)|(^[-+]?[0]{1}(\.\d{1,2})?$)/;
  157. if(!j.test(pay_money)){
  158. $('#err_msg').html('只能为数字或两位小数');
  159. tp.fadeIn();
  160. $("body").css({height : lq+"px",overflow:"hidden"});
  161. return;
  162. }
  163. if(parseFloat(pay_money)<=0){
  164. $('#err_msg').html('金额不能为负数或为零');
  165. tp.fadeIn();
  166. $("body").css({height : lq+"px",overflow:"hidden"});
  167. return;
  168. }
  169. }
  170. if(!datebut)
  171. {
  172. $('#err_msg').html('支付时间不能为空');
  173. tp.fadeIn();
  174. $("body").css({height : lq+"px",overflow:"hidden"});
  175. return;
  176. }if(!pic)
  177. {
  178. $('#err_msg').html('支付凭证必须上传');
  179. tp.fadeIn();
  180. $("body").css({height : lq+"px",overflow:"hidden"});
  181. return;
  182. }
  183. $("#orderAdd").submit();
  184. $("#my_submit").attr("disabled",true)
  185. })
  186. $(".shut").click(function(){
  187. $(this).parents(".ttd").fadeOut();
  188. $("body").css({height :"100%",overflow:"auto"});
  189. return false;
  190. });
  191. });
  192. </script>
  193. <!-- basic scripts -->
  194. <!--[if !IE]> -->
  195. <!--<script src="/js/jquery.2.1.1.min.js"></script>-->
  196. <!-- <![endif]-->
  197. <!--[if IE]>
  198. <script src="assets/js/jquery.1.11.1.min.js"></script>
  199. <![endif]-->
  200. <!--[if !IE]> -->
  201. <script type="text/javascript">
  202. window.jQuery || document.write("<script src='../js/jquery.min.js'>"+"<"+"/script>");
  203. </script>
  204. <!-- <![endif]-->
  205. <!--[if IE]>
  206. <script type="text/javascript">
  207. window.jQuery || document.write("<script src='assets/js/jquery1x.min.js'>"+"<"+"/script>");
  208. </script>
  209. <![endif]-->
  210. <script type="text/javascript">
  211. if('ontouchstart' in document.documentElement) document.write("<script src='../js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
  212. </script>
  213. <script src="../js/bootstrap.min.js"></script>
  214. <!-- page specific plugin scripts -->
  215. <!-- ace scripts -->
  216. <script src="../js/ace-elements.min.js"></script>
  217. <script src="../js/ace.min.js"></script>
  218. <!-- 学校管理 js -->
  219. <script src="../js/school.management.js"></script>
  220. <script src="../js/xsgl.js"></script>
  221. <!-- inline scripts related to this page -->
  222. </body>
  223. </html>