<?
$i=0;
?>
<div class="block">
	<div class="content controls">
	<div class="form-row">
	    <div class="col-md-12">
	      <div class="table-responsive">
            <table class="table itens-1-n" id="pedidos_compra" data-n="2" data-order-by="0">
              <thead>
	        <thead>
	          <tr>
	          	<th width="10%"># Nr. Ped</th>
	          	<th width="60%">Nro Itens | Fornecedor</th>
	            <th width="3%" class="text-center no-sort">Excluir</th>

	          </tr>
	        </thead>
	        <tbody>
	          <tr>
	            <td >
	              <div class="input-group">
		              <input required type="text" style="min-width:80px;" name="nr_pedido_compra[<?=$i;?>]" value="<?= sgcws_attr($item['nr_pedido_compra']); ?>" 
		              class="getConsultaQtde">

		              <div class="input-group-addon">
		                <a href="erpc_nfecode_importacao_pedidos_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-value="input[name='nr_pedido_compra[<?=$i;?>]']" data-description="input[name='ds_pedido_compra[<?=$i;?>]']" data-title="Selecione:" value="<?= sgcws_attr($item['nr_pedido_compra']); ?>" >
		                <span class="fa fa-search"></span></a>
		              </div>

	              </div>
	            </td>

	            <td><input readonly type="text" name="ds_pedido_compra[<?=$i;?>]"></td>
	            
	            <td class="text-center">
	            	<a class="item-delete" href="#" data-target="#pedidos_compra">
	            		<span class="fa fa-trash"></span>
	            	</a></td>

	          </tr>
	          </tbody>
		      </table>
		      </div>
		      
		          <p>
			        <a href="#" class="item-add pull-right" data-target="#pedidos_compra"><span class="fa fa-plus-circle"></span> Novo Pedido</a>
			      </p>
		    </div>
	</div>
	</div>
</div>