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'],'/rule','Admin_controller::rule');
|
||||||
$routes->match(['get','post'],'/booked_slot','Admin_controller::booked_slot');
|
$routes->match(['get','post'],'/booked_slot','Admin_controller::booked_slot');
|
||||||
$routes->match(['get','post'],'/manage_availability','Admin_controller::manage_availability');
|
$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');
|
$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\Email_template_model;
|
||||||
use App\Models\Variable_model;
|
use App\Models\Variable_model;
|
||||||
use App\Models\Rule_model;
|
use App\Models\Rule_model;
|
||||||
|
use App\Models\Wp_php_token_model;
|
||||||
class Admin_controller extends BaseController
|
class Admin_controller extends BaseController
|
||||||
{
|
{
|
||||||
public $session;
|
public $session;
|
||||||
@ -25,6 +26,7 @@ class Admin_controller extends BaseController
|
|||||||
$this->MailModel = new Email_template_model();
|
$this->MailModel = new Email_template_model();
|
||||||
$this->VariableModel = new Variable_model();
|
$this->VariableModel = new Variable_model();
|
||||||
$this->RuleModel = new Rule_model();
|
$this->RuleModel = new Rule_model();
|
||||||
|
$this->Wp_php_token_model = new Wp_php_token_model();
|
||||||
helper(['form', 'url']);
|
helper(['form', 'url']);
|
||||||
}
|
}
|
||||||
public function index()
|
public function index()
|
||||||
@ -172,7 +174,7 @@ class Admin_controller extends BaseController
|
|||||||
{
|
{
|
||||||
$userdata['userdata']=$this->dModel->getLoggedInUserData(session()->get('logged_user'));
|
$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('country', 'users.country = country.id', 'left')
|
||||||
->join('state', 'users.state = state.id', 'left')
|
->join('state', 'users.state = state.id', 'left')
|
||||||
->join('city', 'users.city = city.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->cartModel = new Cart_model();
|
||||||
$this->CreditsUsageTrackingModel = new Credits_usage_tracking_model();
|
$this->CreditsUsageTrackingModel = new Credits_usage_tracking_model();
|
||||||
helper('form');
|
helper('form');
|
||||||
$this->scheduler();
|
|
||||||
}
|
}
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
@ -63,7 +62,7 @@ class Member_controller extends BaseController
|
|||||||
|
|
||||||
}else
|
}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());
|
return redirect()->to(base_url());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,7 +145,7 @@ class Sendmail_controller extends BaseController
|
|||||||
else
|
else
|
||||||
$email->setSubject('Verify your email address');
|
$email->setSubject('Verify your email address');
|
||||||
}
|
}
|
||||||
// $email->setMessage($message);
|
$email->setMessage($message);
|
||||||
if ($email->send())
|
if ($email->send())
|
||||||
{
|
{
|
||||||
if ($return == 1)
|
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 } ?>
|
<?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 -->
|
<!-- Calendar init -->
|
||||||
<script src="<?= base_url()."/public"; ?>/assets/js/pages/calendar.init.js"></script>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -295,13 +295,12 @@
|
|||||||
<li class="dropdown notification-list topbar-dropdown">
|
<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">
|
<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) { ?>
|
<?php if ($userdata->profile) { ?>
|
||||||
<img src='<?php echo base_url()."/public/assets/images/users/avatar-1.jpg" ?>' class="rounded-circle" alt="profile-image">
|
<img src='<?php echo base_url()."/public/assets/images/users/"?><?= $userdata->profile; ?>' class="rounded-circle" alt="profile-image">
|
||||||
<?php }
|
<?php }
|
||||||
else { ?>
|
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 } ?>
|
<?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">
|
<span class="pro-user-name ml-1">
|
||||||
<?= $userdata->name; ?> <i class="mdi mdi-chevron-down"></i>
|
<?= $userdata->name; ?> <i class="mdi mdi-chevron-down"></i>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@ -6,9 +6,9 @@ body {
|
|||||||
|
|
||||||
.profilepic {
|
.profilepic {
|
||||||
position: relative;
|
position: relative;
|
||||||
/* width: 125px;
|
width: 20%;
|
||||||
height: 125px; */
|
margin-left: auto;
|
||||||
/* border-radius: 50%; */
|
margin-right: auto;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: #fffff7;
|
background-color: #fffff7;
|
||||||
}
|
}
|
||||||
@ -121,7 +121,12 @@ body {
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Location :</th>
|
<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>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -13,7 +13,6 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 40%;">Pack Name</th>
|
<th style="width: 40%;">Pack Name</th>
|
||||||
<th style="display:none"></th>
|
|
||||||
<th>Days</th>
|
<th>Days</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -23,8 +22,7 @@
|
|||||||
{ ?>
|
{ ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="editableColumns"><?php echo $row['rule_name'];?></td>
|
<td class="editableColumns"><?php echo $row['rule_name'];?></td>
|
||||||
<td class="editableColumns" style="display:none;"></td>
|
<td class="editableColumns_1"><?php echo $row['value'];?> ( <?php echo $row['label'];?> )</td>
|
||||||
<td class="editableColumns"><?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>
|
<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>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
@ -48,20 +46,24 @@ $(".tabledit-edit-button").click(function(){
|
|||||||
$(this).closest('tr').find('td.editableColumns').each(function(index) {
|
$(this).closest('tr').find('td.editableColumns').each(function(index) {
|
||||||
var html = $(this).html();
|
var html = $(this).html();
|
||||||
var input = $('<input class="form-control" id="'+index+'" type="text" />');
|
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);
|
input.val(html);
|
||||||
$(this).html(input);
|
$(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
|
else
|
||||||
{
|
{
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type:"post",
|
type:"post",
|
||||||
url: "<?php echo base_url(); ?>/rule",
|
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)
|
success:function(response)
|
||||||
{
|
{
|
||||||
if (response == true)
|
if (response == true)
|
||||||
|
|||||||
@ -57,7 +57,8 @@
|
|||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label for="inputEmail3" class="col-4 col-form-label">Email<span class="text-danger">*</span></label>
|
<label for="inputEmail3" class="col-4 col-form-label">Email<span class="text-danger">*</span></label>
|
||||||
<div class="col-7">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -47,6 +47,10 @@ bgcolor="#f6f6f6">
|
|||||||
<!-- OTP TEMPLATE -->
|
<!-- OTP TEMPLATE -->
|
||||||
<!-- ############################################################### -->
|
<!-- ############################################################### -->
|
||||||
<?php if ($id == 2) { ?>
|
<?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;">
|
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||||
<td class="content-block"
|
<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;"
|
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>
|
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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
||||||
// USER TEMPLATE
|
// USER TEMPLATE
|
||||||
@ -145,6 +150,7 @@ bgcolor="#f6f6f6">
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- ################################################################### -->
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user