<?php

/* 
 * Author       : Jai K
 * Purpose      : Main Header for "Kiosk Mode"
 * Created On   : 2016-08-22 14:18
 */
if( !defined('BASE_URL') ) :
    define( 'BASE_URL', base_url() );
endif;

?>
<!doctype html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>TIRU - Homepage</title>
        <link rel="shortcut icon" href="<?php echo BASE_URL; ?>assets/billing/images/favicon.ico">
        <!-- <link rel="stylesheet" href="<?php echo BASE_URL; ?>assets/css/library/bootstrap.min.css"> -->
        <link rel="stylesheet" href="<?php echo BASE_URL; ?>assets/css/library/font-awesome.min.css">
        <link rel="stylesheet" href="<?php echo BASE_URL; ?>assets/css/style.css">
        <link rel="stylesheet" href="<?php echo BASE_URL; ?>assets/billing/css/common.css">
        <link rel="stylesheet" href="<?php echo BASE_URL; ?>assets/billing/css/inner.css">
        <link rel="stylesheet" href="<?php echo BASE_URL; ?>assets/billing/css/style.css">
        
        <?php if( !empty($user_data) ) : ?>
            <link rel="stylesheet" href="<?php echo BASE_URL; ?>assets/billing/css/keyboard.css">
            <link rel="stylesheet" href="<?php echo BASE_URL; ?>assets/billing/css/keyboard-previewkeyset.css">
            <link rel="stylesheet" type="text/css" href="<?php echo BASE_URL; ?>assets/css/library/bootstrap-material-datetimepicker.css" />
         <?php endif; ?>
        
        
        <script type="text/javascript" src="<?php echo BASE_URL; ?>assets/billing/js/jquery-1.11.1.min.js"></script>
        <script type="text/javascript">
            var base_url    = baseURL = '<?php echo base_url();?>';
            var controller  = '<?php echo $controller; ?>';
            var method  = '<?php echo $this->uri->segments[2]; ?>';
            var isKskBill   = <?php echo IS_KSK_BILL ? 'true' : 'false'; ?>;
            var pStatus     = "<?php echo $this->session->flashdata( REMOTE_ADDR . '_flag'); ?>";
            var keybrdClr   = "<?php echo $user_data['keyboard_clr']; ?>";
            var isNumpad    = <?php echo (!empty( $user_data['user_id'] ) ? $user_data['numpad'] : $is_numpad) ? 'true' : 'false'; ?>;
            var isTamil     = <?php echo $this->session->userdata( $user_data['user_id'] . '_tamil') ? 'true' : 'false'; ?>;
            var catOn       = <?php echo $user_data['category_on'] ? "true" : "false"; ?>;
            var isScan      = false;
            
            
            <?php $design_setting = get_design_setting();?>
        </script>
        <style type="text/css">
            
            .content_left_top, .amt_content_hd_div, .bottom_icon_div, .multi-select-expand .fa.tick-ok, #num-pad > div {
                background: <?php echo $design_setting->login_page_color;?>;
            }
            
            .top_logo, .bottom_icon1 input, .bottom_icon2 input, .amt_content_div {
                background: <?php echo $design_setting->archanai_title_color;?>;
                color: <?php echo $design_setting->login_page_color;?>;
            }
            #dev-childs .ctrls .add-btn, #num-pad > div .rm-btn {
                color: <?php echo $design_setting->login_page_color;?>;
            }
            
            #num-pad > div .rm-btn {
                border: 1px solid <?php echo $design_setting->login_page_color;?>;
            }
            .arrow-right {
                border-left: 20px solid <?php echo $design_setting->archanai_title_color;?>;
            }
            
             
        </style>
        
    </head>

<body id="ksk">
    <div class="over-lay"></div>
    
    <?php //echo "<pre>Data: "; print_r( $user_data ); die;
 if( !empty($user_data) ) : ?>
    <header>
        
        
        <div class="container">
            <div class="content_left_top">
                <div class="top_logo" style="padding: 0; width: 96px; height: 48px;"><img src="<?php echo BASE_URL; ?>assets/images/tiru_pro.png" style="width: 100%; max-height: 100%;" /></div>
                <div class="arrow-right"></div>
                <div class="app_name lang-swap" data-lang="<?php echo $settings->tamil_name; ?>"><?php echo $settings->temple_name; ?></div>
                <div class="top_right_div top-icn-grp">
                    <span class="top_rt_icon1 lang-switch-btn" title="Switch to ENG/TAMIL language"></span>
                    
                    <span class="top_rt_icon2 add-dev-btn" title="Reg. new devotee!"></span>
                    <span class="top_rt_icon3 get-dev-btn" title="Search the devotee!"></span>
                    <span class="top_rt_icon1 apply-names-btn" id="apply-names-btn" title="Apply Names"></span>
                    <span class="rec-sett-btn" title="Receipt Settings"></span>
                    <span class="form-dwnld-btn" title="Download Forms"></span>
                    
                    <a href="<?php echo base_url(); ?>" title="Go to Home"><span class="top_rt_icon4"></span></a>
                </div>
            </div>
    </header>
    
    <?php
    endif; // $user_data 
        
    
        
        