payment_function:GWM

This commit is contained in:
sriramv 2023-06-05 14:40:35 +05:30
commit 36c630e981
9 changed files with 59 additions and 158 deletions

View File

@ -120,7 +120,7 @@ class Admin_controller extends BaseController
if ($check != null) {
$data['check'] = 'profile_edit';
}
$data['check'] = 'profile_edit';
//print_r($data);die();
echo view('layout/header',$userdata);
echo view('user_form',$data);
@ -152,6 +152,7 @@ class Admin_controller extends BaseController
$userdata['userdata']=$this->dModel->getLoggedInUserData(session()->get('logged_user'));
$data['country']=$this->cModel->fetch_country();
$data['check']= null;
echo view('layout/header',$userdata);
echo view('user_form',$data);
echo view('layout/footer');

View File

@ -144,6 +144,25 @@ class Sendmail_controller extends BaseController
else
$email->setSubject('Verify your email address');
}
// payment => type 5
else if($return == 5)
{
$user_data = $this->UserModel->where('email', $to)->find();
$data['id'] = '3';
$data['username'] = $to;
$data['password'] = $code;
$data['url'] = base_url()."admin";
$temp_data = $this->MailModel->where('type' , 2)->where('is_active' , 1)->find();
if ($temp_data[0]['to'])
$email->setCC($temp_data[0]['to']);
if ($temp_data)
$data['html'] = str_replace("%name%",$user_data[0]['name'],$temp_data[0]['html']);
$message = view('verification_mail_temp',$data);
if ($temp_data[0]['is_active'] == 1)
$email->setSubject($temp_data[0]['subject']);
else
$email->setSubject('Username Password');
}
$email->setMessage($message);
if ($email->send())
{

View File

@ -71,7 +71,7 @@
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1">
<?php if(isset($PackageData)){ ?> Update <?php } else { ?> Save <?php } ?>
</button>
<button type="reset"
<button type="reset" onclick="history.back()"
class="btn btn-secondary waves-effect">
Cancel
</button>

View File

@ -52,7 +52,7 @@
<td><?php echo $row['credit'];?></td>
<td><?php echo $row['cost'];?></td>
<td><?php if($row['is_active'] == 1){ echo "Active"; }else{ echo "In-Active"; }?></td>
<td><a href="<?= base_url() ?>credits_pack_edit/<?php echo md5($row['id']);?>">Edit</a></td>
<td><a href="<?= base_url() ?>credits_pack_edit/<?php echo md5($row['id']);?>"><i class="mdi mdi-lead-pencil" style="font-size:18px;"></a></td>
</tr>

View File

@ -6,17 +6,17 @@
<br><br>
<div class="row">
<div class="col-xl-3 col-md-6">
<div class="col-xl-3 col-md-3">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between">
<div>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="Campaign Sent">Campaign Sent</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup">865</span></h3>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="Campaign Sent">Admin Count</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup"><?= $AdminCount ?></span></h3>
</div>
<div class="avatar-sm">
<span class="avatar-title bg-soft-primary rounded">
<i class="ri-stack-line font-20 text-primary"></i>
<i class="mdi mdi-security font-20 text-primary"></i>
</span>
</div>
</div>
@ -24,17 +24,17 @@
</div>
</div><!-- end col -->
<div class="col-xl-3 col-md-6">
<div class="col-xl-3 col-md-3">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between">
<div>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="New Leads">New Leads</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup">384</span></h3>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="New Leads">Member Count</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup"><?= $MembersCount ?></span></h3>
</div>
<div class="avatar-sm">
<span class="avatar-title bg-soft-primary rounded">
<i class="ri-slideshow-2-line font-20 text-primary"></i>
<i class="mdi mdi-account-group font-20 text-primary"></i>
</span>
</div>
</div>
@ -42,17 +42,17 @@
</div>
</div><!-- end col -->
<div class="col-xl-3 col-md-6">
<div class="col-xl-3 col-md-3">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between">
<div>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="Deals">Deals</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup">34,521</span></h3>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="Deals">Coach Count</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup"><?= $CoachCount ?></span></h3>
</div>
<div class="avatar-sm">
<span class="avatar-title bg-soft-primary rounded">
<i class="ri-hand-heart-line font-20 text-primary"></i>
<i class="mdi mdi-alpha-c-circle font-20 text-primary"></i>
</span>
</div>
</div>
@ -60,17 +60,17 @@
</div>
</div><!-- end col -->
<div class="col-xl-3 col-md-6">
<div class="col-xl-3 col-md-3">
<div class="card">
<div class="card-body">
<div class="d-flex justify-content-between">
<div>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="Booked Revenue">Booked Revenue</h5>
<h3 class="my-2 py-1">$<span data-plugin="counterup">89,357</span></h3>
<h5 class="text-muted font-weight-normal mt-0 text-truncate" title="Booked Revenue">Frontdesk Count</h5>
<h3 class="my-2 py-1"><span data-plugin="counterup"><?= $FrontdeskCount ?></span></h3>
</div>
<div class="avatar-sm">
<span class="avatar-title bg-soft-primary rounded">
<i class="ri-money-dollar-box-line font-20 text-primary"></i>
<i class="mdi mdi-desk font-20 text-primary"></i>
</span>
</div>
</div>
@ -81,142 +81,7 @@
<!-- end row -->
<div class="row">
<div class="col-xl-4 col-lg-6">
<div class="card">
<div class="card-body">
<a href="" class="p-0 float-right mb-3">Export <i class="mdi mdi-download ml-1"></i></a>
<h4 class="header-title mt-1">Channels</h4>
<div class="table-responsive">
<table class="table table-sm table-centered mb-0 font-14">
<thead class="thead-light">
<tr>
<th>Channel</th>
<th>Visits</th>
<th style="width: 40%;"></th>
</tr>
</thead>
<tbody>
<tr>
<td>Direct</td>
<td>2,050</td>
<td>
<div class="progress" style="height: 3px;">
<div class="progress-bar" role="progressbar"
style="width: 65%;" aria-valuenow="65"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
</td>
</tr>
<tr>
<td>Organic Search</td>
<td>1,405</td>
<td>
<div class="progress" style="height: 3px;">
<div class="progress-bar bg-info" role="progressbar"
style="width: 45%;" aria-valuenow="45"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
</td>
</tr>
<tr>
<td>Refferal</td>
<td>750</td>
<td>
<div class="progress" style="height: 3px;">
<div class="progress-bar bg-warning" role="progressbar"
style="width: 30%;" aria-valuenow="30"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
</td>
</tr>
<tr>
<td>Social</td>
<td>540</td>
<td>
<div class="progress" style="height: 3px;">
<div class="progress-bar bg-danger" role="progressbar"
style="width: 25%;" aria-valuenow="25"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
</td>
</tr>
</tbody>
</table>
</div> <!-- end table-responsive-->
</div> <!-- end card-body-->
</div> <!-- end card-->
</div> <!-- end col-->
<div class="col-xl-4 col-lg-6">
<div class="card">
<div class="card-body">
<a href="" class="p-0 float-right mb-3">Export <i class="mdi mdi-download ml-1"></i></a>
<h4 class="header-title mt-1">Social Media Traffic</h4>
<div class="table-responsive">
<table class="table table-sm table-centered mb-0 font-14">
<thead class="thead-light">
<tr>
<th>Network</th>
<th>Visits</th>
<th style="width: 40%;"></th>
</tr>
</thead>
<tbody>
<tr>
<td>Facebook</td>
<td>2,250</td>
<td>
<div class="progress" style="height: 3px;">
<div class="progress-bar" role="progressbar"
style="width: 65%;" aria-valuenow="65"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
</td>
</tr>
<tr>
<td>Instagram</td>
<td>1,501</td>
<td>
<div class="progress" style="height: 3px;">
<div class="progress-bar" role="progressbar"
style="width: 45%;" aria-valuenow="45"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
</td>
</tr>
<tr>
<td>Twitter</td>
<td>750</td>
<td>
<div class="progress" style="height: 3px;">
<div class="progress-bar" role="progressbar"
style="width: 30%;" aria-valuenow="30"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
</td>
</tr>
<tr>
<td>LinkedIn</td>
<td>540</td>
<td>
<div class="progress" style="height: 3px;">
<div class="progress-bar" role="progressbar"
style="width: 25%;" aria-valuenow="25"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
</td>
</tr>
</tbody>
</table>
</div> <!-- end table-responsive-->
</div> <!-- end card-body-->
</div> <!-- end card-->
</div> <!-- end col-->
</div>
<!-- end row -->

View File

@ -119,7 +119,7 @@
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1">
<?php if(isset($Memberdata)){ ?> Update <?php } else { ?> Save <?php } ?>
</button>
<button type="reset"
<button type="reset" onclick="history.back()"
class="btn btn-secondary waves-effect">
Cancel
</button>

View File

@ -92,7 +92,7 @@
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1">
Submit
</button>
<button type="reset"
<button type="reset" onclick="history.back()"
class="btn btn-secondary waves-effect">
Cancel
</button>

View File

@ -57,7 +57,7 @@
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1">
Submit
</button>
<button type="reset"
<button type="reset" onclick="history.back()"
class="btn btn-secondary waves-effect">
Cancel
</button>

View File

@ -112,6 +112,22 @@ bgcolor="#f6f6f6">
</tr>
<?php } ?>
<?php }
// PAYMENY TEMPLATE
// ###################################################################
else if ($id == 5) { ?>
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<?php if ($html) { ?>
<td><?php echo $html ?></td>
<?php
} else { ?>
<td class="content-block"
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;"
valign="top">
Your password changed successfully...
</td>
</tr>
<?php } ?>
<?php }
// MEMBER TEMPLATE
// ###################################################################
else