Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/03/2009, 14:29
majony
(Desactivado)
 
Fecha de Ingreso: diciembre-2008
Mensajes: 421
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: Paginas Modulares

Bueno Gator mira este es mi index principal la index Madre
Código php:
Ver original
  1. <?php
  2. include('config.php');
  3.  
  4.     session_name($cfg_session);
  5.     session_start();
  6.     if (empty($_SESSION['usuario_id'])) {
  7.         $_SESSION['usuario_id'] = 0;
  8.         $_SESSION['usuario_nick'] = 'invitado';
  9.         $_SESSION['usuario_nivel'] = 0;
  10.            
  11.     }
  12.     include('includes/lib_mysql.php');
  13.     $MOD['mysql'] = new MySQL($cfg_bdname, $cfg_host, $cfg_user, $cfg_passwd);
  14. ?>
  15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  16. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  17. <head>
  18. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  19. <meta name="description" content="Your description goes here" />
  20. <meta name="keywords" content="your,keywords,goes,here"/>
  21. <link rel="stylesheet" type="text/css" href="css/1024px.css" title="1024px style" media="screen,projection"/>
  22. <link rel="stylesheet" type="text/css" href="css/Style.css" title="1024px style" media="screen,projection"/>
  23. <link rel="stylesheet" type="text/css" href="css/calendario/style.css" />
  24. <title>ASOCIACION DEPORTIVA ** ACHF **  </title>
  25. <script type="text/javascript" src="css/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
  26. <script type="text/javascript">
  27. tinyMCE.init({
  28. // General options
  29. mode : "textareas",
  30. theme : "advanced",
  31. plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
  32. // Fila Uno desde guardar
  33. theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
  34. // Fila dos desde Cortar
  35. theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,|,preview,|,forecolor,backcolor",
  36. theme_advanced_toolbar_location : "top",
  37. //theme_advanced_toolbar_align : "left",
  38. theme_advanced_statusbar_location : "bottom",
  39. theme_advanced_resizing : true,
  40. // Drop lists for link/image/media/template dialogs
  41. //template_external_list_url : "js/template_list.js",
  42. //external_link_list_url : "js/link_list.js",
  43. //external_image_list_url : "js/image_list.js",
  44. //media_external_list_url : "js/media_list.js",
  45. // Muy importante para mostrar el editor
  46. template_replace_values : {
  47. username : "Some User",
  48. staffid : "991234"
  49. }
  50. });
  51. </script>
  52. </head>
  53. <body>
  54. <?php include('cabecera.php');?>
  55. <?php
  56.             $modulo = $_GET['mod'];
  57.             if (!empty($modulo)) {
  58.                 $ruta = 'modulos/' . $modulo . '/'.$modulo.'.ctrl.php';
  59.                 if (file_exists($ruta)) {
  60.                     include($ruta);
  61.                 } else {
  62.                     echo "ERROR 404: No existe el archivo";
  63.                 }
  64.             } else {
  65.                 include('cuerpo.php');
  66.             }
  67. ?>
  68. <?php include('pie.php');?>
  69. </body>
  70. </html>

Simplemente llamo a ojas de estilo y utilizo un script de el tinymce Nada mas