<?php
if (!defined('ROOT_PATH')) { exit('Access Denied'); }
require_once __DIR__ . '/_functions.php';
$page = tpl_detail('page', isset($id) ? $id : 0);
$view = trim((string) (isset($_GET['view']) ? $_GET['view'] : 'about'));
$isContact = $view === 'contact';
$title = $isContact ? '联系我们' : '关于我们';
$tplNavKey = $isContact ? 'contact' : 'about';
$seoTitle = $title;
$seoKeywords = $page && !empty($page['seo_keywords']) ? $page['seo_keywords'] : '';
$seoDescription = $page && !empty($page['seo_description']) ? $page['seo_description'] : tpl_company_intro_text(120);
$bodyClass = 'k620-inner-page';
$imageRoot = tpl_root_channel(4);
$honors = $imageRoot ? tpl_latest('image', $imageRoot['id'], 5) : array();
require_once __DIR__ . '/_header.php';
tpl_inner_banner($title, $isContact ? 'contact' : 'page');
?>

<?php if ($isContact): ?>
<main class="NyContactUs"><div class="NyContactUs_Infor"><div class="NyContactUsInfor_Main">
    <div class="NyContactUsInfor_Img"><img src="<?php echo tpl_e(tpl_asset('skin/images/contactimg.jpg')); ?>" class="contactImg" alt="联系我们"><div class="contactText"><p><?php echo tpl_e(tpl_site_name()); ?></p><i></i><span>可以通过以下方式联系我们<br>我们将会提供专业贴心的服务</span><em></em></div></div>
    <div class="NyContactUsInfor_Con"><div class="NyContactUs_Lxfs"><ul>
        <li><img src="<?php echo tpl_e(tpl_asset('skin/images/lxico1.png')); ?>" alt=""><span>公司电话</span><p><a href="tel:<?php echo tpl_e(tpl_phone()); ?>"><?php echo tpl_e(tpl_phone()); ?></a></p></li>
        <li><img src="<?php echo tpl_e(tpl_asset('skin/images/lxico2.png')); ?>" alt=""><span>公司邮箱</span><p><a href="mailto:<?php echo tpl_e(tpl_email()); ?>"><?php echo tpl_e(tpl_email()); ?></a></p></li>
        <li><img src="<?php echo tpl_e(tpl_asset('skin/images/lxico3.png')); ?>" alt=""><span>公司地址</span><p><?php echo tpl_e(tpl_address()); ?></p></li>
    </ul><div class="clear"></div></div></div>
</div></div></main>

<?php else: ?>
<main class="NyAboutus"><section class="NyAboutus_Profile"><div class="abGsjj_main"><div class="ab_Title1"><p>公司概况</p><span><i></i></span></div><div class="abGsjj_con"><div class="abGsjj_name"><p><?php echo tpl_e(tpl_site_name()); ?></p><i></i></div><div class="abGsjj_ms ab_img ueditor-content"><?php echo tpl_company_intro_html(); ?></div><ul><li><p><?php echo date('Y'); ?></p><span><?php echo date('Y'); ?> 年持续服务</span></li><li><p>24</p><span>24 小时快速响应</span></li><li><p>365</p><span>365 天用心服务</span></li><div class="clear"></div></ul></div><div class="abGsjj_img"><img src="<?php echo tpl_e(tpl_reference_image('1742194824442955.jpg')); ?>" alt="<?php echo tpl_e(tpl_site_name()); ?>"></div><div class="clear"></div></div><div id="ab02"></div></section>
    <section class="NyAboutus_Culture"><div class="NyAbCulture_Main"><div class="ab_Title1 ly_Title2"><p>企业文化</p><span><i></i></span></div><ul>
        <li><i class="AbIco1"></i><p>企业战略</p><em></em><span>专注客户需求，以专业能力创造长期价值</span></li>
        <li><i class="AbIco2"></i><p>企业愿景</p><em></em><span>为客户提供稳定、高效、可信赖的产品与服务</span></li>
        <li><i class="AbIco3"></i><p>经营理念</p><em></em><span>持续改进解决方案，以品质赢得合作伙伴信任</span></li>
        <li><i class="AbIco4"></i><p>企业价值</p><em></em><span>诚信、高效、协作、进取，持续追求卓越</span></li>
        <div class="clear"></div>
    </ul></div><div id="ab03"></div></section>
    <section class="NyAboutus_Honor"><div class="NyAboutusHonor_Main"><div class="ab_Title1"><p>荣誉资质</p><span><i></i></span></div><div class="NyAboutusHonor_List"><div class="swiper-container04"><div class="swiper-wrapper">
        <?php if ($honors): foreach ($honors as $honor): ?><div class="swiper-slide"><img src="<?php echo tpl_e(tpl_img($honor)); ?>" alt="<?php echo tpl_e($honor['title']); ?>"></div><?php endforeach; else: for ($i = 0; $i < 5; $i++): ?><div class="swiper-slide"><img src="<?php echo tpl_e(tpl_reference_image('1742201770650870.jpg')); ?>" alt="荣誉资质"></div><?php endfor; endif; ?>
    </div><div class="swiper-button-prev"></div><div class="swiper-button-next"></div></div></div></div></section>
</main>
<?php endif; ?>

<?php require_once __DIR__ . '/_footer.php'; ?>
