This commit is contained in:
2022-03-20 20:11:29 -04:00
parent 7865c34b7d
commit f62840a450
9 changed files with 338 additions and 91 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ $url = $local_url . "/createuser";
$username = urlencode("jubaworker+" . rand(1000, 9999) . "@gmail.com");
$username = "jubaworker+" . rand(1000, 9999) . "@gmail.com";
//$username = "ameye+" . rand(1000, 9999) . "@chiefsoft.com";
$username = "ameye+auto" . rand(1000, 9999) . "@chiefsoft.com";
//$username = "ses66181+" . rand(1000, 9999) . "@gmail.com";
$phone = (rand(1, 2) > 1) ? "770222" . rand(2222, 9999) : '';
+23 -18
View File
@@ -138,9 +138,12 @@ class Jobs extends Users_Controller {
$this->load->view('users/view_header_user', $data);
/* $this->load->view('users/view_header_user', $data);
$this->load->view('jobs/view_pendinginterest', $data);
$this->load->view('users/view_footer_user', $data);
$this->load->view('users/view_footer_user', $data); */
$this->renderSecurePage('jobs/view_pendinginterest', $data);
}
public function jobinterest() {
@@ -214,9 +217,12 @@ class Jobs extends Users_Controller {
$this->load->view('users/view_header_user', $data);
/* $this->load->view('users/view_header_user', $data);
$this->load->view('jobs/view_manageinterest', $data);
$this->load->view('users/view_footer_user', $data);
$this->load->view('users/view_footer_user', $data);*/
$this->renderSecurePage('jobs/view_manageinterest', $data);
}
private function getMarketInterestMessage($offer_code, $client_id) {
@@ -724,9 +730,13 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] )
$_SESSION['secure_data'] = $data; // all data needed for secure page
$data['page_title'] = "my Market Job(s)";
$this->load->view('users/view_header_user', $data);
/* $this->load->view('users/view_header_user', $data);
$this->load->view('jobs/view_pendingoffer', $data);
$this->load->view('users/view_footer_user', $data);
*/
$this->renderSecurePage('jobs/view_pendingoffer', $data);
}
public function jobgrp() {
@@ -910,11 +920,11 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] )
public function jobagree() {
$data = $this->getSessionArray();
//echo 'Ameye-- '. rand(100,999);
//print_r($this->input->post());
if ($_POST) {
//echo rand(1000,9999);
$in = array();
$in['action'] = WRENCHBOARD_ACCOUNT_TERMS;
$in['action_item'] = ACCOUNT_AGREE_JOBS;
@@ -923,7 +933,6 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] )
$out = array();
$res = $this->backend_model->wrenchboard_api($in, $out);
if ($res == PHP_API_OK) {
redirect('/jobs/create');
}
@@ -931,13 +940,7 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] )
$data['page_key'] = 'WRB_POST_JOB_TERM';
$data['txt_detail'] = $this->readFixedText($data['page_key']);
$this->load->view('users/view_header_user', $data);
$this->load->view('jobs/view_jobagree', $data);
$this->load->view('users/view_footer_user', $data);
$this->renderSecurePage('jobs/view_jobagree', $data);
}
private function processingJob($jobID) {
@@ -1248,9 +1251,11 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] )
$data['page_title'] = "Manage Job(s)";
$data['job_table'] = $this->table->generate($query);
$this->load->view('users/view_header_user', $data);
/* $this->load->view('users/view_header_user', $data);
$this->load->view('jobs/view_manage', $data);
$this->load->view('users/view_footer_user', $data);
$this->load->view('users/view_footer_user', $data); */
$this->renderSecurePage('jobs/view_manage', $data);
}
}
+5 -2
View File
@@ -125,9 +125,12 @@ class Proj extends Users_Controller {
$data['current_balance'] = $out['current_balance'];
$data['new_message'] = $out['new_message'];
$this->load->view('users/view_header_user', $data);
/* $this->load->view('users/view_header_user', $data);
$this->load->view('jobs/view_activejob', $data);
$this->load->view('users/view_footer_user', $data);
$this->load->view('users/view_footer_user', $data);*/
//view_pastduejob.php
$data['page_title'] ="Past Due";
$this->renderSecurePage('jobs/view_activejob', $data);
}
}
+3 -2
View File
@@ -43,14 +43,15 @@ class Bko_Controller extends WRB_Controller {
$data = array();
$this->load->library('table');
$this->table->set_template($this->template);
$mysql = "SELECT '<b>ADDED:</b>'||added::date||'<br><b>EXPIRE:</b>'||expire::date||'<br>'||username||'<br><b>Name:</b>'||firstname||' '||lastname AS signup,"
$mysql = "SELECT '<b>ADDED:</b>'||added::date||'<br><b>EXPIRE:</b>'||expire::date||'<br>'||username||'<br><b>Name:</b>'||firstname||' '||lastname AS signup, country,"
. " (CASE WHEN status=1 THEN '<div id=\"btu'||id||'\"><button id=\"acc'||id||'\" class=\"btn btn-info btn-xs\" onclick=\"return resendLink('''||id||''');\" >Resend</button></div>' ELSE ' ' END) AS action ,"
. " (CASE WHEN status=1 THEN '<div id=\"dtu'||id||'\"><button id=\"del'||id||'\" class=\"btn btn-warning btn-xs\" onclick=\"return deleteLink('''||id||''');\" >Del</button></div>' ELSE ' ' END) AS Del "
. " FROM members_pending WHERE expire> now() AND status = 1"
. " ORDER BY id desc limit 5";
$query = $this->db->query($mysql);
// $this->table->set_heading('Dates', 'Username', 'Name', 'Action');
$this->table->set_heading(array('data' => 'Date/Email/Name', 'style' => 'width:180px'), array('data' => 'RES', 'style' => 'width:20px; cellpadding:0px;'), array('data' => 'Del', 'style' => 'width:20px; cellpadding:0px;'));
$this->table->set_heading(array('data' => 'Date/Email/Name', 'style' => 'width:180px'),array('data' => 'Country', 'style' => 'width:20px; cellpadding:0px;'),
array('data' => 'RES', 'style' => 'width:20px; cellpadding:0px;'), array('data' => 'Del', 'style' => 'width:20px; cellpadding:0px;'));
$data['pending_dash_table'] = $this->table->generate($query);
+69 -19
View File
@@ -1,28 +1,78 @@
<!-- Main content -->
<div class="content-wrapper">
<?php include('common/jobstrip.php'); ?>
<?php include('common/jobstrip.php'); ?>
<!--begin::Row-->
<div class="row g-5 g-xl-8">
<div class="col-xl-12">
<!--begin::Charts Widget 1-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<!--begin::Title-->
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Additional Terms for Jobs Posting.</span>
</h3>
<!--end::Title-->
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body">
<div class="tab-content">
<!--begin::Tap pane-->
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<!--begin::Table container-->
<h4>All terms of sale must follow WrenchBoard policies for buying and selling. Setting and meeting expectations in a listing's terms of sale ensure a smooth transaction and buyer satisfaction while helping WrenchBoard remain a reputable marketplace.</h4>
<br>
<h3 class="text-dark mb-5 fw-boldest">What is the policy? </h3>
<h4> Task or Job owners should provide clear and accurate delivery terms and conditions required to meet the expectations they have set in their listings. These should include:</h4>
<ul class="list-group">
<li class="list-group-item">Delivery mode, timelines, and reviews</li>
<li class="list-group-item">The forms of payment available for the task </li>
<li class="list-group-item"> A returns policy:
<ul class="list-group">
<li class="list-group-item">Clearly stated criteria under which cancellation will be accepted.</li>
<li class="list-group-item">Clearly stated the time period in which the buyer must notify the seller about the delivery delay.</li>
<li class="list-group-item">How refunds/returns/cancellations will be issued</li>
</ul>
</li>
</ul>
<br>
<br>
<br>
<h4>Activity that doesn't follow WrenchBoard policy could result in a range of actions, including for example: administratively ending or canceling listings, hiding or demoting all listings from search results, lowering rating, buying or selling restrictions, and account suspension.
<br>
All fees paid or payable concerning listings or accounts on which we take any action will not be refunded or otherwise credited to your account.</h4>
<br>
<h3 class="text-dark mb-5 fw-boldest">Why does WrencBoard have this policy?</h3>
<h4>Buyers and sellers enter a contract when they complete transactions, so it's necessary to have precise details on what the transaction entails to guarantee satisfaction. This policy also helps sellers meet our performance standards.</h4>
<!-- Marketing campaigns -->
<div class="panel panel-flat">
<div class="panel-heading">
<form class="form-horizontal" action="/jobs/jobagree" method='POST'>
<input type='hidden' name='agree_jobs' value='agree_jobs' >
<div class="panel-body">
<div class="row">
<?php echo $txt_detail; ?>
<div class="col-md-10 col-md-offset-1">
<div class="text-right">
<button type="submit" class="btn btn-primary">Agree to Terms <i class="icon-arrow-right14 position-right"></i></button>
</div>
</div>
</div>
<!--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>
</div>
</div>
</form>
</div>
<!--end::Body-->
</div>
<!--end::Charts Widget 1-->
</div>
<!-- /marketing campaigns -->
</div>
<!-- /main content -->
<!--end::Row-->
+94 -33
View File
@@ -21,50 +21,111 @@
}
// -->
</script>
<div class="content-wrapper">
<!-- Quick stats boxes -->
<?php include('common/jobstrip.php'); ?>
<!-- /quick stats boxes -->
<?php include('common/jobstrip.php'); ?>
<!-- Marketing campaigns -->
<div class="panel panel-flat">
<div class="panel-heading">
<!--div class="btn-group btn-group-justified">
<a href="#" class="btn bg-slate-700">Left</a>
<a href="#" class="btn bg-slate-700">Middle</a>
<a href="#" class="btn bg-slate-700">Right</a>
</div -->
<!--begin::Row-->
<div class="row g-5 g-xl-8">
<!--begin::Col-->
<div class="col-xl-9">
<!--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">
Manage Jobs
</h3>
<div class="card-toolbar">
<div class="row">
<div class="col-md-3">
<p><a class="btn btn-secondary btn-xs btn-block" href="/jobs/manage">My Job(s)</a></p>
</div>
<div class="col-md-3">
<p><a class="btn btn-success btn-xs btn-block" href="/jobs/create">Create Job</a></p>
</div>
<div class="col-md-3">
<p><a class="btn btn-info btn-xs btn-block" href="/proj/complete">Completed Jobs(s)</a></p>
</div>
<div class="col-md-3">
<p><a class="btn btn-warning btn-xs btn-block" href="/proj/pastdue">Past Due</a></p>
</div>
</div>
<div class="table-responsive" style='height: 550px;'>
<?php echo $job_table ?>
<div class="panel-heading">
<!--end::Header-->
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<div class="row">
<div class="col-md-4">
<a class="btn btn-secondary btn-xs btn-block" href="/jobs/manage">My Job(s)</a>
</div>
<div class="col-md-4">
<a class="btn btn-success btn-xs btn-block" href="/jobs/create">Create Job</a>
</div>
<div class="col-md-4">
</div>
</div>
</h3>
<div class="card-toolbar">
<a class="btn btn-info btn-xs btn-block" href="/proj/complete">Completed</a> &nbsp;&nbsp;
<a class="btn btn-warning btn-xs btn-block" href="/proj/pastdue">Past Due</a>
</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-->
<?php echo $job_table ?>
<!--end::Table-->
</div>
<!--end::Tap pane-->
<?php echo $links; ?>
</div>
</div>
<!--end::Body-->
</div>
<!--end::Tables Widget 5-->
</div>
<!-- /marketing campaigns -->
<!--end::Col-->
<!--begin::Col-->
<div class="col-xl-3">
<!--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">
.
</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">
<!--begin::Table-->
..
</div>
<!--end::Table-->
</div>
<!--end::Tap pane-->
</div>
</div>
<!--end::Body-->
</div>
<!--end::Tables Widget 5-->
</div>
<!--end::Col-->
</div>
<!-- /main content -->
<!--end::Row-->
<script type="text/javascript">
<!--
@@ -0,0 +1,135 @@
<!-- Main content -->
<form method="post" name="post_nav_find" action="/proj/thisjob">
<input type="hidden" name="jobID" 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.jobID.value = value;
document.post_nav_find.submit();
return false;
}
// -->
</script>
<!-- Quick stats boxes -->
<?php include('common/jobstrip.php');?>
<!-- /quick stats boxes -->
<!--begin::Row-->
<div class="row g-5 g-xl-8">
<div class="col-xl-12">
<!--begin::Charts Widget 1-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<!--begin::Title-->
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Past Due</span>
</h3>
<!--end::Title-->
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body">
<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-->
<?php echo $job_table ?>
</div>
<!--end::Table-->
<?php echo $links; ?>
</div>
<!--end::Tap pane-->
</div>
</div>
<!--end::Body-->
</div>
<!--end::Charts Widget 1-->
</div>
</div>
<!--end::Row-->
<script type="text/javascript">
<!--
function showModal(interest_id) {
if (typeof event !== 'undefined') {
event.preventDefault();
}
// collect data - either from forms or from data variables
var id = $(this).data('id');
// load the modal content with a loader gif and message
$('#modal-content').html('Loading...');
// show modal window
$('#modal_theme_primary').modal('show');
// do the ajax bit
var post_data = {
'interest_id': id,
};
$.ajax({
url: "/jobs/jobinterest_modal?interest_id="+interest_id
}).done(function (data) {
//alert(data);
$('#modal-content').html(data);
});
}
function showJobModal(contact_id) {
if (typeof event !== 'undefined') {
event.preventDefault();
}
// collect data - either from forms or from data variables
var id = $(this).data('id');
// load the modal content with a loader gif and message
$('#modal-content').html('Loading...');
// show modal window
$('#modal_theme_primary').modal('show');
// do the ajax bit
var post_data = {
'interest_id': id,
};
//alert(contact_id);
$.ajax({
url: "/jobs/jobdetail_modal?contact_id="+contact_id
}).done(function (data) {
// alert(data);
$('#modal-content').html(data);
});
}
// -->
</script>
<!-- Basic modal -->
<div id="modal_theme_primary" class="modal fade">
<div class="modal-dialog mw-650px">
<div class="modal-content" id="modal-content">
</div>
</div>
</div>
<!-- /basic modal -->
@@ -11,11 +11,14 @@
return false;
}
// -->
</script>
</script>
<?php include('common/jobstrip.php');?>
<!-- Main content -->
<div class="content-wrapper">
<?php include('common/jobstrip.php');?>
<!-- Main charts -->
<div class="row">
@@ -25,7 +28,7 @@
</div>
<!-- /main charts -->
<div class="row">
<div class="col-md-9">
<div class="col-md-12">
<div class="panel panel-flat">
<div class="panel-heading">
<h6 class="panel-title"><b><?php echo $dash_title;?></b></h6>
@@ -33,18 +36,7 @@
<?php echo $offer_dash; ?>
</div>
</div>
<div class="col-md-3">
<div class="thumbnail">
<div class="thumb">
<a href="/proj/active" class="text-default"><img src="/assets/images/activeproject_dash.png" alt="Active Projects"></a>
</div>
<div class="caption">
<h6 class="no-margin-top text-semibold"><a href="/proj/active" class="text-default">My Active Projects</a> <a href="/proj/active" class="text-muted"><i class="icon-download pull-right"></i></a></h6>
View active project. manage list and communication with deliverables.
</div>
</div>
</div>
</div>
+2 -2
View File
@@ -36,8 +36,8 @@
<a href="/signup" class="link-primary fw-bolder">Create an Account</a></div>
</div>
<div class="fv-row mb-10">
<label class="form-label fs-6 fw-bolder text-dark">Email</label>
<input class="form-control form-control-lg form-control-solid" type="text" placeholder="Username" value='<?php echo $email; ?>' required="required" readonly autocomplete="off" />
<label class="form-label fs-6 fw-bolder text-dark">Username/Email</label>
<input class="form-control form-control-lg form-control-solid" type="text" name="username" placeholder="Username" value='<?php echo $email; ?>' required="required" readonly autocomplete="off" />
</div>
<div class="fv-row mb-10">
<div class="d-flex flex-stack mb-2">