/templates_c/fad1d5e3b8651566439afdcfbb7dce101e72bd08.file.view-payment_detail.tpl.php
PHP | 193 lines | 181 code | 11 blank | 1 comment | 25 complexity | 074a99dca134b13fdf8a13881899bf1b MD5 | raw file
- <?php /* Smarty version Smarty-3.0.7, created on 2015-06-25 11:04:13
- compiled from "/home/www/xfetch/templates/members/view-payment_detail.tpl" */ ?>
- <?php /*%%SmartyHeaderCode:417123750558b92d547c5d1-81749702%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
- $_smarty_tpl->decodeProperties(array (
- 'file_dependency' =>
- array (
- 'fad1d5e3b8651566439afdcfbb7dce101e72bd08' =>
- array (
- 0 => '/home/www/xfetch/templates/members/view-payment_detail.tpl',
- 1 => 1435146151,
- 2 => 'file',
- ),
- ),
- 'nocache_hash' => '417123750558b92d547c5d1-81749702',
- 'function' =>
- array (
- ),
- 'has_nocache_code' => false,
- )); /*/%%SmartyHeaderCode%%*/?>
- <?php if ($_GET['var_msg']!=''){?>
- <script>
- showNotification({type : 'success', message: '<?php echo $_GET['var_msg'];?>
- '});
- </script>
- <?php }?>
- <?php if ($_GET['var_msg_err']!=''){?>
- <script>
- showNotification({type : 'error', message: '<?php echo $_GET['var_msg_err'];?>
- '});
- </script>
- <?php }?>
- <div class="body-inner-part">
- <div class="bradcram"><span><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
- "><?php echo @LBL_HOME;?>
- </a> » <?php echo @LBL_MY_PAYMENT;?>
- </span></div>
- <!-------------------------inner-page----------------->
- <div class="main-inner-page">
- <h2><?php echo @LBL_MY_PAYMENT;?>
- </span></h2>
- <?php $_template = new Smarty_Internal_Template("member_top.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
- echo $_template->getRenderedTemplate();?><?php unset($_template);?>
- <div class="rides-offered">
- <div class="tab-pane">
- <ul>
- <!--<li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
- index.php?file=m-payment_detail&type=available" <?php if ($_GET['type']=='available'){?>class="active"<?php }?>>History of Your Transfer</a></li>
- <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
- 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>-->
- <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
- index.php?file=m-money_detail&pagetype=money&type=available" <?php if ($_GET['pagetype']=='money'){?>class="active"<?php }?>><?php echo @LBL_AS_DRIVER;?>
- </a></li>
- <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
- index.php?file=m-payment_detail&pagetype=payment&type=available" <?php if ($_GET['pagetype']=='payment'){?>class="active"<?php }?>><?php echo @LBL_AS_BOOKER;?>
- </a></li>
- </ul>
- <select name="type[]" onChange="return travelerChange(this.value);" style="float: right; border: 1px solid #CCCCCC; margin:0 4px; padding: 7px;">
- <option value="available" <?php if ($_GET['type']=='available'){?>selected<?php }?> > <?php echo @LBL_PAYMENTS_HISTORY;?>
- </option>
- <option value="refund" <?php if ($_GET['type']=='refund'){?>selected<?php }?>><?php echo @LBL_REFUNDS;?>
- </option>
- </select>
- </div>
- </div>
- <div class="">
- <form name="frmbooking" id="frmbooking" method="post" action="">
- <input type="hidden" id="type" name="type" value="<?php echo $_smarty_tpl->getVariable('type')->value;?>
- ">
- <input type="hidden" id="action" name="action" value="send_equest">
- <input type="hidden" name="eTransRequest" id="eTransRequest" value="">
- <input type="hidden" name="iBookingId" id="iBookingId" value="">
- <div class="rating-received2">
- <div class="rating-given-right-part"style="min-height:135px">
- <table width="100%" border="0" cellpadding="10" cellspacing="0" class="credit-p">
- <?php if (count($_smarty_tpl->getVariable('db_money')->value)>0){?>
- <tr style="background:#efefef;">
- <th width="1%" align="center" class="credits"><?php echo @LBL_BOOKING_NO;?>
- #</th>
- <th width="15%" align="center" class="credits"><?php echo @LBL_BOOKING_DATE;?>
- </th>
- <th width="25%" align="center" class="credits"><?php echo @LBL_DETAILS;?>
- </th>
- <th width="10%" align="center" class="credits"><?php echo @LBL_AMOUNT;?>
- </th>
- <th width="30%" align="center" ><?php echo @LBL_STATUS1;?>
- </th>
- </tr>
- <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']);
- $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['name'] = 'rec1';
- $_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);
- $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['show'] = true;
- $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['loop'];
- $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['step'] = 1;
- $_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;
- if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['show']) {
- $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['loop'];
- if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['total'] == 0)
- $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['show'] = false;
- } else
- $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['total'] = 0;
- if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['show']):
- 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;
- $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['total'];
- $_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']++):
- $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['iteration'];
- $_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'];
- $_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'];
- $_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec1']['iteration'] == 1);
- $_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']);
- ?>
- <tr <?php echo $_smarty_tpl->getVariable('db_money')->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec1']['index']]['trstyle'];?>
- >
- <td align="center" class="credits"><?php echo $_smarty_tpl->getVariable('db_money')->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec1']['index']]['vBookingNo'];?>
- </td>
- <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);?>
- </td>
- <td align="center" class="credits"><?php echo $_smarty_tpl->getVariable('db_money')->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec1']['index']]['vMainRidePlaceDetails'];?>
- </td>
- <td align="center" class="credits"><?php echo $_smarty_tpl->getVariable('db_money')->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec1']['index']]['fAmount'];?>
- </td>
- <td align="center" class="credits"><?php echo @LBL_PAID;?>
- </td>
- </tr>
- <?php endfor; endif; ?>
- <tr style="background:#efefef;">
- <td colspan="4" style="text-align:right;padding-right:5px;"><b><?php echo @LBL_TOT_PAID;?>
- :</b></td>
- <td align="center"><?php echo $_smarty_tpl->getVariable('total')->value;?>
- </td>
- </tr>
- <?php }else{ ?>
- <tr>
- <td colspan="5">
- <div class="NoRating" style="text-align:center;color:red;width:100%;">No Records Found.</div>
- </td>
- </tr>
- <?php }?>
- </table>
- </div>
- </div>
- </form>
- </div>
- </div>
- <!-------------------------inner-page end----------------->
- <div style="clear:both;"></div>
- </div>
- <script>
- function getCheckCount(frmbooking)
- {
- var x=0;
- for(i=0;i < frmbooking.elements.length;i++)
- { if ( frmbooking.elements[i].checked == true)
- {x++;}
- }
- return x;
- }
- function check_skills_edit(){
- y = getCheckCount(document.frmbooking);
- if(y>0)
- {
- jQuery("#frmbooking").validationEngine('attach',{scroll: false});
- resp = jQuery("#frmbooking").validationEngine('validate');
- if(resp == true){
- $("#eTransRequest").val('Yes');
- document.frmbooking.submit();
- }else{
- return false;
- }
- }
- else{
- alert("Select Ride for send transfer request")
- return false;
- }
- }
- function travelerChange(type)
- {
-
- if(type=='available')
- window.location="index.php?file=m-payment_detail&type=available&pagetype=payment";
- if(type=='refund')
- window.location="index.php?file=m-payment_detail&type=refund&pagetype=payment";
- }
- </script>