fix
This commit is contained in:
@@ -607,13 +607,14 @@ class Jobs extends Users_Controller {
|
||||
|
||||
public function showinterest() {
|
||||
$data = $this->getSessionArray();
|
||||
$data['offer_code'] = $this->input->get('job_contract');
|
||||
$data['member_id'] = $_SESSION['member_id']; // just maing sure
|
||||
$in=[];
|
||||
$in['offer_code'] = $this->input->get('job_contract');
|
||||
$in['member_id'] = $_SESSION['member_id']; // just maing sure
|
||||
|
||||
$data['action'] = WRENCHBOARD_JOB_SEND_INTEREST;
|
||||
$in['action'] = WRENCHBOARD_JOB_SEND_INTEREST;
|
||||
$this->load->model('backend_model');
|
||||
$out = array();
|
||||
$res = $this->backend_model->wrenchboard_api($data, $out);
|
||||
$res = $this->backend_model->wrenchboard_api($in, $out);
|
||||
if ($res == PHP_CREATED_OK) {
|
||||
echo 'Success - ' . $out['status'];
|
||||
} else {
|
||||
@@ -707,12 +708,12 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
. "<tr><td><b>Description</b></td><td>" . $row['description'] . "</td></tr>"
|
||||
. "<tr><td><b>Detail</b></td><td>" . $row['job_description'] . "</td></tr>"
|
||||
. "<tr><td colspan='2' >Interests : <b>" . $data['interest'] . "</b> Expire:<b> " . $row['expire']."</b> </td></tr>"
|
||||
. "<tr><td><b></b></td><td style='text-align:right;'><input type=submit id='submit_interest_" . $row['offer_code'] . "' name=\"mview\" onclick=\"return SInterest('" . $row['offer_code'] . "');\" class=\"btn btn-success btn-xs\" value=\"Send Interest Request
|
||||
\"></td></tr>"
|
||||
. "<tr><td colspan='2'>If you have any questions about this task :"
|
||||
. "<tr><td colspan='2' style='text-align:center; padding-bottom: 10px;'><b>If you are interested in this task, send message to the owner </b><input type=submit id='submit_interest_" . $row['offer_code'] . "' name=\"mview\" onclick=\"return SInterest('" . $row['offer_code'] . "');\" class=\"btn btn-success btn-xs\" value=\"Send Interest Request\"></td></tr>"
|
||||
. "<tr><td colspan='2'><div id='" . $row['offer_code'] . "'></div><hr size='1'></td></tr>"
|
||||
."<tr><td colspan='2'>If you have any questions about this task :"
|
||||
. "<div id='msg_result_" . $row['offer_code'] . "'><form name=\"job_message\"><table class='table table-striped table-hover table-bordered table-condensed'>"
|
||||
. "<tr><td><textarea name='yourmessage' cols=\"5\" rows=\"3\" class=\"textarea form-control\" class=\"btn btn-success btn-xs\" placeholder=\"Enter message here ...\"></textarea></td></tr>"
|
||||
. "<tr><td style='text-align:right;'><button id='submit_yourmessage_" . $row['offer_code'] . "' onclick=\"return OMessage('" . $row['offer_code'] . "');\" class=\"btn btn-info btn-xs\">Send Message</button></td></tr></table></form></div>"
|
||||
. "<tr><td><textarea name='yourmessage' cols=\"5\" rows=\"3\" class=\"textarea form-control\" class=\"btn btn-warning btn-xs\" placeholder=\"Enter message here ...\"></textarea></td></tr>"
|
||||
. "<tr><td style='text-align:right;'><button id='submit_yourmessage_" . $row['offer_code'] . "' onclick=\"return OMessage('" . $row['offer_code'] . "');\" class=\"btn btn-warning btn-sm\">Send Message</button></td></tr></table></form></div>"
|
||||
. "</td></tr>"
|
||||
. " </table></div>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user