
<style type="text/css">
.ui-dialog .ui-dialog-titlebar-close 
{
    position: absolute;
    right: .3em;
    top: 50%;
    width: 20px;
    margin: -10px 0 0 0;
    padding: 1px;
    height: 20px;
    background-position: -96px -128px;
    /*background-image: url("images/ui-icons_056b93_256x240.png");*/
    background-image: url("<?=Constantes::ROOT_DIR_APP?>web/css/jquery/themes/start_1.12.1/images/ui-icons_056b93_256x240.png");
}
</style>

<div id="content_alert" style=""></div>

<div class="card">
    <div class="container">
            <div class="form-row mx-0">
            	<div class="col-md-6 mb-1">
                    <label class="col-form-label" for="IdMarca">C&oacute;digo</label>
                    <input type="text" class="form-control" disabled="" name="IdMarca" id="IdMarca" placeholder="" value="<?=$o_ALM_MarcaBN->getIdMarca();?>" onblur="this.value=this.value.toUpperCase();" required>
                </div>
                <div class="col-md-6 mb-1">
                    <label class="col-form-label" for="DescripcionLocal">Descripcion</label>
                    <input type="text" class="form-control" name="DescripcionLocal" id="DescripcionLocal" placeholder="" value="<?=$o_ALM_MarcaBN->getDescripcionLocal();?>" onblur="this.value=this.value.toUpperCase();" required>
                </div>
            </div>
            <div class="form-row mx-0">
            	<div class="col-md-6 mb-1">
                    <label class="col-form-label" for="DescripcionIngles">Prefijo</label>
                    <input type="text" class="form-control" name="DescripcionIngles" id="DescripcionIngles" placeholder="" value="<?=$o_ALM_MarcaBN->getDescripcionIngles();?>" onblur="this.value=this.value.toUpperCase();" >
                </div>
                <div class="col-md-6 mb-1">
                    <label class="col-form-label" for="Estado">Estado</label>
                    <select class="form-control form-control-sm custom-select my-0 mr-sm-2" name="Estado" id="Estado" required>
                        <option value=""> - Seleccione - </option>
                        <option value="A" <?php if( $o_ALM_MarcaBN->getEstado()=="A" ){ echo "SELECTED"; } ?>> ACTIVO </option>
                        <option value="I" <?php if( $o_ALM_MarcaBN->getEstado()=="I" ){ echo "SELECTED"; } ?>> INACTIVO </option>
                    </select>
                </div>
            </div>

        	<?php if( $o_ALM_MarcaBN->getIdMarca() ){ ?>
        	<br>
        	<button type="button" class="btn btn-primary btn-lg btn-block" id="btnAudi">Auditoria</button>
            	<script>
                $( "#btnAudi" )
                .click
                (
                    function()
                    {
                        $( '#myIframe' ).attr( 'src', '<?=buildUrl( 'marca/audi', 'block=001&i_Id='.$o_ALM_MarcaBN->getIdMarca() )?>' );
                        $( '#dialog' ).dialog( 'open' );
                    }
                )
                </script>
            <br>
            <?php } ?>
            
            <div class="form-group col-14"><hr style="border-top: 1px solid #8c8b8b;"></div>
        
    </div>
</div>


                                           
<div id="dialog"><iframe id="myIframe" src="" frameborder="0" height="100%" width="100%"></iframe></div>
<script>
    objMainTab.modalUIDialog( "#dialog", { title : "Auditoria", width : 425, height  : 230 } );
</script>