本文整理汇总了PHP中db_formatar函数的典型用法代码示例。如果您正苦于以下问题:PHP db_formatar函数的具体用法?PHP db_formatar怎么用?PHP db_formatar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了db_formatar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<form name="form1" method="post" action="">
obs: coloquei só os do mês de agosto, tem que ver quais serão mostradas
<tr bgcolor="<?php
echo $w01_corfundomenu;
?>
">
<td> Licitação</td>
<td> Data de Adjudicação</td>
</tr>
<?php
/*
$result_dataaut=$clempautitem->sql_record($clempautitem->sql_query_lic(null,null,"distinct e54_emiss,e54_autori","e54_autori","l20_codigo=36"));
die ($clempautitem->sql_query_lic(null,null,"distinct e54_emiss,e54_autori","e54_autori","l20_codigo=36"));
if($clempautitem->numrows>0){// die("nnnnnnnn");
db_fieldsmemory($result_dataaut,0);
echo "data de adjudicação: $e54_emiss ";
} */
$sql = "select distinct e54_emiss, l03_descr, l20_numero , l20_codigo \nfrom empautitem \ninner join liclicitem on liclicitem.l21_codpcprocitem = empautitem.e55_sequen \ninner join liclicita on liclicitem.l21_codliclicita = liclicita.l20_codigo \ninner join cflicita on liclicita.l20_codtipocom = cflicita.l03_codigo \ninner join empautoriza on empautoriza.e54_autori = empautitem.e55_autori \nwhere e54_emiss>'2006-08-01'";
$result = pg_exec($sql);
$linhas = pg_num_rows($result);
echo "linhas = {$linhas}";
for ($i = 0; $i < $linhas; $i++) {
db_fieldsmemory($result, $i);
$data = db_formatar($e54_emiss, "d");
echo " \n <tr>\n\t\t<td>{$l03_descr} N {$l20_numero}</a></td>\n\t\t<td>{$data}</td>\n\t</tr>";
}
?>
</form>
</table>
</html>
示例2: db_formatar
$this->objpdf->cell(140, 8, $this->isennome, $borda, 1, "L", 0);
$this->objpdf->setfont('Arial', 'B', 12);
$this->objpdf->cell(45, 8, "Endereço : ", $borda, 0, "R", 0);
$this->objpdf->setfont('Arial', '', 12);
$this->objpdf->cell(140, 8, $this->isenender, $borda, 1, "L", 0);
$this->objpdf->setfont('Arial', 'B', 12);
$this->objpdf->cell(45, 8, "Bairro : ", $borda, 0, "R", 0);
$this->objpdf->setfont('Arial', '', 12);
$this->objpdf->cell(140, 8, $this->isenbairro, $borda, 1, "L", 0);
$this->objpdf->setfont('Arial', 'B', 12);
$this->objpdf->cell(45, 8, "Processo : ", $borda, 0, "R", 0);
$this->objpdf->setfont('Arial', '', 12);
$this->objpdf->cell(140, 8, $this->isenproc, $borda, 1, "L", 0);
$this->objpdf->setfont('Arial', 'B', 12);
$this->objpdf->cell(185, 8, "Periodo de isenção : ", $borda, 1, "C", 0);
$this->objpdf->setfont('Arial', '', 12);
$this->objpdf->cell(185, 8, "De " . db_formatar($this->isendtini, 'd') . " à " . db_formatar($this->isendtfim, 'd'), $borda, 1, "C", 0);
$this->objpdf->cell(185, 8, "", $borda, 1, "C", 0);
$this->objpdf->cell(185, 8, "", $borda, 1, "C", 0);
$this->objpdf->cell(185, 8, "", $borda, 1, "C", 0);
$this->objpdf->cell(185, 8, "", $borda, 1, "C", 0);
$this->objpdf->cell(185, 8, "", $borda, 1, "C", 0);
$this->objpdf->cell(70, 8, "", $borda, 0, "C", 0);
if (isset($this->isenassinatura) && $this->isenassinatura != "") {
$this->objpdf->multicell(110, 8, db_geratexto($this->isenassinatura), 0, 1, "C", 0);
} else {
$this->objpdf->cell(90, 10, "", 0, 1, "C", 0);
}
$this->objpdf->Ln(2);
$this->objpdf->setxy(14, $y + $linha - $y + 5);
// $this->objpdf->SetAutoPageBreak('on',0);
示例3: db_formatar
$pdf->Cell(114, 6, 'Nome ou Razão Social: ' . $w08_nome, 1, 1, "L", 1);
$pdf->SetFillColor(235);
$pdf->Cell(114, 6, 'Serviço: ' . $w08_servico, 1, 0, "L", 0);
$pdf->Cell(38, 6, 'Nota: ' . $w08_nota, 1, 0, "L", 0);
$pdf->Cell(38, 6, 'Serie: ' . $w08_serie, 1, 1, "L", 0);
$pdf->Cell(38, 6, 'Valor: ' . db_formatar($w08_valreceita, 'f'), 1, 0, "L", 0);
$pdf->Cell(38, 6, 'Alíquota: ' . $w08_aliquota . " %", 1, 0, "L", 0);
$pdf->Cell(38, 6, 'Imposto: ' . db_formatar($w08_imposto, 'f'), 1, 0, "L", 0);
$pdf->Cell(38, 6, 'Data do pagto: ' . ($w09_dtpaga != '' ? db_formatar($w09_dtpaga, 'd') : 'não efetuado'), 1, 0, "L", 0);
$pdf->Cell(38, 6, 'Valor pago: ' . ($w09_valpago != '' ? db_formatar($w09_valpago, 'f') : 'nâo efetuado'), 1, 1, "L", 0);
$total += $w08_valreceita;
$totali += $w08_imposto;
//if ($w09_valpago!='')
$totalvp += $w09_valpago;
}
$pdf->Ln(3);
$pdf->Cell(63, 6, 'Valor total: ' . db_formatar(@$total, 'f'), 1, 0, "R", 0);
$pdf->Cell(63, 6, 'Imposto Total: ' . db_formatar(@$totali, 'f'), 1, 0, "R", 0);
$pdf->Cell(63, 6, 'Valor pago total: ' . db_formatar(@$totalvp, 'f'), 1, 1, "R", 0);
}
// ate aquiiiiiiiiiiiii
$pdf->SetFont($Letra, '', 9);
$pdf->SetY(270);
$pdf->SetFont($Letra, '', 9);
//$pdf->MultiCell(0,6,'DAI NÃO ENVIADA',0,"C",0);
//$pdf->MultiCell(0,6,"DATA DE ENVIO: ".($w04_data != ""?db_formatar($w04_data,'d'):"")." - EXERCÍCIO: ".$w04_ano,0,"C",0);
if ($pdf->GetY() > 280) {
$pdf->AddPage();
$pdf->Ln(40);
}
$pdf->output();
示例4: db_fieldsmemory
$pdf->Cell(40, 6, 'Valor', 1, 0, "C", 1);
$pdf->Cell(35, 6, 'Aliquota - %', 1, 0, "C", 1);
$pdf->Cell(40, 6, 'Imposto', 1, 0, "C", 1);
$pdf->Cell(50, 6, 'Data pgto:', 1, 1, "C", 1);
db_fieldsmemory($resultval, 0);
$pdf->SetFillColor(235);
$pdf->Cell(25, 6, '' . db_mes($w07_mes), 1, 0, "C", 1);
$pdf->Cell(40, 6, '' . db_formatar($w07_valor, 'f'), 1, 0, "R", 0);
$pdf->Cell(35, 6, '' . $w07_aliquota . " %", 1, 0, "C", 1);
$pdf->Cell(40, 6, '' . db_formatar($w07_imposto, 'f'), 1, 0, "R", 0);
if ($w07_dtpaga != "") {
$w07_dtpaga = db_formatar($w07_dtpaga, 'd');
} else {
$w07_dtpaga = "Não efetuado";
}
$pdf->Cell(50, 6, '' . $w07_dtpaga, 1, 1, "C", 1);
$total += $w07_valor;
$totali += $w07_imposto;
$pdf->Cell(65, 6, '' . db_formatar(@$total, 'f'), 1, 0, "R", 0);
$pdf->Cell(35, 6, '', 1, 0, "R", 0);
$pdf->Cell(40, 6, '' . db_formatar(@$totali, 'f'), 1, 0, "R", 0);
$pdf->Cell(50, 6, '', 1, 0, "R", 0);
}
}
$pdf->SetY(270);
$pdf->MultiCell(0, 4, $munic . ', ' . $dia . ' de ' . db_mes($mes1) . ' de ' . $ano, 0, "R", 0);
if ($pdf->GetY() > 280) {
$pdf->AddPage();
$pdf->Ln(40);
}
$pdf->output();
示例5: db_formatar
echo $id_usuario;
?>
&codproc=<?php
echo $p58_codproc;
?>
&cgccpf=<?php
echo $z01_cgccpf;
?>
'" style="Cursor='hand';" onmouseover="bgColor='#ffffcc'" onmouseout="bgColor=''">
<td width="5%"><img src="imagens/seta.gif" border="0"></td>
<td align="right" width="10%"><b><?php
echo $p58_codproc;
?>
</b></td>
<td width="15%"><?php
echo db_formatar($p58_dtproc, 'd');
?>
</td>
<td> <?php
echo $p58_obs;
?>
</td>
</tr>
<?php
}
?>
</table><?php
} else {
//não tem processo
?>
<br><br>
示例6: db_formatar
if ($this->impcodativ == 't') {
$codativ = $this->outrasativs[$i]["codativ"];
$this->objpdf->Cell(15, $altlin, "{$codativ}", 0, 0, "C", 0);
} else {
$this->objpdf->Cell(15, $altlin, "", 0, 0, "L", 0);
}
//echo "1 - ".$this->outrasativs[$i]["descr"];
$descr = $this->outrasativs[$i]["descr"];
//db_msgbox($descr);
$this->objpdf->Cell(120, $altlin, $descr, 0, 0, "L", 0);
if ($this->impdatas == 't') {
$datain = $this->outrasativs[$i]["datain"];
$this->objpdf->Cell(24, $altlin, db_formatar($datain, 'd'), 0, 0, "C", 0);
if ($this->permanente == 'f') {
$datafi = $this->outrasativs[$i]["datafi"];
$this->objpdf->Cell(24, $altlin, db_formatar($datafi, 'd'), 0, 1, "L", 0);
} else {
$this->objpdf->Cell(24, $altlin, "", 0, 1, "L", 0);
}
} else {
$this->objpdf->Cell(24, $altlin, "", 0, 0, "L", 0);
$this->objpdf->Cell(24, $altlin, "", 0, 1, "L", 0);
}
if ($this->impobsativ == 't') {
$linha += 8;
if (isset($this->obsativ) && $this->obsativ != "") {
$this->objpdf->setx(15);
$obs = $this->obsativ;
$this->objpdf->Cell(183, 1, "", 0, 1, "L", 0);
$this->objpdf->setx(15);
$this->objpdf->Cell(15, $altlin, "", 0, 0, "C", 0);
示例7: db_fieldsmemory
$clquery->sql_query("cgm", "z01_nome", "", "z01_numcgm= {$q20_numcgm}");
$clquery->sql_record($clquery->sql);
db_fieldsmemory($clquery->result, 0);
$pdf->sety(25);
$pdf->setfont('arial', 'B', 10);
$pdf->multicell(0, 4, 'ISSQN COM RETENÇÃO NA FONTE', 0, "C", 0);
$pdf->ln(5);
$altura = 6;
$pdf->setfont('arial', 'B', 8);
$pdf->cell(130, $altura, 'TOMADOR DO SERVIÇO', 1, 0, "C", 0);
$pdf->cell(60, $altura, 'DADOS DA PLANILHA', 1, 1, "C", 0);
$pdf->setfont('arial', '', 8);
$pdf->cell(130, $altura, 'NOME : ' . strtoupper($z01_nome), 1, 0, "L", 0);
$pdf->cell(60, $altura, 'CODIGO : ' . db_formatar($planilha, 's', '0', 4, 'e'), 1, 1, "L", 0);
$pdf->cell(130, $altura, 'INSCRIÇÃO : ' . $q20_inscr, 1, 0, "L", 0);
$pdf->cell(60, $altura, 'COMPETÊNCIA : ' . db_formatar($q20_mes, 's', '0', 2, 'e') . '/' . $q20_ano, 1, 1, "L", 0);
$pdf->multicell(190, $altura, 'OBSERVAÇÃO : Os valores registrados nesta planilha somente serão considerados após o pagamento desta guia.', 1, "L", 0);
$linha = 65;
for ($i = 0; $i < 2; $i++) {
$pdf->SetLineWidth(0.05);
//$pdf->SetDash(1,1);
$pdf->Line(5, $linha - 2, 205, $linha - 2);
// linha tracejada horizontal
//$pdf->SetDash();
$pdf->Line(47, $linha, 47, $linha + 9);
$pdf->Line(63, $linha, 63, $linha + 9);
$pdf->SetLineWidth(0.6);
$pdf->Line(10, $linha + 9, 195, $linha + 9);
$pdf->SetLineWidth(0.2);
$pdf->Line(10, $linha + 17, 195, $linha + 17);
$pdf->Line(10, $linha + 25, 195, $linha + 25);
示例8: db_formatar
$this->objpdf->cell(22, $alt, "VLR DESCONTO", 0, 0, "R", 0);
$this->objpdf->cell(22, $alt, "VLR A PAGAR", 0, 0, "R", 0);
$this->objpdf->Ln();
$this->objpdf->cell(0, $alt, '', "T", 1, "C", 0);
$this->objpdf->setfont('arial', '', 7);
}
$vlrtotal = $vlrcor + $vlrjuros + $vlrmulta;
$vlrdesconto = $descontovlr + $descontojur + $descontomul;
$this->objpdf->cell(10, 5, $k00_matric, 0, 0, 'L');
$this->objpdf->cell(10, 5, $k00_ano, 0, 0, 'L');
$this->objpdf->cell(50, 5, $j14_nome, 0, 0, 'L');
$this->objpdf->cell(18, 5, $j34_setor . "/" . $j34_quadra . "/" . $j34_lote, 0, 0, 'L');
$this->objpdf->cell(22, 5, db_formatar($vlrcor, "f", ' ', 20), 0, 0, 'R');
$this->objpdf->cell(18, 5, db_formatar($vlrmulta, "f", ' ', 20), 0, 0, 'R');
$this->objpdf->cell(18, 5, db_formatar($vlrjuros, "f", ' ', 20), 0, 0, 'R');
$this->objpdf->cell(22, 5, db_formatar($vlrdesconto, "f", ' ', 20), 0, 0, 'R');
$this->objpdf->cell(22, 5, db_formatar($vlrtotal - $vlrdesconto, "f", ' ', 20), 0, 0, 'R');
$totvlrcor += $vlrcor;
$totvlrmul += $vlrmulta;
$totvlrjur += $vlrjuros;
$totvlrdesconto += $vlrdesconto;
$totapagar += $vlrtotal - $vlrdesconto;
$this->objpdf->ln();
}
$this->objpdf->cell(88, 5, "TOTAL DE MATRICULAS: " . pg_numrows($resultrecibo), 0, 0, 'L');
$this->objpdf->cell(22, 5, db_formatar($totvlrcor, "f", ' ', 20), 0, 0, 'R');
$this->objpdf->cell(18, 5, db_formatar($totvlrmul, "f", ' ', 20), 0, 0, 'R');
$this->objpdf->cell(18, 5, db_formatar($totvlrjur, "f", ' ', 20), 0, 0, 'R');
$this->objpdf->cell(22, 5, db_formatar($totvlrdesconto, "f", ' ', 20), 0, 0, 'R');
$this->objpdf->cell(22, 5, db_formatar($totapagar, "f", ' ', 20), 0, 0, 'R');
}
示例9: db_formatar
$pdf1->predescr16_3 = "";
//
$pdf1->descr12_2 = "";
//
$pdf1->linha_digitavel = $linhadigitavel;
$pdf1->codigo_barras = $codigobarras;
$pdf1->descr6 = $datavencimento;
// Data de Vencimento
$pdf1->descr7 = db_formatar(@$valor_parm, 'f');
// qtd de URM ou valor
//$pdf1->descr9 = $k03_numpre."001"; // cod. de arrecadação
$pdf1->descr9 = str_pad($k03_numpre . "000", 11, 0, STR_PAD_LEFT);
// cod. de arrecadação
$pdf1->predescr6 = $datavencimento;
// Data de Vencimento
$pdf1->predescr7 = db_formatar(@$valor_parm, 'f');
// qtd de URM ou valor
$pdf1->predescr9 = str_pad($k03_numpre . "000", 11, 0, STR_PAD_LEFT);
// cod. de arrecadação
/***************************************************************************************************************************************/
$rsMsgcarne = db_query("select k03_msgbanco from numpref where k03_anousu = " . db_getsession('DB_anousu'));
$iNumrows = pg_numrows($rsMsgcarne);
if ($iNumrows > 0) {
db_fieldsmemory($rsMsgcarne, 0);
} else {
$k03_msgbanco = '';
}
$pdf1->descr16_1 = substr($k03_msgbanco, 0, 50);
$pdf1->descr16_2 = substr($k03_msgbanco, 50, 50);
$pdf1->descr16_3 = substr($k03_msgbanco, 100, 50);
$pdf1->predescr16_1 = substr($k03_msgbanco, 0, 50);
示例10: db_formatar
$this->objpdf->Text($coluna + 90, $linha + 51, $this->compl == "" ? "" : $this->compl);
}
$this->objpdf->SetFont('Arial', 'B', 9);
$this->objpdf->Text($coluna, $linha + 55, "BAIRRO: ");
// endereco
$this->objpdf->SetFont('Arial', '', 9);
$this->objpdf->Text($coluna + 40, $linha + 55, $this->bairropri);
$this->objpdf->SetFont('Arial', 'B', 9);
$this->objpdf->Text($coluna, $linha + 59, "DATA DE INCLUSAO: ");
if ($this->datafim != "") {
$this->objpdf->Text($coluna + 60, $linha + 59, "VALIDADE ATÉ: ");
}
$this->objpdf->SetFont('Arial', '', 9);
$this->objpdf->Text($coluna + 40, $linha + 59, db_formatar($this->datainc, 'd'));
if ($this->datafim != "") {
$this->objpdf->Text($coluna + 85, $linha + 59, db_formatar($this->datafim, 'd'));
}
$this->objpdf->setx(44);
if ($this->q02_memo != '') {
$this->objpdf->SetFont('Arial', 'B', 9);
$this->objpdf->Text($coluna, $linha + 64, "OBSERVAÇÃO: ");
// observação
$this->objpdf->SetFont('Arial', '', 9);
$this->objpdf->sety($linha + 64);
$this->objpdf->Multicell(0, 3, $this->q02_memo);
// texto
$this->objpdf->SetFont('Arial', 'B', 10);
$this->objpdf->roundedrect(42, $linha + 30, 127, 42, 2, '1234');
$linha = 94;
} else {
$this->objpdf->roundedrect(42, $linha + 30, 127, 31, 2, '1234');
示例11: db_formatar
echo $cod;
?>
</span><br>
<center><img src="boleto/int25.php?text=<?php
echo $cod;
?>
"></center>
<br><br>
<?php
echo $cernomecontr;
?>
<br><br>
Vencimento: <?php
echo db_formatar($cerdtvenc, 'd');
?>
</div>
<?php
} else {
Header('Content-Type: application/pdf');
header("Expires: Mon, 26 Jul 2001 05:00:00 GMT");
// Date in the pas
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modifie
header("Cache-Control: no-store, no-cache, must-revalidate");
// HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
// HTTP/1.0
header("Cache-control: private");
示例12: foreach
$pdf->cell(95, 4, $oDadosAtividade->q03_descr, 0, 0, "L", 0);
$pdf->cell(10, 4, $sTipoAtividade, 0, 1, "L", 0);
}
} else {
$pdf->cell(190, 4, "NÃO POSSUI ATIVIDADE", 0, 1, "C", 0);
}
$pdf->Cell(180, 3, "", "", 1, "L", 0);
$pdf->Cell(200, 4, "", "", 1, "C", 0);
$pdf->setX(5);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(200, 4, "Dados da Simulação do Calculo", "LRBT", 1, "C", 0);
$pdf->setX(5);
$pdf->Cell(200, 4, "", "", 1, "C", 0);
$oCalculo = $oJson->decode(str_replace("\\", "", $oGet->oCalculo));
$sTipoCalculo = "";
foreach ($oCalculo as $oDadosCalculo) {
if ($sTipoCalculo != $oDadosCalculo->sDescricaoCalculo) {
$pdf->setX(10);
$pdf->SetFont('Arial', '', $titulo);
$pdf->cell(20, 4, "Calculo:", "T", 0, "L", 1);
$pdf->cell(100, 4, $oDadosCalculo->sDescricaoCalculo, "T", 1, "L", 1);
$pdf->cell(30, 4, "Parcela", "T", 0, "C", 1);
$pdf->cell(45, 4, "Vencimento", "T", 0, "C", 1);
$pdf->cell(45, 4, "Valor", "T", 1, "C", 1);
$sTipoCalculo = $oDadosCalculo->sDescricaoCalculo;
}
$pdf->cell(30, 4, $oDadosCalculo->iParcela, 0, 0, "C", 0);
$pdf->cell(45, 4, db_formatar($oDadosCalculo->dVencimento, "d"), 0, 0, "C", 0);
$pdf->cell(45, 4, db_formatar($oDadosCalculo->nValor, "f"), 0, 1, "C", 0);
}
$pdf->Output();
示例13: db_formatar
?>
</td>
<td> <?php
echo $x21_mes;
?>
</td>
<td> <?php
echo $x17_descr;
?>
</td>
<td> <?php
echo db_formatar($x21_dtleitura, 'd');
?>
</td>
<td> <?php
echo db_formatar($x21_dtinc, 'd');
?>
</td>
<td> <?php
echo $x21_leitura;
?>
</td>
<td> <?php
echo $x21_consumo;
?>
</td>
<td> <?php
echo $x21_excesso;
?>
</td>
<!--<td> <?php
示例14: db_formatar
}
}
if ($pagina == 1) {
$this->objpdf->rect($xcol, $xlin + 183, 152, 6, 2, 'DF', '34');
$this->objpdf->rect($xcol + 152, $xlin + 183, 25, 6, 2, 'DF', '34');
$this->objpdf->rect($xcol + 177, $xlin + 183, 25, 6, 2, 'DF', '34');
// $this->objpdf->setfillcolor(0,0,0);
$this->objpdf->SetFont('Arial', '', 7);
$this->objpdf->text($xcol + 2, $xlin + 187, 'DESTINO : ', 0, 1, 'L', 0);
$this->objpdf->text($xcol + 30, $xlin + 187, $this->destino, 0, 1, 'L', 0);
$this->objpdf->setxy($xcol + 1, $xlin + 165);
$this->objpdf->text($xcol + 2, $xlin + 164, 'RESUMO : ', 0, 1, 'L', 0);
$this->objpdf->multicell(147, 3.5, $this->resumo);
$this->objpdf->text($xcol + 159, $xlin + 187, 'T O T A L', 0, 1, 'L', 0);
$this->objpdf->setxy($xcol + 185, $xlin + 182);
$this->objpdf->cell(30, 10, db_formatar($this->empenhado, 'f'), 0, 0, 'f');
// $this->rodape($mod_rodape);
$this->objpdf->rect($xcol, $xlin + 197, 60, 47, 2, 'DF', '34');
$this->objpdf->rect($xcol + 60, $xlin + 197, 60, 47, 2, 'DF', '34');
$this->objpdf->rect($xcol + 120, $xlin + 197, 82, 47, 2, 'DF', '34');
$this->objpdf->rect($xcol + 120, $xlin + 216, 32, 28, 2, 'DF', '4');
$this->objpdf->rect($xcol, $xlin + 191, 60, 6, 2, 'DF', '12');
$this->objpdf->rect($xcol + 60, $xlin + 191, 60, 6, 2, 'DF', '12');
$this->objpdf->rect($xcol + 120, $xlin + 191, 82, 6, 2, 'DF', '12');
$this->objpdf->text($xcol + 15, $xlin + 195, 'CONTADORIA GERAL');
$this->objpdf->text($xcol + 82, $xlin + 195, 'PAGUE-SE');
$this->objpdf->text($xcol + 150, $xlin + 195, 'TESOURARIA');
if (strtoupper(trim($this->municpref)) == 'BAGE') {
// eu carlos, assumo !
$this->assinatura1 = 'EMISSOR';
$this->assinatura2 = 'CONTABILIDADE - CONFERIDO';
示例15: db_fieldsmemory
echo "</tr>";
for ($i = 0; $i < $linhas; $i++) {
db_fieldsmemory($result, $i);
if ($origem == "SOLICITAÇÃO") {
$sol = 1;
} else {
$sol = 2;
}
echo "<tr align='center' class='texto'>";
echo "<td>{$pc20_codorc}</td>";
if ($origem == "SOLICITAÇÃO") {
$sol = 1;
} else {
$sol = 2;
}
echo "\n\t\t\t\t</td>\n\t\t\t\t<td> " . db_formatar($pc20_dtate, 'd') . "\n\t\t\t\t</td>\n\t\t\t\t<td>{$pc20_hrate}\n\t\t\t\t</td>\n\t\t\t\t<td align='center'>{$origem} {$pc21_orcamforne}\n\t\t\t\t</td>\n\t\t\t\t</td>\n\t\t\t\t<td align='left'>\n\t\t\t\t\t<input name='imprimir' type='button' value='Imprimir' class='botao' onclick='js_imprime({$pc20_codorc},{$id_usuario},{$sol})'>\n\t\t\t\t\t";
if ($mostra == 1) {
// se for aberto
if ($pc23_vlrun != "" && $situacao == "Aberto") {
// se tiver valor
echo "<input name='alterar' type='button' value='Alterar' class='botao' onclick='js_alterar({$pc20_codorc},{$sol},{$pc21_orcamforne},{$id_usuario})'>";
} else {
// se não tiver valor
echo "<input name='incluir' type='button' value='Incluir' class='botao' onclick='js_alterar({$pc20_codorc},{$sol},{$pc21_orcamforne},{$id_usuario})'>";
}
}
if ($mostra == 3) {
if ($situacao == "Aberto") {
// se for aberto
if ($pc23_vlrun != "") {
// se tiver valor