suseendhiran
This commit is contained in:
parent
256d2d6c95
commit
c470019443
@ -82,6 +82,9 @@ $routes->match(['get','post'],'/mail_temp_activate/(:any)','Admin_controller::ma
|
||||
$routes->match(['get','post'],'/rule','Admin_controller::rule');
|
||||
$routes->match(['get','post'],'/booked_slot','Admin_controller::booked_slot');
|
||||
$routes->match(['get','post'],'/manage_availability','Admin_controller::manage_availability');
|
||||
$routes->match(['get','post'],'/add_to_cart_package','Admin_controller::add_to_cart_package');
|
||||
$routes->match(['get','post'],'/continue_shopping/(:any)','Admin_controller::continue_shopping/$1');
|
||||
|
||||
|
||||
|
||||
$routes->match(['get'],'/credits_pack','Admin_controller::credits_pack');
|
||||
|
||||
@ -10,6 +10,7 @@ use App\Models\Credits_usage_tracking_model;
|
||||
use App\Models\Email_template_model;
|
||||
use App\Models\Variable_model;
|
||||
use App\Models\Rule_model;
|
||||
use App\Models\Wp_php_token_model;
|
||||
class Admin_controller extends BaseController
|
||||
{
|
||||
public $session;
|
||||
@ -25,6 +26,7 @@ class Admin_controller extends BaseController
|
||||
$this->MailModel = new Email_template_model();
|
||||
$this->VariableModel = new Variable_model();
|
||||
$this->RuleModel = new Rule_model();
|
||||
$this->Wp_php_token_model = new Wp_php_token_model();
|
||||
helper(['form', 'url']);
|
||||
}
|
||||
public function index()
|
||||
@ -172,7 +174,7 @@ class Admin_controller extends BaseController
|
||||
{
|
||||
$userdata['userdata']=$this->dModel->getLoggedInUserData(session()->get('logged_user'));
|
||||
|
||||
$data['userList'] = $this->UserModel->select('users.* , country.name as country_name , state.name as state_name ,city.name as city_name')
|
||||
$data['userList'] = $this->UserModel->select('users.* , country.name as country_name')
|
||||
->join('country', 'users.country = country.id', 'left')
|
||||
->join('state', 'users.state = state.id', 'left')
|
||||
->join('city', 'users.city = city.id', 'left')
|
||||
@ -515,5 +517,22 @@ class Admin_controller extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
$token_exist = $this->Wp_php_token_model->where('token', $param )->find();
|
||||
if ($token_exist)
|
||||
return $token_exist[0]['token'];
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
// -----------------------------------------------
|
||||
}
|
||||
|
||||
@ -25,7 +25,6 @@ class Member_controller extends BaseController
|
||||
$this->cartModel = new Cart_model();
|
||||
$this->CreditsUsageTrackingModel = new Credits_usage_tracking_model();
|
||||
helper('form');
|
||||
$this->scheduler();
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
@ -63,7 +62,7 @@ class Member_controller extends BaseController
|
||||
|
||||
}else
|
||||
{
|
||||
$this->session->setTempdata('error','sorry Email is not existe',3);
|
||||
$this->session->setTempdata('error','sorry email is not exist',3);
|
||||
return redirect()->to(base_url());
|
||||
}
|
||||
}
|
||||
|
||||
@ -145,7 +145,7 @@ class Sendmail_controller extends BaseController
|
||||
else
|
||||
$email->setSubject('Verify your email address');
|
||||
}
|
||||
// $email->setMessage($message);
|
||||
$email->setMessage($message);
|
||||
if ($email->send())
|
||||
{
|
||||
if ($return == 1)
|
||||
|
||||
13
app/Models/Wp_php_token_model.php
Normal file
13
app/Models/Wp_php_token_model.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class Wp_php_token_model extends Model
|
||||
{
|
||||
protected $table = 'wp_php_token';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = ['primary_id','table_name','token'];
|
||||
|
||||
|
||||
}
|
||||
@ -1,5 +1,223 @@
|
||||
|
||||
|
||||
<h1> Welcome ..! <?= $userdata->name; ?> </h1> </br>
|
||||
<!-- <h1> Welcome ..! <?= $userdata->name; ?> </h1> </br>
|
||||
<?php if(isset($userdata->role)){}else{ ?> <a href="<?=base_url()."member_logout"; ?>" >Logout</a> <?php } ?>
|
||||
<?= Print_r($userdata); ?>
|
||||
<?= Print_r($userdata); ?> -->
|
||||
<br><br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xl-3 col-md-6">
|
||||
<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>
|
||||
</div>
|
||||
<div class="avatar-sm">
|
||||
<span class="avatar-title bg-soft-primary rounded">
|
||||
<i class="ri-stack-line font-20 text-primary"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
|
||||
<div class="col-xl-3 col-md-6">
|
||||
<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>
|
||||
</div>
|
||||
<div class="avatar-sm">
|
||||
<span class="avatar-title bg-soft-primary rounded">
|
||||
<i class="ri-slideshow-2-line font-20 text-primary"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
|
||||
<div class="col-xl-3 col-md-6">
|
||||
<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>
|
||||
</div>
|
||||
<div class="avatar-sm">
|
||||
<span class="avatar-title bg-soft-primary rounded">
|
||||
<i class="ri-hand-heart-line font-20 text-primary"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
|
||||
<div class="col-xl-3 col-md-6">
|
||||
<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>
|
||||
</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>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
<!-- 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 -->
|
||||
|
||||
|
||||
|
||||
@ -111,5 +111,7 @@
|
||||
<!-- Calendar init -->
|
||||
<script src="<?= base_url()."/public"; ?>/assets/js/pages/calendar.init.js"></script>
|
||||
|
||||
<!-- KNOB JS -->
|
||||
<script src="<?= base_url()."/public"; ?>/assets/libs/jquery-knob/jquery.knob.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -295,13 +295,12 @@
|
||||
<li class="dropdown notification-list topbar-dropdown">
|
||||
<a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
|
||||
|
||||
<?php if (!$userdata) { ?>
|
||||
<img src='<?php echo base_url()."/public/assets/images/users/avatar-1.jpg" ?>' class="rounded-circle" alt="profile-image">
|
||||
<?php if ($userdata->profile) { ?>
|
||||
<img src='<?php echo base_url()."/public/assets/images/users/"?><?= $userdata->profile; ?>' class="rounded-circle" alt="profile-image">
|
||||
<?php }
|
||||
else { ?>
|
||||
<img src='<?php echo base_url()."/public/assets/images/users/"?><?= $userdata->profile; ?>' class="rounded-circle" alt="profile-image">
|
||||
<img id="" src='<?php echo base_url()."/public/assets/images/users/avatar-1.jpg" ?>' class="rounded-circle" alt="profile-image">
|
||||
<?php } ?>
|
||||
<!-- <img src="<?= base_url()."/public"; ?>/assets/images/users/avatar-1.jpg" alt="user-image" class="rounded-circle"> -->
|
||||
<span class="pro-user-name ml-1">
|
||||
<?= $userdata->name; ?> <i class="mdi mdi-chevron-down"></i>
|
||||
</span>
|
||||
|
||||
@ -6,9 +6,9 @@ body {
|
||||
|
||||
.profilepic {
|
||||
position: relative;
|
||||
/* width: 125px;
|
||||
height: 125px; */
|
||||
/* border-radius: 50%; */
|
||||
width: 20%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
overflow: hidden;
|
||||
background-color: #fffff7;
|
||||
}
|
||||
@ -121,7 +121,12 @@ body {
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Location :</th>
|
||||
<td class="text-muted"><?= $userList[0]['address'] ?> , <?= $userList[0]['city_name'] ?> , <?= $userList[0]['state_name'] ?> , <?= $userList[0]['country_name'] ?> - <?= $userList[0]['pincode'] ?></td>
|
||||
<td class="text-muted">
|
||||
<?php if($userList[0]['address']) { echo $userList[0]['address']; echo ' ,'; } ?>
|
||||
<?php if($userList[0]['city']) { echo $userList[0]['city']; echo ' ,'; }?>
|
||||
<?php if($userList[0]['state']) { echo $userList[0]['state']; echo ' ,'; }?>
|
||||
<?php if($userList[0]['country_name']) { echo $userList[0]['country_name']; }?>
|
||||
<?php if($userList[0]['pincode']) { echo '- '; echo $userList[0]['pincode']; }?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -13,7 +13,6 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 40%;">Pack Name</th>
|
||||
<th style="display:none"></th>
|
||||
<th>Days</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@ -23,8 +22,7 @@
|
||||
{ ?>
|
||||
<tr>
|
||||
<td class="editableColumns"><?php echo $row['rule_name'];?></td>
|
||||
<td class="editableColumns" style="display:none;"></td>
|
||||
<td class="editableColumns"><?php echo $row['value'];?> ( <?php echo $row['label'];?> )</td>
|
||||
<td class="editableColumns_1"><?php echo $row['value'];?> ( <?php echo $row['label'];?> )</td>
|
||||
<td><button type="button" id="<?php echo $row['id'];?>" class="tabledit-edit-button btn btn-success" style="float: none;background-color: #00b4d5;"><span class="mdi mdi-pencil"></span></button></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
@ -48,20 +46,24 @@ $(".tabledit-edit-button").click(function(){
|
||||
$(this).closest('tr').find('td.editableColumns').each(function(index) {
|
||||
var html = $(this).html();
|
||||
var input = $('<input class="form-control" id="'+index+'" type="text" />');
|
||||
if (index == 2)
|
||||
input.val(html.substring(0, html.indexOf(' ') + ''.length));
|
||||
else
|
||||
input.val(html);
|
||||
$(this).html(input);
|
||||
});
|
||||
|
||||
$(this).closest('tr').find('td.editableColumns_1').each(function(index) {
|
||||
var html = $(this).html();
|
||||
var input = $('<input class="form-control" id="_'+index+'" type="text" />');
|
||||
input.val(html.substring(0, html.indexOf(' ') + ''.length));
|
||||
$(this).html(input);
|
||||
});
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$.ajax({
|
||||
type:"post",
|
||||
url: "<?php echo base_url(); ?>/rule",
|
||||
data:{ id : id , rule_name:$('#0').val() , value : $('#2').val()},
|
||||
data:{ id : id , rule_name:$('#0').val() , value : $('#_0').val()},
|
||||
success:function(response)
|
||||
{
|
||||
if (response == true)
|
||||
|
||||
@ -57,7 +57,8 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputEmail3" class="col-4 col-form-label">Email<span class="text-danger">*</span></label>
|
||||
<div class="col-7">
|
||||
<input type="email" id="email" onchange="check_if_exists();" required parsley-type="email" class="form-control" name="email" value="<?php if(isset($userList)){echo $userList[0]['email'];} ?>" placeholder="Email">
|
||||
<input type="email" id="email" onchange="check_if_exists();" required parsley-type="email" class="form-control" name="<?php if($check){ echo 'mail'; } else { echo 'email'; }?>" value="<?php if(isset($userList)){echo $userList[0]['email'];} ?>" placeholder="Email"
|
||||
<?php if($check){ echo 'readonly'; }?>>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -47,6 +47,10 @@ bgcolor="#f6f6f6">
|
||||
<!-- OTP TEMPLATE -->
|
||||
<!-- ############################################################### -->
|
||||
<?php if ($id == 2) { ?>
|
||||
<?php if ($html) { ?>
|
||||
<td><?php echo $html ?></td>
|
||||
<?php
|
||||
} else { ?>
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<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;"
|
||||
@ -54,6 +58,7 @@ bgcolor="#f6f6f6">
|
||||
Please use the verification code below on the Golf Evolution Website.<br>If you didn't request this, you can ignore this email or let us know.<br>OTP : <b><?= $otp ?></b>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
|
||||
// USER TEMPLATE
|
||||
@ -145,6 +150,7 @@ bgcolor="#f6f6f6">
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</div>
|
||||
<!-- ################################################################### -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user