Ir para conteúdo
Fórum Script Brasil
  • 0

Montando face.


Mário Miranda

Pergunta

Boa tarde.

Trabalho com PHP a quase 1 ano e nunca montei face nenhuma....apenas o bruto mesmo. Estou querendo fazer faces de site, que ainda não sei fazer. Só que as minhas faces ficam distorcidas quando chamo algum link.

Vou colocar uma tela com a face em formato certo e outra em formato distorcido. (por favor não reparem na simplicidade...estou começando ainda :D )

Face sem distorcer:

certo.gif

Face distorcida:

errado.gif

Como faço para não distorcer?

Obrigado e até mais

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

  • 0

Olá babaloricha.

Segue o código da primeria tela:

<html>
<head>
<title>face</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (face.gif) -->
<table id="Table_01" width="721" height="501" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td colspan="17">
            <img src="image/face_01.gif" width="720" height="77" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="77" alt=""></td>
    </tr>
    <tr>
        <td colspan="7" rowspan="2">
            <img src="image/face_02.gif" width="116" height="23" alt=""></td>
        <td>
            <img src="image/face_03.gif" width="71" height="14" alt=""></td>
        <td>
            <img src="image/face_04.gif" width="10" height="14" alt=""></td>
        <td>
            <img src="image/face_05.gif" width="105" height="14" alt=""></td>
        <td>
            <img src="image/face_06.gif" width="20" height="14" alt=""></td>
        <td>
            <img src="image/face_07.gif" width="128" height="14" alt=""></td>
        <td>
            <img src="image/face_08.gif" width="33" height="14" alt=""></td>
        <td>
            <img src="image/face_09.gif" width="104" height="14" alt=""></td>
        <td>
            <img src="image/face_10.gif" width="26" height="14" alt=""></td>
        <td>
            <img src="image/face_11.gif" width="65" height="14" alt=""></td>
        <td>
            <img src="image/face_12.gif" width="42" height="14" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="14" alt=""></td>
    </tr>
    <tr>
        <td colspan="30" rowspan="10">
            <?
            switch($_REQUEST['id']){
            case 1:
            include('/usr/local/apache2/htdocs/busca_cliente1.php');
            break;
            
            case 2:
            include('/usr/local/apache2/htdocs/result_busca1.php');
            break;
            }
            ?>
            
            </td>
        <td>
            <img src="image/spacer.gif" width="1" height="9" alt=""></td>
    </tr>
    <tr>
        <td rowspan="4">
            <img src="image/face_14.gif" width="12" height="72" alt=""></td>
        
    <td colspan="5"> <a href="/face.php?id=1"><img src="image/face_15.gif" alt="" width="85" height="22" border="0"></a></td>
        <td rowspan="4">
            <img src="image/face_16.gif" width="19" height="72" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="22" alt=""></td>
    </tr>
    <tr>
        <td colspan="5">
            <img src="image/face_17.gif" width="85" height="9" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="9" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="image/face_18.gif" width="72" height="22" alt=""></td>
        <td rowspan="2">
            <img src="image/face_19.gif" width="13" height="41" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="22" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="image/face_20.gif" width="72" height="19" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="19" alt=""></td>
    </tr>
    <tr>
        <td colspan="7">
            <img src="image/face_21.gif" width="116" height="18" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="18" alt=""></td>
    </tr>
    <tr>
        <td colspan="7">
            <img src="image/face_22.gif" width="116" height="20" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    <tr>
        <td colspan="3">
            <img src="image/face_23.gif" width="66" height="19" alt=""></td>
        <td colspan="4" rowspan="2">
            <img src="image/face_24.gif" width="50" height="39" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="19" alt=""></td>
    </tr>
    <tr>
        <td colspan="3">
            <img src="image/face_25.gif" width="66" height="20" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    <tr>
        <td colspan="6">
            <img src="image/face_26.gif" width="97" height="19" alt=""></td>
        <td rowspan="2">
            <img src="image/face_27.gif" width="19" height="40" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="19" alt=""></td>
    </tr>
    <tr>
        <td colspan="6">
            <img src="image/face_28.gif" width="97" height="21" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="21" alt=""></td>
    </tr>
    <tr>
        <td colspan="7">
            <img src="image/face_29.gif" width="116" height="21" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="21" alt=""></td>
    </tr>
    <tr>
        <td colspan="7">
            <img src="image/face_30.gif" width="116" height="19" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="19" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="image/face_31.gif" width="76" height="14" alt=""></td>
        <td colspan="3" rowspan="5">
            <img src="image/face_32.gif" width="40" height="171" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="14" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="image/face_33.gif" width="76" height="21" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="21" alt=""></td>
    </tr>
    <tr>
        <td colspan="2">
            <img src="image/face_34.gif" width="38" height="19" alt=""></td>
        <td colspan="2" rowspan="3">
            <img src="image/face_35.gif" width="38" height="136" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="19" alt=""></td>
    </tr>
    <tr>
        <td colspan="2" rowspan="2">
            <img src="image/face_36.gif" width="38" height="117" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="84" alt=""></td>
    </tr>
    <tr>
        <td colspan="10">
            <img src="image/face_37.gif" width="604" height="33" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="1" height="33" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="image/spacer.gif" width="12" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="26" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="28" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="10" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="8" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="13" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="19" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="71" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="10" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="105" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="20" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="128" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="33" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="104" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="26" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="65" height="1" alt=""></td>
        <td>
            <img src="image/spacer.gif" width="42" height="1" alt=""></td>
        <td></td>
    </tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
