Added all bootswatch themes and made theming configurable from config.php (#409)

This commit is contained in:
FrancescoUK
2016-08-10 09:44:11 +01:00
parent 31cc67ea52
commit a0886caf2f
39 changed files with 348 additions and 355 deletions

View File

@@ -11,7 +11,6 @@ module.exports = function(grunt) {
bower_concat: {
all: {
mainFiles: {
'bootswatch-dist': ['bootstrap/dist/js/bootstrap.js'],
'bootstrap-table': [ "src/bootstrap-table.js", "src/bootstrap-table.css", "dist/extensions/export/bootstrap-table-export.js", "dist/extensions/mobile/bootstrap-table-mobile.js"]
},
dest: {
@@ -30,8 +29,24 @@ module.exports = function(grunt) {
destPrefix: 'dist'
},
files: {
'login.css': '../css/login.css',
'style.css': '../css/style.css',
'jquery-ui.css': 'jquery-ui/themes/base/jquery-ui.css',
'bootstrap.min.css': 'bootswatch-dist/css/bootstrap.min.css'
'cerulean/bootstrap.min.css': 'bootswatch/cerulean/bootstrap.min.css',
'cosmo/bootstrap.min.css': 'bootswatch/cosmo/bootstrap.min.css',
'cyborg/bootstrap.min.css': 'bootswatch/cyborg/bootstrap.min.css',
'darkly/bootstrap.min.css': 'bootswatch/darkly/bootstrap.min.css',
'flatly/bootstrap.min.css': 'bootswatch/flatly/bootstrap.min.css',
'journal/bootstrap.min.css': 'bootswatch/journal/bootstrap.min.css',
'paper/bootstrap.min.css': 'bootswatch/paper/bootstrap.min.css',
'readable/bootstrap.min.css': 'bootswatch/readable/bootstrap.min.css',
'sandstone/bootstrap.min.css': 'bootswatch/sandstone/bootstrap.min.css',
'slate/bootstrap.min.css': 'bootswatch/slate/bootstrap.min.css',
'spacelab/bootstrap.min.css': 'bootswatch/spacelab/bootstrap.min.css',
'superhero/bootstrap.min.css': 'bootswatch/superhero/bootstrap.min.css',
'united/bootstrap.min.css': 'bootswatch/united/bootstrap.min.css',
'yeti/bootstrap.min.css': 'bootswatch/yeti/bootstrap.min.css',
'fonts': 'bootswatch/fonts'
}
}/*,
targettmp: {
@@ -46,7 +61,7 @@ module.exports = function(grunt) {
cssmin: {
target: {
files: {
'dist/<%= pkg.name %>.min.css': ['tmp/opensourcepos_bower.css', 'css/*.css', '!css/login.css', '!css/invoice_email.css']
'dist/<%= pkg.name %>.min.css': ['tmp/opensourcepos_bower.css', 'css/*.css', '!css/login.css', '!css/invoice_email.css', '!css/style.css']
}
}
},
@@ -109,19 +124,9 @@ module.exports = function(grunt) {
closeTag: '<!-- end mincss template tags -->',
absolutePath: true
},
src: ['dist/*.css'],
src: ['dist/*.css', '!dist/login.css'],
dest: 'application/views/partial/header.php',
},
mincss_header_templates: {
options: {
scriptTemplate: '<rel type="text/css" src="{{ path }}"></rel>',
openTag: '<!-- start mincss template tags -->',
closeTag: '<!-- end mincss template tags -->',
absolutePath: true
},
src: ['dist/*.css', '!dist/bootstrap.min.css'],
dest: 'templates/spacelab/views/partial/header.php'
},
css_login: {
options: {
scriptTemplate: '<rel type="text/css" src="{{ path }}"></rel>',
@@ -129,7 +134,7 @@ module.exports = function(grunt) {
closeTag: '<!-- end css template tags -->',
absolutePath: true
},
src: ['dist/bootstrap.min.css', 'css/login.css'],
src: ['dist/login.css'],
dest: 'application/views/login.php'
},
js: {
@@ -174,8 +179,7 @@ module.exports = function(grunt) {
options: {
match: [ {
'opensourcepos.min.js': 'dist/opensourcepos.min.js',
'opensourcepos.min.css': 'dist/opensourcepos.min.css',
'bootstrap.min.css': 'dist/bootstrap.min.css'
'opensourcepos.min.css': 'dist/opensourcepos.min.css'
} ],
replacement: 'md5'
},

View File

@@ -12,6 +12,17 @@ defined('BASEPATH') OR exit('No direct script access allowed');
*/
$config['application_version'] = '3.0.0';
/*
|--------------------------------------------------------------------------
| Theme
|--------------------------------------------------------------------------
|
| This specifies which theme will be used by OSPOS
|
|
*/
$config['theme'] = 'flatly';
/*
|--------------------------------------------------------------------------
| Commit sha1

View File

@@ -1,15 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| theme name
|--------------------------------------------------------------------------
|
| the theme folder name. If the folder doesn't exist it will use default theme
|
| The default theme for OSPOS is flatly: http://bootswatch.com/flatly/
|
|
*/
//$config['theme_name'] = 'spacelab';

View File

@@ -1,24 +0,0 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Loader extends CI_Loader
{
public function __construct()
{
parent::__construct();
log_message('debug', "MY_Loader Class Initialized");
}
function view($view, $vars = array(), $return = FALSE)
{
include APPPATH . 'config/theme.php';
// add other first view path if exist
if(!empty($config['theme_name']) && file_exists('templates/' . $config['theme_name'] . '/views'))
{
$this->_ci_view_paths = array_merge(array('templates/' . $config['theme_name'] . '/views' . DIRECTORY_SEPARATOR => 1), $this->_ci_view_paths);
}
return $this->_ci_load(array('_ci_view'=>$view, '_ci_vars'=>$this->_ci_object_to_array($vars), '_ci_return'=>$return));
}
}

View File

@@ -5,9 +5,9 @@
<base href="<?php echo base_url();?>" />
<title><?php echo $this->config->item('company') . ' | OSPOS ' . $this->config->item('application_version') . ' | ' . $this->lang->line('login_login'); ?></title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<link rel="stylesheet" type="text/css" href=<?php echo 'dist/' . $this->config->item('theme') . '/bootstrap.min.css' ?>/>
<!-- start css template tags -->
<link rel="stylesheet" type="text/css" href="dist/bootstrap.min.css?rel=50ab19585f"/>
<link rel="stylesheet" type="text/css" href="css/login.css"/>
<link rel="stylesheet" type="text/css" href="dist/login.css"/>
<!-- end css template tags -->
<script type="text/javascript">

View File

@@ -11,13 +11,14 @@
<!--[if lte IE 8]>
<link rel="stylesheet" media="print" href="css/print.css" type="text/css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href=<?php echo 'dist/' . $this->config->item('theme') . '/bootstrap.min.css' ?>/>
<!-- start mincss template tags -->
<link rel="stylesheet" type="text/css" href="dist/bootstrap.min.css?rel=50ab19585f"/>
<link rel="stylesheet" type="text/css" href="dist/jquery-ui.css"/>
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=b003b9c4a3"/>
<link rel="stylesheet" type="text/css" href="dist/style.css"/>
<!-- end mincss template tags -->
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=5f6d1e048b"></script>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=739eb414e7"></script>
<!-- end minjs template tags -->
<?php endif; ?>

View File

@@ -2,7 +2,6 @@
<link rel="stylesheet" href="bower_components/jquery-ui/themes/base/jquery-ui.css" />
<link rel="stylesheet" href="bower_components/bootstrap3-dialog/dist/css/bootstrap-dialog.min.css" />
<link rel="stylesheet" href="bower_components/jasny-bootstrap/dist/css/jasny-bootstrap.css" />
<link rel="stylesheet" href="bower_components/bootswatch-dist/css/bootstrap.css" />
<link rel="stylesheet" href="bower_components/smalot-bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
<link rel="stylesheet" href="bower_components/bootstrap-select/dist/css/bootstrap-select.css" />
<link rel="stylesheet" href="bower_components/bootstrap-table/src/bootstrap-table.css" />
@@ -20,6 +19,7 @@
<link rel="stylesheet" type="text/css" href="css/receipt.css"/>
<link rel="stylesheet" type="text/css" href="css/register.css"/>
<link rel="stylesheet" type="text/css" href="css/reports.css"/>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<!-- end css template tags -->
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
@@ -29,7 +29,6 @@
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="bower_components/bootstrap3-dialog/dist/js/bootstrap-dialog.min.js"></script>
<script src="bower_components/jasny-bootstrap/dist/js/jasny-bootstrap.js"></script>
<script src="bower_components/bootswatch-dist/js/bootstrap.js"></script>
<script src="bower_components/smalot-bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script src="bower_components/bootstrap-select/dist/js/bootstrap-select.js"></script>
<script src="bower_components/bootstrap-table/src/bootstrap-table.js"></script>

View File

@@ -30,7 +30,7 @@
"jquery-ui": "1.11.4",
"bootstrap3-dialog": "bootstrap-dialog#^1.35.2",
"jasny-bootstrap": "^3.1.3",
"bootswatch-dist": "flatly",
"bootswatch": "^3.3.7",
"smalot-bootstrap-datetimepicker": "^2.3.11",
"bootstrap-select": "^1.10.0",
"bootstrap-table": "^1.11.0",
@@ -44,12 +44,6 @@
"js-cookie": "^2.1.2"
},
"overrides": {
"bootswatch-dist": {
"main": [
"js/bootstrap.js",
"css/bootstrap.css"
]
},
"jquery-ui": {
"main": [
"themes/base/jquery-ui.css",

0
css/style.css Normal file
View File

View File

File diff suppressed because one or more lines are too long

11
dist/cerulean/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

11
dist/cosmo/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

11
dist/cyborg/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

11
dist/darkly/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

11
dist/flatly/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB

11
dist/journal/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

63
dist/login.css vendored Normal file
View File

@@ -0,0 +1,63 @@
*
{
margin:0;
padding:0;
}
#logo
{
margin-top:2%;
margin-bottom:2%;
}
#login
{
width:400px;
margin:0 auto;
margin-top:2%;
margin-bottom:2%;
transition:opacity 1s;
-webkit-transition:opacity 1s;
}
#login h1
{
background:#3399cc;
padding:20px 0;
font-size:140%;
font-weight:300;
text-align:center;
color:#fff;
}
form
{
background:#f0f0f0;
padding:6% 4%;
}
input[type="text"], input[type="password"]
{
width:100%;
background:#fff;
margin-bottom:4%;
border:1px solid #ccc;
padding:4%;
color:#555;
}
input[type="submit"]
{
width:100%;
background:#3399cc;
margin-top:4%;
border:0;
padding:4%;
transition:background .3s;
-webkit-transition:background .3s;
}
input[type="submit"]:hover
{
background:#2288bb;
}

View File

File diff suppressed because one or more lines are too long

11
dist/paper/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

11
dist/readable/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

11
dist/sandstone/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

11
dist/slate/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

11
dist/spacelab/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

0
dist/style.css vendored Normal file
View File

11
dist/superhero/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

11
dist/united/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

11
dist/yeti/bootstrap.min.css vendored Normal file
View File

File diff suppressed because one or more lines are too long

View File

@@ -1,41 +1,19 @@
{
"bootstrap-select@1.10.0": {
"bootstrap-select@undefined": {
"licenses": [
"MIT"
],
"homepage": "http://silviomoreto.github.io/bootstrap-select"
},
"jquery-form@3.45.0": {
"licenses": "UNKNOWN"
},
"bootstrap3-dialog@1.35.2": {
"licenses": "UNKNOWN",
"homepage": "http://nakupanda.github.io/bootstrap3-dialog/"
},
"bootswatch-dist@3.3.6-flatly": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/dbtek/bootswatch-dist"
},
"chartist@0.9.8": {
"licenses": "UNKNOWN",
"homepage": "https://github.com/gionkunz/chartist-js"
},
"chartist-plugin-axistitle@0.1.0": {
"licenses": [
"WTF*"
],
"homepage": "https://github.com/alexstanbury/chartist-plugin-axistitle"
},
"chartist-plugin-tooltip@0.0.13": {
"licenses": [
"MIT*"
],
"homepage": "https://github.com/Globegitter/chartist-plugin-tooltip"
},
"chartist-plugin-pointlabels@0.0.4": {
"licenses": [
"WTF*"
],
"homepage": "https://github.com/gionkunz/chartist-plugin-pointlabels"
"chartist@undefined": {
"licenses": "UNKNOWN"
},
"file-saver.js@1.20150507.2": {
"licenses": [
@@ -43,21 +21,50 @@
],
"homepage": "https://github.com/Teleborder/FileSaver.js"
},
"jquery@1.12.4": {
"tableExport.jquery.plugin@undefined": {
"licenses": [
"MIT"
]
},
"js-cookie@undefined": {
"licenses": [
"MIT"
]
},
"chartist-plugin-pointlabels@0.0.4": {
"licenses": [
"WTF*"
]
},
"chartist-plugin-axistitle@0.0.1": {
"licenses": [
"WTF*"
]
},
"moment@undefined": {
"licenses": [
"MIT*"
]
},
"chartist-plugin-tooltip@undefined": {
"licenses": [
"MIT*"
]
},
"jquery@undefined": {
"licenses": [
"MIT"
]
},
"bootswatch@undefined": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/jquery/jquery-dist"
},
"jquery-form@3.46.0": {
"licenses": "UNKNOWN",
"homepage": "https://github.com/malsup/form"
},
"js-cookie@2.1.2": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/js-cookie/js-cookie"
"repository": {
"type": "git",
"url": "git://github.com/thomaspark/bootswatch.git"
},
"homepage": "http://bootswatch.com"
},
"jspdf@1.0.272": {
"licenses": [
@@ -65,68 +72,20 @@
],
"homepage": "https://github.com/mrrio/jspdf"
},
"moment@2.14.1": {
"smalot-bootstrap-datetimepicker@undefined": {
"licenses": [
"MIT*"
"Apache 2.0",
"Apache*"
],
"homepage": "https://github.com/moment/moment"
},
"tableExport.jquery.plugin@1.5.1": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/hhurz/tableExport.jquery.plugin"
},
"bootstrap@3.3.7": {
"licenses": [
"MIT"
],
"homepage": "http://getbootstrap.com",
"repository": "git+https://github.com/twbs/bootstrap"
},
"bootstrap-daterangepicker@2.1.24": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/dangrossman/bootstrap-daterangepicker",
"repository": "git+https://github.com/dangrossman/bootstrap-daterangepicker"
},
"bootstrap-table@1.11.0": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/wenzhixin/bootstrap-table",
"repository": "git+https://github.com/wenzhixin/bootstrap-table"
"repository": "https://github.com/smalot/bootstrap-datetimepicker"
},
"jasny-bootstrap@3.1.3": {
"licenses": [
"Apache-2.0",
"Apache*"
],
"homepage": "https://github.com/jasny/bootstrap",
"repository": "git+https://github.com/jasny/bootstrap"
},
"html2canvas@0.4.1": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/niklasvh/html2canvas",
"repository": "git+ssh://git@github.com/niklasvh/html2canvas"
},
"jspdf-autotable@2.0.14": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/simonbengtsson/jspdf-autotable",
"repository": "git+https://github.com/simonbengtsson/jsPDF-AutoTable"
},
"remarkable-bootstrap-notify@3.1.3": {
"licenses": [
"MIT"
],
"homepage": "http://bootstrap-notify.remabledesigns.com/",
"repository": "https://github.com/mouse0270/bootstrap-notify"
},
"jquery-validation@1.13.1": {
"licenses": [
"MIT"
@@ -134,19 +93,50 @@
"repository": "https://github.com/jzaefferer/jquery-validation",
"homepage": "http://jqueryvalidation.org/"
},
"smalot-bootstrap-datetimepicker@2.3.11": {
"licenses": [
"Apache 2.0",
"Apache*"
],
"homepage": "https://github.com/smalot/bootstrap-datetimepicker",
"repository": "https://github.com/smalot/bootstrap-datetimepicker"
},
"jquery-ui@1.11.4": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/components/jqueryui",
"repository": "https://github.com/jquery/jquery-ui"
},
"remarkable-bootstrap-notify@3.1.3": {
"licenses": [
"MIT"
],
"homepage": "http://bootstrap-notify.remabledesigns.com/",
"repository": "https://github.com/mouse0270/bootstrap-notify"
},
"bootstrap-daterangepicker@undefined": {
"licenses": [
"MIT"
],
"repository": "git+https://github.com/dangrossman/bootstrap-daterangepicker"
},
"bootstrap-table@undefined": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/wenzhixin/bootstrap-table",
"repository": "git+https://github.com/wenzhixin/bootstrap-table"
},
"html2canvas@0.4.1": {
"licenses": [
"MIT"
],
"repository": "git+ssh://git@github.com/niklasvh/html2canvas"
},
"bootstrap@undefined": {
"licenses": [
"MIT"
],
"homepage": "http://getbootstrap.com",
"repository": "git+https://github.com/twbs/bootstrap"
},
"jspdf-autotable@undefined": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/simonbengtsson/jspdf-autotable",
"repository": "git+https://github.com/simonbengtsson/jsPDF-AutoTable"
}
}

