<?php
/**
 * 芋头CMS
 * ============================================================================
 * 版权所有 2016-2028 沅陵县乌托邦网络服务有限公司，并保留所有权利。
 * 网站地址: http://www.yutoucms.cn
 * ----------------------------------------------------------------------------
 * 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷。
 * ============================================================================
 * Author: 芋头 <mxgsf@qq.com>
 * Date: 2026-6-2
 */
if (!defined('ROOT_PATH')) exit;
$row = $id>0 ? $db->fetch("SELECT * FROM {$db->table('recruit')} WHERE id=".intval($id)." AND status=1") : null;
if (!$row) { echo '内容不存在'; return; }
$currentChannel = null;
if (!empty($row['channel_id'])) {
    $currentChannel = $db->fetch("SELECT * FROM {$db->table('channel')} WHERE id=".intval($row['channel_id']));
}
if (!$currentChannel) {
    $currentChannel = array('id' => 0, 'channel_name' => '招聘中心', 'channel_thumb' => '');
}
?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /><title><?php echo htmlspecialchars($row['title']); ?>-<?php echo htmlspecialchars($site['site_name']); ?></title><link href="<?php echo $site['template_dir']; ?>css/style.css" rel="stylesheet" type="text/css" /><link href="<?php echo $site['template_dir']; ?>css/bootstrap.min.css" rel="stylesheet" type="text/css"></head><body><?php include dirname(__FILE__).'/_header.php'; ?><div class="banner_n" style="background:url(<?php echo !empty($currentChannel['channel_thumb']) ? htmlspecialchars($currentChannel['channel_thumb']) : 'https://picsum.photos/1600/500?random=71'; ?>) no-repeat top center;background-size:cover;"><div class="capitalize"><div class="ad-tit"><?php echo htmlspecialchars($currentChannel['channel_name']); ?></div><div class="ad-line"></div></div></div><div class="nabout cont" style="padding-top:40px;"><h1 style="font-size:28px;margin-bottom:25px;"> <?php echo htmlspecialchars($row['title']); ?> </h1><div style="line-height:32px;font-size:16px;color:#666;margin-bottom:20px;">部门：<?php echo htmlspecialchars(isset($row['department']) ? $row['department'] : ''); ?><br>地区：<?php echo htmlspecialchars(isset($row['region']) ? $row['region'] : ''); ?><br>薪资：<?php echo htmlspecialchars(isset($row['salary']) ? $row['salary'] : ''); ?><br>人数：<?php echo htmlspecialchars(isset($row['quantity']) ? $row['quantity'] : ''); ?></div><div class="ab_img"><?php echo $row['content']; ?></div></div><?php include dirname(__FILE__).'/_footer.php'; ?></body></html>
