Ejemplo n.º 1
0
									$cols_coluna = mysql_num_fields($tabela_coluna );
									
									
									for ($c=0 ; $c < $cols_coluna ; $c++) {
										
										$nome_coluna = substr(mysql_field_name($tabela_coluna , $c) ,0,20);
										
										if ( $nome_coluna != $id_table ){
									
									?>
                                      <label>
                                        <input type="checkbox" name="colunas[]" value="<?php 
echo $nome_coluna;
?>
" id="colunas[]" <? if ( strpos( strtoupper( $campos ) , strtoupper( $nome_coluna ) ) != 0 or $campos == " * " ) echo " checked=\"checked\" ";  ?> />
                                        <? echo TirarUnderline( ucwords( utf8_encode(  $nome_coluna  ) ) ); ?></label>
                                      <br />
                                     <?
										}// if 
                                     
									}// for
									 ?>
                                     
                                    </p>
                                    <p align="center"><input type="button" value="Aplicar" id="aplicar_coluna" /></p>
                                  </form>
                				</div>
                
                
                </td>
                <td width="32%"><div align="center"><span style="vertical-align:top;font: 14px/1.2 Calibri,Arial,sans-serif;">Busca:</span>
Ejemplo n.º 2
0
 : </strong></label><div style="clear:both;"></div>
		            <textarea name="<?php 
echo $campo;
?>
" cols="100" rows="10" id="<?php 
echo $campo;
?>
"><?php 
echo @mysql_result($tabela, 0, $campo);
?>
</textarea></div>
		          <div  style="clear:both;">  </div>
		
				<? } else {?>
				<div style="float:left; margin:10px;"><label for="name"><strong><span class="blue">*</span> <?php 
echo utf8_encode(ucwords(trim(TirarUnderline($campo))));
?>
 : </strong></label>
					<input name="<?php 
echo $campo;
?>
" type="text" id="<?php 
echo mysql_field_name($tabela, $j);
?>
" value="<?php 
echo @mysql_result($tabela, 0, $campo);
?>
" size="<? echo mysql_field_len($tabela,$j);?>" maxlength="<? echo mysql_field_len($tabela,$j);?>" <? if ( $campo == "senha" ) echo "type=\"password\""; else "type=\"text\""; ?>  <? if ( substr($campo,0,5) == "valor" or substr($campo,0,5) == "saldo" ) echo "onKeyUp=\"maskIt(this,event,'#########.##',true)\""; ?> /></div>
		
        		<? 
				if ($campo == "CNPJ" ) 
Ejemplo n.º 3
0
          <tfoot>
            <tr>
              ';

		$html .= '<th class="{sorter: false}">  </th>'; // Escondendo o ID
		for ($j=1 ; $j < $cols ; $j++)
		{
		
		$campo = substr(mysql_field_name($tabela,$j) ,0,20);
		
		if ( $campo != "senha"){
			
				if (substr($campo,0,2) == "id")
						$html .= '<th>'.  utf8_encode( TirarUnderline( ucfirst( trim( substr($campo,3,20)  ) ) ) ) .'</th>';
					else
						$html .= '<th>'.  utf8_encode( TirarUnderline( ucwords(  $campo  ) ) ) .'</th>';
		
			}
		
		}
		
		if ( $_REQUEST['t'] == "produto" or $_REQUEST['t'] == "fornecedor" ) 
			$html .= '<th>Ação</th>';
		
		
		//--------------------------------
		
         $html .='   </tr>
          </tfoot>
          <tbody>
        ';