View File

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +0,0 @@
@font-face
{
font-family: 'Glyphicons Halflings';
src: url('../../../fonts/glyphicons-halflings-regular.woff2');
}

View File

@@ -1,18 +0,0 @@
<?php $this->load->view("partial/header"); ?>
<h3 class="text-center"><?php echo $this->lang->line('common_welcome_message'); ?></h3>
<div id="home_module_list">
<?php
foreach($allowed_modules->result() as $module)
{
?>
<div class="module_item" title="<?php echo $this->lang->line('module_'.$module->module_id.'_desc');?>">
<a href="<?php echo site_url("$module->module_id");?>"><img src="<?php echo base_url().'images/menubar/'.$module->module_id.'.png';?>" border="0" alt="Menubar Image" /></a>
<a href="<?php echo site_url("$module->module_id");?>"><?php echo $this->lang->line("module_".$module->module_id) ?></a>
</div>
<?php
}
?>
</div>
<?php $this->load->view("partial/footer"); ?>

View File

@@ -1,45 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<base href="<?php echo base_url();?>" />
<title><?php echo $this->config->item('company') . ' | OSPOS ' . $this->config->item('application_version') . ' | ' . $this->lang->line('login_login'); ?></title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<!-- start css template tags -->
<link rel="stylesheet" type="text/css" href="templates/spacelab/css/bootstrap.min.css?rel=50ab19585f"/>
<link rel="stylesheet" type="text/css" href="css/login.css"/>
<link rel="stylesheet" type="text/css" href="templates/spacelab/css/style.css"/>
<!-- end css template tags -->
<script type="text/javascript">
window.onload = function()
{
document.getElementById("username").focus();
};
</script>
</head>
<body>
<div id="logo" align="center"><img src="<?php echo base_url();?>/images/logo.png"></div>
<div id="login">
<?php echo form_open('login') ?>
<div id="container">
<div align="center" style="color:red"><?php echo validation_errors(); ?></div>
<div id="login_form">
<?php echo $this->lang->line('login_username') . ':'; ?>
<?php echo form_input(array('name'=>'username', 'id'=>'username', 'class'=>'form-control', 'size'=>'20')); ?>
<?php echo $this->lang->line('login_password') . ':'; ?>
<?php echo form_password(array('name'=>'password', 'id' => 'password', 'class'=>'form-control', 'size'=>'20')); ?>
<input class="btn btn-primary btn-block" type="submit" name="loginButton" value="Go"/>
</div>
</div>
<?php echo form_close(); ?>
<h1>Open Source Point Of Sale <?php echo $this->config->item('application_version'); ?></h1>
</div>
</body>
</html>

