158 lines
6.2 KiB
PHP
158 lines
6.2 KiB
PHP
<?= $this->extend('layouts/adminpage') ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
<!-- begin app-main -->
|
|
<div class="app-main" id="main">
|
|
<!-- begin container-fluid -->
|
|
<div class="container-fluid">
|
|
<!-- begin row -->
|
|
<div class="row">
|
|
<div class="col-md-12 m-b-30">
|
|
<!-- begin page title -->
|
|
<div class="d-block d-sm-flex flex-nowrap align-items-center">
|
|
<div class="page-title mb-2 mb-sm-0">
|
|
<h1>My Promotions List</h1>
|
|
</div>
|
|
<div class="ml-auto d-flex align-items-center">
|
|
<nav>
|
|
<ol class="breadcrumb p-0 m-b-0">
|
|
<li class="breadcrumb-item">
|
|
<a href="/promodash"><i class="ti ti-home"></i></a>
|
|
</li>
|
|
<li class="breadcrumb-item">
|
|
Dashboard
|
|
</li>
|
|
<li class="breadcrumb-item active text-primary" aria-current="page">My List</li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
</div>
|
|
</div>
|
|
<!-- end row -->
|
|
<!-- begin row -->
|
|
|
|
<div class="row">
|
|
<div class="col-xxl-9 m-b-30">
|
|
<div class="card card-statistics h-100 mb-0" style="background-color: aliceblue;">
|
|
<div class="card-header d-flex align-items-center justify-content-between">
|
|
<div class="card-heading">
|
|
<h4 class="card-title">Recent Contacts</h4>
|
|
</div>
|
|
<div class="dropdown">
|
|
<!-- <a class="p-2 export-btn" href="/promolist" aria-haspopup="true" aria-expanded="false">-->
|
|
<!-- Go to my list-->
|
|
<!-- </a>-->
|
|
</div>
|
|
</div>
|
|
<div class="card-body" style="min-height: 650px;">
|
|
<div class="table-responsive">
|
|
<table id="latestjobs" class="table table-borderless table-striped jobportal-table mb-0">
|
|
<thead>
|
|
<tr>
|
|
<th>No.</th>
|
|
<th>Email</th>
|
|
<th>Firstname</th>
|
|
<th>Lastname</th>
|
|
<th>Action</th>
|
|
<th>Status</th>
|
|
<th style="text-align: right;">Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="text-muted">
|
|
<?php
|
|
$promo_list = $promo_list ?? [];
|
|
foreach ($promo_list as $index=>$item){
|
|
?>
|
|
<tr>
|
|
<td>#<?=sprintf("%05d", $index+1)?></td>
|
|
<td>
|
|
<p><?=$item["email"]?></p>
|
|
</td>
|
|
<td><?=$item["firstname"]?></td>
|
|
<td><?=$item["lastname"]?></td>
|
|
<td>
|
|
<?=MEMBER_STATUS[ $item["status"] ][1]?>
|
|
</td>
|
|
<td>
|
|
<label class="badge badge-success-inverse mb-0"><?=MEMBER_STATUS[ $item["status"] ][0]?></label>
|
|
</td>
|
|
<td style="text-align: right;">
|
|
<button id="action_button" onclick="return viewNewRef('<?=$item["uid"]?>')" type="submit" class="btn btn-primary">View</button>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xxl-3 m-b-30" >
|
|
<div class="card card-statistics h-100 mb-0 jobportal-contant">
|
|
<div class="card-header d-flex align-items-center justify-content-between">
|
|
<div class="card-heading">
|
|
<h4 class="card-title">Actions</h4>
|
|
</div>
|
|
<div class="dropdown">
|
|
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div id="result_box">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- end row -->
|
|
</div>
|
|
<!-- end container-fluid -->
|
|
</div>
|
|
<script type="text/javascript">
|
|
<!--
|
|
function viewNewRef(link_id) {
|
|
|
|
// debugger;
|
|
|
|
|
|
$('#result_box').html('Loading...');
|
|
$('#action_button').prop('disabled', true);
|
|
$.ajax({
|
|
url: "/viewRefMember?proc=TRANSDETAIL&link_id="+link_id
|
|
}).done(function (data) {
|
|
$('#result_box').html(data);
|
|
$('#action_button').prop('disabled', false);
|
|
});
|
|
return false;
|
|
}
|
|
|
|
|
|
function viewNewTask(link_id) {
|
|
|
|
// debugger;
|
|
|
|
alert(link_id);
|
|
$('#result_action_box').html('Loading...');
|
|
$('#action_button').prop('disabled', true);
|
|
$.ajax({
|
|
url: "/viewRefMemberSendTask?proc=TRANSDETAIL&link_id="+link_id
|
|
}).done(function (data) {
|
|
$('#result_action_box').html(data);
|
|
$('#action_button').prop('disabled', false);
|
|
});
|
|
return false;
|
|
}
|
|
|
|
// -->
|
|
</script>
|
|
<!-- end app-main -->
|
|
<?= $this->endSection() ?>
|
|
|
|
|