gwm
This commit is contained in:
parent
246c3b1451
commit
a70eb8a5bd
@ -1288,88 +1288,6 @@ public function view_credit_details($member_id)
|
||||
echo view('credit_points_list.php',$data);
|
||||
echo view('layout/footer');
|
||||
}
|
||||
// public function view_credit_details($member_id)
|
||||
// {
|
||||
|
||||
// $fname = $this->MemberModel->select('name')->where('md5(id)', $member_id )->get()->getRow()->name;
|
||||
// $lname = $this->MemberModel->select('last_name')->where('md5(id)', $member_id )->get()->getRow()->last_name;
|
||||
// $id = $this->MemberModel->select('id')->where('md5(id)', $member_id )->get()->getRow()->id;
|
||||
// $creditsData = $this->creditsModel->where('md5(member_id)',$member_id)->orderBy('id' , 'ASC')->findAll();
|
||||
// $data['credit_data'] = [];
|
||||
// $data['avaiable_credit'] = 0;
|
||||
// $data['country'] = $this->CountryModel->findAll();
|
||||
// foreach ($creditsData as $creditsDataindex => $creditsDataValue)
|
||||
// {
|
||||
// if($creditsDataValue['is_active'] == 1)
|
||||
// {
|
||||
// $data['avaiable_credit'] = $data['avaiable_credit'] + $creditsDataValue['running_balance'];
|
||||
// $creditsDataValue['avaiable_credit'] = $data['avaiable_credit'];
|
||||
// array_push($data['credit_data'] , $creditsDataValue);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $data['avaiable_credit'] = $data['avaiable_credit'];
|
||||
// $creditsDataValue['avaiable_credit'] = 0;
|
||||
// array_push($data['credit_data'] , $creditsDataValue);
|
||||
// }
|
||||
// }
|
||||
|
||||
// // echo view('layout/header',$userdata);
|
||||
// // echo view('credit_points_list.php');
|
||||
// // echo view('layout/footer');
|
||||
|
||||
// $output = '<input id="empName" type="hidden" value="'.$fname.' '.$lname.'"><input id="empId" type="hidden" value="'.$id.'"><h4 style="margin-top: -44px !important;position:absolute;">Member Name : '.$fname.' '.$lname.'</h4><div class="table-responsive">
|
||||
// <table class="table mb-0"><thead class="thead-light"><tr>
|
||||
// <th style="text-align: center;">Order Id</th>
|
||||
// <th style="text-align: center;">Order Date</th>
|
||||
// <th style="text-align: center;">Expiry Date</th>
|
||||
// <th style="text-align: center;">Credit Transactions</th>
|
||||
// <th style="text-align: center;">Credit Balance</th></th>
|
||||
// <th style="text-align: center;">Action</th></tr>
|
||||
// </thead><tbody>';
|
||||
// for( $i = count($data['credit_data']) - 1; $i >= 0 ; $i--) {
|
||||
// $date = new DateTime($data['credit_data'][$i]['created_at']);
|
||||
// $expirydate = new DateTime($data['credit_data'][$i]['expiring_date']);
|
||||
// if($data['credit_data'][$i]['running_balance'] > 0)
|
||||
// {$balance = "+ ".$data['credit_data'][$i]['running_balance'];}else{$balance = "- ".$data['credit_data'][$i]['used_points'];}
|
||||
// // if($data['credit_data'][$i]['is_active'] == 0) $balance = 0;
|
||||
// if($data['credit_data'][$i]['is_active'] == 1)
|
||||
// $output .='<tr>
|
||||
// <td style="text-align: center;">'.$data['credit_data'][$i]['order_id'].'</td>
|
||||
// <td style="text-align: center;">'.$date->format('M d , Y').'</td>
|
||||
// <td style="text-align: center;">'.$expirydate->format('M d , Y').'</td>
|
||||
// <td style="text-align: center;">'.$balance.'</td>
|
||||
// <td class="balance" style="text-align: center;">'.$data['credit_data'][$i]['avaiable_credit'].'</td>
|
||||
// <td style="text-align: center;" title="delete"><i id="'.$data['credit_data'][$i]['id'].'" class="mdi mdi-delete del-balance" style="font-size:20px;"></i><div id="'.$data['credit_data'][$i]['id'].'text" style="display:none;" ><div class="d-flex"><input type="text" id="'.$data['credit_data'][$i]['id'].'right" class="del-balance-confirmation form-control"> <i class="mdi mdi-check-circle mdi-24px right" id="'.$balance.'|'.$data['credit_data'][$i]['id'].'|'.$member_id.'"></i> <i class="mdi mdi-close-circle mdi-24px" id="'.$data['credit_data'][$i]['id'].'hide" ></i></div></div></td></tr>';
|
||||
// else
|
||||
// $output .='<tr >
|
||||
// <td style="text-decoration:line-through; text-align: center;">'.$data['credit_data'][$i]['order_id'].'</td>
|
||||
// <td style="text-decoration:line-through; text-align: center;" >'.$date->format('M d , Y').'</td>
|
||||
// <td style="text-decoration:line-through; text-align: center;" >'.$expirydate->format('M d , Y').'</td>
|
||||
// <td style="text-align: center; text-decoration:line-through; text-align: center;">'.$balance.'</td>
|
||||
// <td class="balance" title="'.$data['credit_data'][$i]['reason'].'" style="text-align: center;">'.$data['credit_data'][$i]['avaiable_credit'].
|
||||
// '</td>
|
||||
|
||||
// <td style="text-align: center;" title="Retrieve"><i id="'.$data['credit_data'][$i]['id'].'" class="mdi mdi-file-plus add-balance" style="font-size:20px;"></i><div id="'.$data['credit_data'][$i]['id'].'text" style="display:none;"><div class="d-flex"><input id="'.$data['credit_data'][$i]['id'].'right" type="text" class="add-balance-confirmation form-control"> <i class="mdi mdi-check-circle mdi-24px right" id="'.$balance.'|'.$data['credit_data'][$i]['id'].'|'.$member_id.'" ></i> <i class="mdi mdi-close-circle mdi-24px" id="'.$data['credit_data'][$i]['id'].'hide" ></i></div></div></td></tr>';
|
||||
// }
|
||||
// echo $output .= '</tbody></table></div>';
|
||||
|
||||
// }
|
||||
|
||||
// public function add_to_cart_package()
|
||||
|
||||
// {
|
||||
|
||||
// $data = $this->request->getVar();
|
||||
|
||||
// $data['table_name'] = 'packages_and_pricing';
|
||||
|
||||
// $save_data = $this->Wp_php_token_model->save($data);
|
||||
|
||||
// echo $save_data;
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// public function continue_shopping($param)
|
||||
|
||||
@ -31,7 +31,9 @@ text-align: center;
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Member Name : <?php echo $fname." ".$lname; ?></h4>
|
||||
<a href="<?php echo base_url().'members_list'; ?>" title="Back" ><i class="mdi mdi-keyboard-backspace" style="font-size: 35px;"></i></a>
|
||||
<h4 class="page-title">Member Name : <?php echo $fname." ".$lname; ?> , Balance : <?php echo $avaiable_credit; ?></h4>
|
||||
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item manage-credits" >
|
||||
@ -63,11 +65,11 @@ text-align: center;
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>id</th>
|
||||
<th>Order Id</th>
|
||||
<th>Order Date</th>
|
||||
<th>Expiry Date</th>
|
||||
<th>Credit Transactions</th>
|
||||
<th>Credit Balance</th>
|
||||
<th style="text-align: center;">Order Id</th>
|
||||
<th style="text-align: center;">Order Date</th>
|
||||
<th style="text-align: center;">Expiry Date</th>
|
||||
<th style="text-align: center;">Credit Transactions</th>
|
||||
<th style="text-align: center;">Credit Balance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -77,7 +79,7 @@ text-align: center;
|
||||
{ ?>
|
||||
<tr>
|
||||
<td hidden><?php echo $row['id'];?></td>
|
||||
<td><?php echo $row['order_id'];?></td>
|
||||
<td style="text-align: center;"><?php echo $row['order_id'];?></td>
|
||||
<td style="text-align: center;"><?php $date = new DateTime($row['created_at']); echo $date->format('M d , Y'); ?></td>
|
||||
<td style="text-align: center;"><?php $expirydate = new DateTime($row['expiring_date']); echo $expirydate->format('M d , Y'); ?></td>
|
||||
<td style="text-align: center;">
|
||||
@ -166,7 +168,7 @@ $(document).on('click','.manage-credits',function(){
|
||||
<input type="radio" class="add_or_sub" id="add" name="add_or_sub" value="add" checked>
|
||||
</div>
|
||||
<div class="mb-1 mt-2 col-md-4 ">
|
||||
<label >Reduse Credit Points</label>
|
||||
<label >Reduce Credit Points</label>
|
||||
<input type="radio" class="add_or_sub" id="sub" name="add_or_sub" value="sub">
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user