buenas,
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:
Ver original<form action="index.php?modules=contenido&opcion=nuevo" method="post" class="jNice"> <p><label>Titulo:
</label><input type="text" class="text-long" name="titulo" value="<? if ($_SESSION['titulo']){echo $_SESSION['titulo'];}?>"/>
</p> <?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() ;
?>
<?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() ;
?>
<input type="submit" value="Crear" />
y me sale que no encuentra la clase, asi que lo cambie por esto:
Código HTML:
Ver original$oFCKeditor->BasePath = '../../../template/js/fckeditor/';
pero tampoco funciona. Tampoco logra reconocer mis otros archivos js
en mi header tengo
Código HTML:
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-->
<script type="text/javascript" src="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/js/jquery.js">
</script> <script type="text/javascript" src="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/js/jNice.js">
</script>
<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" />
<script type="text/javascript" src="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/js/jquery-1.3.2.min.js">
</script> <script type="text/javascript" src="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/js/jquery-ui-1.7.2.custom.min.js">
</script> <script type="text/javascript" src="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/js/ui.dialog.js" >
</script> <script type="text/javascript" src="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/js/ui.core.js" >
</script> <script type="text/javascript" src="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/js/i18n/ui.datepicker-es.js">
</script> <script type="text/javascript" src="<? echo "http://".$_SERVER['HTTP_HOST'].'/'.$ubicacion[1]."/".$ubicacion[2];?>/js/funciones.js" >
</script>
que me devuelve algo asi:
Código HTML:
Ver 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-->
<script type="text/javascript" src="http://localhost/ampa/admin/js/jquery.js"></script>
<script type="text/javascript" src="http://localhost/ampa/admin/js/jNice.js"></script>
<link type="text/css" href="http://localhost/ampa/admin/template/css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" /> <script type="text/javascript" src="http://localhost/ampa/admin/js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="http://localhost/ampa/admin/js/jquery-ui-1.7.2.custom.min.js"></script> <script type="text/javascript" src="http://localhost/ampa/admin/js/ui.dialog.js" ></script> <script type="text/javascript" src="http://localhost/ampa/admin/js/ui.core.js" ></script> <script type="text/javascript" src="http://localhost/ampa/admin/js/i18n/ui.datepicker-es.js"></script> <script type="text/javascript" src="http://localhost/ampa/admin/js/funciones.js" ></script>
pero lo unico que logro hacer funcionar es el estilo transdmin.css
donde le estoy errando?
desde ya muchas gracias