tengo la siguiente estructura de directorios
sitio
---- admin
--------- controladores
------------------index
------------------------templates
------------------------------index.html
------------------------------nuevo.html
------------------error404
------------------------templates
------------------------------index.html
---------template
-------------css
-------------js
---------------fckeditor
------------------- fckeditor.php
---------------jquery.js
---------------funciones.js
-------------images
-------------header.html
-------------footer.html
bien el tema esta en que estoy intentado usar el fckeditor en el archivo nuevo.html asi:
Código HTML:
y me sale que no encuentra la clase, asi que lo cambie por esto:Ver original
<form action="index.php?modules=contenido&opcion=nuevo" method="post" class="jNice"> <fieldset> <?php $oFCKeditor = new FCKeditor('intro') ; $oFCKeditor->BasePath = 'js/fckeditor/' ; //Ancho del TextArea $oFCKeditor->Width = '100%' ; //Alto del TextArea $oFCKeditor->Height = '400' ; if($_SESSION['intro']==''){ $oFCKeditor->Value = '' ; } else{ $oFCKeditor->Value = $_SESSION['intro']; } $oFCKeditor->Create() ; ?> </p> <?php $oFCKeditor = new FCKeditor('texto') ; $oFCKeditor->BasePath = 'js/fckeditor/' ; //Ancho del TextArea $oFCKeditor->Width = '100%' ; //Alto del TextArea $oFCKeditor->Height = '400' ; if($_SESSION['texto']==''){ $oFCKeditor->Value = '' ; } else{ $oFCKeditor->Value = $_SESSION['texto']; } $oFCKeditor->Create() ; ?> </p> <input type="submit" value="Crear" /> </fieldset> </form>
Código HTML:
pero tampoco funciona. Tampoco logra reconocer mis otros archivos jsVer original
$oFCKeditor->BasePath = '../../../template/js/fckeditor/';
en mi header tengo
Código HTML:
que me devuelve algo asi:Ver original
<?php $ubicacion=explode('/',$_SERVER['PHP_SELF']);?> <link href="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/template/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/css/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/css/ie7.css" /><![endif]--> <!-- JavaScripts--> <link type="text/css" href="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/template/css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
Código HTML:
pero lo unico que logro hacer funcionar es el estilo transdmin.cssVer original
<link href="http://localhost/ampa/admin/template/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="http://localhost/ampa/admin/css/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="http://localhost/ampa/admin/css/ie7.css" /><![endif]--> <!-- JavaScripts--> <link type="text/css" href="http://localhost/ampa/admin/template/css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
donde le estoy errando?
desde ya muchas gracias