Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/12/2010, 18:22
SonrisaCs
 
Fecha de Ingreso: diciembre-2010
Mensajes: 180
Antigüedad: 13 años, 4 meses
Puntos: 5
Respuesta: Ayuda, acomodar header y body

Index.php:
Código PHP:
Ver original
  1. <?php
  2.  
  3.  include("db-info.php");
  4.  $link = mysql_connect($server, $user, $pass);
  5.  if(!mysql_select_db($database)) die(mysql_error());
  6.  
  7.  include("session.inc.php");
  8.  include("loadsettings.inc.php");
  9. ?>
  10.  
  11.  
  12.  
  13. <html>
  14.  
  15. <head>
  16.  
  17. <meta name="description" content="<? echo $description; ?>" />
  18. <meta name="keywords" content="<? echo $keywords; ?>" />
  19.  
  20.  
  21. <title><? echo $webtitle; ?> - Hosting de Imagenes</title>
  22. <link rel="stylesheet" href="style.css" type="text/css" />
  23.  
  24. <script language="JavaScript">
  25. var x = 1;
  26.  
  27. function addMore() {
  28.     x = x + 1;
  29.     if (x > 5)
  30.        alert("Lo sentimos! Usted no puede subir mas de 5 fotos al mismo tiempo.");
  31.     else
  32.        document.getElementById("upload" + x).style.display = "block";
  33. }
  34.  </script>
  35.  
  36. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  37. <style type="text/css">
  38. <!--
  39. .Estilo2 {color: #709592}
  40. .Estilo3 {color: #FFFFFF}
  41. .Estilo4 {color: #00FF00}
  42. .Estilo5 {color: #CCCCCC; }
  43. .Estilo6 {color: #CCCCB6}
  44. -->
  45. </style>
  46. </head>
  47.  
  48.  
  49. <body link=#336699 vlink=#336699 alink=#336699>
  50. <?php include("header.php"); ?>
  51.  
  52. <center>
  53. <div class="content-container">
  54.    
  55.  
  56. <form method=\"GET\" action='images.php'>
  57.  <table width=900 bgcolor='#528A89' style=\"BORDER: #b1ddf6 2px solid;\">
  58.  <tr height=40>
  59.    <td align=left width=400>
  60.    &nbsp; &nbsp;<span class="Estilo3">Buscar
  61.    <LABEL id='message'>:</LABEL>
  62.    </span>
  63.    <LABEL id='message'> </LABEL>
  64.    &nbsp;<input type='text' name='query' size=30 maxlength='100'>
  65.    &nbsp; &nbsp; <input type='submit' value='Buscar'> </td>
  66.  
  67.  <td>
  68.     <LABEL id='title'><span class="Estilo3">Buscar Por :</span> </LABEL>
  69.     &nbsp; &nbsp;
  70.     <input type='radio' name='opt' value='tags' CHECKED> &nbsp; <span class="Estilo3">Tags
  71.     <input type='radio' name='opt' value='gallery'>
  72. &nbsp; Galeria </span></td>
  73.  
  74.  <td>
  75.     <div align="center"><a href="search.php" class="Estilo5">Buscador Avanzado</a> </div></td>
  76.  
  77.  
  78. </tr></table>
  79. </form>
  80.  
  81.  
  82.  <div style="display: none" id="loading" align=center>
  83.     <img src='images/loading.gif' border=0><br><br>
  84.  </div>
  85.  
  86.    <div class="content-box">
  87.      <table> <tr>
  88.      
  89.      <td width=350 valign=top>
  90.       <h1 class="Estilo3">Caracter&iacute;sticas:</h1>
  91.       <ul>
  92.         <li class="Estilo3">Subir varias imagenes de una sola vez
  93.         <li class="Estilo3">Crear galerias publicas y privadas
  94.         <li class="Estilo3">A&ntilde;adir comentarios en las imagenes
  95.         <li class="Estilo3">A&ntilde;adir cualquier imagen a tus favoritos
  96.         <li class="Estilo3">Postea tus fotos en webs, blogs y foros
  97.         <li class="Estilo3">Registra una cuenta para administrar tus archivos
  98.         <li class="Estilo3">Agrega tags a cada una de tus fotos  
  99.         <li class="Estilo3">Sube imagenes privadas con password
  100.         <li class="Estilo3">Comparte tus imagenes con amigos y familiares
  101.       </ul>     </td>
  102.          
  103.  
  104.      <td>
  105.  
  106.  
  107. <div class="left">
  108.          
  109. <h1 class="Estilo3">Subir Imagen </h1>
  110.  
  111. <form action="process.php" method="POST" enctype="multipart/form-data" name="myForm" class="Estilo3">
  112. <table style="border-collapse: collapse" width=300>
  113.  
  114. <tr>
  115.  <td>
  116.    <table id="upload1">
  117.      <tr>
  118.      <td><LABEL class="Estilo3" id="title">Imagen:</LABEL></td> <td> <input type="file" name="image1" size=40></td>
  119.    </tr>
  120.    <tr>
  121.      <td><LABEL class="Estilo3" id="title">Tags:</LABEL></td> <td><input type="text" name="tags1" size=40 maxlength="200"></td>
  122.    </tr>
  123.    </table>
  124.  
  125.    <table  style="BORDER: #999 1px dotted; MARGIN-TOP: 5px; MARGIN-BOTTOM: 5px; display: none" id="upload2">
  126.    <tr>
  127.      <td><LABEL id="title">Imagen:</LABEL></td> <td><input type="file" name="image2" size=40></td>
  128.    </tr>
  129.    <tr>
  130.      <td><LABEL id="title">Tags:</LABEL></td> <td><input type="text" name="tags2" size=40 maxlength="200"></td>
  131.    </tr>
  132.   </table>
  133.  
  134.    <table id="upload3" style="display: none">
  135.    <tr>
  136.      <td><LABEL id="title">Imagen:</LABEL></td> <td><input type="file" name="image3" size=40></td>
  137.    </tr>
  138.    <tr>
  139.      <td><LABEL id="title">Tags:</LABEL></td> <td><input type="text" name="tags3" size=40 maxlength="200"></td>
  140.    </tr>
  141.   </table>
  142.  
  143.    <table style="BORDER: #999 1px dotted; MARGIN-TOP: 5px; MARGIN-BOTTOM: 5px; display: none" id="upload4">
  144.    <tr>
  145.      <td><LABEL id="title">Imagen:</LABEL></td> <td height="18"><input type="file" name="image4" size=40></td>
  146.    </tr>
  147.    <tr>
  148.      <td><LABEL id="title">Tags:</LABEL></td> <td height="22"><input type="text" name="tags4" size=40 maxlength="200"></td>
  149.    </tr>
  150.   </table>
  151.    
  152.    <table id="upload5" style="display: none">
  153.    <tr>
  154.      <td><LABEL id="title">Imagen:</LABEL></td> <td><input type="file" name="image5" size=40></td>
  155.    </tr>
  156.    <tr>
  157.      <td><LABEL id="title">Tags:</LABEL></td> <td><input type="text" name="tags5" size=40 maxlength="200"></td>
  158.    </tr>
  159.   </table>
  160.  
  161.  <!-- ############################################################################################ -->
  162.  
  163.  <?php
  164.  //****************************************************************
  165.    if ($session == true)
  166.    {  
  167.         echo "<br><table> <tr height=30><td><h2>Opciones: </h2></td></tr>";
  168.         $result_set = mysql_query("SELECT id, name FROM `galleries` WHERE userid = '$userid'");
  169.         $number = mysql_num_rows($result_set);
  170.  
  171.         if ($number)
  172.         {
  173.              echo "<tr><td>
  174.                   <input type='radio' name='opt' value='gallery'>
  175.                   <font size=2>Añadir a Categoria:</font></td>";
  176.              echo "<td><select name='galleryid'>";
  177.  
  178.              while ($row = mysql_fetch_array($result_set))
  179.                 echo "<option value={$row['id']}>{$row['name']}</option>";
  180.  
  181.              echo "</select></td></tr>";
  182.        }
  183.  
  184.        echo "<tr><td><input type='radio' name='opt' value='single' CHECKED> <font size=2> Unica imagen </font></td>
  185.             <td> <font size=2>(Imagen Privada <input type='checkbox' name='private' value='ON'>)</font></td></tr>";
  186.  
  187.        echo "</table>";
  188.    }
  189.  //*****************************************************************
  190. ?>
  191.  
  192.  
  193.   <table><tr>
  194.    <td>
  195.     <br>
  196.     <a href="#" class="Estilo6" onClick="addMore()">Subir mas</a>  </td>
  197.   </tr>
  198.  
  199.   <tr><td>
  200.    <LABEL class="Estilo3" id="text">Separar tags por comas. (,) </LABEL>
  201.   </td></tr>
  202.  
  203.   <tr><td>
  204.    
  205.   </td></tr>
  206.  
  207.   <tr><td>
  208.     <br><a href=#><img src="images/upload.png" border=0
  209.                   onclick="myForm.submit(); getElementById('loading').style.display='block';"></a>
  210.   </td></tr>
  211.   </table></td>
  212. </tr>
  213. </table>
  214. </form>
  215. <span class="Estilo3">
  216. <!-- </div> -->
  217.      </span></td>
  218.      </tr>
  219.      </table>
  220.    </div>
  221.  
  222.    
  223.    <br>
  224.    <h2 align="center" class="Estilo2">Imagenes al azar:</h2>
  225.    <? include("random.inc.php"); ?>  
  226.  
  227.    
  228.  
  229.    <div class="about">
  230.       <? echo $webtitle; ?>™es un hosting de imagenes donde podra alojar sus imagenes facilmente y compartirlas en Facebook, My Space, Blogger, y Muchos otros lugares.
  231.       <br>
  232.       <br><br><img src="images/share.png">
  233.    </div>
  234.  
  235.  
  236.    <?php  include("footer.php"); ?>
  237.  
  238.  
  239. </div>
  240. </center>
  241.  
  242.  
  243. </body>
  244.  
  245.  
  246. </html>

Ojala alguien pueda ayudarme :S, Desde ya muchas gracias. (: