fix
This commit is contained in:
@@ -744,6 +744,58 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
}
|
||||
}
|
||||
|
||||
public function myoffer() {
|
||||
$data = array();
|
||||
$data = $this->getSessionArray();
|
||||
$data['offer_dash'] = '';
|
||||
$this->load->library('table');
|
||||
$this->table->set_template($this->template);
|
||||
|
||||
$data["offer_dash"] = "<div class=\"thumb\"><img src='assets/images/notask.png' alt=\"Active Projects\"></div>";
|
||||
|
||||
$data["dash_title"] = "<a href='/jobs/pendingoffer'>My Pending Offer(s)</a>";
|
||||
$jbx = "''/jobs/viewmyjob''";
|
||||
$mysql = "SELECT jo.added::date||'<br>'||jo.expire::date,j.title||'<br><b>To :</b>'||jo.email AS tRec,"
|
||||
. 'CASE WHEN jo.status = 1 THEN \'Pending\' ELSE \'Other\' END AS status,'
|
||||
. "'<input type=submit onclick=\"return post_nav_find_action($jbx,'''||jo.offer_code||''')\" name=\"manage\" class=\"btn btn-primary btn-xs\" value=\"View\">' AS View "
|
||||
. "FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id "
|
||||
. "WHERE jo.expire > now() AND jo.status = 1 "
|
||||
. "AND jo.member_id = " . $_SESSION['member_id'] . "LIMIT 400";
|
||||
|
||||
$mysql = "SELECT jo.added::date||'<br>'||jo.expire::date AS job_dates,j.title||'<br><b>To :</b>'||(CASE WHEN jo.public_view > 0 THEN '-Public View' ELSE jo.email END) AS tRec,"
|
||||
. "'<input type=submit onclick=\"return post_nav_find_action($jbx,'''||jo.offer_code||''')\" name=\"manage\" class=\"btn btn-primary btn-xs\" value=\"View\">' AS View "
|
||||
. "FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id "
|
||||
. "WHERE jo.expire > now() AND jo.status = 1 "
|
||||
. "AND jo.member_id = " . $_SESSION['member_id'] . " ORDER BY jo.id DESC LIMIT 400";
|
||||
// . 'CASE WHEN jo.status = 1 AND jo.public_view =0 THEN \'Pending\' WHEN jo.status = 1 AND jo.public_view >0 THEN \'Active\' ELSE \'Other\' END AS status,'
|
||||
|
||||
$query = $this->db->query($mysql);
|
||||
|
||||
$mysql2 = "SELECT jo.added::date AS start_job_date, jo.expire::date AS end_job_date, j.title, (CASE WHEN jo.public_view > 0 THEN '-Public View' ELSE jo.email END) AS job_to,jo.offer_code AS offer_code,"
|
||||
. "'<input type=submit onclick=\"return post_nav_find_action($jbx,'''||jo.offer_code||''')\" name=\"manage\" class=\"btn btn-primary btn-xs\" value=\"View\">' AS View "
|
||||
. "FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id "
|
||||
. "WHERE jo.expire > now() AND jo.status = 1 "
|
||||
. "AND jo.member_id = " . $_SESSION['member_id'] . " ORDER BY jo.id DESC LIMIT 400";
|
||||
$query2 = $this->db->query($mysql2);
|
||||
$data['offer_dash_rows'] = $query2->result();
|
||||
|
||||
$num = $query->num_rows();
|
||||
|
||||
if ($num > 0) {
|
||||
// array('data' => 'Added/Expire', 'style' => 'width:100px')
|
||||
|
||||
$this->table->set_heading(array('data' => 'Added/Expire', 'style' => 'width:100px'), 'Title/Recipient', array('data' => ' ', 'style' => 'width:80px'));
|
||||
$data['offer_dash'] = $this->table->generate($query);
|
||||
|
||||
$offer_found = true;
|
||||
}
|
||||
|
||||
$_SESSION['secure_data'] = $data; // all data needed for secure page
|
||||
$data['page_title'] = "Offer(s)";
|
||||
$this->renderSecurePage('jobs/view_myoffer', $data);
|
||||
|
||||
}
|
||||
|
||||
public function pendingoffer() {
|
||||
$data = array();
|
||||
$data = $this->getSessionArray();
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
<form method="post" name="post_nav_find" action="">
|
||||
<input type="hidden" name="jobOfferID" 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.submit();
|
||||
return false;
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
<?php include('common/jobstrip.php');?>
|
||||
|
||||
<!--begin::Row-->
|
||||
<div class="row g-5 g-xl-8">
|
||||
<!--begin::Col-->
|
||||
<div class="col-xl-6">
|
||||
<!--begin::Tables Widget 5-->
|
||||
<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"><?php echo $dash_title;?> </span>
|
||||
</h3>
|
||||
<div class="card-toolbar">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Header-->
|
||||
<!--begin::Body-->
|
||||
<div class="card-body py-3">
|
||||
<div class="tab-content">
|
||||
<!--begin::Tap pane-->
|
||||
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
|
||||
<!--begin::Table container-->
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table align-middle gs-0 gy-3">
|
||||
<!--begin::Table head-->
|
||||
<thead>
|
||||
|
||||
<tr style="font-weight: bolder;">
|
||||
<th class="p-0 " style="width: 120px;">Added<br>Expire</th>
|
||||
<th class="p-0 min-w-160px">Title<br>Recipient</th>
|
||||
<th class="p-0 w-100px"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!--end::Table head-->
|
||||
<!--begin::Table body-->
|
||||
<tbody>
|
||||
<?php
|
||||
foreach( $offer_dash_rows as $row){
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<?=$row->start_job_date?><br>
|
||||
<?=$row->end_job_date?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-dark fw-bolder text-hover-primary mb-1 fs-6"><?=$row->title?></a>
|
||||
<span class="text-muted fw-bold d-block fs-7">To : <?=$row->job_to?></span>
|
||||
</td>
|
||||
|
||||
<td class="text-end">
|
||||
<a href="#"
|
||||
onclick="return post_nav_find_action('/jobs/viewmyjob','<?=$row->offer_code?>')"
|
||||
class="btn btn-sm btn-icon btn-bg-light btn-active-color-info">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
||||
<rect opacity="0.5" x="18" y="13" width="13" height="2" rx="1" transform="rotate(-180 18 13)" fill="black" />
|
||||
<path d="M15.4343 12.5657L11.25 16.75C10.8358 17.1642 10.8358 17.8358 11.25 18.25C11.6642 18.6642 12.3358 18.6642 12.75 18.25L18.2929 12.7071C18.6834 12.3166 18.6834 11.6834 18.2929 11.2929L12.75 5.75C12.3358 5.33579 11.6642 5.33579 11.25 5.75C10.8358 6.16421 10.8358 6.83579 11.25 7.25L15.4343 11.4343C15.7467 11.7467 15.7467 12.2533 15.4343 12.5657Z" fill="black" />
|
||||
</svg>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</tbody>
|
||||
<!--end::Table body-->
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<!--end::Table-->
|
||||
</div>
|
||||
<!--end::Tap pane-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
</div>
|
||||
<!--end::Tables Widget 5-->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
<!--begin::Col-->
|
||||
<div class="col-xl-6">
|
||||
<!--begin::Tables Widget 5-->
|
||||
<div class="card card-xl-stretch mb-5 mb-xl-8">
|
||||
<!--begin::Header-->
|
||||
<div class="card-header border-0 pt-5">
|
||||
|
||||
</div>
|
||||
<!--end::Header-->
|
||||
<!--begin::Body-->
|
||||
<div class="card-body py-3">
|
||||
<div class="tab-content">
|
||||
<!--begin::Tap pane-->
|
||||
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
|
||||
<!--begin::Table container-->
|
||||
<div class="table-responsive">
|
||||
<!--begin::Table-->
|
||||
|
||||
|
||||
</div>
|
||||
<!--end::Table-->
|
||||
</div>
|
||||
<!--end::Tap pane-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
</div>
|
||||
<!--end::Tables Widget 5-->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
<!--end::Row-->
|
||||
@@ -112,6 +112,7 @@
|
||||
<span class="menu-section text-muted text-uppercase fs-8 ls-1">Activities</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="/proj/active" >
|
||||
<div class="menu-item">
|
||||
<span class="menu-link">
|
||||
@@ -121,11 +122,12 @@
|
||||
<span class="menu-icon">
|
||||
<!--begin::Svg Icon | path: icons/duotune/ecommerce/ecm007.svg-->
|
||||
<span class="svg-icon svg-icon-2">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
||||
<path d="M21 9V11C21 11.6 20.6 12 20 12H14V8H20C20.6 8 21 8.4 21 9ZM10 8H4C3.4 8 3 8.4 3 9V11C3 11.6 3.4 12 4 12H10V8Z" fill="black" />
|
||||
<path d="M15 2C13.3 2 12 3.3 12 5V8H15C16.7 8 18 6.7 18 5C18 3.3 16.7 2 15 2Z" fill="black" />
|
||||
<path opacity="0.3" d="M9 2C10.7 2 12 3.3 12 5V8H9C7.3 8 6 6.7 6 5C6 3.3 7.3 2 9 2ZM4 12V21C4 21.6 4.4 22 5 22H10V12H4ZM20 12V21C20 21.6 19.6 22 19 22H14V12H20Z" fill="black" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
||||
<rect x="2" y="2" width="9" height="9" rx="2" fill="black" />
|
||||
<rect opacity="0.3" x="13" y="2" width="9" height="9" rx="2" fill="black" />
|
||||
<rect opacity="0.3" x="13" y="13" width="9" height="9" rx="2" fill="black" />
|
||||
<rect opacity="0.3" x="2" y="13" width="9" height="9" rx="2" fill="black" />
|
||||
</svg>
|
||||
</span>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
@@ -134,6 +136,30 @@
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="/jobs/myoffer" >
|
||||
<div class="menu-item">
|
||||
<span class="menu-link">
|
||||
|
||||
|
||||
|
||||
<span class="menu-icon">
|
||||
<!--begin::Svg Icon | path: icons/duotune/ecommerce/ecm007.svg-->
|
||||
<span class="svg-icon svg-icon-2">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
||||
<rect x="2" y="2" width="9" height="9" rx="2" fill="black" />
|
||||
<rect opacity="0.3" x="13" y="2" width="9" height="9" rx="2" fill="black" />
|
||||
<rect opacity="0.3" x="13" y="13" width="9" height="9" rx="2" fill="black" />
|
||||
<rect opacity="0.3" x="2" y="13" width="9" height="9" rx="2" fill="black" />
|
||||
</svg>
|
||||
</span>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-title">Pending</span>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
|
||||
<!-- a href="/member/yourpage" >
|
||||
<div class="menu-item">
|
||||
<span class="menu-link">
|
||||
@@ -157,8 +183,10 @@
|
||||
<!--begin::Svg Icon | path: icons/duotune/communication/com013.svg-->
|
||||
<span class="svg-icon svg-icon-2">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
||||
<path d="M6.28548 15.0861C7.34369 13.1814 9.35142 12 11.5304 12H12.4696C14.6486 12 16.6563 13.1814 17.7145 15.0861L19.3493 18.0287C20.0899 19.3618 19.1259 21 17.601 21H6.39903C4.87406 21 3.91012 19.3618 4.65071 18.0287L6.28548 15.0861Z" fill="black" />
|
||||
<rect opacity="0.3" x="8" y="3" width="8" height="8" rx="4" fill="black" />
|
||||
<rect x="2" y="2" width="9" height="9" rx="2" fill="black" />
|
||||
<rect opacity="0.3" x="13" y="2" width="9" height="9" rx="2" fill="black" />
|
||||
<rect opacity="0.3" x="13" y="13" width="9" height="9" rx="2" fill="black" />
|
||||
<rect opacity="0.3" x="2" y="13" width="9" height="9" rx="2" fill="black" />
|
||||
</svg>
|
||||
</span>
|
||||
<!--end::Svg Icon-->
|
||||
|
||||
Reference in New Issue
Block a user