<?php use_helper( 'UrlFunctions' ); ?>
<?php use_helper( 'UtilFunctions' ); ?>
<?php use_helper( 'IncludePartial' ); ?>
<div class="titleBody descripProy">
    <ul>
        <li>
            <?=$s_Titulo?>
        </li>
    </ul>
</div>
<table class="cuerpo" width="98%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td valign="top">
            <form id="form1" name="form1" method="POST" onsubmit="return false;"  enctype="multipart/form-data">
                <input type="hidden" name="s_TipoProc" id="s_TipoProc" value="<?=$s_TipoProc?>">
                <input type="hidden" name="TypeSub" id="TypeSub" value="0">
                <table class="" width="100%">
                    <tr>
                        <td valign="top">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td class="marco marcoTitle">
                                        <table class="" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="100%" valign="top">
                                                    <?php 
                                                    include_partial
                                                    ( 
                                                        "addedit", 
                                                        array
                                                        ( 
                                                            "o_DefaultBN"         => $o_DefaultBN,
                                                            "a_GSS_Compania"      => $a_GSS_Compania,
                                                            "a_GSS_Sucursal"      => $a_GSS_Sucursal,
                                                            "a_VTA_TipoDocumento" => $a_VTA_TipoDocumento,
                                                            "s_TipoProc"          => $s_TipoProc
                                                        )
                                                    );
                                                    ?>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="100%" border="0" style="margin-top: 10px;">
                                            <tr>
                                                <td align="center" width="100%">
                                                    <input type="button" class="button" value="Cancelar" onclick="location.href='<?php echo buildUrl( 'ptovta/list', 'block=001' ) ?>'">
                                                    <!--<input type="submit" class="button" value="Grabar" onclick="">-->
                                                    <input type="submit" class="button" value="Grabar y Salir" onclick="$( '#TypeSub' ).val( '1' );">
                                                    
                                                    <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>

