
<?php
 
    /* CADASTROS RECENTES */
	$select_db->ExeRead("*",  'fid_produto', " ORDER BY prod_id desc", "d={$data}");

	$mes_extenso = array(
        '01' => 'Janeiro',
        '02' => 'Fevereiro',
        '03' => 'Marco',
        '04' => 'Abril',
        '05' => 'Maio',
        '06' => 'Junho',
        '07' => 'Julho',
        '08' => 'Agosto',
        '09' => 'Setembro',
        '10' => 'Outubro',
        '11' => 'Novembro',
        '12' => 'Dezembro'
    );

?>	
        <div class="col-md-12">
<div class="row" style="background-color: #e8e8e8; margin-bottom: 15px">
            <div class="col-md-9">
                <h3 style="margin: 0">
                    <i class="fa fa-user color1"></i>
                     Adicionar pontos algum cliente 
                </h3>
            </div>
            	<div class="col-md-3" style="margin-top:10px">
			<button type="button" class="simple-btn" onclick="TerminalAdmin.dashboard();">Voltar para Dashboard</button>
		</div>
     </div>
</div>
        
        

<div class="widgets-holder">
        <div class="row">
            <div class="masonary" style="position: relative; height: 121.8px;">
               
                 <form action="" id="formPontos">
                  <div class="col-md-4">

                    <label>Prémio</label>
                    <select name="premio" class="form-control">
<?php 
						
for($i=0;$i<count($select_db->getResult());$i++){

	echo '<option value="'.$select_db->getResult()[$i]['prod_id'].'_'.$select_db->getResult()[$i]['prod_valor'].'_'.$select_db->getResult()[$i]['prod_titulo'].'_'.$select_db->getResult()[$i]['prod_pontos'].'">'.$select_db->getResult()[$i]['prod_titulo'].'</option>';
	
} 
						
 ?>
                   	                   	
                    </select>

                </div>
               
               
                <div class="col-md-4">

                    <label>CPF</label>
                    <input name="cli_cpf" id="cli_cpf" onkeyup="Pontos.check_cliente()" maxlength="11" class="form-control" type="text">

                </div>

   
      <input type="hidden" name="cadastrar-pontos" />
      
       </form>
       
        
                <div class="col-md-12">

                    <button type="button" class="btn btn-success btn-lg" onclick="TerminalAdmin.cadastrarPontos();">
                        <i class="fa fa-plus"></i> Adicionar Pontos
                    </button>

                </div>

            </div><!-- Masonary -->
        </div>
    </div>