87 lines
3.4 KiB
PHP
87 lines
3.4 KiB
PHP
<?php
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Secmobile extends WRB_Controller {
|
|
|
|
public function index() {
|
|
$this->mobiledash();
|
|
}
|
|
|
|
public function mobiledash() {
|
|
$data = array();
|
|
$this->renderMobileSecurePage('mobile_dash', $data);
|
|
}
|
|
|
|
public function active() {
|
|
$data = array();
|
|
$jbx = "''/proj/thisjob''";
|
|
$mysql = "SELECT '<b>ID:</b><a href=\"#\" onclick=\"showJobModal('''||mc.contract||''');\" >'||mc.contract||'</a><br><b>Timeline:</b>'||mc.timeline_days||' day(s)<br><b>Price:</b>'||mc.price*0.01 AS Project,"
|
|
. " '<b>Title: </b>'||mc.title||'<br><b>Description: </b>'||mc.description AS description,"
|
|
. " (CASE WHEN mc.status=4 THEN '<input type=submit onclick=\"return post_nav_find_action($jbx, '||mc.id||')\" name=\"manage\" class=\"btn btn-info btn-xs btn-block\" value=\"Review\">' "
|
|
. " WHEN mc.status = 1 AND mc.delivery_date > now() THEN '<input type=submit onclick=\"return post_nav_find_action($jbx, '||mc.id||')\" name=\"manage\" class=\"btn btn-success btn-xs btn-block\" value=\"View\">' "
|
|
. " WHEN mc.status = 1 AND mc.delivery_date <now() THEN '<span class=\"label label-flat border-danger text-danger-600\">PastDue</span>' "
|
|
. "ELSE '<input type=submit onclick=\"return post_nav_find_action($jbx, '||mc.id||')\" name=\"manage\" class=\"btn btn-info btn-xs btn-block\" value=\"View\">' END) AS manage "
|
|
. " FROM members_jobs_contract mc LEFT JOIN members m ON m.id=mc.client_id WHERE mc.member_id = " . $_SESSION['member_id'] . " AND mc.status IN (1,2,4) OR mc.client_id =" . $_SESSION['member_id'] . " AND mc.status IN (1,2,4)"; // LIMIT " . $config["per_page"] . " OFFSET " . $page;
|
|
|
|
|
|
$query = $this->db->query($mysql);
|
|
$data['activejob_table'] = $query->result();
|
|
|
|
|
|
$this->renderMobileSecurePage('mobile_active_task', $data);
|
|
}
|
|
|
|
public function market() {
|
|
$data = array();
|
|
|
|
$data['offer_dash'] = '';
|
|
$data["dash_title"] = "Available Jobs & Tasks";
|
|
|
|
$mysql = ' SELECT jo.offer_code,mj.title,mj.description,mj.timeline_days,mj.price,jo.job_description '
|
|
. ' FROM members_jobs_offer jo '
|
|
. ' LEFT JOIN members_jobs mj ON mj.id=jo.job_id '
|
|
. ' WHERE mj.status=1 AND jo.status=1 '
|
|
. ' AND expire> now() AND public_view > 0';
|
|
|
|
$query = $this->db->query($mysql);
|
|
$num = $query->num_rows();
|
|
$data['job_no'] = $num;
|
|
|
|
if ($num > 0) {
|
|
|
|
$data['job_table'] = $query->result();
|
|
} else {
|
|
|
|
}
|
|
$data['page_title'] = 'Marketplace';
|
|
$this->renderMobileSecurePage('mobile_market_task', $data);
|
|
}
|
|
|
|
public function account() {
|
|
$data = array();
|
|
$this->renderMobileSecurePage('mobile_dash', $data);
|
|
}
|
|
|
|
public function messages() {
|
|
$data = array();
|
|
$this->renderMobileSecurePage('mobile_dash', $data);
|
|
}
|
|
|
|
public function mypage() {
|
|
$data = array();
|
|
$this->renderMobileSecurePage('mobile_dash', $data);
|
|
}
|
|
|
|
public function manage() {
|
|
$data = array();
|
|
$this->renderMobileSecurePage('mobile_dash', $data);
|
|
}
|
|
|
|
public function myjobs() {
|
|
$data = array();
|
|
$this->renderMobileSecurePage('mobile_manage_task', $data);
|
|
}
|
|
|
|
}
|