<?php
/**
 * 芋头CMS
 * ============================================================================
 * 版权所有 2016-2028 沅陵县乌托邦网络服务有限公司，并保留所有权利。
 * 网站地址: http://www.yutoucms.cn
 * ----------------------------------------------------------------------------
 * 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷。
 * ============================================================================
 * Author: 芋头 <mxgsf@qq.com>
 * Date: 2026-5-30
 */
if (!defined('ROOT_PATH')) { exit('Access Denied'); }
if (!isset($recruit) && isset($id) && $id > 0) {
    $recruit = $db->fetch("SELECT r.*, c.channel_name FROM {$db->table('recruit')} r LEFT JOIN {$db->table('channel')} c ON r.channel_id=c.id WHERE r.id=? AND r.status=1", [$id]);
}
$pageTitle = htmlspecialchars($recruit['title'] ?? '招聘详情');
require_once __DIR__ . '/../_header.php';
$detailChannelName = $recruit['channel_name'] ?? '人才招聘';
$detailTitle = $recruit['title'] ?? '';
$detailBreadcrumb = '招聘详情';
$detailDateRaw = $recruit['create_time'] ?? 0;
$detailAuthorRaw = $recruit['author'] ?? '';
$detailHitsRaw = $recruit['hits'] ?? 0;
$detailSummaryRaw = $recruit['description'] ?? '';
require __DIR__ . '/../_detail_top.php';
?>
        <div class="detail-job-panel">
          <div class="detail-job-grid">
            <div class="detail-job-item"><span>招聘部门</span><strong><?php echo htmlspecialchars($recruit['department'] ?? ''); ?></strong></div>
            <div class="detail-job-item"><span>工作地点</span><strong><?php echo htmlspecialchars($recruit['region'] ?? ''); ?></strong></div>
            <div class="detail-job-item"><span>工作性质</span><strong><?php echo htmlspecialchars($recruit['work_type'] ?? ''); ?></strong></div>
            <div class="detail-job-item"><span>薪资待遇</span><strong><?php echo htmlspecialchars($recruit['salary'] ?? ''); ?></strong></div>
          </div>
        </div>
        <div class="xqxq detail-content-body" id="maximg">
          <?php echo $recruit['content'] ?? ''; ?>
        </div>
<?php require __DIR__ . '/../_detail_bottom.php'; ?>