Na primeira case o código é esse:
<?
include_once('valida_usu.php');
$usu_loja=$_COOKIE['loja_usu'];
$loja=$_COOKIE['loja_padrao'];
?>
<html>
<head>
<title>-->>Help System Tecnologia-Guias de entrega<<--</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">

 .botao{
        font-size:10px;
        font-family:Verdana,Helvetica;
        font-weight:bold;
        color:white;
        background: #638cb5 url(pro_six_1b.gif);
        border:0px;
        width:80px;
        height:19px;
       }
  .text{
        font-size:12px;
        font-family:Verdana,Helvetica;
        font-weight:bold;
        color:black;
        background: #638cb5 url(pro_six_0b.gif);
        border:10px;
        width:280px;
        height:16px;
       }       
</style>
</head>
<script>
function verify(frm)
{
if(frm.nome.value.length == 0)
{
alert('Digite um nome');
return false;

}

}
function UP_Letra(evento, valida, maiuscula) {
 if (evento.target) {
   codigo = evento.target;
 }
 else {
   codigo =  event.srcElement;
 }
 element = codigo.value;
 if (maiuscula == 'true') {
   element = element.toUpperCase();
 }
 var new_element = "";
 for (vIdx=0; vIdx < element.length; vIdx++) {
   if (valida.indexOf(element.substr(vIdx, 1)) != -1
       || (maiuscula == 'false' &&
           valida.toLowerCase().indexOf(element.substr(vIdx, 1)) != -1) ) {
     new_element = new_element + element.substr(vIdx, 1);
   }
 }
 codigo.value = new_element;
}
</script>

<body>
<div align="left">
<li><font color="RED" size="3"> Emissão de guias</font></li>
</div>
<table border=1 align="center" class="table">
<form action="result_busca.php" method="post" name="logar" ONSUBMIT="return verify(logar)">
<tr><td align=center><b>Nome</td></tr>
<tr></td></tr> <tr><td><input type="text" name="nome" size=50 onkeyup="UP_Letra(event, ' ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'true')" class="text"></td></tr>

</table>
<table align=center class="table">
<td><input type="submit" value="Buscar" name="buscar" Onclick="return verify(logar)" class="botao"></td>
</table>
</form>
</body>
</html>
E na segunda case, que é quando vem o resultado:
<?
include_once('/usr/local/apache2/htdocs/valida_usu.php');

