Hvordan får jeg fckeditoren frem på min asp side
Jeg har lavet en side i asp. Der er lavet et login-modul, og det virker også fint nok. Men når brugeren har logget ind, er det meningen at han skal kunne redigere i siden.Databasen er oprettet med
pages : id - name - content
Jeg har lagt fckeditoren ind i ftp
Jeg har på siden lavet et område, hvor der kan redigeres i.
Men hvordan får jeg så lavet, at når man som logget-ind går ind på siden, kommer editoren frem istedet for?
Koden jeg har på siden er:
<%@LANGUAGE=\"VBSCRIPT\"%>
<!--#include file=\"ckeditor/ckeditor.asp\" -->
<!--#include file=\"md5/md5.asp\"-->
<!--#include file=\"Connections.asp\" -->
<%
function checkLogin() {
if(isset($_SESSION[\'myusername\'])) {
return true;
} else {
return false;
}
}
if (isset($_GET[\'admin\'])) {
$admin = $_GET[\'admin\'];
}
if (!isset($_GET[\'section\'])) {
$section= 1;
}
else {
$page = $section;
$page = 1;
}
if ($page) {
$sql = \"SELECT * FROM pages WHERE id = $page LIMIT 1\";
$result = mysql_query($sql);
while($rows=mysql_fetch_array($result)) {
if (isset($rows[\'include\'])) {
$include = $rows[\'include\'];
} elseif (isset($rows[\'content\'])) {
$content = $rows[\'content\'];
}
}
}
if (isset($_GET[\'id\'])) {
$id = $_GET[\'id\'];
}
end if%>
<!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\" />
<!-- InstanceBeginEditable name=\"doctitle\" -->
<title></title>
<!-- InstanceEndEditable -->
</style>
<script type=\"text/javascript\" src=\".../script/stmenu.js\"></script>
<link href=\".../style.css\" rel=\"stylesheet\" type=\"text/css\" />
<!-- InstanceBeginEditable name=\"head\" -->
<!-- InstanceEndEditable -->
<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" />
<script type=\"text/javascript\" src=\"scripts/stmenu.js\"></script>
</head>
<body class=\"body\">
<table width=\"905\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td width=\"600\" height=\"310\" valign=\"top\" background=\"images/layout/header/header-bg.png\" style=\"background-repeat:no-repeat\" class=\"indhold\">
<td width=\"300\" valign=\"top\" background=\"images/layout/header/header_right.png\"><table width=\"400\" height=\"318\" border=\"0\" align=\"right\" valign=\"bottom\" cellpadding=\"0\" cellspacing=\"0\" background=\"images/layout/header/image.png\">
<tr>
<td valign=\"top\"><table width=\"200\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td align=\"right\"><a href=\"default.asp?setlang=Da\" class=\"header\"><strong><img src=\"images/layout/dk-flag.jpg\" alt=\"dk\" width=\"15\" height=\"10\" border=\"0\" /> DANSK</strong></a></td>
<td class=\"header\"><a href=\"default.asp?setlang=De\" class=\"header\"><strong> <img src=\"images/layout/de-flag.jpg\" alt=\"de\" width=\"17\" height=\"11\" border=\"0\" /> DEUTSCH</strong></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width=\"905\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td height=\"100\"><table width=\"905\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
</tr>
</table>
</td>
</tr>
</table>
<table width=\"905\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td><!-- InstanceBeginEditable name=\"indhold\" -->
<%if request.cookies(\"language\")(\"language\") = \"Da\" then%>
<table width=\"905\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td width=\"600\" valign=\"top\"><table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" valign=\"top\">
<tr>
<td height=\"18\" background=\"images/layout/body/sheet_top_600px.png\"></td>
</tr>
<tr>
<td height=\"400\" valign=\"top\" bgcolor=\"#272727\" class=\"indhold\"><span class=\"h4\">INDHOLD PÅ SIDEN</span>
- DANSK
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
<tr>
<td height=\"18\" background=\"images/layout/body/sheet_bottom_600px.png\"></td>
</tr>
</table></td>
<td valign=\"top\"> </td>
</tr>
</table><%else%> <table width=\"905\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td width=\"600\" valign=\"top\"><table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" valign=\"top\">
<tr>
<td height=\"18\" background=\"images/layout/body/sheet_top_600px.png\"></td>
</tr>
<tr>
<td height=\"400\" valign=\"top\" bgcolor=\"#272727\" class=\"indhold\"><span class=\"h4\">INDHOLD på siden TYSK</span>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
<tr>
<td height=\"18\" background=\"images/layout/body/sheet_bottom_600px.png\"></td>
</tr>
</table></td>
<td valign=\"top\"> </td>
</tr>
</table> <%end if%>
<!-- InstanceEndEditable --></td>
</tr>
</table>
<table width=\"905\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td height=\"43\" align=\"center\" valign=\"bottom\" class=\"footertekst\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"footertekst\">
<tr>
<td height=\"50\" valign=\"bottom\" bgcolor=\"#272727\" class=\"footertekst\"><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\" class=\"footertekst\">
<tr>
<td width=\"19%\" align=\"left\" valign=\"middle\" class=\"footer\"></td>
<td width=\"81%\" height=\"30\" align=\"right\" valign=\"middle\" class=\"footer\"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>