<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Language" content="zh-CN">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <?php
    $this->headtitle('点点达ERP 进销存系统');
    $this->headtitle('');
    echo $this->headTitle()->setSeparator(' - ');

    $this->headMeta()->appendName('author', '江西速达车洗汽车服务有限公司');
    $this->headMeta()->appendName('copyright', '');

    $this->headMeta()->setAutoEscape(false);

    echo $this->headMeta();
    ?>
    <link rel="icon" href="<?php echo $this->basePath('favicon.ico'); ?>">
    <link rel="stylesheet" href="<?php echo $this->basePath('css/bootstrap/css/bootstrap.min.css'); ?>">
    <link rel="stylesheet" href="<?php echo $this->basePath('css/font-awesome/css/font-awesome.min.css'); ?>">
    <link rel="stylesheet" href="<?php echo $this->basePath('css/Ionicons/css/ionicons.min.css'); ?>">
    <link rel="stylesheet" href="<?php echo $this->basePath('js/plugins/iCheck/all.css'); ?>">
    <link rel="stylesheet" href="<?php echo $this->basePath('js/plugins/select2/css/select2.css'); ?>">
    <link rel="stylesheet" href="<?php echo $this->basePath('css/admin/css/AdminLTE.css'); ?>">

    <link rel="stylesheet" href="<?php echo $this->basePath('css/admin/css/skins/_all-skins.min.css'); ?>">
    <link rel="stylesheet" href="<?php echo $this->basePath('css/admin/css/stylesheet.css'); ?>">

    <!--[if lt IE 9]>
    <script src="<?php echo $this->basePath('js/html5shiv.min.js'); ?>"></script>
    <script src="<?php echo $this->basePath('js/respond.min.js'); ?>"></script>
    <![endif]-->

    <script src="<?php echo $this->basePath('js/jquery.min.js'); ?>"></script>
    <!-- Bootstrap 3.3.7 -->
    <script src="<?php echo $this->basePath('css/bootstrap/js/bootstrap.min.js'); ?>"></script>
    <!-- iCheck -->
    <script src="<?php echo $this->basePath('js/plugins/iCheck/icheck.min.js'); ?>"></script>
    <script src="<?php echo $this->basePath('js/adminlte.js'); ?>"></script>

    <script src="<?php echo $this->basePath('js/plugins/jquery-validation/jquery.validate.js'); ?>"></script>
    <script src="<?php echo $this->basePath('js/plugins/jquery-validation/additional-methods.js'); ?>" ></script>

    <script src="<?php echo $this->basePath('js/plugins/layer/layer.js'); ?>" ></script>
    <script src="<?php echo $this->basePath('js/plugins/laydate/laydate.js'); ?>" ></script>

    <script src="<?php echo $this->basePath('js/plugins/echarts/echarts.min.js'); ?>"></script>
    <script src="<?php echo $this->basePath('js/plugins/echarts/theme/shine.js'); ?>"></script>

    <script src="<?php echo $this->basePath('js/plugins/select2/js/select2.full.min.js'); ?>"></script>

    <script src="<?php echo $this->basePath('js/plugins/jquery-number/jquery.number.min.js'); ?>"></script>
    <script src="<?php echo $this->basePath('js/plugins/jquery-print/jquery.jqprint-0.3.js'); ?>"></script>

    <script src="<?php echo $this->basePath('js/headCommon.js'); ?>?t=<?php echo time(); ?>"></script>

</head>
<?php
$moduleName = $this->currentRoute()->getModule();
$controllerName = $this->currentRoute()->getController();
$shopServiceState = $this->adminHelper()->erp('shop_service');
?>
<body class="hold-transition skin-purple sidebar-mini <?php if($controllerName == 'HomeController' && !\Admin\Data\Common::isMobile()) echo 'sidebar-collapse'; ?>">
<div class="wrapper">
    <?php echo $this->partial('layout/header', ['moduleName' => $moduleName, 'controllerName' => $controllerName, 'shopServiceState' => $shopServiceState]); ?>
    <?php echo $this->partial('layout/left', ['moduleName' => $moduleName, 'controllerName' => $controllerName, 'shopServiceState' => $shopServiceState]); ?>

    <?php echo $this->content;?>
    <?php echo $this->partial('layout/footer'); ?>

</div>
<script src="<?php echo $this->basePath('js/common.js'); ?>?t=<?php echo time(); ?>" ></script>
</body>
</html>
