1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| <form action="index.php?page=edit_pages" method="post" name="edit">
<fieldset>
<legend>
Edition de la page <strong>'.$donnees_pages['nom'].'</strong>
</legend><br/>
Titre rubrique<br/>
<input type="text" name="nom_rub" value="'.$nom_rub.'"/>
<input type="hidden" name="nom_rub_hide" value="'.$nom_rub.'"/>
<br/><br/>
Description<br/>
<textarea name="description" rows="5" cols="30"/>'.$description.'</textarea><br/><br/>
<input type="hidden" name="desc_original" value="'.$description.'"/><br/>
<input type="hidden" name="id" value="'.$id.'"/><br/>
<input type="hidden" name="table" value="'.$table.'"/><br/>
Contenu<br/>
';
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
$oFCKeditor = new FCKeditor('pages') ;
$oFCKeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Width = '100%' ;
$oFCKeditor->Height = '600' ;
$oFCKeditor->Value = $donnees_pages['contenu'] ;
$oFCKeditor->Create() ;
$ee = $oFCKeditor.UpdateLinkedField();
echo '<br/>
<input type="submit" object.onunload="if (!confirm (\'voulez vous quitter sans enregistrer??\')) return false;"name="envoyer" value="Enregistrer la page '.$donnees_pages['nom'].'"/>
<SCRIPT language=javascript>
var texte = document.getElementById(\'pages_tt\').value.replace(/\"/g,"\\\"");
alert (texte);
</SCRIPT>
<input type="button" name="visualiser" value="Visualiser la page '.$donnees_pages['nom'].'" onclick="ouverture ()"/>
</form>
<br/><br/></fieldset> |
Partager