Ver Mensaje Individual
  #11 (permalink)  
Antiguo 31/07/2009, 18:21
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 16 años, 7 meses
Puntos: 139
Respuesta: Ayuda con Libreria.

Index.php

Código PHP:
Ver original
  1. <html>
  2.  <head>
  3.  <title>Ejemplo de PHP</title>
  4.  </head>
  5.  <body>
  6.  <?php include("funciones.php") ?>
  7.  <?php CabeceraPagina(); ?>
  8.   <?php botonera(); ?>
  9.  <?php PiePagina(); ?>
  10.  </body>
  11.  </html>

Funciones.php

Código PHP:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.  
  5. <title></title>
  6.  
  7. </head>
  8. <body>
  9. <--! Botonera principal -->
  10. <?php
  11.  
  12. function Botonera()
  13. {
  14. ?>
  15. <div id="menu">
  16.  
  17. <ul>
  18. <li><a href="index.php">Inicio</a></li>
  19. <li><a href="descargas.php">Descargas</a></li>
  20. <li><a href="tutoriales.php">Tutoriales</a></li>
  21. <li><a href="/foro">Foro</a></li>
  22. </ul>
  23.  
  24. </div>
  25. <?
  26. }
  27. ?>
  28. <--!Cabezera -->
  29. <?
  30. function CabeceraPagina()
  31. {
  32. ?>
  33. <div id="header">
  34. </div>
  35.  
  36. <div id="cuerpo_header"></div>
  37.  
  38. <!-- Footer -->
  39. <?
  40. }
  41.  
  42. function PiePagina()
  43. {
  44. ?>
  45. <div id="footer">
  46. <p><span class="foot_links"><a href="index.php">Inicio</a> | <a href="descargas.php">Descargas</a> | <a href="tutoriales.php">Tutoriales</a> | <a href="/foro">Foro</a> | <a href="contacto.php">Contacto</a>
  47. </span></p>
  48. <p><span class="foot_msg">ArgenTec es una comunidad que decea unir a todos los interesados en la tecnologia</span></p>
  49. <p><span class="copyright">© 2009 - 2010 ArgenTec.com.ar Todos los derechos Reservados</span></p>
  50. </div>
  51. <?
  52. }
  53. ?>
  54.  
  55. </body>
  56. </html>