<?php /* Smarty version 2.6.22, created on 2016-11-22 20:24:26
         compiled from /data/vhosts/orders.eurojaponautosupply.com/httpdocs/ultimate_support_chat/html_layouts/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', '/data/vhosts/orders.eurojaponautosupply.com/httpdocs/ultimate_support_chat/html_layouts/index.html', 87, false),)), $this); ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Ultimate Support Chat</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="<?php echo $this->_tpl_vars['data_server']; ?>
css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="<?php echo $this->_tpl_vars['data_server']; ?>
css/administration.min.css">
    <link rel="stylesheet" href="<?php echo $this->_tpl_vars['data_server']; ?>
css/skins/skin-black.min.css">
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- jQuery 2.1.4 -->
    <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

    <link href="<?php echo $this->_tpl_vars['data_server']; ?>
css/tipTip.css" rel="stylesheet" type="text/css" />
    <script src="<?php echo $this->_tpl_vars['data_server']; ?>
js/tipTip.js" type="text/javascript"></script>

    <?php echo '
    <script>
        var applicationPath =  window.location.protocol + \'//\'+ \''; ?>
<?php echo $this->_tpl_vars['application_path']; ?>
<?php echo $this->_tpl_vars['js_url_ext']; ?>
<?php echo '\';
		var applicationPathAjax =  window.location.protocol + \'//\'+ \''; ?>
<?php echo $this->_tpl_vars['application_path']; ?>
<?php echo '\';
		var delimiter = \''; ?>
<?php echo $this->_tpl_vars['delimiter']; ?>
<?php echo '\';
        var dataServer = \''; ?>
<?php echo $this->_tpl_vars['data_server']; ?>
<?php echo '\';
        var smartyModule = \''; ?>
<?php echo $_GET['module']; ?>
<?php echo '\';
        var smartyController = \''; ?>
<?php echo $_GET['controller']; ?>
<?php echo '\';
        var globalSettings = {};
    </script>
    '; ?>


    <?php $_from = $_SESSION['global_settings']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['i']):
?>
             <?php echo '<script>globalSettings[\''; ?>
<?php echo $this->_tpl_vars['key']; ?>
<?php echo '\'] = \''; ?>
<?php echo $this->_tpl_vars['i']; ?>
<?php echo '\';</script>'; ?>

    <?php endforeach; endif; unset($_from); ?>

</head>

<body class="hold-transition skin-black sidebar-mini">
<div class="wrapper">
    <header class="main-header">
        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
" class="logo">
            <span class="logo-mini"><b>U</b>SC</span>
            <span class="logo-lg"><b>Ultimate Support Chat</b></span>
        </a>

        <nav class="navbar navbar-static-top" role="navigation">
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">

                    <li class="dropdown messages-menu">
                        <a id="chat_msgs" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
visitors/chat">
                            <i class="fa fa-envelope-o"></i>
                            <span id="chat_requests_count" class="label label-success"></span>
                        </a>
                    </li>


                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <?php if ($_SESSION['user']['avatar'] == ''): ?>
                            <img src="<?php echo $this->_tpl_vars['data_server']; ?>
config/themes/img/avatars/default.png"  id="user-image-md" class="user-image" alt="User Image">
                            <?php else: ?>
                            <img src="<?php echo $this->_tpl_vars['data_server']; ?>
<?php echo $_SESSION['user']['avatar']; ?>
" id="user-image-md" class="user-image" alt="User Image">
                            <?php endif; ?>
                            <span class="hidden-xs"><?php echo $_SESSION['user']['username']; ?>
</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header">
                                <?php if ($_SESSION['user']['avatar'] == ''): ?>
                                <img src="<?php echo $this->_tpl_vars['data_server']; ?>
config/themes/img/avatars/default.png" id="user-image-sm" class="user-image fl_none" alt="User Image">
                                <?php else: ?>
                                <img src="<?php echo $this->_tpl_vars['data_server']; ?>
<?php echo $_SESSION['user']['avatar']; ?>
" id="user-image-sm" class="user-image fl_none" alt="User Image">
                                <?php endif; ?>
                                <p>
                                    <?php echo $_SESSION['user']['username']; ?>
 - <?php if ($_SESSION['user']['permissions'] == '1'): ?>Admin<?php else: ?>Operator<?php endif; ?>
                                    <small>Last login <?php echo ((is_array($_tmp=$_SESSION['user']['last_login_datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m/%d/%Y") : smarty_modifier_date_format($_tmp, "%m/%d/%Y")); ?>
 </small>
                                </p>
                            </li>
                            <li class="user-body">
                                <div class="col-xs-4 text-center">
                                </div>
                                <div class="col-xs-4 text-center">
                                </div>
                                <div class="col-xs-4 text-center">
                                </div>
                            </li>
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/edit<?php echo $this->_tpl_vars['delimiter']; ?>
user_id=<?php echo $_SESSION['user']['user_id']; ?>
" class="btn btn-default btn-flat">Profile</a>
                                </div>
                                <div class="pull-right">
                                    <form id="logout_form" action="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/logout" method="post">
                                         <input type="hidden" name="logout">
                                         <a onclick="document.getElementById('logout_form').submit(); return false;" class="btn btn-default btn-flat">Sign out</a>
                                    </form>
                                </div>
                            </li>
                        </ul>
                    </li>

                    <li>
                        <a id="side_panel_id" href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                    </li>
                </ul>
            </div>
        </nav>
    </header>

    <aside class="main-sidebar">

        <section class="sidebar">

            <div class="user-panel">
                <div class="pull-left image">
                    <?php if ($_SESSION['user']['avatar'] == ''): ?>
                    <img src="<?php echo $this->_tpl_vars['data_server']; ?>
config/themes/img/avatars/default.png" id="user-image-lg" class="user-image usr_br" alt="User Image">
                    <?php else: ?>
                    <img src="<?php echo $this->_tpl_vars['data_server']; ?>
<?php echo $_SESSION['user']['avatar']; ?>
" id="user-image-lg" class="user-image" alt="User Image">
                    <?php endif; ?>
                </div>
                <div class="pull-left info">
                    <p><?php echo $_SESSION['user']['username']; ?>
</p>
                    <a id="operator_status" class="pointer" data-status="<?php echo $_SESSION['user']['heartbeat']; ?>
" onclick="changeOperatorStatus(this.getAttribute('data-status'))"><i class="fa fa-circle operator-<?php echo $_SESSION['user']['heartbeat']; ?>
"></i><?php echo $_SESSION['user']['heartbeat']; ?>
</a>
                </div>
            </div>


            <ul class="sidebar-menu">

                <li class="header"></li>

                <li <?php if ($_GET['module'] == 'index' && $_GET['controller'] == 'index'): ?>class="active"<?php endif; ?>><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
"><i class="fa fa-dashboard"></i><span>Dashboard</span></a></li>
                <li <?php if ($_GET['module'] == 'visitors' && $_GET['controller'] == 'index'): ?>class="active"<?php endif; ?>><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
visitors"><i class="fa fa-user"></i> <span>Visitors</span></a></li>
                <li <?php if ($_GET['module'] == 'visitors' && $_GET['controller'] == 'history'): ?>class="active"<?php endif; ?>><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
visitors/history"><i class="fa fa-history"></i> <span>History</span></a></li>

                <?php if ($_SESSION['user']['permissions'] == 1): ?>
                <li <?php if ($_GET['module'] == 'settings' && $_GET['controller'] == 'index'): ?>class="active"<?php endif; ?>><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
settings"><i class="fa fa-paint-brush"></i> <span>Widget Design</span></a></li>
                <li <?php if ($_GET['module'] == 'users' && $_GET['controller'] == 'index'): ?>class="active"<?php endif; ?>><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users"><i class="fa fa-phone-square"></i> <span>Operators</span></a></li>
                <li <?php if ($_GET['module'] == 'settings' && $_GET['controller'] == 'prepared_messages'): ?>class="active"<?php endif; ?>><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
settings/prepared_messages"><i class="fa fa-envelope-o"></i> <span>Prepared Messages</span></a></li>
                <li <?php if ($_GET['module'] == 'settings' && $_GET['controller'] == 'global'): ?>class="active"<?php endif; ?>><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
settings/global"><i class="fa fa-gear"></i> <span>Global Settings</span></a></li>
                <?php endif; ?>
            </ul>
        </section>

    </aside>


    <div class="content-wrapper">
        <section class="content">

            <div id="site_content" style="max-width:1440px;margin:auto">
                <div class="box_error"><?php echo $this->_tpl_vars['errorMessage']; ?>
</div>
                <div class="clr"></div>
                <div><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['content_template'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> </div>
            </div>

        </section>
    </div>

    <footer class="main-footer">

        <div class="pull-right hidden-xs">

        </div>

    </footer>

    <aside class="control-sidebar control-sidebar-dark">

        <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
            <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-commenting icon_sz"></i></a></li>
            <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-users"></i></a></li>
        </ul>

        <div class="tab-content">

            <div class="tab-pane active" id="control-sidebar-home-tab">
                <h3 class="control-sidebar-heading">Prepared messages</h3>
                <div class="progress progress-xxs">
                    <div class="progress-bar progress-bar-danger progress_full"></div>
                </div>
                <div id="prepared_msg"></div>


            </div>

            <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>

            <div class="tab-pane" id="control-sidebar-settings-tab">
                <form method="post">

                    <h3 class="control-sidebar-heading">Operators online</h3>
                    <div class="progress progress-xxs">
                        <div class="progress-bar progress-bar-danger progress_full"></div>
                    </div>

                    <ul class="control-sidebar-menu" id="operators_online">

                    </ul>

                </form>
            </div>
        </div>
    </aside>
    <div class="control-sidebar-bg"></div>
</div>

<script src="<?php echo $this->_tpl_vars['data_server']; ?>
js/bootstrap.min.js"></script>
<script src="<?php echo $this->_tpl_vars['data_server']; ?>
js/administration.min.js"></script>
<?php echo '
<script>
var requestID = \''; ?>
<?php echo $_GET['request']; ?>
<?php echo '\';
var operatorUserID = \''; ?>
<?php echo $_SESSION['user']['user_id']; ?>
<?php echo '\';
var transferAccepted = \''; ?>
<?php echo $_GET['transfer']; ?>
<?php echo '\';
</script>
'; ?>

<script src="<?php echo $this->_tpl_vars['data_server']; ?>
js/mon.min.js"></script>

</body>
</html>