2023-01-25 14:25:37 +00:00
|
|
|
<h2>Jobs</h2>
|
|
|
|
|
<a class="new" href="addjob.php">Add new job</a>
|
|
|
|
|
<table>
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Title</th>
|
|
|
|
|
<th style="width: 15%">Salary</th>
|
|
|
|
|
<th style="width: 5%"> </th>
|
|
|
|
|
<th style="width: 15%"> </th>
|
|
|
|
|
<th style="width: 5%"> </th>
|
|
|
|
|
<th style="width: 5%"> </th>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php foreach ($jobs as $job) { ?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><?=$job->title?></td>
|
|
|
|
|
<td><?=$job->salary?></td>
|
2023-01-25 15:37:06 +00:00
|
|
|
<td><a style="float: right" href="portal/edit?job_id=<?=$job->id?>">Edit</a></td>
|
|
|
|
|
<td><a style="float: right" href="portal/applicants?app_id=<?=$job->id?>">View applicants (count)</a></td>
|
|
|
|
|
<td><form method="post" action="portal/">
|
|
|
|
|
<input type="hidden" name="job_id" value="<?=$job->id?>" />
|
2023-01-25 14:25:37 +00:00
|
|
|
<input type="submit" name="submit" value="Delete" />
|
|
|
|
|
</form></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</thead>
|
|
|
|
|
</table>
|