{extends "../menu.tpl"}

{block name="content"}
<ul class="nav nav-pills nav-stacked">
   <li class="nav-header"><i class="glyphicon glyphicon-transfer"></i><span>{'productsOfSuppliers'|translate}</span></li>
   <li><a href="javascript:nf('', 'launch.php?s=list.php&amp;type=productsOfSuppliers');"><i class="glyphicon glyphicon-list"></i> <span>{'productsList'|translate}</span></a></li>
   <li><a href="javascript:nw('productsOfSuppliers', '0');"><i class="glyphicon glyphicon-plus"></i> <span>{'newRecord'|translate}</span></a></li>
</ul>
<ul class="nav nav-pills nav-stacked small-hidden">
   <li class="nav-header smaller"><i class="glyphicon glyphicon-search"></i><span>{'search'|translate}</span></li>
   <li class="with_caret "><a href="#" class="opener"><span>{'searchProducts'|translate}</span></a></li>
   <li class="pill-content hidden">
      <ul class="nav-sub nav-pills">
      <form target="mainFrame" method="get" action="launch.php" class="form-inline" name="search">
         <div class="form-group">
            <input type="text" class="form-control input-sm" name="IDs" maxlength="25" value="" onKeyPress="checkInputData('int')" placeholder="{'supplierCode'|translate}"/>
         </div>
         <div class="form-group">
            <input type="text" class="form-control input-sm" name="EAN" maxlength="25" value="" onKeyPress="checkInputData('int')" placeholder="{'supplierEAN'|translate}"/>
         </div>
         <div class="form-group">
            <label>{'supplier'|translate}</label>
            <select name="supplier" class="form-control input-sm">
            <option value="" selected="selected">{'allSuppliers'|translate}</option>
            {foreach from=$suppliers key=key item=value}
            <option value="{$value.id}">
            {$value.name}
            </option>
            {/foreach}
            </select>
         </div>
         <div class="form-group">
            <label>{'producer'|translate}</label>
            <select name="producer" class="form-control input-sm">
            <option value="" selected="selected">{'allProducers'|translate}</option>
            {foreach from=$producers key=key item=value}
            <option value="{$value.id}">
            {$value.name}
            </option>
            {/foreach}
            </select>
         </div>
         <div class="form-group">
            <input type="text" class="form-control input-sm" name="productId" size="5" maxlength="100" value="" placeholder="{'product'|translate}" />
         </div>   
         <div class="form-group">
            <select class="form-control input-sm" name="variationId" tabindex=2></select>
            <script type="text/javascript">
            $(function(){
            initAutocompleteVariation('input[name=productId]', 'select[name=variationId]');
            });
            </script>
         </div>
         <div class="form-group">
            <div class="input-group invert">
               {$figure = ['Y' => 'figureVisible'|translate:'products', 'N' => 'figureHidden'|translate:'products', 'O' => 'figureSaleEnd'|translate:'products']}
               {print_select name="figure[]" var=$figure param="multiple=multiple data-placeholder='{"figure"|translate:"products"}' data-filter-type='multiselect'"}
               {inversion field="figure"}
            </div>
         </div>
         <div class="form-group">
            <input type="hidden" name="s" value="list.php"><input type="hidden" name="type" value="productsOfSuppliers" />             
            <input type="reset" value="{'clearBtn'|translate}" class="btn btn-danger btn-sm"/>
            <input type="submit" value="{'searchBtn'|translate}" class="btn btn-primary btn-sm"/>
         </div>
      </form>
      </ul>
   </li>
   <li><a href="launch.php?s=list.php&amp;type=productsOfSuppliers&amp;error=1" target="mainFrame"><span>{'badlyPaired'|translate}</span></a></li>
</ul>

{/block}
