testChanges:GWM
This commit is contained in:
parent
5ff66d1e3a
commit
d211f90a0a
@ -109,6 +109,8 @@ class Admin_controller extends BaseController
|
||||
if($userdata['is_active'] == 0)
|
||||
{
|
||||
$this->session->setTempdata('error','Your account is deactivated',3);
|
||||
$this->session->setTempdata('A_email',$this->request->getVar('email'),3);
|
||||
$this->session->setTempdata('A_password',$this->request->getVar('password'),3);
|
||||
return redirect()->to(base_url()."admin");
|
||||
}
|
||||
|
||||
@ -127,7 +129,8 @@ class Admin_controller extends BaseController
|
||||
else{
|
||||
|
||||
$this->session->setTempdata('error','sorry wrong password entered for the Email',3);
|
||||
|
||||
$this->session->setTempdata('A_email',$this->request->getVar('email'),3);
|
||||
$this->session->setTempdata('A_password',$this->request->getVar('password'),3);
|
||||
return redirect()->to(base_url()."admin");
|
||||
|
||||
}
|
||||
@ -137,7 +140,8 @@ class Admin_controller extends BaseController
|
||||
{
|
||||
|
||||
$this->session->setTempdata('error','sorry Email does not exist',3);
|
||||
|
||||
$this->session->setTempdata('A_email',$this->request->getVar('email'),3);
|
||||
$this->session->setTempdata('A_password',$this->request->getVar('password'),3);
|
||||
return redirect()->to(base_url()."admin");
|
||||
|
||||
}
|
||||
@ -706,7 +710,7 @@ class Admin_controller extends BaseController
|
||||
$output = '<div class="table-responsive"><table class="table mb-0"><thead class="thead-light"><tr> <th>Order Id</th><th>Order Date</th><th>Transaction Id</th><th>Cost</th><th>Purchased by</th><th>Status</th></tr></thead><tbody>';
|
||||
foreach ($creditsData as $row) {
|
||||
$date = new DateTime($row['created_at']);
|
||||
if($row['status'] == 'success'){
|
||||
if($row['status'] == 'Success'){
|
||||
$cost = json_decode($row['transaction'] , true)['payment']['amount_money']['amount'];
|
||||
}else{$cost='';}
|
||||
$output .='<tr><td>'.$row['order_id'].'</td><td>'.$date->format('M-d-Y').'</td><td>'.$row['transaction_id'].'</td><td>'.$cost.'</td></td><td>'.$row['member_name'].'</td></td><td>'.$row['status'].'</td></tr>';
|
||||
|
||||
@ -61,13 +61,13 @@
|
||||
<?php endif;?>
|
||||
<div class="form-group mb-3">
|
||||
<label for="emailaddress">Email address</label>
|
||||
<input class="form-control" type="email" name="email" id="emailaddress" required="" value="admin@gmail.com" placeholder="Enter your email">
|
||||
<input class="form-control" type="email" name="email" id="emailaddress" required="" value="<?php if(session()->getTempdata('A_email')) { echo session()->getTempdata('A_email'); }?>" placeholder="Enter your email">
|
||||
</div>
|
||||
|
||||
<div class="form-group mb-3">
|
||||
<label for="password">Password</label>
|
||||
<div class="input-group input-group-merge">
|
||||
<input type="password" id="password" name="password" value="admin" class="form-control" placeholder="Enter your password">
|
||||
<input type="password" id="password" name="password" value="<?php if(session()->getTempdata('A_password')) { echo session()->getTempdata('A_password'); }?>" class="form-control" placeholder="Enter your password">
|
||||
<div class="input-group-append" data-password="false">
|
||||
<div class="input-group-text">
|
||||
<span class="password-eye"></span>
|
||||
|
||||
@ -54,7 +54,7 @@
|
||||
<td><?php echo $row['order_id'];?></td>
|
||||
<td><?php $date = new DateTime($row['created_at']); echo $date->format('M-d-Y'); ?></td>
|
||||
<td><?php echo $row['transaction_id'];?></td>
|
||||
<td><?php if($row['status'] == 'success'){
|
||||
<td><?php if($row['status'] == 'Success'){
|
||||
echo json_decode($row['transaction'] , true)['payment']['amount_money']['amount'];
|
||||
}
|
||||
?></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user