Files
orico-official-website-old/app/admin/view/job/lists.html
2024-10-29 14:04:59 +08:00

129 lines
5.9 KiB
HTML
Executable File

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
招聘管理
<small>招聘列表</small>
</h1>
<ol class="breadcrumb">
<li><a href="<?php echo url('/admin');?>"><i class="fa fa-dashboard"></i> 首页</a></li>
<li><a href="<?php echo url('/admin/job/lists');?>"> 招聘</a></li>
<li class="active"> 招聘列表</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">招聘列表</h3>
<div class="box-tools pull-right">
<a href="<?php echo url('/admin/job/add');?>" class="btn btn-block btn-primary">添加招聘信息</a>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body no-padding">
<?php if(!empty($list)): ?>
<div class="table-responsive lists-table">
<table class="table table-hover table-bordered">
<tbody>
<tr>
<th width="60rem" class="text-center">ID</th>
<th width="100rem" class="text-center">部门</th>
<th width="180rem" class="text-center">招聘岗位</th>
<th width="80rem" class="text-center">招聘人数</th>
<th width="200rem" class="text-center">经验要求</th>
<th width="80rem" class="text-center">学历要求</th>
<th width="150rem" class="text-center">发布时间</th>
<th width="150rem" class="text-center">截止时间</th>
<th width="45rem" class="text-center">排序</th>
<th width="45rem" class="text-center">状态</th>
<th width="150rem" class="text-center">操作</th>
</tr>
<?php foreach($list as $key => $value):?>
<tr>
<td class="text-center"><?php echo $value['id'];?></td>
<td class="text-center"><?php echo $value['department'];?></td>
<td class="text-center"><a href=""><?php echo $value['job_name'];?></a></td>
<td class="text-center"><?php echo $value['count'];?></td>
<td class="text-center"><?php echo $value['experience_requirement'];?></td>
<td class="text-center"><?php echo $value['education'];?></td>
<td class="text-center"><?php echo $value['publish_time'];?></td>
<td class="text-center"><?php echo $value['end_time'];?></td>
<td class="text-center"><input size="3" maxlength="7" value="<?php echo $value['sort'];?>" type="text" data-id="<?php echo $value['id'];?>" data-url="<?php echo url('/admin/job/updatesort');?>" data-cod="sort"></td>
<td class="text-center"><?php echo array_switch(array('1' => '<span class="label label-warning">已删除</span>', '0' => '<span class="label label-success">启用</span>'),$value['stat']);?></td>
<td class="text-center">
<a class="btn btn-xs btn-info" onclick="qiyong(<?php echo $value['id']; ?>)">启用</a>
<a class="btn btn-xs btn-info" href="/admin/job/edit/id/<?php echo $value['id']; ?>">编辑</a>
<a class="btn btn-xs btn-info" data-id="<?php echo $value['id'];?>" data-url="<?php echo url('/admin/job/delete');?>" data-cod="dowarn">删除</a>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
<!-- /.table -->
</div>
<?php endif;?>
<!-- /.lists-table -->
</div>
<!-- /.box-body -->
<div class="box-footer no-padding">
<div class="mailbox-controls row">
<div class="col-sm-6">
<div class="pull-right">
<?php if($page):?>
<?php echo $page;?>
<?php endif;?>
</div>
<!-- /.pull-right -->
</div>
</div>
</div>
</div>
<!-- /.box -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<style>
.table-responsive .table tbody > tr > th,.table-responsive .table thead > tr > td, .table-responsive .table tbody > tr > td {
vertical-align: middle;
}
</style>
<!-- Page Script -->
<script type="text/javascript">
$(function() {
});
function qiyong(id)
{
var url = '/admin/job/qiyong';
var data = {
id: id
}
$.ajax({
url: url,
type: 'post',
dataType: 'json',
data: data,
success: function(res) {
if (res.code < 0)
{
alert(res.msg);
}
else if (res.code == 200)
{
location.reload();
}
}
})
}
</script>