177 lines
8.0 KiB
PHP
177 lines
8.0 KiB
PHP
<!-- Main content -->
|
|
<form method="post" name="post_nav_find" action="">
|
|
<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;
|
|
}
|
|
|
|
function post_nav_del_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>
|
|
<?php include('common/jobstrip.php'); ?>
|
|
<div class="row g-5 g-xl-8">
|
|
|
|
<?php include('common/jobside.php'); ?>
|
|
<div class="col-xl-9">
|
|
|
|
<!--begin::Tables Widget 12-->
|
|
<div class="card mb-5 mb-xl-8">
|
|
<!--begin::Header-->
|
|
<div class="card-header border-0 pt-5">
|
|
<h3 class="card-title align-items-start flex-column">
|
|
<span class="card-label fw-bolder fs-3 mb-1">Manage Jobs</span>
|
|
<span class="text-muted mt-1 fw-bold fs-7">.</span>
|
|
</h3>
|
|
<div class="card-toolbar">
|
|
<!--begin::Menu-->
|
|
<button type="button" class="btn btn-sm btn-icon btn-color-primary btn-active-light-primary" data-kt-menu-trigger="click" data-kt-menu-placement="bottom-end">
|
|
<!--begin::Svg Icon | path: icons/duotune/general/gen024.svg-->
|
|
<span class="svg-icon svg-icon-2">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
<rect x="5" y="5" width="5" height="5" rx="1" fill="#000000" />
|
|
<rect x="14" y="5" width="5" height="5" rx="1" fill="#000000" opacity="0.3" />
|
|
<rect x="5" y="14" width="5" height="5" rx="1" fill="#000000" opacity="0.3" />
|
|
<rect x="14" y="14" width="5" height="5" rx="1" fill="#000000" opacity="0.3" />
|
|
</g>
|
|
</svg>
|
|
</span>
|
|
<!--end::Svg Icon-->
|
|
</button>
|
|
<!--begin::Menu 2-->
|
|
<div class="menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-800 menu-state-bg-light-primary fw-bold w-200px" data-kt-menu="true">
|
|
<!--begin::Menu item-->
|
|
<div class="menu-item px-3">
|
|
<div class="menu-content fs-6 text-dark fw-bolder px-3 py-4">Quick Actions</div>
|
|
</div>
|
|
<!--end::Menu item-->
|
|
<!--begin::Menu separator-->
|
|
<div class="separator mb-3 opacity-75"></div>
|
|
<!--end::Menu separator-->
|
|
<!--begin::Menu item-->
|
|
<div class="menu-item px-3">
|
|
<a href="/jobs/startcreate" class="menu-link px-3">New Jobs</a>
|
|
</div>
|
|
<!--end::Menu item-->
|
|
<!--begin::Menu item-->
|
|
<div class="menu-item px-3">
|
|
<a href="/proj/pastdue" class="menu-link px-3">Past Due Task(s)</a>
|
|
</div>
|
|
|
|
<div class="menu-item px-3">
|
|
<a href="/proj/complete" class="menu-link px-3">History</a>
|
|
</div>
|
|
<!--end::Menu item-->
|
|
<!--begin::Menu separator-->
|
|
<div class="separator mt-3 opacity-75"></div>
|
|
<!--end::Menu separator-->
|
|
|
|
</div>
|
|
<!--end::Menu 2-->
|
|
<!--end::Menu-->
|
|
</div>
|
|
</div>
|
|
<!--end::Header-->
|
|
<!--begin::Body-->
|
|
<div class="card-body py-3">
|
|
<!--begin::Table container-->
|
|
<div class="table-responsive">
|
|
<!--begin::Table-->
|
|
<table class="table align-middle gs-0 gy-4">
|
|
<!--begin::Table head-->
|
|
<thead>
|
|
<tr class="fw-bolder text-muted bg-light">
|
|
<th class="ps-4 min-w-300px rounded-start">Task/Description</th>
|
|
<th class="min-w-105px">Price</th>
|
|
<th class="min-w-200px text-end rounded-end"></th>
|
|
</tr>
|
|
</thead>
|
|
<!--end::Table head-->
|
|
<!--begin::Table body-->
|
|
<tbody>
|
|
<?php
|
|
foreach ($job_table_rows as $row){
|
|
// var_dump( $row );
|
|
?>
|
|
<tr>
|
|
<td>
|
|
<div class="d-flex align-items-center">
|
|
<div class="symbol symbol-50px me-5">
|
|
<span class="symbol-label bg-light">
|
|
<img src="assets/media/svg/avatars/001-boy.svg" class="h-75 align-self-end" alt="" />
|
|
</span>
|
|
</div>
|
|
<div class="d-flex justify-content-start flex-column">
|
|
<a href="#" onclick="return post_nav_find_action('/jobs/processjob',<?=$row->job_id?> )"
|
|
class="text-dark fw-bolder text-hover-primary mb-1 fs-6"><?=$row->title?></a>
|
|
<span class="text-muted fw-bold text-muted d-block fs-7"><?=$row->description?></span>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<a href="#" class="text-dark fw-bolder text-hover-primary d-block mb-1 fs-6"><?=$row->amount?></a>
|
|
<span class="text-muted fw-bold text-muted d-block fs-7"><?=$row->timeline_days?> day(s)</span>
|
|
</td>
|
|
<td class="text-end">
|
|
<a href="#" onclick="return post_nav_find_action('/jobs/processjob',<?=$row->job_id?> )" class="btn btn-bg-light btn-color-muted btn-active-color-primary btn-sm px-4 me-2">View</a>
|
|
<a href="#" onclick="return deleteJob(<?=$row->job_id?>)" class="btn btn-bg-light btn-color-muted btn-active-color-danger btn-sm px-4">Del</a>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
<!--end::Table body-->
|
|
</table>
|
|
<!--end::Table-->
|
|
</div>
|
|
|
|
|
|
<div class="d-flex flex-stack flex-wrap pt-10" style="text-align:center;">
|
|
<?php echo $links; ?>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
function deleteJob(link_id) {
|
|
if (confirm("Are you sure you want to delete this task?")) {
|
|
// do something
|
|
} else {
|
|
return false;
|
|
}
|
|
//$('#subdel'+link_id).html('Processing...');
|
|
$('#dacc' + link_id).prop('disabled', true);
|
|
$.ajax({
|
|
url: "/jobs/deletejob?proc=DELETE&job_id=" + link_id
|
|
}).done(function (data) {
|
|
$('#subdel' + link_id).html(data);
|
|
document.offer_individual.rec_email.value = '';
|
|
$('#dacc' + link_id).prop('disabled', false);
|
|
});
|
|
return false;
|
|
}
|
|
|
|
// -->
|
|
</script>
|