 |
|
ตัว CKEditor ตอนที่ยังไม่ได้อัพขึ้นโฮสต์ก็ใช้งานได้ค่ะ แต่พออัพขึ้นโฮสต์จริงแล้วมันไม่โชว์อ่ะค่ะ
ลองเซ็ต permission และ path ก็ดูแล้วแต่ก็ยังใช้งานไม่ได้อ่ะค่ะ ช่วยดูหน่อยนะคะ
Code (PHP)
<? @session_start();
$_SESSION["C_STATUS"]="ADMIN";
include('../connect.php');
$colm_id=$_GET[id];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
</head>
<body>
<?
$sql="select * from tb_columnist where colm_id='$colm_id'";
$query=mysql_query($sql);
$result=mysql_fetch_array($query);
$colm_topic=$result[colm_topic];
$colm_topic_detail=$result[colm_topic_detail];
$colm_bg_small=$result[colm_bg_small];
$colm_detail=$result[colm_detail];
?>
<a href="admin_columnist_show.php">Back</a><br /><br />
<form name="columnist_form" method="post" action="admin_columnist_do.php" enctype="multipart/form-data">
หัวข้อ : <input type="text" name="colm_topic" /><br />
รายละเอียดหัวข้อ : <input type="text" name="colm_topic_detail" /><br />
อัพโหลดรูปพื้นหลัง :
<input type="file" name="fileUpload" /><br />
รายละเอียดทั้งหมด : <textarea cols="80" id="message" name="message" rows="10">ทดสอบ</textarea><br /><br />
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'message',{
height : 400,
width : 750,
language : 'en',
toolbar :
[
['Source','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize', 'ShowBlocks','-','About']
],
filebrowserBrowseUrl : '../ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : '../ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : '../ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : '../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : '../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : '../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
} ); //]]>
</script>
เขียนโดย : <input type="text" name="colm_author" /><br />
<input type="submit" name="btnSubmit" />
</form>
</body>
</html>
Tag : PHP
|
|
 |
 |
 |
 |
Date :
2010-07-28 11:28:49 |
By :
atomy_mink |
View :
2660 |
Reply :
3 |
|
 |
 |
 |
 |
|
|
|
 |