This commit is contained in:
2022-05-21 11:36:05 -04:00
parent 1957c7f1d9
commit fe17055c90
2 changed files with 54 additions and 3 deletions
+10 -1
View File
@@ -770,7 +770,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_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,j.title||'<br><b>To :</b>'||(CASE WHEN jo.public_view > 0 THEN '-Public View' ELSE jo.email END) AS tRec,"
$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 "
@@ -779,6 +779,14 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
$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) {
@@ -786,6 +794,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
$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;
}
@@ -37,9 +37,51 @@
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<!--begin::Table container-->
<div class="table-responsive">
<!--begin::Table-->
<?php echo $offer_dash; ?>
<table class="table align-middle gs-0 gy-3">
<!--begin::Table head-->
<thead>
<tr>
<th>
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
//var_dump($sendmoney_table_result);
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">
<i class="bi bi-three-dots fs-5"></i>
</a>
</td>
</tr>
<?php
}
?>
</tbody>
<!--end::Table body-->
</table>
</div>
<!--end::Table-->