<?php
/*
CRIADO POR: K88
DATA ULTIMA ALTERAÇÃO: 16/08/2017 15:33
OBS.: ATUALIZAÇÃO DE NOVOA ESTRUTURA E REVISÃO
*/

error_reporting(E_ALL);
ini_set('display_errors', 0 );
header('Content-Type: text/html; charset=utf-8');
include("configuracao.php");//confirma no banco de dados
include("inclusos/funcoes.php");
include("seguranca.php"); // Inclui o arquivo com o sistema de seguran?a
protegePagina(); // Protege a página


?>
<!doctype html>
<html ng-app="myApp">
<head>
<title>CONFIRMAR PAGAMENTO</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <!-- jQuery 2.1.3 -->
    <script src="plugins/jQuery/jQuery-2.1.3.min.js"></script>
    <script src="js/funcoes.js"></script>
    <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/minified/jquery-ui.min.css" type="text/css" />
    <script type="text/javascript" src="https://code.jquery.com/ui/1.10.1/jquery-ui.min.js"></script>    
    <!-- Bootstrap 3.3.2 -->
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <!-- Font Awesome Icons -->
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <!-- Ionicons -->
    <link href="https://code.ionicframework.com/ionicons/2.0.0/css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <!-- Morris chart -->
    <link href="plugins/morris/morris.css" rel="stylesheet" type="text/css" />
    <!-- jvectormap -->
    <link href="plugins/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
    <!-- Daterange picker -->
    <link href="plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
    <!-- AdminLTE Skins. Choose a skin from the css/skins 
         folder instead of downloading all of them to reduce the load. -->
    <link href="dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
<meta charset="utf-8">

</head>

<body>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
<div class="box box-primary">
                <div class="box-header">
                  <h3 class="box-title">Confirmar Pagamento</h3>
                </div>
                <div class="box-body">
                  <div class="row">
                  
<form name="cadastro_pagamentos" id="cadastro_pagamentos" method="get" action="relatorio_historico_cliente.php" enctype="multipart/form-data" class="form-default" target="_parent">		
<input type="hidden" name="idcliente" value="<?php echo $_GET['idcliente'];?>">
<input type="hidden" name="mes" value="<?php echo $_GET['mes'];?>">
<input type="hidden" name="idpagamento" value="<?php echo $_GET['idpagamento'];?>">
<input type="hidden" name="Receber" value="sim">

       <div class='col-xs-6'> 
      <label>Caixa (Centro de Custo)</label>
        <select class="form-control" name="idcentrodecusto" required>
        <?php $SelecionaCentrodeCusto = Seleciona("centrodecusto", "WHERE idfilial='".$_SESSION['idfilial_usuario']."' AND   cod_empresa='".$_SESSION['cod_empresa']."'", ""); while($custo = mysql_fetch_array($SelecionaCentrodeCusto)){ ?>
        <option value="<?php echo $custo['idcentrodecusto'];?>"><?php echo $custo['titulo'];?></option>
        <?php }?>
        </select>  
 
		</div>

		<div class='col-xs-6'>
		<label for='data_pagamento'>Data do Pagamento</label>        
		  <input type='date' id='data_pagamento' name='data_pagamento' class='form-control' placeholder='data_pagamento' value='<?php echo $_GET['data'];?>' required>
		</div>


		<div class='col-xs-6'>
		<label for='data'>Data</label>
		  <input type='date' id='data' name='data' class='form-control' placeholder='data' value='<?php echo $_GET['data'];?>' disabled>
		</div>


		<div class='col-xs-6'>
		<label for='valor'>Tipo Pagamento</label>
		  <input type='text' id='tipo' name='tipo' class='form-control' placeholder='valor' value='<?php echo $_GET['tipo'];?>' disabled>
		</div>


                  </div>
                    <div class="box-footer">
                    <button type="submit" class="btn btn-primary">Confirmar Pagamento</button>
                    </div>
                    </form>                                     
                </div><!-- /.box-body -->

              </div>    
    </td>
  </tr>
</table>
</body>
</html>