Merhabalar arkadaşlar... Benim bir problemim var. Yardımcı olursanız çok sevinirim. Sorunum aynen şöyle...
Php ile kodlanmış bir admin panel var. Ben bir sayfa oluşturuyorum. Tinymce gelişmiş editör yardımı ile... Buraya kadar herşey normal. Sonrasında sayfa düzenlemeye gelince içerik bomboş gözüküyor. Yani bastığımda bir önceki veri maalesef gelmiyor. Tüm alanlar boş... Tinymce editör'ün yardımı ile eklediğim kod şöyle...
<textarea name="sayfaicerik" cols="30" rows="34"></textarea>
sayfaedit.php adlı bir sayfa yardımıyla düzenlemeye gidiyor ancak içerik maalesef boş geliyor. sayfaedit.php'ye ait bilgiler aşağıdaki gibidir.
Aynı şekilde aşağıdaki kodda görebileceğiniz gibi Sayfanın Başlığı (Title), Kayan Yazı, Description, Keywords gibi alanlar var. Aynı şekilde maalesef bunlarda gelmiyor!
Yardımlarınızı bekliyorum...
<?php
ob_start(); session_start();
include("ayar.php");
$admingiris = $_SESSION["admingiris"];
if($admingiris==""){
header("location:../index.php");
}else{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="tr" xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Yönetim Paneli</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9">
....... Devamı var...
<form name="form1" method="post" action="sayfaedityap.php?id=<?php
$id = $_GET["id"];
echo $id;
?>">
<table width="668" border="0" cellspacing="2" cellpadding="1">
<tr>
<td width="85"><strong>Sayfanın Başlığı (Title)</strong></td>
<td width="10">:</td>
<td width="300"><label>
<div align="left">
<input style="width:250px;" name="sayfabaslik" type="text" id="textfield" size="50">
</div>
</label></td>
</tr>
<tr>
<td><strong>Kayan Yazı</strong></td>
<td>:</td>
<td><div align="left">
<input style="width:250px;" name="kayanyazi" type="text" id="textfield5" size="50">
</div></td>
</tr>
<tr>
<td><strong>Description</strong></td>
<td>:</td>
<td><div align="left">
<input style="width:250px;" name="aciklama" type="text" id="textfield4" size="50">
</div></td>
</tr>
<tr>
<td><strong>Keywords</strong></td>
<td>:</td>
<td><div align="left">
<input style="width:250px;" name="anahtar" type="text" id="textfield3" size="50">
</div></td></tr></table>
</tr>
<label><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>TinyMCE HTML Metin Editörü Kullanımı</title>
<!-- TinyMCE -->
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
language : 'tr',
plugins : "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,wordcount,advlist,autosave",
// Theme options
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
content_css : "css/content.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "lists/template_list.js",
external_link_list_url : "lists/link_list.js",
external_image_list_url : "lists/image_list.js",
media_external_list_url : "lists/media_list.js",
// Style formats
style_formats : [
{title : 'Bold text', inline : 'b'},
{title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
{title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
{title : 'Example 1', inline : 'span', classes : 'example1'},
{title : 'Example 2', inline : 'span', classes : 'example2'},
{title : 'Table styles'},
{title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
],
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
</script>
<!-- /TinyMCE -->
<p>
<h1>Sayfanın İçeriğini Buradan Düzenleyebilirsiniz...</h> </p>
<p>
<textarea name="sayfaicerik" cols="30" rows="34"></textarea>
</p>
</center></center></label>
<table><div align="center">
</tr>
<tr>
<td><strong>Sol Menüye Ekle</strong></td>
<td>: </td>
<td><label>
<select name="solmenu" id="menu">
<option value="">Menüye ekleme</option>
<?php
$secsolmenu = mysql_query("select * from solmenu");
while($yazsolmenu = mysql_fetch_array($secsolmenu)){
$solmenuad = $yazsolmenu["menuad"];
$solmenuid = $yazsolmenu["id"];
echo '<option value="'.$solmenuid.'">'.$solmenuad.'</option>';
}
?>
</select>
</label></td>
</tr>
<tr>
<td><strong>Üst Menüye Ekle</strong></td>
<td>:</td>
<td><select name="ustmenu" id="menu">
<option value="">Menüye ekleme</option>
<?php
$secustmenu = mysql_query("select * from ustmenu");
while($yazustmenu = mysql_fetch_array($secustmenu)){
$ustmenuad = $yazustmenu["menuad"];
$ustmenuid = $yazustmenu["id"];
echo '<option value="'.$ustmenuid.'">'.$ustmenuad.'</option>';
}
?>
</select></td>
</tr>
<tr>
<td><strong>Ana Sayfaya Ekle</strong></td>
<td>:</td>
<td><div align="left"><input name="anasayfaekle" type="checkbox" value="anasayfa"></div></td>
</tr>
<tr>
<tr>
<td> </td>
<td> </td>
<td><label>
<div align="right"> <br /><input type="submit" name="button" id="button" value=" Sayfayı Düzenle "></div>
</label></td>
</tr>
</table></table>
</form>