<%@ page import="com.fenalco.entities.Company"%>
<%@ page import="com.fenalco.entities.User"%>
<%@ page import="com.fenalco.entities.DataAccess"%>
<%@ page import="com.fenalco.entities.Store"%>
<%@ page import="java.util.Hashtable"%>
<%@ page import="java.util.Enumeration"%>
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<link rel='stylesheet' style='text/css' href='../css/tablas.css'>
<title>Actualizar GLN</title>
</head>
<body bgcolor="#ffffff" background="../images/sysmanager/general/fondo.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table border="0" cellpadding="0" cellspacing="0" width="780">
        <%
            String helpId = "4";
        %>
        <%@ include file="encabezado.jsp" %>
</table>

<table width="760">
        <tr>
		<td width="152" valign='top'>
			<%@ include file="menuadministrador.jsp" %>
		</td>
                <td valign='top'>
                <%
                    String tittle = "Actualizar GLN";
                %>
                <%@ include file="/titulo.jsp" %>
        
			<table width="100%">
                                <tr><td><br><br></td></tr>
				<tr>
				<form name="updateGln" method="post" action="/administrador/administrarempresas">
                                <table align="center">
                                    <tr>
                                        <td>GLN</td>
                                        <% String id = request.getParameter("key"); 
                                           String gln = "";
                                            if(request.getParameter("gln")==null){
                                                gln = (new Store(Integer.parseInt(id))).getGln();
                                                if(gln==null || gln.equals("null")){
                                                    gln="";
                                                }    
                                            }else{
                                                gln=request.getParameter("gln");
                                            }    
                                         %>
                                        <td><input type="text" name="gln" maxlength="20" size='15' value="<%=gln%>"></td>
                                        <!-- JS: Verificación de campo vacío, Campo Obligatorio-->	
                                    </tr>
                                    <tr><td><br><br></td></tr>
                                    <tr>
                                        <td align="center" colspan='2'><input name="update" type="submit" value="Actualizar"><td>    
                                    </tr>
                                    <input name="operationType" type="hidden" value="updateGLN">
                                    <input name="key" type="hidden" value="<%=id%>">
                                </table>
                                </form>
				</tr>
			</table>
	</td>
    </tr>
	
</table>
<table width="760">
	<tr>
		<td><%@ include file="/piepagina.jsp" %></td>
	</tr>
</table>

</body>
</html>
