<?php use_helper( 'UrlFunctions' ); ?>
<?php use_helper( 'IncludePartial' ); ?>
<?php use_helper( 'UtilFunctions' ); ?>
<div id="resultContent" style=""></div>
<div class="block">
    <form action="" method="post" name="form1" id="form1">
        <table class="marco" style="background:#E3E9E2" width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <table width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tr>
                            <td nowrap="nowrap">
                                <table  cellspacing="1" cellpadding="0" border="0" class="SubCabecera" width="100%">
                                    <tr>
                                        <td  nowrap="nowrap"><label for=DescripcionPromo class="label">Descripci&oacute;n :</label></td>
                                        <td nowrap="nowrap" width="30%">
                                            <input type="text" class="text" name="DescripcionPromo" id="DescripcionPromo" style="width:80%" onfocus="this.select();">
                                        </td>
                                        <td  nowrap="nowrap"><label for="IdItemTipo" class="label">Tipo :</label></td>
                                        <td nowrap="nowrap" width="30%">
                                            <select class="combo" id="IdItemTipo" name="IdItemTipo">
                                                <option value=""> - Seleccione - </option>
                                                <?php foreach( ALM_ItemTipoFN::selectActivos( array( "IngenieriaFlag"=>1 ) )  as $o_ALM_ItemTipoBN ){ ?>
                                                    <option value="<?=$o_ALM_ItemTipoBN->getIdItemTipo()?>"  > <?=$o_ALM_ItemTipoBN->getDescripcionLocal()?> </option>
                                                <?php } ?>
                                            </select>
                                        </td>
                                        <td  nowrap="nowrap"> 
                                            <label for="ConStock" class="label">Con Stock</label> 
                                            <input type="checkbox" name="ConStock" id="ConStock" value="1" >
                                        </td>
                                        
                                    </tr>
                                </table>
                            </td>
                            <td>
                                <input type="button" onclick="findControl();" value="Buscar" class="button">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</div>
<script>
$( "#DescripcionCompleta" ).focus();
</script>
<script>
//ESCAPE, DETECTA EL F5, CTRL+F5
$( document ).bind
(
    'keyup', 
    function( e ) 
    {
        if( e.which === 13 ) 
        {
            findControl();
        }
    }
);
</script>

<?php include_partial( "gridPromocion", array( "i_Id" => $i_Id ) ); ?>