if ( @CampoParcela ($conexao,$id,0,"valor") != "" ) { ?> [ <span class="small" > Pago em <? echo FormatarDataTime(CampoParcela ($conexao,$id,0,"data")); ?></span>] <? } else { ?> <input name="submit22" type="button" onClick="PagarFornecedor();" class="sbtn" value="Pagar "> <? } ?> </span></TR> <TR class="row-11"> <TD class=selectedRow>Valor Total Pedido </TD> <TD class="statusBar">R$ <? echo @PontoVirgula ($valor_total); ?> </TR> <!-- Additional information --> <!-- spacer --> <TR> <TD class=spacer colSpan=2> </TD> </TR> <!-- Custom Fields --> <!-- File Upload (if enabled) --> <? $total = $valor_total; if ( @$parcelas!=0 && @$c =="" ) { $vezes = $parcelas; $parcelas = 0; }
cal1 = new dhtmlxCalendarObject('calInput1'); } </script></TD> </TR> <TR> <TD class=spacer colSpan=2> </TD> </TR> <TR class="row-11"> <TD class=selectedRow>Valor Total Pedido </TD> <TD class="statusBar">R$ <INPUT name="valor_total" id="valor_total" onKeyUp="maskIt(this,event,'#########,##',true)" value="<? echo @PontoVirgula ( $valor_total) ; ?>" size=20 maxLength=128></TD> </TR> <!-- Additional information --> <!-- spacer --> <TR> <TD class=spacer colSpan=2> </TD> </TR> <!-- Custom Fields --> <!-- File Upload (if enabled) --> <TR class="row-22"> <TD class=selectedRow>Obeservações</TD> <TD class="statusBar"><textarea name=obs cols=75 rows=10 wrap=virtual id="obs " ><? echo @$obs; ?></textarea></TD> </TR> <!-- View Status --> <!-- Relationship (in case of cloned bug creation...) -->
?> <tr class="<? echo $status_p; if ($soma_s == 0) echo " cinza";?>" border="1" <? if (CargoUsuario($conexao,$sslogado) == "Criacao" ) { ?> onclick='self.location=("detalhes.php?id=<? echo $id_chamado; ?>");' style="cursor:pointer;" <? } ?> > <td ><input name="chamado[]" type="checkbox" value="<? echo $id_chamado;?>"></td> <td ><a href="detalhes.php?id=<? echo $id_chamado; ?>"><span class="small"><? echo $id_chamado; ?></span></a></td> <td><span class="small" style="font-weight:bold;font-size:14px;"><? echo Mostra_Data( $layout ); ?></span></td> <td><a href="detalhes.php?id=<? echo $id_chamado; ?>"><span class="small"><? echo $titulo; ?></span></a></td> <td><span class="small"><? echo $status_p; ?></span></td> <td><span class="small"><? echo @NomeUsuario($conexao,$id_atendimento); ?></span></td> <td><span class="small"><? echo @NomeUsuario($conexao,$id_criacao); ?></span></td> <td><span class="small"><? echo @MostraNomeCargo($conexao,$id_cargos) ?></span></td> <td><span class="small"><? echo @NomeFornecedor_Chamado($conexao,$id_chamado,$id_fornecedor); ?></span></td> <? if (@CargoUsuario($conexao,$sslogado) != "Criacao" ) { ?> <td><span class="small"><? echo "R$ ".PontoVirgula ( $valor_prod ); ?></span></td> <td><span class="small"> <? if ( Permissao($conexao,"chamados","EDI",@$sslogado) and Permissao($conexao,"chamados","INS",@$sslogado) ) { ?> <? echo "R$ ".PontoVirgula ( $valor_total ); ?> <? } ?> </span></td> <? } ?> <td><? $sql2 = "Select * FROM c_chamado_alerta where id_chamado = $id_chamado " ; if ( $sslogado == $id_atendimento) $sql2 .=" and `id_atendimento` = $id_atendimento "; else if ( $sslogado == $id_criacao) $sql2 .=" and `id_criacao` = $id_criacao "; // echo $sql2; $tabela2 = mysql_query($sql2,$conexao) or die (mysql_error() );
?> <tr class="<? echo $status_p; ?>" border="1" <? if (CargoUsuario($conexao,$sslogado) == "Criacao" ) { ?> onclick='self.location=("detalhes.php?id=<? echo $id_chamado; ?>");' style="cursor:pointer;" <? } ?> > <td><a href="detalhes.php?id=<? echo $id_chamado; ?>"><span class="small"><? echo $id_chamado; ?></span></a></td> <td><a href="detalhes.php?id=<? echo $id_chamado; ?>"><span class="small"><? echo $titulo; ?></span></a></td> <td><span class="small"><? echo NomeCliente($conexao,$id_clientes); ?></span></td> <td><span class="small"><? echo FormatarData($data_cha); ?></span></td> <td><span class="small"><? echo Mostra_Data( $layout ); ?></span></td> <td><span class="small"><? echo NomeUsuario($conexao,$id_atendimento); ?></span></td> <td><span class="small"><? echo NomeUsuario($conexao,$id_criacao); ?></span></td> <td><span class="small"><? echo MostraNomeCargo($conexao,$id_cargos) ?></span></td> <td><span class="small"><? echo @NomeFornecedor_Chamado($conexao,$id_chamado,$id_fornecedor); ?></span></td> <? if (CargoUsuario($conexao,$sslogado) != "Criacao" ) { ?><td><span class="small"><? echo "R$ ".PontoVirgula ( $valor_prod ); ?></span></td> <td><span class="small"><? if ( Permissao($conexao,"chamados","EDI",@$sslogado) and Permissao($conexao,"chamados","INS",@$sslogado) ) { ?><? echo "R$ ".PontoVirgula ( $valor_total ); ?><? } ?></span></td><? } ?> <td><span class="small"><? echo $status_p; ?></span></td> <td> </td> <td><div align="center"><? if ( Permissao($conexao,"chamados","EDI",@$sslogado) ) { ?><a href="criar.php?id=<? echo $id_chamado; ?>"><img src="../header_data/edit-find-replace.png" alt="Editar" title="Editar" width="22" height="22" border="0" /></a><? } ?> | <? if ( Permissao($conexao,"chamados","DEL",@$sslogado) ) { ?><a href="?acao=Cancelar&id=<? echo $id_chamado; ?>&status=<?php echo $status_p; ?> " ><img src="../header_data/nok.gif" alt="Cancelar" title="Cancelar" width="24" height="24" border="0" /></a><? } ?> | <? if ( Permissao($conexao,"chamados","CON",@$sslogado) ) { ?><a href="?acao=Concluir&id=<? echo $id_chamado; ?>&status=<?php echo $status_p; ?> "><img src="../header_data/ok.gif" alt="Concluir" width="24" height="24" border="0" title="Concluir" /></a><? } ?></div></td> </tr> <? } ?> </tbody> </table> </fieldset> <BR /><br />