<!DOCTYPE HTML>
<!--
	Desarrollado por: Eduardo Alfonso Torres Luna
-->
<html>
	<head>
		<title>SISTEMA DE CONTROL COMERCIAL</title>
		<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"/>
		<meta charset="iso-8859-1" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
		<link rel="stylesheet" href="assets/css/main.css" />
		<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
	</head>
	<body>
	
		<div id="aula_virtual" style=" height:0px; ">  
		  
		</div>		
			
		<div id="page-wrapper">
			
			
			<div id="header-wrapper" style="margin-top:20px;">
				<div class="container">
					<div class="row">
						<div class="12u">

							<?php
							//include("cabecera_login.php");
							
							?>
							
						</div>
					</div>
				</div>
			</div>
						
			
			
			
			
		  <div id="main">			
			<div align="left" class="container" style="margin-left:70px;">			
			<form name="form_login" id="form_login" target="frame_login" method="post" action="procesos/login.php">
			  <table width="20" border="1">
                <tr>
                  <td><div align="center"><img src="images/logo_empresa.png" width="276" height="55"></div></td>
                </tr>
                <tr>
                  <td><table width="221" border="1" align="center">
                    
					
					
                    <tr>
                      <td>&nbsp;</td>
                    </tr>

                    <tr>
                      <td>Empresa</td>
                    </tr>
                    <tr>
                      <td>	
					  
					  <?php
					  include("conexion.php");
					  include("procesos/empresas.php");
					  
					  $empr = new Empresas;
					  $r_empr = $empr->lista_empresas($conexion);
					  
					  ?>					  					  
					  				  
					  <select  style="width:270px; padding:5px;"  name="xempresa" id="xempresa">

					    <option value="">-seleccione empresa-</option>
					  <?php
					  while($row_empr = mysqli_fetch_array($r_empr)){					  
					  ?>					  					  

					    <option value="<?php echo $row_empr['emp_codi']; ?>"><?php echo $row_empr['emp_nom']; ?></option>

					  <?php
					  }
					  ?>					  					  
					  
					  </select>
					  
					  </td>
                    </tr>					
					
					
					
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>Usuario</td>
                    </tr>
                    <tr>
                      <td><input style="width:270px; padding:5px;" type="text" name="xusuario" id="xusuario"></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>Clave</td>
                    </tr>
                    <tr>
                      <td><input style="width:270px; padding:5px;" type="password" name="xclave" id="xclave" ></td>
                    </tr>
                    <tr>
                      <td height="25"><iframe style="display:none;" id="frame_login" name="frame_login" title="fotos" width="200" height="20" frameborder="0" scrolling="No" marginheight="0" marginwidth="0" allowtransparency="AllowTransparency"></iframe></td>
                    </tr>
                    <tr>
                      <td><input style="width:270px; padding:5px;"  type="submit" name="Submit" value="Entrar"></td>
                    </tr>
                  </table></td>
                </tr>
              </table>
			</form>
			</div>
		  </div>
			<div id="footer-wrapper">
				<div class="container">
					<div class="row">
						<div class="8u 12u(mobile)">

							<section>
								<h2> </h2>
								<div>
								  <div class="row"></div>
								</div>
							</section>

						</div>
						
						
				  </div>
					<div class="row">
						<div class="12u">


							<div id="copyright" style="font-size:14px;">
							
							<img style="display:none;" src="images/logo.png" width="239" height="44">
							<br>
							<br>
							APLICACI&Oacute;N DE GESTI&Oacute;N COMERCIAL - Desarrollado por EDTL
							<br>
							<br>
							<u>SOPORTE T&Eacute;CNICO</u>
							<br><br>
							Celular: 954618004  E-mail: edtledu@gmail.com
							</div>

						</div>
					</div>
				</div>
			</div>
		</div>

		<!-- Scripts -->
			<script src="assets/js/jquery.min.js"></script>
			<script src="assets/js/skel.min.js"></script>
			<script src="assets/js/skel-viewport.min.js"></script>
			<script src="assets/js/util.js"></script>
			<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
			<script src="assets/js/main.js"></script>
			
			

	</body>
</html>