payedit.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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/doeditpay')?>" 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 echo $order_classify['total_price']-$paymoneys ?></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" value="<?php echo $pay['pay_account'] ?>" 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" value="<?php echo $pay['pay_money'] ?>" type="text" placeholder="" 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)}" id="pay_money" name="pay_money" 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="<?php echo $pay['pay_time'] ?>" 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="mt15">凭证:</span>&nbsp;</div>
  98. <div class="col-xs-9 paddingNo fl">
  99. <input type="file" name="pic" id="pic" value="<?php echo $pay['pay_cert'] ?>">
  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="<?php echo $pay['next_pay_time'] ?>" 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="id" value="<?php echo $id ?>" >
  113. <input type="hidden" name="orderid" value="<?php echo $pay['order_id'] ?>" >
  114. <input type="button" name="my_submit" id="my_submit" class="btn btn-success btn-sm" value="提交审核" style="width:100px">
  115. <input type="button" class="btn btn-success btn-sm" value="返回" onclick="location.href=document.referrer;" style="width:100px">
  116. </div>
  117. </div><!-- /.main-content -->
  118. </form>
  119. </div><!-- /.main-container -->
  120. <div class="ttd dn">
  121. <div class="s-state clearfix posirela">
  122. <div class="hint_size clearfix">
  123. <span class="fl ml15">错误信息</span>
  124. </div>
  125. <div class="mistake_character">
  126. <p class="ml15" id="err_msg"></p>
  127. <div class="clearfix" style="width:180px;margin:0px auto;text-align:center">
  128. <p class="mt20"><button class="roger shut">确定</button></p>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. <script type="text/javascript" src="/js/times/jedate.js"></script>
  134. <script>
  135. $(function(){
  136. $(".ttd").hide();
  137. var tp = $(".ttd");
  138. $('#my_submit').click(function(){
  139. var pay_account = $('#pay_account').val();
  140. var pay_money = $('#pay_money').val();
  141. var datebut = $('#datebut').val();
  142. var pic = $('#pic').val();
  143. if(!pay_account)
  144. {
  145. $('#err_msg').html('支付帐号不能为空');
  146. tp.fadeIn();
  147. $("body").css({height : lq+"px",overflow:"hidden"});
  148. return;
  149. }if(!pay_money)
  150. {
  151. $('#err_msg').html('支付金额不能为空');
  152. tp.fadeIn();
  153. $("body").css({height : lq+"px",overflow:"hidden"});
  154. return;
  155. }else
  156. {
  157. var j = /(^[-+]?[1-9]\d*(\.\d{1,2})?$)|(^[-+]?[0]{1}(\.\d{1,2})?$)/;
  158. if(!j.test(pay_money)){
  159. $('#err_msg').html('只能为数字或两位小数');
  160. tp.fadeIn();
  161. $("body").css({height : lq+"px",overflow:"hidden"});
  162. return;
  163. }
  164. if(parseFloat(pay_money)<=0){
  165. $('#err_msg').html('金额不能为负数或为零');
  166. tp.fadeIn();
  167. $("body").css({height : lq+"px",overflow:"hidden"});
  168. return;
  169. }
  170. }
  171. if(!datebut)
  172. {
  173. $('#err_msg').html('支付时间不能为空');
  174. tp.fadeIn();
  175. $("body").css({height : lq+"px",overflow:"hidden"});
  176. return;
  177. }
  178. $("#orderAdd").submit();
  179. $("#my_submit").attr("disabled",true)
  180. })
  181. $(".shut").click(function(){
  182. $(this).parents(".ttd").fadeOut();
  183. $("body").css({height :"100%",overflow:"auto"});
  184. return false;
  185. });
  186. });
  187. </script>
  188. <!-- basic scripts -->
  189. <!--[if !IE]> -->
  190. <!--<script src="/js/jquery.2.1.1.min.js"></script>-->
  191. <!-- <![endif]-->
  192. <!--[if IE]>
  193. <script src="assets/js/jquery.1.11.1.min.js"></script>
  194. <![endif]-->
  195. <!--[if !IE]> -->
  196. <script type="text/javascript">
  197. window.jQuery || document.write("<script src='../js/jquery.min.js'>"+"<"+"/script>");
  198. </script>
  199. <!-- <![endif]-->
  200. <!--[if IE]>
  201. <script type="text/javascript">
  202. window.jQuery || document.write("<script src='assets/js/jquery1x.min.js'>"+"<"+"/script>");
  203. </script>
  204. <![endif]-->
  205. <script type="text/javascript">
  206. if('ontouchstart' in document.documentElement) document.write("<script src='../js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
  207. </script>
  208. <script src="../js/bootstrap.min.js"></script>
  209. <!-- page specific plugin scripts -->
  210. <!-- ace scripts -->
  211. <script src="../js/ace-elements.min.js"></script>
  212. <script src="../js/ace.min.js"></script>
  213. <!-- 学校管理 js -->
  214. <script src="../js/school.management.js"></script>
  215. <script src="../js/xsgl.js"></script>
  216. <!-- inline scripts related to this page -->
  217. </body>
  218. </html>