diff --git a/application/controllers/Bkouser.php b/application/controllers/Bkouser.php index 7ffce12..68c7ca8 100644 --- a/application/controllers/Bkouser.php +++ b/application/controllers/Bkouser.php @@ -517,6 +517,11 @@ class Bkouser extends Bko_Controller { $data = array(); $data['page_title'] = 'Find User'; // $config = array(); + $data['find_txt_val'] = isset($_GET['find_txt_val']) ? $_GET['find_txt_val'] :'' ; + $data['find_by_val'] = isset($_GET['find_by_val']) ? $_GET['find_by_val'] :'' ; + + $data['find_txt'] = $data['find_txt_val']; + $data['find_by'] = $data['find_by_val']; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $page = is_numeric($page) ? $page : 0; @@ -529,16 +534,19 @@ class Bkouser extends Bko_Controller { $data['find_by'] = trim($this->input->post('find_by')); $data['find_txt'] = trim($this->input->post('find_txt')); + $data['find_txt_val'] = $data['find_txt']; + $data['find_by_val'] = $data['find_by']; + if ( $data['find_by']!='' && $data['find_txt']!=''){ - $extra_qr = ' WHERE '.$data['find_by']." LIKE '%". $data['find_txt']."%'"; + $extra_qr = ' WHERE lower('.$data['find_by'].") LIKE lower('%". $data['find_txt']."%') "; } } - echo $extra_qr; + // echo $extra_qr; $config = $this->PrepPagination(10, 3, '/bkouser/locate'); - $mysql0 = "SELECT * FROM members"; + $mysql0 = "SELECT * FROM members ".$extra_qr; $q = $this->db->query($mysql0); $config["total_rows"] = $q->num_rows(); @@ -552,8 +560,8 @@ class Bkouser extends Bko_Controller { $this->table->set_template($this->template); $mysql = "SElECT added::date||'
'||loc||'
'||(CASE WHEN last_login::date IS NULL THEN ' ' ELSE last_login::date::text END) AS Act," . " username||'
'||firstname||' '||lastname AS Name, " - . " '
' AS select " - . " FROM members ORDER BY id DESC LIMIT " . $config["per_page"] . " OFFSET " . $page; ; + . " '
' AS select " + . " FROM members $extra_qr ORDER BY id DESC LIMIT " . $config["per_page"] . " OFFSET " . $page; ; $query = $this->db->query($mysql); $this->table->set_heading('Account', 'Name/Username', 'Action'); diff --git a/application/controllers/Confg.php b/application/controllers/Confg.php index 35809b3..e93b402 100644 --- a/application/controllers/Confg.php +++ b/application/controllers/Confg.php @@ -84,7 +84,12 @@ class Confg extends Bko_Controller { $this->load->library('table'); $this->table->set_template($this->template); - $mysql = "SELECT * FROM country ORDER BY country ASC"; // WHERE agent_id = " . $data['agent_id']; + $mysql = "SELECT id,code,country,phone_code, + allow::date, + ''|| jobs::date||'' AS Jobs, + status + FROM country + ORDER BY allow, jobs, status,country ASC"; // WHERE agent_id = " . $data['agent_id']; $query = $this->db->query($mysql); // $this->table->set_heading(array('data' => 'Key', 'style' => 'width:60px'), 'Reason', array('data' => 'Action', 'style' => 'width:100px')); $data['country_table'] = $this->table->generate($query); diff --git a/application/controllers/Payments.php b/application/controllers/Payments.php index d6c13fc..4048572 100644 --- a/application/controllers/Payments.php +++ b/application/controllers/Payments.php @@ -7,10 +7,17 @@ class Payments extends Bko_Controller { public function index() { - echo "here ssjsjsjsjjsjsjs sjsjsjsjs"; + return $this->dash(); } + public function dash() { + $data = array(); + $data = $this->bkoDashData(); + $this->load->view('bko/view_bko_header', $data); + $this->load->view('bko/view_bko_payments', $data); + $this->load->view('bko/view_bko_footer', $data); + } } \ No newline at end of file diff --git a/application/libraries/Bko_Controller.php b/application/libraries/Bko_Controller.php index 4d36b1d..a87640d 100644 --- a/application/libraries/Bko_Controller.php +++ b/application/libraries/Bko_Controller.php @@ -65,8 +65,13 @@ class Bko_Controller extends WRB_Controller { // PUBIC active JOB table - $mysql = "SELECT jo.offer_code||'
Exp: '||jo.expire AS det1,jo.id AS offer_id,''||mj.title||'
'||mj.description,'Timeline:'||mj.timeline_days||'day(s)
Price:'||mj.price*0.01||' #$?' AS det2 FROM members_jobs_offer jo " - . " LEFT JOIN members_jobs mj ON mj.id=jo.job_id " + $mysql = "SELECT jo.offer_code||'
Exp: '||jo.expire::date||'
Country: '||mj.country||'
Job Id'||jo.id AS \"Job\", + m.id||'
'||m.email||'
'||m.firstname||' '||m.lastname AS \"Job Owner\", + ''||mj.title||'
'||mj.description AS \"Description\", + 'Timeline:'||mj.timeline_days||'day(s)
Price:'||mj.price*0.01||' #$?' AS \"Delivery\" + FROM members_jobs_offer jo " + . " LEFT JOIN members_jobs mj ON mj.id=jo.job_id " + . " LEFT JOIN members m ON mj.member_id = m.id " . " WHERE mj.status=1 AND jo.status=1 " . " AND jo.expire> now() AND jo.public_view > 0"; diff --git a/application/models/Combo_model.php b/application/models/Combo_model.php index 7a056c9..0c33098 100644 --- a/application/models/Combo_model.php +++ b/application/models/Combo_model.php @@ -12,6 +12,8 @@ class Combo_model extends CI_Model { } + + public function getJobPostDuration($option_name, $duration) { $this->defaultComboMessage ='Select duration of post'; diff --git a/application/views/bko/common/bko_menu.php b/application/views/bko/common/bko_menu.php index 1fcbf65..95bed8d 100644 --- a/application/views/bko/common/bko_menu.php +++ b/application/views/bko/common/bko_menu.php @@ -12,7 +12,7 @@
  • Dashboard
  • -
  • Payments
  • +
  • Payments
  • Contact Us
  • Member diff --git a/application/views/bko/view_bko_findmembers.php b/application/views/bko/view_bko_findmembers.php index ebec4c0..664b194 100644 --- a/application/views/bko/view_bko_findmembers.php +++ b/application/views/bko/view_bko_findmembers.php @@ -1,3 +1,13 @@ +'Find By', + 'username'=>'Username', + 'firstname'=>'Firstname', + 'lastname'=>'Lastname' + ]; + +?> +
    @@ -6,21 +16,30 @@
    + > + >
    - + + $value) + { + $selv=''; + if ($key == $find_by) + { $selv=' selected '; } + echo ""; + } + ?> +
    - + >
    - +
    diff --git a/application/views/bko/view_bko_login.php b/application/views/bko/view_bko_login.php index e98dbf8..9972fe6 100644 --- a/application/views/bko/view_bko_login.php +++ b/application/views/bko/view_bko_login.php @@ -138,7 +138,7 @@ | Play Store(support@wrenchboard.com)] | Ios App (ameye@chiefsoft.com)] ------- - | Deploy(chiefsoft) + | Deploy(chiefsoft) | Wrench Token ] diff --git a/application/views/bko/view_bko_payments.php b/application/views/bko/view_bko_payments.php new file mode 100644 index 0000000..322c855 --- /dev/null +++ b/application/views/bko/view_bko_payments.php @@ -0,0 +1,233 @@ +
    + +
    + +
    + + +
    +
    + + +
    +
    + + +
    + +
    + + +
    + +
    + + +
    +
    +

    + Total Balance [ Naira ]-[Escrow=] +
    + + +
    + + +
    + +
    + + +
    + + +
    + + +
    + +
    + + + +
    + +
    +
    Wallet Summary
    +
    +
    + +
    +
    +
    + +
    +
    + +
    +
    + + +
    + + + +
    + +
    +
    Public Active Jobs
    +
    +
    + +
    +
    +
    + +
    +
    + +
    +
    + + +
    + + + +
    + + +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    + + + +
    +
    +
    Recent Transfer
    +
    +
    +
    + +
    +
    +
    + +
    + +
    +
    + + + + +
    +
    +
    Activities
    +
    + +
    + +
    +
    + + + +
    +
    +
    Pending Signup
    +
    + +
    +
    + +
    + +
    + +
    +
    +
    + + +
    + + + +
    + + + + +
    + + \ No newline at end of file diff --git a/assets/css/colors.css b/assets/css/colors.css index 956b6b5..9ad283e 100644 --- a/assets/css/colors.css +++ b/assets/css/colors.css @@ -269,8 +269,8 @@ color: #fff; } .bg-indigo { - background-color: #37475a; - border-color: #37475a; + background-color: #042413; + border-color: #031935; color: #fff; } .bg-indigo2 {