Files
opensourcepos/application/views/login.php
jekkos 059ec54c72 Make theme configurable from config module (#409)
Add symlink to bower_components in Docker dev environment (#616)
Move header_debug content back into header view
2016-08-10 18:58:17 +02:00

45 lines
1.9 KiB
PHP

<!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">
<link rel="stylesheet" type="text/css" href="<?php echo 'dist/bootswatch/' . (empty($this->config->item('theme')) ? 'flatly' : $this->config->item('theme')) . '/bootstrap.min.css' ?>"/>
<!-- start css template tags -->
<link rel="stylesheet" type="text/css" href="dist/login.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>