<!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" />
<link rel="stylesheet" rev="stylesheet" href="<?php echo base_url();?>css/login.css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Grameen Shamogree POS <?php echo $this->lang->line('login_login'); ?></title>
<script src="<?php echo base_url();?>js/jquery-1.2.6.min.js" type="text/javascript" language="javascript" charset="UTF-8"></script>
<script type="text/javascript">
$(document).ready(function()
{
	$("#login_form input:first").focus();
});
</script>

    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/login/css/960.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/login/css/reset.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/login/css/blue.css" />
	
    <link type="text/css" href="<?php echo base_url();?>css/login/css/smoothness/ui.css" rel="stylesheet" /> 
	

</head>

<?php

$request_url=$_SERVER['REQUEST_URI'];

$request_urlArray=explode("/",$request_url);

$countArray=count($request_urlArray);

$check_url="";

if($countArray>=4){
	$check_url=$request_urlArray[$countArray-2]."/".$request_urlArray[$countArray-1];
}else{
	$check_url="";
}
$image_path="";


if(trim($check_url)){
	$image_path="../";
}

$actual_link = "http://$_SERVER[HTTP_HOST]";

$urlArr=explode("/",$_SERVER[REQUEST_URI]);

$serverArr=array();
$server_srting="";
foreach ($urlArr as $key => $value) {
	if($value!='' AND $value!='index.php' AND $value!='login' AND $value!='home'){
		$serverArr[]=$value;
	}
}
if(count($serverArr)){
	$server_srting=implode("/",$serverArr);
}
if(trim($server_srting)){
	$actual_link.="/".$server_srting;
}



$target_file = $actual_link."/images/company_logo.php";
$file_content =file_get_contents($target_file, true);

$company_logo="company_logo.png";
if(trim($file_content)){
	$company_logo=trim($file_content);
}

?>


	
<style type="text/css">
html {
    overflow: auto;
}
</style>


<style>


/*---------------------------------------login------------------------------------------------*/
#content div.indexlogin{
	width: 958px;
	height: 350px;
	background: url(<?php echo $image_path;?>images/login/image.gif) no-repeat;
	padding-top:60px;
	border:0px solid red;
}


#content div.loginlayout{
	background:url(<?php echo $image_path;?>images/login/bg.png) no-repeat;
	width:277px;
	height:323px;
	text-align:left;
	padding-top: 64px;
	padding-left: 45px;
}



.loginlabel{
	font-size: 110%;
	margin-bottom:8px;
	width: 150px;
	vertical-align: top;
	font-weight:bold;
	clear:right;
}

input#username{
	margin-bottom:10px;
	border:1px solid #095d2a;
	-webkit-border-radius:16px;
	-moz-border-radius:16px;
	border-radius:16px;
	width:206px;
	padding: 5px 10px;
}

input#password{
	margin-bottom:10px;
	border:1px solid #095d2a;
	-webkit-border-radius:16px;
	-moz-border-radius:16px;
	border-radius:16px;
	width:206px;
	padding: 5px 10px;
}

input[type=submit]
{
	font-weight:normal;
	padding: 4px 8px;
	background:#e6e49f;
	background: -webkit-gradient(linear, left top, left bottom, from(#f1f1d4), to(#e6e49f));
	background-image: -moz-linear-gradient(top, #f1f1d4, #e6e49f);
	color:#333;
	border:1px solid #aaac62;
	-webkit-border-radius:8px;
	-moz-border-radius:8px;
	border-radius:8px;
	text-decoration:none;
	text-shadow: #fff 0px 1px 0px;
	min-width: 0;
}

.loginlabel{
	font-size: 110%;
	margin-bottom:8px;
	width: 150px;
	vertical-align: top;
	font-weight:bold;
	clear:right;
}

input#PathologyUserEmailAddress{
	margin-bottom:10px;
	border:1px solid #3BB0BA;
	-webkit-border-radius:16px;
	-moz-border-radius:16px;
	border-radius:16px;
	width:206px;
	padding: 5px 10px;
}

input#PathologyUserPassword{
	margin-bottom:10px;
	border:1px solid #3BB0BA;
	-webkit-border-radius:16px;
	-moz-border-radius:16px;
	border-radius:16px;
	width:206px;
	padding: 5px 10px;
}

/*---------------------------------------login------------------------------------------------*/
.error
{
	margin:0px;
	border:3px solid #d3153b;
	background-color:#fbe6f2;
	padding:5px;
	/*width:70%;*/
	text-align:center;
	font-size:18px;
	
}
</style>
</head>
<body>


<div class="container_16" id="wrapper" style="margin-top: -40px;">	
  	<!--LOGO-->
	<div class="grid_8" id="logo">
		&nbsp;
	</div>
    <div class="grid_8">
<!-- USER TOOLS START -->
    </div>
<!-- USER TOOLS END -->    
<div class="grid_16" id="header" style="height:94px;">
<!-- MENU START -->
<div id="menu">
	<ul class="group" id="menu_group_main">
	
	 	<table style="width:920px;">
		    	<tbody>
			    	<tr>
			    		<td width="100%" align="center">
			    			 <a href="http://www.grameencheck.com" target="_blank"><img src="<?php echo $image_path;?>images/<?php echo $company_logo;?>" width="250" alt="Grameen Shamogree" /></a> 
			    		</td>
			    	</tr>
		    	</tbody>
		 </table>
    </ul>
</div>
</div>
<div class="clear"> </div>
<div id="content" align="center">

			
			<div class="indexlogin">
	<div class="loginlayout">
	
	<?php echo form_open('login') ?>
	<?php echo validation_errors(); ?>
	<div class="input text required"><label for="UserEmailAddress"><span class="loginlabel" style="padding-left:40px;">Enter Your Username</span></label>
	<input name="username" maxlength="20" id="username" type="text">
	
	</div><div class="input password required"><label for="UserPassword"><span class="loginlabel"  style="padding-left:40px;">Enter Your Password</span></label>
	<input name="password" id="password" type="password"></div>
	<div style="padding-left:80px;">
	<?php echo form_submit('loginButton','Submit'); ?>
	</div>
	<?php echo form_close(); ?>
	

	<div>&nbsp;</div>
</div>
</div>



<div id="content_area_wrapper">
<div id="content_area">
<?php $this->load->view("partial/footer"); ?>
	
</body></html>