View File

@@ -1,14 +0,0 @@
</div>
</div>
<div id="footer">
<div class="jumbotron push-spaces">
<strong><?php echo $this->lang->line('common_you_are_using_ospos'); ?>
<?php echo $this->config->item('application_version'); ?> - <?php echo substr($this->config->item('commit_sha1'), 5, 12); ?></strong>.
<?php echo $this->lang->line('common_please_visit_my'); ?>
<a href="https://github.com/jekkos/opensourcepos" target="_blank"><?php echo $this->lang->line('common_website'); ?></a>
<?php echo $this->lang->line('common_learn_about_project'); ?>
</div>
</div>
</body>
</html>

View File

@@ -1,80 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<base href="<?php echo base_url();?>" />
<title><?php echo $this->config->item('company') . ' | ' . $this->lang->line('common_powered_by') . ' OSPOS ' . $this->config->item('application_version') ?></title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<?php if ($this->input->cookie('debug') == "true" || $this->input->get("debug") == "true") : ?>
<?php $this->load->view('partial/header_debug'); ?>
<?php else : ?>
<!--[if lte IE 8]>
<link rel="stylesheet" media="print" href="css/print.css" type="text/css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="templates/spacelab/css/bootstrap.min.css?rel=50ab19585f"/>
<!-- start mincss template tags -->
<link rel="stylesheet" type="text/css" href="dist/jquery-ui.css"/>
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=b003b9c4a3"/>
<!-- end mincss template tags -->
<link rel="stylesheet" type="text/css" href="templates/spacelab/css/style.css"/>
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=5f6d1e048b"></script>
<!-- end minjs template tags -->
<?php endif; ?>
<?php $this->load->view('partial/lang_lines'); ?>
<?php $this->load->view('partial/header_js'); ?>
<style type="text/css">
html {
overflow: auto;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="topbar">
<div class="container">
<div class="navbar-left">
<div id="liveclock"><?php echo date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat')) ?></div>
</div>
<div class="navbar-right" style="margin:0">
<?php echo $this->config->item('company') . " | $user_info->first_name $user_info->last_name | "; ?>
<?php echo anchor("home/logout", $this->lang->line("common_logout")); ?>
</div>
</div>
</div>
<div class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand hidden-sm" href="<?php echo site_url(); ?>">OSPOS</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<?php foreach($allowed_modules->result() as $module): ?>
<li class="<?php echo $module->module_id == $this->uri->segment(1)? 'active': ''; ?>">
<a href="<?php echo site_url("$module->module_id");?>" title="<?php echo $this->lang->line("module_".$module->module_id);?>" class="menu-icon">
<img src="<?php echo base_url().'images/menubar/'.$module->module_id.'.png';?>" border="0" alt="Module Icon" /><br />
<?php echo $this->lang->line("module_".$module->module_id) ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">