This commit is contained in:
2022-02-19 12:47:31 -05:00
parent cf8c2131bd
commit 4d4c75aa48
3 changed files with 141 additions and 29 deletions
+2 -28
View File
@@ -14,17 +14,7 @@ class Plb extends WRB_Controller {
}
private function jobViewPage($offerCode) {
/* $data['sitename'] = 'home';
$this->load->view('templates/header_boxed', $data);
$this->load->view('users/view_index');
$this->load->view('users/view_external_footer');
* */
// $this->load->view('users/view_index');
// $this->load->view('users/view_external_footer');
$data = array();
$mysql = "SELECT jo.expire,jo.id AS offer_id, 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 "
@@ -55,25 +45,9 @@ class Plb extends WRB_Controller {
. " WHERE o.public_view =1 AND o.offer_code<>'" . $offerCode . "' AND o.expire> now() AND o.status=1 ORDER BY o.id DESC LIMIT 50";
$query = $this->db->query($mysql2);
$data["numof_other_jobs"] = $query->num_rows();
$data["job_data"] = $query->result();
$data["job_data"] = $query->result()[0];
/*
$mysql2 = " SELECT o.*,j.title,j.description,j.timeline_days,j.price,j FROM members_jobs_offer o "
. " LEFT JOIN members_jobs j ON j.id =o.job_id "
. " WHERE o.public_view =1 AND o.offer_code<>'" . $offerCode . "' AND o.expire> now() ORDER BY o.id DESC LIMIT 50";
$query = $this->db->query($mysql2);
$data["numof_other_jobs"] = $query->num_rows();
$data["job_data"] = $query->result();
*/
$this->load->view('templates/view_header_market', $data);
$this->load->view('site/view_market', $data);
$this->load->view('templates/view_footer_market', $data);
$this->load->view('site3/external/view_market',$data);
}
private function makeMarketTableRow($row) {
+138
View File
@@ -0,0 +1,138 @@
<form method="post" name="post_nav_find" action="">
<input type="hidden" name="jobOfferID" value="">
<input type="hidden" name="jobID" value="">
</form>
<script type="text/javascript">
<!--
function post_nav_find_action(what, value) {
// alert(what);
document.post_nav_find.action = what + '';
document.post_nav_find.jobOfferID.value = value;
document.post_nav_find.jobID.value = value;
document.post_nav_find.submit();
return false;
}
// -->
</script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="title" content="WrenchBoard: Find a Freelancer | Sell Professional Services" />
<?php include("header_contents.php");?>
</head>
<body id="kt_body" class="bg-body">
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-54829827-4', 'auto');
ga('send', 'pageview');
</script>
<?php
//var_dump($job_data);
?>
<div class="d-flex flex-column flex-root">
<div class="d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed" style="background-image: url(site3/assets/media/background/home.png); ">
<div class="d-flex flex-center flex-column flex-column-fluid p-10 pb-lg-20">
<a href="#" class="mb-12">
<img alt="WrenchBoard" src="/assets/ext/images/wrenchboard.png" class="h-40px" />
</a>
</div>
<!--end::Content-->
<!--begin::Content-->
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<!--begin::Post-->
<div class="post d-flex flex-column-fluid" id="kt_post">
<!--begin::Container-->
<div id="kt_content_container" class="container-xxl">
<!--begin::Row-->
<div class="row g-5 g-xl-8">
<!--begin::Col-->
<div class="col-xl-3">
<!--begin::Tables Widget 1-->
<div class="card card-xl-stretch mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">.</span>
</h3>
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body py-3">
<a href="/login" class="btn btn-primary btn-block btn-sm px-5">Home</a>
</div>
</div>
<!--endW::Tables Widget 1-->
</div>
<!--end::Col-->
<!--begin::Col-->
<div class="col-xl-9">
<!--begin::Tables Widget 2-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1"><?=$job_data->title?></span>
</h3>
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body py-3">
<!--begin::Table container-->
<div class="table-responsive">
<!--begin::Table-->
<?=$market_table?>
<!--end::Table-->
</div>
<!--end::Table container-->
</div>
<!--end::Body-->
</div>
<!--end::Tables Widget 2-->
</div>
<!--end::Col-->
</div>
<!--end::Row-->
</div>
<!--end::Container-->
</div>
<!--end::Post-->
</div>
<!--end::Content-->
<!--begin::Footer-->
<?php include("footer_links.php");?>
</div>
</div>
<script src="/site3/assets/plugins/global/plugins.bundle.js"></script>
<script src="/site3/assets/js/scripts.bundle.js"></script>
<script src="/site3/assets/js/custom/home/general.js"></script>
</body>
<!--end::Body-->
</html>
@@ -151,7 +151,7 @@ $server_name = 'https://'. $_SERVER['HTTP_HOST'];
<!--end::Menu item-->
<!--begin::Menu item-->
<div class="menu-item px-3">
<a href="#" class="menu-link d-flex flex-stack px-5">Statements
<a href="/proj/complete" class="menu-link d-flex flex-stack px-5">Completed Jobs
<i class="fas fa-exclamation-circle ms-2 fs-7" data-bs-toggle="tooltip" title="View your statements"></i></a>
</div>
<!--end::Menu item-->