<?php use_helper('UrlFunctions'); ?>
<?php use_helper( 'IncludePartial' ); ?>

<table class="cuerpo" width="98%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td height="0">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td class="titleBody">
                        <span class="subtitle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:::&nbsp;Editar Almacen</span>
                    </td>
                    <td align="right" valign="baseline">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td valign="top">
            <form id="form1" name="form1" method="POST" onsubmit=""  enctype="multipart/form-data">
                <input type="hidden" name="TypeProc" id="TypeProc" value="0">
                <input type="hidden" name="i_Id" id="i_Id" value="<?=$i_Id?>">
                <table class="" width="100%" style="margin-left: 20px;">
                    <tr>
                        <td valign="top">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                               
                                    
                            	<tr>
                                    <td class="">
                                        <table class="" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="100%" valign="top">
                                                
                                                    <div id="resultContent" style=""></div>
                                                    <table width="100%">
                                                        <tr>
                                                            <td width="50%" valign="top" >
                                                                <?php include_partial( "addedit", array( "o_ALM_AlmacenMastBN" => $o_ALM_AlmacenMastBN ) ); ?>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="100%" border="0" style="margin-top: 10px;">
                                            <tr>
                                                <td align="right" width="55%">
                                                    <input type="hidden" name="TypeSub" id="TypeSub" value="1"/>
                                                    <input type="button" class="button" value="Cancelar" onclick="location.href='<?php echo buildUrl( 'almacen/list', 'block=001' ) ?>'">
                                                    <input type="submit" class="button" value="Grabar" onclick="">
                                                    
                                                </td>
                                                <td width="45%">
                                                    <div id="s_ImagenLoad" style="display: none;"><img src="<?php echo Constantes::ROOT_DIR_APP ?>web/images/progress.gif" border="0"/>&nbsp;<label class="laber req">Grabando...</label></div>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </form>
        </td>
    </tr>
    
    
</table>

<script>
$.validator.setDefaults
(
    {
        submitHandler: function( form ) 
        {
            ejecutarGuardar();
        }
    }
);
$( "#form1" ).validate();
</script>