PageRenderTime 153ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/templates_c/fad1d5e3b8651566439afdcfbb7dce101e72bd08.file.view-payment_detail.tpl.php

https://gitlab.com/zohaibsaleem/shipcliq
PHP | 193 lines | 181 code | 11 blank | 1 comment | 25 complexity | 074a99dca134b13fdf8a13881899bf1b MD5 | raw file
  1. <?php /* Smarty version Smarty-3.0.7, created on 2015-06-25 11:04:13
  2. compiled from "/home/www/xfetch/templates/members/view-payment_detail.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:417123750558b92d547c5d1-81749702%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'fad1d5e3b8651566439afdcfbb7dce101e72bd08' =>
  8. array (
  9. 0 => '/home/www/xfetch/templates/members/view-payment_detail.tpl',
  10. 1 => 1435146151,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '417123750558b92d547c5d1-81749702',
  15. 'function' =>
  16. array (
  17. ),
  18. 'has_nocache_code' => false,
  19. )); /*/%%SmartyHeaderCode%%*/?>
  20. <?php if ($_GET['var_msg']!=''){?>
  21. <script>
  22. showNotification({type : 'success', message: '<?php echo $_GET['var_msg'];?>
  23. '});
  24. </script>
  25. <?php }?>
  26. <?php if ($_GET['var_msg_err']!=''){?>
  27. <script>
  28. showNotification({type : 'error', message: '<?php echo $_GET['var_msg_err'];?>
  29. '});
  30. </script>
  31. <?php }?>
  32. <div class="body-inner-part">
  33. <div class="bradcram"><span><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
  34. "><?php echo @LBL_HOME;?>
  35. </a>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<?php echo @LBL_MY_PAYMENT;?>
  36. </span></div>
  37. <!-------------------------inner-page----------------->
  38. <div class="main-inner-page">
  39. <h2><?php echo @LBL_MY_PAYMENT;?>
  40. </span></h2>
  41. <?php $_template = new Smarty_Internal_Template("member_top.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  42. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  43. <div class="rides-offered">
  44. <div class="tab-pane">
  45. <ul>
  46. <!--<li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
  47. index.php?file=m-payment_detail&type=available" <?php if ($_GET['type']=='available'){?>class="active"<?php }?>>History of Your Transfer</a></li>
  48. <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
  49. index.php?file=m-payment_detail&type=refund" <?php if ($_GET['type']=='refund'){?>class="last active"<?php }else{ ?>class="last"<?php }?>>Your Refund</a></li>-->
  50. <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
  51. index.php?file=m-money_detail&pagetype=money&type=available" <?php if ($_GET['pagetype']=='money'){?>class="active"<?php }?>><?php echo @LBL_AS_DRIVER;?>
  52. </a></li>
  53. <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
  54. index.php?file=m-payment_detail&pagetype=payment&type=available" <?php if ($_GET['pagetype']=='payment'){?>class="active"<?php }?>><?php echo @LBL_AS_BOOKER;?>
  55. </a></li>
  56. </ul>
  57. <select name="type[]" onChange="return travelerChange(this.value);" style="float: right; border: 1px solid #CCCCCC; margin:0 4px; padding: 7px;">
  58. <option value="available" <?php if ($_GET['type']=='available'){?>selected<?php }?> > <?php echo @LBL_PAYMENTS_HISTORY;?>
  59. </option>
  60. <option value="refund" <?php if ($_GET['type']=='refund'){?>selected<?php }?>><?php echo @LBL_REFUNDS;?>
  61. </option>
  62. </select>
  63. </div>
  64. </div>
  65. <div class="">
  66. <form name="frmbooking" id="frmbooking" method="post" action="">
  67. <input type="hidden" id="type" name="type" value="<?php echo $_smarty_tpl->getVariable('type')->value;?>
  68. ">
  69. <input type="hidden" id="action" name="action" value="send_equest">
  70. <input type="hidden" name="eTransRequest" id="eTransRequest" value="">
  71. <input type="hidden" name="iBookingId" id="iBookingId" value="">
  72. <div class="rating-received2">
  73. <div class="rating-given-right-part"style="min-height:135px">
  74. <table width="100%" border="0" cellpadding="10" cellspacing="0" class="credit-p">
  75. <?php if (count($_smarty_tpl->getVariable('db_money')->value)>0){?>
  76. <tr style="background:#efefef;">
  77. <th width="1%" align="center" class="credits"><?php echo @LBL_BOOKING_NO;?>
  78. #</th>
  79. <th width="15%" align="center" class="credits"><?php echo @LBL_BOOKING_DATE;?>
  80. </th>
  81. <th width="25%" align="center" class="credits"><?php echo @LBL_DETAILS;?>
  82. </th>
  83. <th width="10%" align="center" class="credits"><?php echo @LBL_AMOUNT;?>
  84. </th>
  85. <th width="30%" align="center" ><?php echo @LBL_STATUS1;?>
  86. </th>
  87. </tr>
  88. <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']);
  89. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['name'] = 'rec1';
  90. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('db_money')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  91. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['show'] = true;
  92. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['loop'];
  93. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['step'] = 1;
  94. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['loop']-1;
  95. if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['show']) {
  96. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['loop'];
  97. if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['total'] == 0)
  98. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['show'] = false;
  99. } else
  100. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['total'] = 0;
  101. if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['show']):
  102. for ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['iteration'] = 1;
  103. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['total'];
  104. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['iteration']++):
  105. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['iteration'];
  106. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['step'];
  107. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['step'];
  108. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['iteration'] == 1);
  109. $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['total']);
  110. ?>
  111. <tr <?php echo $_smarty_tpl->getVariable('db_money')->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec1']['index']]['trstyle'];?>
  112. >
  113. <td align="center" class="credits"><?php echo $_smarty_tpl->getVariable('db_money')->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec1']['index']]['vBookingNo'];?>
  114. </td>
  115. <td align="center" class="credits"><?php echo $_smarty_tpl->getVariable('generalobj')->value->DateTime($_smarty_tpl->getVariable('db_money')->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec1']['index']]['dBookingDate'],9);?>
  116. </td>
  117. <td align="center" class="credits"><?php echo $_smarty_tpl->getVariable('db_money')->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec1']['index']]['vMainRidePlaceDetails'];?>
  118. </td>
  119. <td align="center" class="credits"><?php echo $_smarty_tpl->getVariable('db_money')->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec1']['index']]['fAmount'];?>
  120. </td>
  121. <td align="center" class="credits"><?php echo @LBL_PAID;?>
  122. </td>
  123. </tr>
  124. <?php endfor; endif; ?>
  125. <tr style="background:#efefef;">
  126. <td colspan="4" style="text-align:right;padding-right:5px;"><b><?php echo @LBL_TOT_PAID;?>
  127. :</b></td>
  128. <td align="center"><?php echo $_smarty_tpl->getVariable('total')->value;?>
  129. </td>
  130. </tr>
  131. <?php }else{ ?>
  132. <tr>
  133. <td colspan="5">
  134. <div class="NoRating" style="text-align:center;color:red;width:100%;">No Records Found.</div>
  135. </td>
  136. </tr>
  137. <?php }?>
  138. </table>
  139. </div>
  140. </div>
  141. </form>
  142. </div>
  143. </div>
  144. <!-------------------------inner-page end----------------->
  145. <div style="clear:both;"></div>
  146. </div>
  147. <script>
  148. function getCheckCount(frmbooking)
  149. {
  150. var x=0;
  151. for(i=0;i < frmbooking.elements.length;i++)
  152. { if ( frmbooking.elements[i].checked == true)
  153. {x++;}
  154. }
  155. return x;
  156. }
  157. function check_skills_edit(){
  158. y = getCheckCount(document.frmbooking);
  159. if(y>0)
  160. {
  161. jQuery("#frmbooking").validationEngine('attach',{scroll: false});
  162. resp = jQuery("#frmbooking").validationEngine('validate');
  163. if(resp == true){
  164. $("#eTransRequest").val('Yes');
  165. document.frmbooking.submit();
  166. }else{
  167. return false;
  168. }
  169. }
  170. else{
  171. alert("Select Ride for send transfer request")
  172. return false;
  173. }
  174. }
  175. function travelerChange(type)
  176. {
  177. if(type=='available')
  178. window.location="index.php?file=m-payment_detail&type=available&pagetype=payment";
  179. if(type=='refund')
  180. window.location="index.php?file=m-payment_detail&type=refund&pagetype=payment";
  181. }
  182. </script>