info.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. <style type="text/css">
  2. *{margin:0;padding:0;list-style: none;font-style: normal;font-weight: normal;color: #333;font-family: "Microsoft YaHei"}
  3. input{outline: none;}
  4. .fl{float: left;}
  5. .fr{float: right;}
  6. .clearfix:after{content: '';display: block;visibility: hidden;height: 0;clear: both;}
  7. form{padding-left: 20px;}
  8. .steps-choose h3{font-size: 20px;line-height: 40px;font-size: 16px; border-bottom: 1px solid #ccc;}
  9. .steps-choose table{margin-left: 75px;}
  10. .steps-choose .table-hide{margin-top: 20px; width: 80%;font-size: 14px;display: none;}
  11. .steps-choose.show .table-hide{display: table;}
  12. .steps-choose table em{margin-right:5px;color: #f00;}
  13. .steps-choose table th{text-align: right;width:15%;height: 30px;}
  14. .steps-choose .student-counts{/*height: 300px;*//*border-collapse:collapse;*/}
  15. .student-counts thead{background-color: #f5f5f5;}
  16. .student-counts td,.student-counts th{height: 40px; text-align: center!important;border-collapse:collapse;}
  17. .step-two div{margin-right:60px;line-height: 26px; text-align: left;}
  18. .student-counts div{margin-left: 30px;}
  19. .step-three span{color:#2e6dad; }
  20. .student-counts .pay-time{height: 50px;background: #ddd;}
  21. .hot{color: #f40;font-size: 18px;}
  22. .payment img{max-height: 400px;}
  23. .pt10{padding-top: 10px}
  24. .font16{font-size: 16px !important;font-weight:bold}
  25. .font14{font-size: 14px !important;font-weight:bold}
  26. .addLine td{border: 1px solid #ccc;padding:10px 0px;}
  27. .d-state{width: 100%;border:1px solid #009900;margin:10px 0px;padding:15px 10px;background: #e6fef6}
  28. .d-state-no{color: red}
  29. .d-state-yes{color: #009900}
  30. .d-state-stay{color: #ff9900}
  31. .divisionLine{border-top:1px solid #e4e4e4;width: 100%;margin:10px 0px;}
  32. /*.stepBar{position: relative;margin: 100px auto; width: 1000px;}*/
  33. .stepBar ol{width: 1200px;}
  34. .detail-stepbar li{width: 210px;text-align: center;line-height: 34px;}
  35. .step-no{height: 34px;background: url(/images/bar.png) no-repeat 50% -102px;}
  36. .step-first .step-no{background-position: 50% -34px;}
  37. .step-last .step-no{background-position: 50% -136px;}
  38. .step-done .step-no{background-position: 50% -170px;}
  39. .step-first .step-done .step-no{background-position: 50% -204px;}
  40. .step-last .step-done .step-no{background-position: 50% -68px;}
  41. .create-orders{margin-top:30px;padding-left: 5%;}
  42. .create-orders input{padding:5px 10px;border:2px solid #2e6dad;color:#fff;background:#2e6dad;border-radius: 5px;}
  43. .create-orders .cancel-btn{margin-right:10px; color:#333;background:#fff;}
  44. input[readonly].datainp{background-color: #fff!important;color: #333;}
  45. .steps-choose.show .table-hide{display: table!important;}
  46. .notGo.notGo-status{padding:0;box-shadow: none;}
  47. .ml75{margin-left: 75px!important; border:0!important;margin-top:10px!important;}
  48. .hotred{color: #f40;}
  49. *{
  50. margin: 0;
  51. padding: 0;
  52. }
  53. .list-con{
  54. background: #E5FFF7;
  55. border: 1px solid #009966;
  56. width: 1000px;
  57. margin-left: 100px;
  58. /*margin: 10px auto;*/
  59. }
  60. .list-top{
  61. border-bottom: 1px solid #009966;
  62. line-height: 44px;
  63. text-indent: 20px;
  64. }
  65. .back-status{
  66. color: #FD9933;
  67. margin-right: 100px;
  68. }
  69. .list-detail{
  70. padding: 10px;
  71. line-height: 40px;
  72. }
  73. .list-detail ul li{
  74. display: inline-block;
  75. list-style: none;
  76. margin-left: 20px;
  77. width: 30%;
  78. }
  79. .red-num{
  80. color: #FE0000;
  81. display: inline-block;
  82. width: 80px;
  83. margin-right: 16px;
  84. }
  85. </style>
  86. <script src="/js/school.management.js"></script>
  87. <script type="text/javascript" src="/js/times/jedate.js"></script>
  88. <link rel="stylesheet" href="/css/style.css" />
  89. <ul class="clearfix main-content-inner-ul">
  90. <?php if(Yii::app()->session['coachInfo']['leader']==1){?>
  91. <li class="pull-left">
  92. <button onclick='location.href="<?php echo $this->createUrl("order/index");?>?type=ordinary"' class="button button_normal button_group button_arrow <?php if($ordertype=="ordinary"){echo 'button_active';} ?>" data-button="red">普通订单</button>
  93. <img src="/images/line.jpg" style="height:45px;" />
  94. </li>
  95. <li class="pull-left">
  96. <button onclick='location.href="<?php echo $this->createUrl("order/index");?>?type=test"' class="button button_normal button_group button_arrow <?php if($ordertype=="test"){echo 'button_active';} ?>" data-button="red">试用订单</button>
  97. <img src="/images/line.jpg" style="height:45px;" />
  98. </li>
  99. <li class="pull-left">
  100. <button onclick='location.href="<?php echo $this->createUrl("order/index");?>?type=all"' class="button button_normal button_group button_arrow <?php if($ordertype=="all"){echo 'button_active';} ?>" data-button="red">统订订单</button>
  101. <img src="/images/line.jpg" style="height:45px;" />
  102. </li>
  103. <li class="pull-left">
  104. <button onclick='location.href="<?php echo $this->createUrl("order/student");?>"' class="button button_normal button_group button_arrow " data-button="red">使用学生名单</button>
  105. <img src="/images/line.jpg" style="height:45px;" />
  106. </li>
  107. <?php }?>
  108. </ul>
  109. <form action="" style="padding-right: 20px;">
  110. <div class="step-one steps-choose show">
  111. <div class="d-state">
  112. <div class="font14">订单状态:
  113. <?php
  114. if($order['chargeback']=="2"){
  115. echo "<span class='d-state-no font14'>已退订</span></div>";
  116. }else if($order['status']==0){
  117. echo "<span class='d-state-no font14' style='color:orange'>待审核</span></div>";
  118. }else if($order['status']==1){
  119. echo "<span class='d-state-no font14' style='color:green'>审核通过</span></div>";
  120. }else if($order['status']==2){
  121. echo "<span class='d-state-no font14'>审核驳回</span></div>";
  122. }else if($order['status']==3){
  123. echo "<span class='d-state-no font14'>订单取消</span></div>";
  124. }
  125. ?>
  126. <?php if($order['status']==2){ ?>
  127. <div class="divisionLine"></div>
  128. <div>*不通过原因:<?php echo $orderaudit['remark'] ?></div>
  129. <?php } ?>
  130. </div>
  131. <!-- <h3 class="font15">订单状态:</h3> -->
  132. <div style="margin:0px;" class="row">
  133. <div>
  134. <!-- PAGE CONTENT ENDS -->
  135. </div>
  136. </div>
  137. </div>
  138. <div class="step-two steps-choose show">
  139. <h3 class="font16">订单详情:</h3>
  140. <table class="table-hide">
  141. <tr>
  142. <td>订单编号:<?php echo $order->order_no?></td>
  143. <td>下单时间:<?php echo $order->create_time?></td>
  144. </tr>
  145. <tr>
  146. <td class="pt10">学校:<?php echo $order->school_name?></td>
  147. <?php if($order->type==1){ ?>
  148. <td class="pt10">所属学管:<?php echo $order->create_user?></td>
  149. <?php }else{ ?>
  150. <td class="pt10">所属家长:<?php echo $order->create_user?></td>
  151. <?php } ?>
  152. </tr>
  153. </table>
  154. <table class="student-counts addLine table-hide">
  155. <thead>
  156. <tr>
  157. <td>商品规格</td>
  158. <td>单价(元)</td>
  159. <?php if($ordertype!="test"){ ?>
  160. <td>数量</td>
  161. <td>订单总金额</td>
  162. <?php } ?>
  163. </tr>
  164. </thead>
  165. <tbody>
  166. <tr>
  167. <td>
  168. <div>商品名称:<?php echo $goods->goods_name?></div>
  169. <div>适用学科:<?php echo $goods->subject_names?></div>
  170. <?php if($goods->classify==0){ ?>
  171. <?php if($goods_se){ ?>
  172. <div><span style="float: left">适用学期:</span><span style=" float: left; width: 80%; line-height: 30px"><?php $str='';if(isset($goods_se) && !empty($goods_se)){ foreach($goods_se as $v){ $str.=$v->name.',';} echo substr($str,0,-1);}?></span></div>
  173. <?php } ?>
  174. <div style="float: left">适用年级:<?php switch($goods->grade){
  175. case -1 :
  176. echo '全年级';
  177. break;
  178. case 1:
  179. echo '高一';
  180. break;
  181. case 2:
  182. echo '高二';
  183. break;
  184. case 3:
  185. echo '高三';
  186. break;
  187. }?></div>
  188. <?php }else{ ?>
  189. <div><span style="float: left">有效期:</span><span style=" float: left; width: 80%; line-height: 30px"><?php echo $goods->effective_date ?>天</span></div>
  190. <?php } ?>
  191. </td>
  192. <td> <span class="hot"><?php echo $goods->price?></span></td>
  193. <?php if($ordertype!="test"){ ?>
  194. <td><?php echo $order->quantity?></td>
  195. <td><span class="hot">¥<?php echo $order->total_price?></span></td>
  196. <?php } ?>
  197. </tr>
  198. <?php if($ordertype!="test"){ ?>
  199. <?php if(!is_array($orderpay)&&$orderpay){?>
  200. <tr>
  201. <td colspan="4" class="pay-time">
  202. <div class="fl">付款账户:<?php echo $orderpay->pay_account?$orderpay->pay_account:"无" ?></div>
  203. <div class="fl">打款时间:<?php echo $orderpay->pay_time?$orderpay->pay_time:"无" ?></div>
  204. <div class="fr">实付款:<span class="hot">¥<?php echo $orderpay->pay_money?></span></div>
  205. <?php if($order->type==1&&$orderpay->pay_cert!=""){
  206. ?>
  207. <div class="fl"><a href="javascript:void(0);" class="dowClick">打款凭证</a></div>
  208. <?php } ?>
  209. </td>
  210. </tr>
  211. <?php }else{
  212. foreach($orderpay as $v){
  213. ?>
  214. <tr>
  215. <td colspan="4" class="pay-time">
  216. <div class="fl">付款账户:<?php echo $v['pay_account']?$v['pay_account']:"无" ?></div>
  217. <div class="fl">打款时间:<?php echo $v['pay_time']?$v['pay_time']:"无" ?></div>
  218. <div class="fl">状态:<?php
  219. if($v['status']==0){
  220. echo "审核中";
  221. }else if($v['status']==1){
  222. echo "审核通过";
  223. }else if($v['status']==2){
  224. echo "审核驳回";
  225. }else{
  226. echo "订单取消";
  227. }
  228. ?></div>
  229. <div class="fr">实付款:<span class="hot">¥<?php echo $v['pay_money']?$v['pay_money']:"无" ?></span></div>
  230. <?php if($order->type==1&&$v['pay_cert']!=""){
  231. ?>
  232. <div class="fl"><a href="javascript:void(0);" onclick="showcert('<?php echo Yii::app()->params['fastdfs_images_url']."/".$v['pay_cert'] ?>')">打款凭证</a></div>
  233. <?php } ?>
  234. </td>
  235. </tr>
  236. <?php }
  237. }?>
  238. <?php } ?>
  239. </tbody>
  240. </table>
  241. </div>
  242. <div class="step-two steps-choose show">
  243. <h3 class="font16">班级明细:</h3>
  244. <div class="table-hide" style="margin-top:15px;width:100%;">
  245. <table class="student-counts table-hide" style="margin-left: 0">
  246. <!--<tr>-->
  247. <?php
  248. foreach($classes as $k=>$v){ ?>
  249. <?php if((($k+1)%5==1)){echo "<tr>";} ?>
  250. <td class="<?php echo $k+1 ?>">
  251. <a href="<?php echo Yii::app()->createUrl('studentinfo/classstu',array("cid"=>$v['class_id'],"orderid"=>$order_id))?>"><?php echo $v['class_name'] ?>:<?php echo $v['stunum'] ?>人</a>
  252. </td>
  253. <?php if((($k+1)%5==0)){echo "</tr>";} ?>
  254. <?php } ?>
  255. <!--</tr>-->
  256. </table>
  257. <table style="margin-left:0;text-align:right;width:100%" class="table-hide">
  258. <tr>
  259. <td>统订班级:<span class="hot"><?php echo count($classes); ?></span>
  260. <?php if($ordertype!="test"){ ?>
  261. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;学生数:<span class="hot"><?php echo $stutotal; ?></span>
  262. <?php } ?>
  263. </td>
  264. </tr>
  265. </table>
  266. <!-- <ul class="table-hide">
  267. <li class="clearfix mt10">
  268. <div class="fl mr30"></div>
  269. <div class="fl mr30"></div>
  270. </li>
  271. </ul> -->
  272. <!-- <ul class="selectedTotal">
  273. <li class="clearfix"><div class="fl">已选班级:10</div><div class="fl">已选学生数:500</div></li>
  274. </ul> -->
  275. </div>
  276. </div>
  277. <?php ///
  278. $k=0;
  279. foreach($back_order as $v){
  280. if($k>0){
  281. ?>
  282. <div class="step-two steps-choose">
  283. <h3 class="font16"><?php echo "第".(count($back_order)-$k)."次退单" ?>:</h3>
  284. <div class="list-con table-hide">
  285. <div class="list-top">
  286. <span class="">本次退订申请:<span class="back-status"><?php if($v['status']==0) echo "待审核";if($v['status']==1) echo "审核通过";if($v['status']==2) echo "审核不通过"; ?></span></span>
  287. <span class="back-times">申请退订时间:<?php echo $v['create_time'] ?></span>
  288. <?php
  289. if($v['status']==1){?>
  290. <span class="back-times">审核通过时间:<?php echo $v['apply_time'] ?></span>
  291. <?php }?>
  292. </div>
  293. <div class="list-detail">
  294. <p class="list-tit-msg">退订学生明细:</p>
  295. <ul>
  296. <?php
  297. $stusum=0;
  298. foreach($v['class'] as $cv){ ?>
  299. <li><a href="<?php echo Yii::app()->createUrl('studentinfo/classstu',array("cid"=>$cv['clazz_id'],"orderid"=>$v['id']))?>"><?php echo $cv['clazz_name'] ?>:<?php echo $cv['stunum'];$stusum+=$cv['stunum']; ?>人</a></li>
  300. <?php } ?>
  301. </ul>
  302. <div class="sum-num-detail">
  303. 有退订的班级:<span class="red-num"><?php echo count($v['class']) ?></span>
  304. 学生数:<span class="red-num"><?php echo $stusum ?></span>
  305. 应退款:<span class="red-num">¥<?php echo $v['total_price'] ?></span>
  306. 实退款:<span class="red-num">¥<?php echo $v['money'] ?></span>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. <?php }else{ ?>
  312. <div class="list-con">
  313. <div class="list-top">
  314. <span class="">本次退订申请:<span class="back-status"><?php if($v['status']==0) echo "待审核";if($v['status']==1) echo "审核通过";if($v['status']==2) echo "审核不通过"; ?></span></span>
  315. <span class="back-times">申请退订时间:<?php echo $v['create_time'] ?></span>&nbsp;&nbsp;
  316. <?php
  317. if($v['status']==1){?>
  318. <span class="back-times">审核通过时间:<?php echo $v['apply_time'] ?></span>
  319. <?php }if($v['status']==2){?>
  320. <span class="back-times">审核驳回时间:<?php echo $v['apply_time'] ?></span>
  321. <?php }?>
  322. </div>
  323. <div class="list-detail">
  324. <p class="list-tit-msg">退订学生明细:</p>
  325. <ul>
  326. <?php
  327. $stusum=0;
  328. foreach($v['class'] as $cv){ ?>
  329. <li><a href="<?php echo Yii::app()->createUrl('studentinfo/classstu',array("cid"=>$cv['clazz_id'],"orderid"=>$v['id']))?>"><?php echo $cv['clazz_name'] ?>:<?php echo $cv['stunum'];$stusum+=$cv['stunum']; ?>人</a></li>
  330. <?php
  331. }
  332. ?>
  333. </ul>
  334. <div class="sum-num-detail">
  335. 有退订的班级:<span class="red-num"><?php echo count($v['class']) ?></span>
  336. 学生数:<span class="red-num"><?php echo $stusum ?></span>
  337. 应退款:<span class="red-num">¥<?php echo $v['total_price'] ?></span>
  338. 实退款:<span class="red-num">¥<?php echo $v['money'] ?></span>
  339. </div>
  340. <?php if($v['status']==2){ ?>
  341. <input type="button" value="重新申请" onclick="location.href='<?php echo $this->createUrl("order/EditOrderBack",array("order_id"=>$v['id'],"old_order_id"=>$v['original_order_id'],"type"=>$ordertype));?>'" class="btn btn-success btn-sm ml75" style="width:90px;border-radius:0;">
  342. <?php } ?>
  343. </div>
  344. </div>
  345. <?php }
  346. $k++;
  347. }?>
  348. <?php if($ordertype=="test"||$goods->classify==1){ ?>
  349. <div class="step-two steps-choose show">
  350. <h3 class="font16">使用时间:</h3>
  351. <div class="table-hide" style="margin-top: 15px;">
  352. <table class="table-hide">
  353. <tr>
  354. <td>开始时间:<?php $time= explode(" ", $order->trial_begin_time);echo $time[0]; ?></td>
  355. <td>结束时间:
  356. <?php if($order->trial_end_time&&$order->status=="1"&&$order->chargeback!="2"){
  357. $time= explode(" ", $order->trial_end_time);echo $time[0];
  358. }else if($order->trial_end_time&&$order->status=="1"&&$order->chargeback=="2"){
  359. $time= explode(" ", $apply_time);echo $time[0];
  360. }
  361. ?>
  362. </td>
  363. </tr>
  364. <tr>
  365. <td class="pt10">已使用:
  366. <?php
  367. $starttime=0;
  368. $endtime=0;
  369. if($order->status=="1"){
  370. $starttime=$order->trial_begin_time;
  371. $endtime=$order->trial_end_time;
  372. }if($order->chargeback=="2"){
  373. $starttime=$order->trial_begin_time;
  374. $endtime=$apply_time;
  375. }
  376. $time=time()-strtotime($starttime);//当前时间减去开始时间
  377. $time1=strtotime($endtime)-strtotime($starttime);
  378. if(strtotime($starttime)<time()){//如果开始时间到了
  379. if($time1>0){
  380. if($time>$time1){//如果结束时间已经到了
  381. $hours=$time1%86400;
  382. if($hours/3600-floor($hours/3600)>=0.999){
  383. if((floor($hours/3600)+1)==24){
  384. echo (floor($time1/86400)+1)."天";
  385. }else{
  386. echo floor($time1/86400)."天";
  387. // echo (floor($hours/3600)+1)."小时";
  388. }
  389. }else{
  390. echo floor($time1/86400)."天";
  391. // echo floor($hours/3600)."小时";
  392. }
  393. }else{
  394. $hours=$time%86400;
  395. if($hours/3600-floor($hours/3600)>=0.999){
  396. if((floor($hours/3600)+1)==24){
  397. echo (floor($time/86400)+1)."天";
  398. }else{
  399. echo floor($time/86400)."天";
  400. // echo (floor($hours/3600)+1)."小时";
  401. }
  402. }else{
  403. echo floor($time/86400)."天";
  404. // echo floor($hours/3600)."小时";
  405. }
  406. }
  407. }
  408. }else{
  409. if($time1>0){
  410. echo '未开始';
  411. }
  412. }
  413. ?>
  414. </td>
  415. <td class="pt10">剩余使用时长:<?php
  416. if($order->chargeback=="2"){
  417. echo "0天";
  418. }else if($time1>0){
  419. if(strtotime($starttime)<time()){
  420. if($endtime){
  421. if(strtotime($endtime)>time()){
  422. $time=strtotime($endtime)-time();
  423. $hours=$time%86400;
  424. if($hours/3600-floor($hours/3600)>0){
  425. // if((floor($hours/3600)+1)==24){
  426. echo (floor($time/86400)+1)."天";
  427. // }else{
  428. // echo floor($time/86400)."天";
  429. // echo (floor($hours/3600)+1)."小时";
  430. // }
  431. }else{
  432. echo floor($time/86400)."天";
  433. // echo floor($hours/3600)."小时";
  434. }
  435. }else{
  436. echo "已到期";
  437. }
  438. }else{
  439. echo "未定";
  440. }
  441. }else{
  442. if($endtime){
  443. if(strtotime($endtime)>strtotime($starttime)){
  444. $time=strtotime($endtime)-strtotime($starttime);
  445. $hours=$time%86400;
  446. if($hours/3600-floor($hours/3600)>0){
  447. // if((floor($hours/3600)+1)==24){
  448. echo (floor($time/86400)+1)."天";
  449. // }else{
  450. // echo floor($time/86400)."天";
  451. // echo (floor($hours/3600)+1)."小时";
  452. // }
  453. }else{
  454. echo floor($time/86400)."天";
  455. // echo floor($hours/3600)."小时";
  456. }
  457. }
  458. }else{
  459. echo "未定";
  460. }
  461. }
  462. }
  463. ?></td>
  464. </tr>
  465. </table>
  466. </div>
  467. </div>
  468. <?php } ?>
  469. <input type="hidden" value="<?php echo $order->id?>" id="order_id">
  470. <input type="hidden" value="1" id="pages">
  471. <div class="step-three steps-choose">
  472. <h3 class="font16">操作日志:</h3>
  473. <table class="table-hide">
  474. <tbody >
  475. <?php foreach($log as $v){
  476. ?>
  477. <tr>
  478. <td colspan="2"><?php echo $v->create_time?> - <span><?php echo $v->user_name?></span><?php echo $v->info?></td>
  479. </tr>
  480. <?php
  481. }?>
  482. </tbody>
  483. </table>
  484. </div>
  485. <div>
  486. <input type="button" value="返回" class="btn btn-success btn-sm ml75" id="back" style="width:90px;border-radius:0;">
  487. <?php
  488. if($order['status']==1&&!$is_hava_back&&$ordertype!="test"&&!$is_time_over&&$ishava_stu){
  489. echo '<input type="button" value="申请退订" onclick="location.href=&apos;'.Yii::app()->createUrl('order/back_add',array("order_id"=>$order_id,"type"=>$ordertype)).'&apos;" class="btn btn-success btn-sm ml75 back" style="width:90px;border-radius:0;">';
  490. }
  491. ?>
  492. </div>
  493. <?php if(@$orderpay&&!is_array($orderpay)){ ?>
  494. <div class="ttd dn">
  495. <div class="s-state clearfix posirela" style="background:none;width:40%;">
  496. <div class="mistake_character position-r">
  497. <div class="shut">×</div>
  498. <img src="<?php echo Yii::app()->params['fastdfs_images_url']."/".$orderpay->pay_cert ?>" id="cert" style="width:100%;height:auto" />
  499. </div>
  500. </div>
  501. </div>
  502. <?php }else{ ?>
  503. <div class="ttd dn">
  504. <div class="s-state clearfix posirela" style="background:none;width:40%;">
  505. <div class="mistake_character position-r">
  506. <div class="shut">×</div>
  507. <img src="" id="cert" style="width:100%;height:auto" />
  508. </div>
  509. </div>
  510. </div>
  511. <?php } ?>
  512. </form>
  513. <script>
  514. function showcert(path){
  515. var tp = $(".ttd");
  516. $("#cert").attr("src",path);
  517. tp.fadeIn();
  518. $("body").css({height : lq+"px",overflow:"hidden"});
  519. }
  520. $(function(){
  521. //手风琴效果
  522. $('body').on('click','.steps-choose',function(){
  523. $(this).addClass('show').siblings('.steps-choose').removeClass('show');
  524. });
  525. $('#back').click(function(){
  526. location.href="<?php echo Yii::app()->createUrl('order/index',array("type"=>$ordertype))?>";
  527. });
  528. });
  529. </script>