New card
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Bkocards extends Bko_Controller {
|
||||
|
||||
public function cardlist(){
|
||||
$arry= array();
|
||||
|
||||
$config = $this->PrepPagination(10, 3, '/bkouser/jobs');
|
||||
|
||||
$mysql0 = "SELECT * FROM members_card_request ORDER BY id DESC";
|
||||
$q = $this->db->query($mysql0);
|
||||
$config["total_rows"] = $q->num_rows();
|
||||
|
||||
$this->load->library('pagination');
|
||||
$this->pagination->initialize($config);
|
||||
$data["pagination_links"] = $this->pagination->create_links();
|
||||
|
||||
$this->load->library('table');
|
||||
$this->table->set_template($this->template);
|
||||
|
||||
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
|
||||
$page = is_numeric($page) ? $page : 0;
|
||||
|
||||
//$mysql = "SELECT * FROM members_card_request";
|
||||
$mysql = "SELECT cr.member_uid ||'<br>'||m.firstname||' '||m.lastname||'<br>'|| m.email AS user,
|
||||
cr.target_uid ||'<br>'||mt.firstname||' '||mt.lastname||'<br>'|| mt.email AS target_user,
|
||||
cr.phone_number||'<br>'|| cr.address||'<br>'|| cr.state ||' '|| cr.postal_code AS address,
|
||||
cr.card_issue_id,
|
||||
cr.user_activated,
|
||||
cr.card_activated,
|
||||
cr.card_assigned,
|
||||
cr.status
|
||||
FROM members_card_request cr
|
||||
LEFT JOIN members m ON m.id =cr.member_id
|
||||
LEFT JOIN members mt ON mt.uid::text = cr.target_uid
|
||||
ORDER BY cr.id DESC";
|
||||
|
||||
$data['page_title'] = "Card Request";
|
||||
$query = $this->db->query($mysql);
|
||||
$this->table->function = 'smart_htmlspecialchars';
|
||||
$data['job_list_table'] = $this->table->generate($query);
|
||||
|
||||
$this->secureBkoPage('issued_cards',$data);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -24,6 +24,33 @@ class Bko_Controller extends WRB_Controller {
|
||||
'cell_alt_end' => '</td>',
|
||||
'table_close' => '</table>'
|
||||
);
|
||||
|
||||
public function PrepPagination($perpage, $urlSegment, $pagePath) {
|
||||
//echo base_url();
|
||||
$actual_link = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
||||
$base_url = (base_url() != '') ? base_url().$pagePath : $actual_link;
|
||||
$config = array();
|
||||
$config["base_url"] = $base_url; //base_url().$pagePath;
|
||||
$config["per_page"] = $perpage;
|
||||
$config["uri_segment"] = $urlSegment;
|
||||
$config["num_links"] = 5;
|
||||
$config['full_tag_open'] = "<ul class='pagination'>";
|
||||
$config['full_tag_close'] = "</ul>";
|
||||
$config['num_tag_open'] = '<li>';
|
||||
$config['num_tag_close'] = '</li>';
|
||||
$config['cur_tag_open'] = "<li class='disabled'><li class='active'><a href='#'>";
|
||||
$config['cur_tag_close'] = "<span class='sr-only'></span></a></li>";
|
||||
$config['next_tag_open'] = "<li>";
|
||||
$config['next_tagl_close'] = "</li>";
|
||||
$config['prev_tag_open'] = "<li>";
|
||||
$config['prev_tagl_close'] = "</li>";
|
||||
$config['first_tag_open'] = "<li>";
|
||||
$config['first_tagl_close'] = "</li>";
|
||||
$config['last_tag_open'] = "<li>";
|
||||
$config['last_tagl_close'] = "</li>";
|
||||
|
||||
return $config;
|
||||
}
|
||||
public $data = array();
|
||||
|
||||
function __construct() {
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
<!-- Main content -->
|
||||
<div class="content-wrapper">
|
||||
|
||||
<!-- Main charts -->
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
|
||||
<!-- Traffic sources -->
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title"><b><?php echo $page_title;?></b></h6>
|
||||
<div class="heading-elements">
|
||||
<form class="heading-form" action="#">
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<?php echo $job_list_table; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="panel panel-flat">
|
||||
<div class="panel-heading">
|
||||
<?=$pagination_links ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- /traffic sources -->
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <div class="col-lg-4">-->
|
||||
<!---->
|
||||
<!-- <div class="panel panel-flat">-->
|
||||
<!-- <div id="select_user">-->
|
||||
<!---->
|
||||
<!-- <div class="panel-heading">-->
|
||||
<!-- <h6 class="panel-title"><b>....----....</b></h6>-->
|
||||
<!-- <div class="heading-elements">-->
|
||||
<!---->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!---->
|
||||
<!-- <div class="container-fluid">-->
|
||||
<!---->
|
||||
<!-- <div id="action_msg" class="row text-left">-->
|
||||
<!---->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!---->
|
||||
<!---->
|
||||
<!-- </div>-->
|
||||
<!---->
|
||||
<!---->
|
||||
<!---->
|
||||
<!-- </div>-->
|
||||
<!---->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<!-- /main charts -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -82,9 +82,10 @@
|
||||
<div style="width: 200px; background-color: yellow;">
|
||||
ddddd
|
||||
</div>
|
||||
<a href="/bkoreport/jobacts" class="btn btn-link btn-float text-size-small has-text"><i class="icon-calculator text-indigo-400"></i><span>Job Acts</span></a>
|
||||
<a href="/bkouser/locate" class="btn btn-link btn-float text-size-small has-text" style="background-color: orange;"><i class="icon-bars-alt text-indigo-400"></i><span>Find Member</span></a>
|
||||
<a href="/bkoreport/offers" class="btn btn-link btn-float text-size-small has-text"><i class="icon-bars-alt text-indigo-400"></i><span>Offers</span></a>
|
||||
<a href="/bkocards/cardlist" class="btn btn-link btn-float text-size-small has-text"><i class="icon-grid text-indigo-400"></i><span>Cards</span></a>
|
||||
<a href="/bkoreport/jobacts" class="btn btn-link btn-float text-size-small has-text"><i class="icon-table2 text-indigo-400"></i><span>Job Acts</span></a>
|
||||
<a href="/bkouser/locate" class="btn btn-link btn-float text-size-small has-text" style="background-color: orange;"><i class="icon-search4 text-indigo-400"></i><span>Find Member</span></a>
|
||||
<a href="/bkoreport/offers" class="btn btn-link btn-float text-size-small has-text"><i class="icon-task text-indigo-400"></i><span>Offers</span></a>
|
||||
<a href="/bkouser/pastdue" class="btn btn-link btn-float text-size-small has-text" style="background-color: lightcoral;"><i class="icon-bars-alt text-indigo-400"></i><span>Past Due</span></a>
|
||||
<a href="/bkoreport/recent" class="btn btn-link btn-float text-size-small has-text"><i class="icon-bars-alt text-indigo-400"></i><span>Recent Signup</span></a>
|
||||
<a href="/marketing/" class="btn btn-link btn-float text-size-small has-text"><i class="icon-bars-alt text-indigo-400"></i><span>Marketing</span></a>
|
||||
@@ -93,8 +94,8 @@
|
||||
<a href="/bkouser/locate" class="btn btn-link btn-float text-size-small has-text"><i class="icon-calculator text-indigo-400"></i><span>Locate</span></a>
|
||||
|
||||
<a href="/bkotransaction/moneytransfer" class="btn btn-link btn-float text-size-small has-text"><i class="icon-calculator text-indigo-400"></i><span>Transfers</span></a>
|
||||
<a href="/bkouser/contact" class="btn btn-link btn-float text-size-small has-text"><i class="icon-bars-alt text-indigo-400"></i><span>Contacts</span></a>
|
||||
<a href="/logout/" class="btn btn-link btn-float text-size-small has-text" style="background-color: lightgoldenrodyellow;"><i class="icon-calculator text-red-400"></i><span style="color: red;">Log Out</span></a>
|
||||
<a href="/bkouser/contact" class="btn btn-link btn-float text-size-small has-text"><i class="icon-people text-indigo-400"></i><span>Contacts</span></a>
|
||||
<a href="/logout/" class="btn btn-link btn-float text-size-small has-text" style="background-color: lightgoldenrodyellow;"><i class="icon-exit text-red-400"></i><span style="color: red;">Log Out</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user