fix page
This commit is contained in:
@@ -14,6 +14,7 @@ $routes->post('/promoauth', 'Auth::AuthPromoLogin');
|
||||
$routes->get('/promodash', 'PromoAdmin::AuthPromoDash');
|
||||
$routes->get('/promolist', 'PromoAdmin::PromoMyList');
|
||||
$routes->get('/addRefMember', 'PromoAdmin::addRefMember');
|
||||
$routes->get('/viewRefMember', 'PromoAdmin::viewRefMember');
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -67,4 +67,40 @@ class PromoAdmin extends BaseController
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function viewRefMember(){
|
||||
|
||||
$data['sessionid'] =$_SESSION['sessionid'];
|
||||
$data['link_id'] = $_GET['link_id'];
|
||||
$data['promo_admin_id'] = $_SESSION['promo_admin_id']; // =$out['promo_admin_id'];
|
||||
$data['admin_uid'] = $_SESSION['uid']; // =$out['promo_admin_id'];
|
||||
$data['loc'] = $this->getIpData(); // =$out['promo_admin_id'];
|
||||
|
||||
$out=[];
|
||||
$out = $this->APIcall('POST', $this->wrenchAdminApiServer(). 'getmember',$data);
|
||||
|
||||
echo $this->actionCardTable();
|
||||
}
|
||||
|
||||
private function actionCardTable(){
|
||||
return "
|
||||
<div class='table-responsive'>
|
||||
<table class='table table-success mb-0'>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Firstname:</td>
|
||||
<td>Otto</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Lastname</td>
|
||||
<td>Thornton</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Added</td>
|
||||
<td>the Bird</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div id="result_box">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -112,6 +114,29 @@
|
||||
</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);
|
||||
document.email.value = '';
|
||||
document.firstname.value = '';
|
||||
document.lastname.value = '';
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
<!-- end app-main -->
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user