mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-24 09:17:54 -05:00
I've added in this commit the following: - the means to configure date and time format - date and time is shown with the selected formats - a locale tab in the configuration page - changed location tab to be stock tab and the same for the file names - translation strings (only English) for the case NOTE 1: Not related to Locale support but I removed an extra <div class="field_row clearfix"> from general_config.php NOTE 2: There is no rules in the submit checks of Locale. Probably this is something to iron out a bit NOTE 3: It would be probably nice to add a button in the Locale tab to regenerate all the translation files in case somebody updates the translations .csv Fixed Local config - Removed text in Red as really not mandatory configuration - Added time format in 24h and 12h Updated General Config tab - reorganised the layout grouping things like company info, taxes and invoice formating - increased the limit of max lines per page to 1000 because 50 is too little. People can do what they want with up to 1000
95 lines
4.3 KiB
PHP
95 lines
4.3 KiB
PHP
<!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').' OS Point Of Sale' ?></title>
|
|
<link rel="stylesheet" type="text/css" href="css/ospos.css"/>
|
|
<link rel="stylesheet" type="text/css" href="css/ospos_print.css" media="print" />
|
|
<?php if ($this->input->cookie('debug') == "true" || $this->input->get("debug") == "true") : ?>
|
|
<!-- start js template tags -->
|
|
<script type="text/javascript" src="js/jquery-1.8.3.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/jquery.ajax_queue.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/jquery.autocomplete.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/jquery.bgiframe.min.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/jquery.color.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/jquery.form-3.51.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/jquery.jkey-1.1.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/jquery.metadata.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/jquery.tablesorter.min.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/jquery.validate-1.13.1-min.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/common.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/date.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/datepicker.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/imgpreview.full.jquery.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/manage_tables.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/nominatim.autocomplete.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/swfobject.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/tabcontent.js" language="javascript"></script>
|
|
<script type="text/javascript" src="js/thickbox.js" language="javascript"></script>
|
|
<!-- end js template tags -->
|
|
<?php else : ?>
|
|
<!-- start minjs template tags -->
|
|
<script type="text/javascript" src="dist/opensourcepos.min.js" language="javascript"></script>
|
|
<!-- end minjs template tags -->
|
|
<?php endif; ?>
|
|
<script type="text/javascript">
|
|
function logout(logout)
|
|
{
|
|
logout = logout && <?php echo $backup_allowed;?>;
|
|
if (logout && confirm("<?php echo $this->lang->line('config_logout'); ?>"))
|
|
{
|
|
window.location = "<?php echo site_url('config/backup_db'); ?>";
|
|
}
|
|
else
|
|
{
|
|
window.location = "<?php echo site_url('home/logout'); ?>";
|
|
}
|
|
}
|
|
</script>
|
|
<style type="text/css">
|
|
html {
|
|
overflow: auto;
|
|
}
|
|
</style>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<div id="menubar">
|
|
<div id="menubar_container">
|
|
<div id="menubar_company_info">
|
|
<span id="company_title"><?php echo $this->config->item('company'); ?></span><br />
|
|
<span style='font-size:8pt;'><?php echo $this->lang->line('common_powered_by').' Open Source Point Of Sale'; ?></span>
|
|
</div>
|
|
|
|
<div id="menubar_navigation">
|
|
<?php
|
|
foreach($allowed_modules->result() as $module)
|
|
{
|
|
?>
|
|
<div class="menu_item">
|
|
<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><br>
|
|
<a href="<?php echo site_url("$module->module_id");?>"><?php echo $this->lang->line("module_".$module->module_id) ?></a>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<div id="menubar_footer">
|
|
<?php echo $this->lang->line('common_welcome')." $user_info->first_name $user_info->last_name! | "; ?>
|
|
<a href="javascript:logout(true);"><?php echo $this->lang->line("common_logout"); ?></a>
|
|
</div>
|
|
|
|
<div id="menubar_date">
|
|
<?php echo date($this->config->item('dateformat').' '.$this->config->item('timeformat')) ?>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div id="content_area_wrapper">
|
|
<div id="content_area">
|
|
|