Viewing file: conta_detalhada.php (6.19 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// Includes
include("../../config/config.php");
include(INCLUDES . "inc_Funcoes.php");
include(INCLUDES . "inc_Conexao.php");
include(INCLUDES . "valida_usuario.inc.php");
$pgChamou = $_SERVER['HTTP_REFERER'];
//echo "<pre>".$pgChamou."</pre>";
$nivel = '../';
if ($_GET['idCon']) {
$idCon = $_GET['idCon'];
$labelBotao = 'Alterar';
$where = "CON_RowID = $idCon";
$contas = lista('FUN_ContasInternas',$where);
foreach($contas as $conta) {
$conta = $conta;
}
extract($conta);
/*
echo '<pre>';
print_r($conta);
echo '</pre>';
*/
if ($_GET['img'] != '')
$readonly = ' readonly="readonly"';
else
$readonly = '';
} else
$labelBotao = 'Salvar';
$anoAtual = date('Y');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Description" content="IRPEN">
<meta name="Keywords" content="">
<meta name="resource-type" content="document">
<meta name="classification" content="Internet">
<meta name="robots" content="all">
<meta name="rating" content="General">
<meta name="Author" content="Ninart! Solucoes para Web.">
<meta name="language" content="pt-br">
<link rel="shortcut icon" href="imagens/favicon.gif"type="image/gif">
<link rel="stylesheet" href="<?= HOST;?>css/irpen.css" type="text/css" />
<link rel="stylesheet" media="all" type="text/css" href="<?= HOST;?>css/menu_dropline.css" />
<!--[if IE]>
<link rel="stylesheet" media="all" type="text/css" href="css/menu_dropline_ie.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" media="all" type="text/css" href="css/menu_dropline_ie6.css" />
<![endif]-->
<title>IRPEN | Instituto de Registro Civil de Pessoas Naturais do Paraná - 2008</title>
<link href="../css/estilo2.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p><img src="<?= HOST;?>imagens/logo.jpg" width="300" /></p>
<table border="0" cellspacing="0" cellpadding="3" width="100%">
<tr>
<td align="center" style="background-color:#6070B8; color:#FFF; font-weight:bold;">
DETALHAMENTO DA CONTA
</td>
</tr>
</table>
<div id="corpo">
<p>
<table width="70%" border="0" class="tabela" align="center">
<tr>
<td colspan="4"><h2>Detalhes da conta selecionada</h2></td>
</tr>
<tr>
<td width="250" align="right">Referência / Cód. Barras: </td>
<td colspan="3" align="left"> <?= $CON_Referencia?></td>
</tr>
<tr>
<td align="right">Número do Cheque: </td>
<td colspan="3" align="left"> <?= $CON_NumCheque?></td>
</tr>
<tr>
<td align="right">Número do Documento: </td>
<td colspan="3" align="left"> <?= $CON_NumeroDocumento?></td>
</tr>
<tr>
<td align="right">Tipo do Pagamento: </td>
<td colspan="3" align="left">
<?php
$qryTipoPgto = "
SELECT PAG_Nome
FROM FUN_TipoPagamento
WHERE PAG_RowID = $CON_TipoPagamento_DR
";
$rsTipoPgto = executa($qryTipoPgto);
if (!empty($rsTipoPgto)) {
foreach($rsTipoPgto as $rsTipoPgto)
extract($rsTipoPgto);
echo utf8_decode($PAG_Nome);
}
?>
</td>
</tr>
<tr>
<td align="right">Fornecedor: </td>
<td colspan="3" align="left">
<?php
$qryFornecedor = "
SELECT FOR_Nome
FROM FUN_Fornecedores
WHERE FOR_RowID = $CON_Fornecedor_DR
";
$rsFornecedor = executa($qryFornecedor);
if (!empty($rsFornecedor)) {
foreach($rsFornecedor as $rsFornecedor)
extract($rsFornecedor);
echo $FOR_Nome;
}
?>
</td>
</tr>
<tr>
<td align="right">Grupos: </td>
<td colspan="3" align="left">
<?php
$qryGrupos = "
SELECT GFO_Nome
FROM FUN_GruposFornecedores
WHERE GFO_RowID = $CON_Grupo_DR
";
$rsGrupos = executa($qryGrupos);
if (!empty($rsGrupos)) {
foreach($rsGrupos as $rsGrupos)
extract($rsGrupos);
echo $GFO_Nome;
}
?>
</td>
</tr>
<tr>
<td align="right">Histórico: </td>
<td colspan="3" align="left">
<?= $CON_Historico?>
</td>
</tr>
<tr>
<td align="right">Data Vencimento: </td>
<td colspan="3" align="left">
<?= ($CON_DataVencimento != '') ? arrumaData($CON_DataVencimento,'mostra') : ''?>
</td>
</tr>
<tr>
<td align="right" width="250">Data de Preferência para pagamento: </td>
<td colspan="3" align="left">
<?php
if(($CON_DataPrefPagamento != '') && ($CON_DataPrefPagamento != '0000-00-00')) {
echo arrumaData($CON_DataPrefPagamento,'mostra');
} else {
echo '';
}
?>
</td>
</tr>
<tr>
<td align="right">Valor: </td>
<td colspan="3" align="left"> R$ <?= ($CON_Valor != '') ? number_format($CON_Valor,2,',','') : ''?></td>
</tr>
<tr>
<td align="right">Modalidade de Débito: </td>
<td colspan="3" align="left">
<?php
if($CON_ModDebito==1)
echo "Autorização de Retirada";
else if($CON_ModDebito==2)
echo "Pagamento de Boleto Bancário";
else if($CON_ModDebito==3)
echo "Transferência Bancária";
else if($CON_ModDebito==4)
echo "Cheque";
else if($CON_ModDebito==5)
echo "Depósito Bancário";
?>
</td>
</tr>
</table>
<p><center><input type="button" name="btnFechar" id="btnFechar" value="Fechar" onClick="window.close()" /></center></p>
</div>
</body>
</html>
|