fix
This commit is contained in:
@@ -921,6 +921,7 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] )
|
||||
// $timeline_days = NULL;
|
||||
$price = NULL;
|
||||
$submit = NULL;
|
||||
$country_job ='NG';
|
||||
|
||||
extract($_POST);
|
||||
$redirected = false;
|
||||
@@ -932,6 +933,7 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] )
|
||||
$in['job_detail'] =$this->input->post('job_detail'); // Somehow this doesnt show when large $job_detail;
|
||||
$in['price'] = $price * 100;
|
||||
$in['member_id'] = $_SESSION['member_id'];
|
||||
$in['country'] = $country_job;
|
||||
|
||||
$this->load->model('job_model');
|
||||
if ($this->job_model->verifyJobInputs($in) == true) {
|
||||
@@ -988,13 +990,26 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] )
|
||||
}
|
||||
}
|
||||
|
||||
public function agreejobterms(){
|
||||
$data = $this->getSessionArray();
|
||||
$in = array();
|
||||
$in['action'] = WRENCHBOARD_ACCOUNT_TERMS;
|
||||
$in['action_item'] = ACCOUNT_AGREE_JOBS;
|
||||
$in['member_id'] = $_SESSION['member_id'];
|
||||
$this->load->model('backend_model');
|
||||
$out = array();
|
||||
$res = $this->backend_model->wrenchboard_api($in, $out);
|
||||
|
||||
if ($res == PHP_API_OK) {
|
||||
redirect('/jobs/create');
|
||||
}
|
||||
}
|
||||
|
||||
public function jobagree() {
|
||||
$data = $this->getSessionArray();
|
||||
|
||||
|
||||
//$this->agreejobterms();
|
||||
|
||||
if ($_POST) {
|
||||
//echo rand(1000,9999);
|
||||
$in = array();
|
||||
$in['action'] = WRENCHBOARD_ACCOUNT_TERMS;
|
||||
$in['action_item'] = ACCOUNT_AGREE_JOBS;
|
||||
|
||||
@@ -23,14 +23,14 @@ class Paymnt extends Users_Controller {
|
||||
public function paycc() {
|
||||
$data = $this->getSessionArray();
|
||||
$data['card_table_result'] = $this->cardListData(4)['card_table_result'];
|
||||
$data['page_title'] ="Deposit Funds";
|
||||
$data['page_title'] ="Deposit Funds with Credit or Debit Card(s)";
|
||||
$this->RenderUserPage('users/view_startpaymus', $data);
|
||||
}
|
||||
|
||||
public function paypal() {
|
||||
$data = $this->getSessionArray();
|
||||
$data['card_table_result'] = $this->cardListData(4)['card_table_result'];
|
||||
$data['page_title'] ="Deposit Funds";
|
||||
$data['page_title'] ="Deposit Funds with PayPal";
|
||||
$this->RenderUserPage('users/view_paypal', $data);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<!--end::Tap pane-->
|
||||
|
||||
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1" style=" padding-top: 35px; text-align: right">
|
||||
<form action="/jobs/jobagree" method='POST'> <button type="submit" class="btn btn-sm btn-primary">Agree to Terms <i class="icon-arrow-right14 position-right"></i></button> </form>
|
||||
<form action="/jobs/jobagree" onclick="start_agree();"> <a class="btn btn-sm btn-primary">Agree to Terms <i class="icon-arrow-right14 position-right"></i></a> </form>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -75,4 +75,18 @@
|
||||
<!--end::Row-->
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
function start_agree() {
|
||||
alert(100);
|
||||
$.ajax({
|
||||
url: "/jobs/agreejobterms?interest_id=0"
|
||||
}).done(function (data) {
|
||||
$('#modal-content').html(data);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// -->
|
||||
</script>
|
||||
@@ -43,7 +43,7 @@
|
||||
<!--end::Tap pane-->
|
||||
|
||||
</div>
|
||||
<div style="padding: 25px; width: 100%; text-align: center; background-color: yellow">
|
||||
<div style="padding: 25px; width: 100%; text-align: center;">
|
||||
<a class="btn btn-block btn-info" href="/paymnt/paypal">Deposit</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -76,7 +76,7 @@
|
||||
<!--end::Tap pane-->
|
||||
|
||||
</div>
|
||||
<div style="padding: 25px; width: 100%; text-align: center; background-color: yellow">
|
||||
<div style="padding: 25px; width: 100%; text-align: center;">
|
||||
<a class="btn btn-block btn-info" href="/paymnt/paycc">Deposit</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -109,7 +109,7 @@
|
||||
<!--end::Tap pane-->
|
||||
|
||||
</div>
|
||||
<div style="padding: 25px; width: 100%; text-align: center; background-color: yellow">
|
||||
<div style="padding: 25px; width: 100%; text-align: center; ">
|
||||
<a class="btn btn-block btn-info" href="/paymnt/paybankdeposit">Deposit</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user