| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Old Sites/rte/ |
Upload File : |
<HTML>
<HEAD>
<TITLE>Edit Text</TITLE>
<META content="HTML 4.0" name=vs_targetSchema>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1253">
<meta http-equiv="Content-Language" content="el">
</HEAD>
<BODY leftMargin=0 topMargin=0 scroll="no" style="border:0">
<?
if (isset($text)) {
echo "text=".$text;
print "<P>Database Updated</P>";
print "<P>HTML:-<hr>" . $text . "</P>";
} else {
// Get your HTML from the datbase here
$strHTML = '<H1>Heading 1</H1>'
. '<H2>Heading 2</H2>'
. '<H3>Heading 3</H3>'
. '<P>Normal</P>'
. '<P>Welcome to the richtext text editor, the HTML text editor which works inside a web page.</P>'
;
// Create an instance of the editor
?>
<object id="richedit" style="BACKGROUND-COLOR: buttonface" data="richedit.html"
width="100%" height="100%" type="text/x-scriptlet" VIEWASTEXT>
</object>
// Dummy form used to communicate text to/from the server
<form id="theForm" method="post">
<textarea name="text" style="display:none" rows="1" cols="20"><?=$strHTML?></textarea>
<input type="submit" value="Submit">
</form>
// Glue to populate the editor with HTML from database
<SCRIPT language="JavaScript" event="onload" for="window">
richedit.options = "history=no;source=no";
richedit.docHtml = theForm.text.innerText;
</SCRIPT>
// Glue to submit the updated HTML to the server
<SCRIPT language="JavaScript" event="onscriptletevent(name, eventData)" for="richedit">
if (name == "post") {
richedit.getValue("subject");
theForm.text.value = eventData;
theForm.submit();
}
</SCRIPT>
<?
}
?>
XAXAXAXAX XAXAX XAXAXAX XAXAXAX
</BODY>
</HTML>