PHP Classes

File: test_html_editor.php

Recommend this page to a friend!
  Classes of Manuel Lemos  >  PHP Forms Generation and Validation  >  test_html_editor.php  >  Download  
File: test_html_editor.php
Role: Example script
Content type: text/plain
Description: Example to demonstrate how to use the HTML editor custom input
Class: PHP Forms Generation and Validation
HTML forms generation and validation.
Author: By
Last change: Used HTML5 tags.
Date: 2 years ago
Size: 2,387 bytes


Class file image Download
 * @(#) $Id: test_html_editor.php,v 1.7 2014/09/28 00:39:10 mlemos Exp $


$form=new form_class;
$form->ONSUBMIT='return false';
'VALUE'=>'<h1>Hello world!</h1>{menu sad}<p>{smiley}</p>',
'STYLE'=>'width: 800px; height: 600px; background-color: #ffffff; border-style: solid; border-width: 1px; margin: 0px; border-color: #707070 #e0e0e0 #e0e0e0 #707070',
         * Set the path of html_editor.js if it is not in the current directory
'Preview'=>'<a href="">File</a> <a href="">Edit</a> <a href="">Tools</a> <a href="">Help</a>',
'Preview'=>'<a href="">File</a><br /><a href="">Edit</a><br /><a href="">Tools</a><br /><a href="">Help</a>',
'Title'=>'Vertical menu'
$head = $form->PageHead();
$onload = $form->PageLoad();
$onunload = $form->PageUnload();
<title>Test for Manuel Lemos' PHP form class
using the HTML editor plug-in</title>
<?php echo $head; ?>
<style type="text/css">
.editor { background-color: blue; font-family: "courier" }
<body bgcolor="#cccccc" onload="<?php echo HtmlSpecialChars($onload); ?>" onunload="<?php echo HtmlSpecialChars($onunload); ?>">
<h1>Test for Manuel Lemos' PHP form class
using the HTML editor plug-in</h1>