<?php use_helper('UrlFunctions'); ?>
<?php use_helper( 'IncludePartial' ); ?>
<div class="titleBody descripProy">
    <ul>
        <li>
            Editar Empresa
        </li>
    </ul>
</div>
<table class="cuerpo" width="99%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td valign="top">
            <form id="form1" name="form1" method="POST" onsubmit=""  enctype="multipart/form-data">
                <input type="hidden" name="TypeProc" value="1">
                <table class="" width="99%">
                    <tr>
                        <td valign="top">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <table id="tabShowScan" cellpadding="0" cellspacing="0" class="mnuElement">
                                            <tr>
                                                <td class="mnuInactivoIzq"><img src="<?=Constantes::ROOT_DIR_IMG?>common/spacer.gif" width="0" /></td>
                                                <td class="mnuInactivoTxt" nowrap="nowrap" onclick="location.href='<?=buildUrl( 'addemp/edit', "block=001&i_Id=".$i_Id )?>';">General</td>
                                                <td class="mnuInactivoDer"><img src="<?=Constantes::ROOT_DIR_IMG?>common/spacer.gif" width="1" /></td>
                                                
                                                <td class="mnuActivoIzq"><img src="<?=Constantes::ROOT_DIR_IMG?>common/spacer.gif" width="0" /></td>
                                                <td class="mnuActivoTxt" nowrap="nowrap" onclick="location.href='<?=buildUrl( 'addemp/addProd', "block=001&i_Id=".$i_Id )?>';">Sucursal</td>
                                                <td class="mnuActivoDer"><img src="<?=Constantes::ROOT_DIR_IMG?>common/spacer.gif" width="1" /></td>
                                                
                                                <td class="mnuInactivoIzq"><img src="<?=Constantes::ROOT_DIR_IMG?>common/spacer.gif" width="0" /></td>
                                                <td class="mnuInactivoTxt" nowrap="nowrap" onclick="location.href='<?=buildUrl( 'addemp/addCrianza', "block=001&i_Id=".$i_Id )?>';">Almacenes</td>
                                                <td class="mnuInactivoDer"><img src="<?=Constantes::ROOT_DIR_IMG?>common/spacer.gif" width="1" /></td>

                                                <td class="mnuInactivoIzq"><img src="<?=Constantes::ROOT_DIR_IMG?>common/spacer.gif" width="0" /></td>
                                                <td class="mnuInactivoTxt" nowrap="nowrap" onclick="location.href='<?=buildUrl( 'addemp/detPtoVta', "i_Id=".$i_Id )?>';">Punto de Venta</td>
                                                <td class="mnuInactivoDer"><img src="<?=Constantes::ROOT_DIR_IMG?>common/spacer.gif" width="1" /></td>

                                                <td class="mnuInactivoIzq"><img src="<?=Constantes::ROOT_DIR_IMG?>common/spacer.gif" width="0" /></td>
                                                <td class="mnuInactivoTxt" nowrap="nowrap" onclick="location.href='<?=buildUrl( 'addemp/addCaja', "block=001&i_Id=".$i_Id )?>';">Caja</td>
                                                <td class="mnuInactivoDer"><img src="<?=Constantes::ROOT_DIR_IMG?>common/spacer.gif" width="1" /></td>
                                            </tr>
                                        </table>
                                        
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td class="marco">
                                        <table class="" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="100%" valign="top">
                                                
                                                    <div style="float:left;padding:0px 0px 0px 0px;;width:100%">
                                                    
                                                        <?php include_partial( "infohead", array( "o_GSS_CompaniaBN" => $o_GSS_CompaniaBN ) ); ?>
                                                        <br>
                                                        <table width="100%">
                                                            <tr>
                                                                <td>
                                                                    
                                                                    <fieldset class="formGen" style="border-bottom-width: 0;">
                                                                        <legend class="fielsettex">Sucursales</legend> 
                                                                        <form id="form1" name="" method="POST" action="">
                                                                            <input type="hidden" name="IdCompania" id="IdCompania" value="<?=$i_Id?>">
                                                                            <table width="100%" cellspacing="0" cellpadding="0" border="0" >
                                                                                <tr>
                                                                                    <td>
                                                                                        <!--<label class="label textOpt">LISTA DE SUCURSALES</label>-->&nbsp;
                                                                                    </td>
                                                                                    <td align="right">
                                                                                        <img name="add" class="nvoUnidad" src="<?=Constantes::ROOT_DIR_IMG?>common/buttons/btnAdd.gif" style="cursor:pointer">
                                                                                        <script>
                                                                                        $( ".nvoUnidad" )
                                                                                        .click
                                                                                        (
                                                                                            function( o_param )
                                                                                            {
                                                                                                $( '#myIframe' ).attr( 'src', '<?=buildUrl( 'addemp/nvoUniProd', 'block=001&i_Id='.$i_Id.'&s_TipoProc=nvo' )?>' );
                                                                                                $( '#dialog' ).dialog( 'open' );
                                                                                            }
                                                                                        )
                                                                                        </script>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </form>
                                                                    </fieldset>
                                                                    
                                                                    <?php include_partial( "gridProd", array( "i_Id" => $i_Id ) ); ?>
                                                                
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        
                                                    </div>
                                                    
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="100%" border="0" style="margin-top: 10px;">
                                            <tr>
                                                <td align="center" width="55%">
                                                    <input type="button" class="button" value="Cancelar" onclick="location.href='<?php echo buildUrl( 'addemp/list', 'block=001' ) ?>'">
                                                    <input type="button" class="button" value="Anterior" onclick="location.href='<?php echo buildUrl( 'addemp/edit', 'block=001&i_Id='.$i_Id ) ?>'">
                                                    <input type="button" class="button" value="Siguiente" onclick="location.href='<?php echo buildUrl( 'addemp/addCrianza', 'block=001&i_Id='.$i_Id ) ?>'">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </form>
        </td>
    </tr>
    
</table>


