<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>iMeeting 2013 <?php $this->view('version_v'); ?> - โปรแกรมจองห้องประชุมและรถออนไลน์ </title>
        <link rel="stylesheet" media="screen" href="<?php echo base_url(); ?>assets/css/bootstrap/css/bootstrap.min.css" />
        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/jquery-1.8.0.min.js"></script>

        <link rel="stylesheet" media="screen" href="<?php echo base_url(); ?>assets/css/style.css" type="text/css"/>
        <link rel="stylesheet" media="screen" href="<?php echo base_url(); ?>assets/css/my-bootstrap.css" type="text/css"/>

        <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/demo_table_jui.css" type="text/css"/>

        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/custom.js"></script>

        <!-- bootstrap -->
        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/bootstrap/bootstrap-alert.js"></script>

        <!-- validation -->
        <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url(); ?>assets/js/validation/css/screen.css"/>
        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/validation/jquery.validate.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/validation/jquery.metadata.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/validation/localization/messages_th.js"></script>

        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/jquery.maskedinput.js"></script>

        <!-- facebox -->
        <link rel="stylesheet" href="<?php echo base_url(); ?>assets/js/facebox/facebox.css" type="text/css"/>
        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/facebox/facebox.js"></script>

        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/header_effect.js"></script>
        <?php
        if (isset($extraHeadContent)) {
            echo $extraHeadContent;
        }
        ?>
    </head>
    <body>
        <?php
        $s_login = $this->session->userdata('s_login');
        ?>
        <div id="header">
            <div class="h1"><a href="<?php echo site_url(); ?>">iMeeting 2013 - โปรแกรมจองห้องประชุมและรถออนไลน์ </a></div>
            <?php if (@$s_login['login_status'] == '1'): ?>
                <div class="userprofile">
                    <ul>
                        <li>
                            <i class="icon-user"></i> <a href="#">คุณ:<?php echo $s_login['login_code']; ?></a>
                            <?php echo nbs(4); ?>
                            <i class="icon-off"></i> <?php echo anchor('login/logout', 'ออกจากระบบ'); ?>
                        </li>
                    </ul>
                </div>
            <?php else: ?>
                <div class="userprofile">
                    <ul>
                        <li>
                            <i class="icon-home"></i> <?php echo anchor('login', 'เข้าสู่ระบบ'); ?>
                        </li>
                    </ul>
                </div>
            <?php endif; ?>
        </div>
        <?php $this->view('sidebar_v'); ?>
        <div id="my_content">
            <?php $this->view($content); ?>
        </div>
    </body>
</html>