fix
This commit is contained in:
@@ -715,6 +715,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
$data["timeline_days"] = $out["timeline_days"];
|
||||
$data["price"] = $out["price"];
|
||||
$data["offer_code"] = $out["offer_code"];
|
||||
$data['is_public_view'] = $out['public_view'];
|
||||
$a_from = array('\t','\n','\r','\0','\v');
|
||||
$a_to = array("\t","\n","\r","","");
|
||||
$data["job_description"] = trim(trim(str_replace($a_from,$a_to,$out["job_description"])),'"'); // str_replace('"','\"',$out["job_description"]); // $out["job_description"];
|
||||
|
||||
@@ -176,7 +176,8 @@ class Job_model extends CI_Model {
|
||||
public function readMyloadJobOffer($member_id, $offer_code) {
|
||||
$out = array();
|
||||
$out['result'] = 0;
|
||||
$mysql = "SELECT jo.added::date AS added_date,j.title,j.description, j.timeline_days, j.price*0.01 AS price,jo.offer_code,jo.job_description,jo.expire,(CASE WHEN jo.public_view > 0 THEN 'Public View' ELSE jo.email END ) AS job_sent_to "
|
||||
$mysql = "SELECT jo.added::date AS added_date,j.title,j.description, j.timeline_days, j.price*0.01 AS price,public_view,"
|
||||
." jo.offer_code,jo.job_description,jo.expire,(CASE WHEN jo.public_view > 0 THEN 'Public View' ELSE jo.email END ) AS job_sent_to "
|
||||
. "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 = " . $member_id . " AND jo.offer_code='" . $offer_code . "' ";
|
||||
@@ -192,6 +193,7 @@ class Job_model extends CI_Model {
|
||||
$out['offer_code'] = $q->row()->offer_code;
|
||||
$out['job_description'] = $q->row()->job_description;
|
||||
$out['expire'] = $q->row()->expire;
|
||||
$out['public_view'] = $q->row()->public_view;
|
||||
$out['result'] = 1;
|
||||
} else {
|
||||
|
||||
|
||||
@@ -119,7 +119,19 @@
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
<input type="button" name="sendjob_resend" id="sendjob_resend" onclick="return resendOffer();" value='Resend Offer' class="btn btn-primary btn-sm btn-block " >
|
||||
<? if($is_public_view > 0){
|
||||
?>
|
||||
Job sent to <?php echo $job_sent_to; ?>
|
||||
|
||||
<?php
|
||||
}
|
||||
else{
|
||||
?>
|
||||
<input type="button" name="sendjob_resend" id="sendjob_resend" onclick="return resendOffer();" value='Resend Offer' class="btn btn-primary btn-sm btn-block " >
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user