Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/03/2008, 23:24
Avatar de jaronu
jaronu
 
Fecha de Ingreso: febrero-2008
Mensajes: 2.183
Antigüedad: 17 años, 1 mes
Puntos: 52
Re: Web modular: modulo search

esta es mi pagina principal


Código PHP:


<?
 
require_once("bookmark_fns.php");
session_start();


?>
<style type="text/css">
<!--
.Estilo1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
}
body {
    margin-left: 4px;
    margin-top: 0px;
    margin-right: 4px;
    margin-bottom: 0px;
}

.Estilo5 {font-size: 10px;}
.Estilo6 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
}
.
.Estilo18 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; }
.Estilo17 {font-family: Verdana, Arial, Helvetica, sans-serif}
.Estilo18 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; }
-->
</style>




<table width="861" height="342" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td  height="336" align="left" valign="top"><table  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="900">
        <?
        display_header
("")
        
?>        </td>
      </tr>
    </table>
    <br/>
    <table width="173"  border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td height="74" align="left" valign="top">
        
        <?
 
 display_lat_izq
("");

?>        </td>
      </tr>
    </table>
      <table width="2" border="0" align="left" cellpadding="0" cellspacing="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
      <table width="550" height="412" border="0" align="left" cellpadding="0" cellspacing="0">
        <tr>
          <td width="263" height="191" align="center" >&nbsp;</td>
          <td width="24" ><img src="http://www.forosdelweb.com/images/spacer.gif" width="1" height="1" /></td>
          <td width="263" align="center" >&nbsp;</td>
        </tr>
        <tr>
          <td height="19" ><div align="center" class="Estilo6">Nuevo Video Curso de Quiromasaje</div></td>
          <td >&nbsp;</td>
          <td ><div align="center"><span class="Estilo6">Nuevo Video Curso de Quiromasaje</span></div></td>
        </tr>
        <tr>
          <td height="83" align="center" valign="middle"><table width="80%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><span class="Estilo18 ">Lanzamiento del nuevo m&eacute;todo de ense&ntilde;anza ideado por la conocida quiromasajista Maria Jesus Armada, mas de 10 horas de video en formato MPG para reproducir en PC y DVD <a href="a">+ M&aacute;s info</a></span></td>
            </tr>
          </table></td>
          <td>&nbsp;</td>
          <td align="center"><table width="80%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td ><span class="Estilo18">Lanzamiento del nuevo m&eacute;todo de ense&ntilde;anza ideado por la conocida quiromasajista Maria Jesus Armada, mas de 10 horas de video en formato MPG para reproducir en PC y DVD.<a href="a">+ M&aacute;s info</a></span></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="119">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
      
     
      <table width="2" border="0" align="left" cellpadding="0" cellspacing="0">
        <tr>
          <td height="298">&nbsp;</td>
        </tr>
      </table>
      
      <table width="173" height="189" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="189" align="left" valign="top">
<?
 
 display_lat_drch2
("");

?></td>
        </tr>
    </table></td>
  </tr>
</table>




<?

 display_footer
("");
?>
y aqui te dejo la funcion del header para no poner todas y alargar el post
en la siguiente pagina es donde tengo todos los laterales y el pie.

Código PHP:
<?
function display_header()
{
  
// print an HTML header

<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
    <
tr>
      <
td  width="33%" height="100" rowspan="4" valign="bottom"><img src="http://www.forosdelweb.com/images/logo_compuesto.jpg" width="300" height="100" border="0" usemap="#Map"></td>
    
      <
td colspan="4" rowspan="3" align="right" valign="bottom">
      
        <
table width="387" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td width="39">&nbsp;</td>
          <
td width="86">&nbsp;</td>
          <
td width="46">&nbsp;</td>
          <
td width="89">&nbsp;</td>
          <
td width="127"></td>
        </
tr>
        <
tr>
          <
td>&nbsp;</td>
          <
td>&nbsp;</td>
          <
td>&nbsp;</td>
          <
td>&nbsp;</td>
          <
td>&nbsp;</td>
        </
tr>
        <
form action="confiser.php" method="post">
        <
tr>
          <
td colspan="5" align="right" class="Estilo4">User
            
<label>
            <
input name="usuario" type="text" id="usuario" size="7" maxlength="10" class="estilotextarea4" style="font-family:verdana;  font-size:10pt">
            </
label>Pass
            
<label>
            <
input name="password" type="password" id="password" size="7" maxlength="10" class="estilotextarea4" style="font-family:verdana;  font-size:10pt">
            </
label>            <label>
            <
input type="submit" name="button" id="button" value=" Ir " class="boton">
            &
nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
            </
label></td>
          </
tr></form>
      </
table>      </td>
      <
td  width="15%" height="25" align="right" class="Estilo10"><?php echo date("d-m-Y");?></td>
  </tr>
    <tr>
      <td height="25" align="right"><span class="Estilo10"><span class="Estilo9"><a href="registro.php" class="Estilo10">Registrarse</a></span></span></td>
  </tr>
    <tr>
      <td height="26" align="right"><span class="Estilo10"><a href="recuperar.php">&iquest;Olvid&oacute; su contrase&ntilde;a?</a></span></td>
  </tr>
    <tr>
      <td height="40" colspan="5" align="right"  bgcolor="#61e877"><img src="http://www.forosdelweb.com/images/fondo-cabecera.jpg" width="497" height="40"></td>
  </tr>
  </table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" background="http://www.forosdelweb.com/images/fondo bajo cabecera.png">
    <tr>
      <td height="10" align="center" valign="top"><img src="/httpdocs/CEVIT/images/spacer.gif" width="1" height="10"></td>
    </tr>
  </table>
 

<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" class="Estilo5">
  <tr>
    <td width="119" >&nbsp;</td>
    <td width="119" >&nbsp;</td>
    <td width="119" >&nbsp;</td>
    <td width="119" >&nbsp;</td>
    <td width="119" >&nbsp;</td>
    <td width="52" >&nbsp;</td>
    <td width="27" >&nbsp;</td>
    <td width="47" >&nbsp;</td>
    <td width="158" class=Estilo3>
    <?php

if (isset($_SESSION['k_username'])) 
{
echo 
'Hola, ';
echo 
'<b>'.$_SESSION['k_username']. '</b>.';
?></td>
    <td width="21" class=Estilo9><?

    
echo '<a href="salir.php">salir</a>';
    }
?></td>
  </tr>
</table>
<?
seguro que me deje algo a la hora de copiar, de sintaxis me refiero