$usu_loja=$_COOKIE['loja_cookie'];
$loja=$_COOKIE['loja_padrao'];
$nome=strtoupper($_REQUEST['nome']);
echo" <script language=\"JavaScript\">
function openHelp(codigo){
var codigo = codigo
{
window.open(\"altera_cli.php?id=\"+codigo,\"helpwindow\",\"toolbar=no,menubar=no,scrollbars=yes,width=600,height=300\");

return false;
}

}


</script>";
define('QTD_P_PAGINA',8);
$con=pg_connect("host=192.0.1.13 port=5432 dbname=entregas user=postgres password=123456");

//paginação    
    $query_tot_reg = pg_query($con,"select * from tabela_cliente where nome like '$nome%'");
    $result_tot_reg=pg_num_rows($query_tot_reg);
     
             
    if($_REQUEST['offset'] <= 1){

        $offset=1;
        $limiter=0;

    }elseif($_REQUEST['offset'] > 1){

    $paginas= ceil($result_tot_reg / QTD_P_PAGINA);
    
        if($_REQUEST['offset'] > $paginas)
        $offset=$paginas;
        else
        $offset=$_REQUEST['offset'];
    
        $limiter=($offset-1)*QTD_P_PAGINA;
}
//fim da paginacao
//echo"o valor de offset é $offset";

     $query=pg_query($con,"select count (*) as conta from tabela_cliente where nome like '$nome%'");
     $result=pg_fetch_assoc($query);
        if($result['conta']>0){
        $query1=pg_query($con,"select nome, logradouro, numero, bairro, tipo,id_cliente,telefone, cidade from tabela_cliente where nome like '$nome%' order by nome desc limit ".QTD_P_PAGINA." offset $limiter");
    
        $linhas=pg_num_rows($query1);
        
        
        //echo"select nome, logradouro, numero, bairro, tipo,id_cliente,telefone, cidade from tabela_cliente where nome like '$nome%' order by nome desc limit ".QTD_P_PAGINA." offset $limiter";
        echo "<br>
        
        <div align=\"left\">
<li><font color=\"RED\" size=\"3\"><a href=\"busca_cliente.php\">Emissão de guias</a> - Busca de clientes</font></li>
</div>";
        echo "<table border=\"0\" align=center cellpadding=\"0\" cellspacing=\"0\" width=100%>";
        echo "<tr><td><font color=red size=\"3\">Codigo do Cliente</font></td>";

        echo "<td><font color=red size=\"3\">Nome</font></td>";
        echo "<td><font color=red size=\"3\">Tipo Endereço</font></td>";
        echo "<td><font color=red size=\"3\"> Endereço</font></td>";
        echo "<td><font color=red size=\"3\">Telefone</font></td></font></tr>";
        while($result1=@pg_fetch_assoc($query1)){

    
        echo"<tr>";
        echo"<font size=\"2\"><td><a href=info_cliente.php?manda=".$result1['id_cliente']." ><font size=\"1\">".$result1['id_cliente']."</a></font></td> 
            <td><font size=\"2\"><a onclick=\"return openHelp(".$result1['id_cliente'].")\">".$result1['nome']."</font></td>
            <td><font size=\"2\">".$result1['tipo']."</font></td>
            <td><font size=\"2\">".$result1['logradouro']."</font></td>
            <td><font size=\"2\">".$result1['telefone']."</font></td>";
            
            }
    
                   
        echo "</tr></table>";
        echo"<table align=\"center\">
           <tr>";
        
        if($offset > 1){
                  
                    echo"<td> <td><font><a href=\"result_busca.php?offset=".($offset - 1)."&nome=".$_REQUEST['nome']."\">Anterior</font></a>&nbsp;&nbsp</td></td>";
}
        
        
         if($offset -1>= 0 and $linhas>=7){
              
                    
                    echo"<td><font> <a href=\"result_busca.php?&offset=".($offset + 1)."&nome=".$_REQUEST['nome']."\">Próximo</a></font></td>";
                }
           
              
         echo"</tr></table>";
       
                        
        }else{
        echo"<table border=2 align=\"center\">";
        echo" <tr><td align=\"center\"><font color=\"#0000FF\">Registro não encontrado. <br><a href=\"java script:history.back()\">Consultar novamente</a></font></td></tr></div>"; 
         }
    @pg_free_result($query1);


pg_free_result($query_tot_reg);
pg_close($con);
?>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152k
    • Posts
      651,8k
×
×
  • Criar Novo...