Example #1
0
 <fieldset><legend>Arquivos</legend>
 
 
  <? 
  
  $sql =" SELECT * from c_upload where id_chamado =  $id;  ";
  @$tabela = mysql_query ( $sql , $conexao);
  @$rows = mysql_num_rows ( $tabela );
  
  
  for ($x=0;$x<$rows;$x++)
	{
	 $id_upload = mysql_result($tabela,$x,'id_upload');
	 $data    = mysql_result($tabela,$x,'data');
	 $nome    = mysql_result($tabela,$x,'nome');
	 
	 $exp = explode (".",$nome);

	   
  ?>
	<A href="arquivos/<? echo $id?>_<? echo $nome; ?>" target="_new" ><IMG height=16 src="img/<? echo $exp[count($exp)-1]; ?>.gif" width=16 border=0></A>
	&nbsp;<A href="arquivos/<? echo $id?>_<? echo $nome; ?>" target="_new" ><? echo $nome; ?></A> 
      (<? echo tamanho_arquivo("arquivos/".$id."_".$nome); ?>) <SPAN class=italic><? echo FormatarDataTime($data);  ?></SPAN> [<A class=small 
      href="?acao=4&id=<? echo $id; ?>&nome=<? echo $nome; ?>">Deletar</A>]  <br>
	  
	<? } ?>   
 
 
 </fieldset>

  @$rows = mysql_num_rows ( $tabela );
  
  $trClass[0]="row-2";
  $trClass[1]="row-1";
  $id_usuario = 1;
  for ($x=0;$x<$rows;$x++)
	{
	
	 $data    = mysql_result($tabela,$x,'data');
	 $acao    = mysql_result($tabela,$x,'acao');
	 $id_usuarioh = mysql_result($tabela,$x,'id_usuario');
  
  
  ?>
  <TR class="<? echo $trClass[$x%2] ?>">
    <TD class=small-caption><? echo FormatarDataTime($data); ?> </TD>
    <TD class=small-caption><? echo @NomeUsuario($conexao,$id_usuarioh); ?> </TD>
    <TD class=small-caption><? echo $acao; ?>  </TD>
    </TR>
  <?
  
  }
  
  ?>
 </TBODY>
 </TABLE>
</DIV>
<SCRIPT 
type=text/JavaScript>
<!--
	SetDiv( "history", g_div_history );
Example #3
0
			   
			  for($x=1;$x<=$vezes;$x++){ 
			  
				  if ( VerificaParcela ($conexao,$id,$x) ) 
				  	{
				  
					   echo $x;?>X 
						R$ <? 
						$Valo = CampoParcela ($conexao,$id,$x,"valor");
						$Valo = explode(",",$Valo);
						$valor_unica = $Valo[0].$Valo[1];
						
						//$valor_unica = number_format(CampoParcela ($conexao,$id,$x,"valor"),2,',','.') ;
						
						
						echo $valor_unica ; ?> [<span class="small" ><? echo FormatarDataTime(CampoParcela ($conexao,$id,$x,"data")); ?></span>] <Br>
					   <? 
					   $total = $total - $valor_unica;
					   $parcelas++;
					   } 
					   
					   else 
					   
					   { 
					   
					   //$total = $valor_total-($total/($vezes-($x-1) ) ) ;
					 
					   $total2 = $total/($vezes-$parcelas);
			   
			   
			   ?>
Example #4
0
					
				$id_fluxo			= mysql_result($tabela,$x,'id_fluxo');					
				$id_chamado			= mysql_result($tabela,$x,'id_chamado');
				$data   			= mysql_result($tabela,$x,'data');
				$id_parcela			= mysql_result($tabela,$x,'id_parcela');
				$valor				= mysql_result($tabela,$x,'valor');	
				$descricao			= mysql_result($tabela,$x,'descricao');	
				$id_bancos			= mysql_result($tabela,$x,'id_bancos');
				
				$sub_total_saida = $sub_total_saida + $valor;
							  
			  ?>
                <tr class="banco_<? echo $id_bancos; ?>">
                  <td width="7%"><span class="small"><? echo $x+1;?></span></td>
                  <td width="27%"><? if ($id_chamado == 0 ) echo $descricao; else   echo @CampoChamado ($conexao,$id_chamado,"titulo"); ?>&nbsp;</td>
                  <td width="18%"><span class="small"><? echo FormatarDataTime($data); ?></span></td>
                  <td width="30%"><div align="right">R$ <? echo $valor; ?>&nbsp;</div></td>
                  <td width="18%"><div align="center"><a href="criar_caixa.php?id=<? echo $id_fluxo;  ?>"><img src="../header_data/edit-find-replace.png" title="Editar" alt="Editar" width="22" height="22" border="0"></a> | <a  onclick='confirma("deletar","<? echo $id_fluxo;?>");return false;' href="#" ><img src="../header_data/process-stop.png" alt="Excluir" title="Excluir" width="22" height="22" border="0"></a></div></td>
                  </tr>
                <?
				}
				?>
                </table></TD>
              </TR>
            <TR>
              <TD valign="top" ><br>
                <table width="100%" border="0" cellspacing="1" cellpadding="1">
                  
                  <tr class="<? echo $class[$tr];?>">
                    <td width="50%">Subtotal:</td>
                    <td width="26%">&nbsp;</td>