echo $form->GetInputValue("password"); ?> </tt></td> </tr> </table></center> <?php } else { $form->StartLayoutCapture(); ?> <script type="text/javascript"> <!-- loaded_MD5=false // --> </script> <script type="text/javascript" src="md5.js"> </script> <?php $title = "Form encoded password test"; $body_template = "form_password_body.html.php"; include "templates/form_frame.html.php"; $form->EndLayoutCapture(); $form->AddInputPart("user_login"); $form->DisplayOutput(); } ?> <hr /> </body> </html>
<body onload="<?php echo $onload; ?> " bgcolor="#cccccc"> <h1><center>Test for Manuel Lemos' PHP form class secure submit button</center></h1> <hr /> <?php if ($doit) { ?> <center><h2>The form was submitted securely!</h2></center> <?php } else { $form->StartLayoutCapture(); if (strlen($error = $form->GetInputProperty('secure_submit', 'Expired', $expired)) == 0 && $expired) { ?> <center><h2>The form submission expired. Please submit the form again.</h2></center><?php } ?> <center><?php $form->AddInputPart('secure_submit'); ?> </center> <?php $form->EndLayoutCapture(); $form->DisplayOutput(); } ?> <hr /> </body> </html>
// --></style> </head> <body onload="<?php echo $onload; ?> " bgcolor="#cccccc"> <center><h1>Test for Manuel Lemos' PHP form class using a custom validation plug-in input</h1></center> <hr /> <?php if ($doit) { ?> <center><h2>OK</h2></center> <?php } else { $form->StartLayoutCapture(); $title = 'Form custom validation plug-in test'; $body_template = 'form_custom_validation.html.php'; include 'templates/form_frame.html.php'; $form->EndLayoutCapture(); /* * The custom validation input must also be added to the form output, * even though it is not a visible input in the form */ $form->AddInputPart('validation'); $form->DisplayOutput(); } ?> <hr /> </body> </html>
/* * Set the debug level to 1 or more show alert messages * when animation setup errors are detected */ $debug = 1; /* * Define an animation sequence to be started * when the hide button is clicked */ $context = array('Name' => 'Hide form', 'Debug' => $debug, 'Effects' => array(array('Type' => 'CancelAnimation', 'Animation' => 'Show form'), array('Type' => 'ReplaceContent', 'Element' => 'feedback', 'Content' => 'Hiding...'), array('Type' => 'FadeOut', 'Element' => 'wholeform', 'Duration' => 0.5), array('Type' => 'ReplaceContent', 'Element' => 'feedback', 'Content' => 'Waiting 3 seconds...'), array('Type' => 'Wait', 'Duration' => 1.0), array('Type' => 'ReplaceContent', 'Element' => 'feedback', 'Content' => 'Waiting 2 seconds...'), array('Type' => 'Wait', 'Duration' => 1.0), array('Type' => 'ReplaceContent', 'Element' => 'feedback', 'Content' => 'Waiting 1 second...'), array('Type' => 'Wait', 'Duration' => 1.0), array('Type' => 'ReplaceContent', 'Element' => 'feedback', 'Content' => 'The form is hidden!'))); /* * Connect the hide button with the animation input to start * the animation defined aboved when the ONCLICK event is triggered */ $form->Connect('hide', 'animation', 'ONCLICK', 'AddAnimation', $context); /* * Define an animation sequence to be started * when the show button is clicked */ $context = array('Name' => 'Show form', 'Debug' => $debug, 'Effects' => array(array('Type' => 'CancelAnimation', 'Animation' => 'Hide form'), array('Type' => 'ReplaceContent', 'Element' => 'feedback', 'Content' => 'Showing...'), array('Type' => 'FadeIn', 'Element' => 'wholeform', 'Duration' => 0.5), array('Type' => 'ReplaceContent', 'Element' => 'feedback', 'Content' => 'The form is visible!'))); $form->Connect('show', 'animation', 'ONCLICK', 'AddAnimation', $context); $form->AddInputPart('animation'); $form->StartLayoutCapture(); require 'templates/form_animation.html.php'; $form->EndLayoutCapture(); $form->DisplayOutput(); ?> <hr /> </body> </html>
<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" } </style> </head> <body bgcolor="#cccccc" onload="<?php echo HtmlSpecialChars($onload); ?> " onunload="<?php echo HtmlSpecialChars($onunload); ?> "> <center><h1>Test for Manuel Lemos' PHP form class using the HTML editor plug-in</h1></center> <?php $form->StartLayoutCapture(); ?> <div align="center"> <?php $form->AddInputPart('editor'); $form->AddInputPart('send'); $form->EndLayoutCapture(); $form->DisplayOutput(); ?> </body> </html>
$doit = 0; $error_message = HtmlEntities($error_message); } } else { $error_message = ""; $doit = 0; } if ($doit) { $form->ReadOnly = 1; } $form->StartLayoutCapture(); $title = "Form class AJAX submit test"; $body_template = "form_ajax_body.html.php"; require "templates/form_frame.html.php"; $form->EndLayoutCapture(); $form->AddInputPart('sender'); if (!$doit) { if (strlen($error_message)) { Reset($verify); $focus = Key($verify); } else { $focus = 'description'; } $form->ConnectFormToInput($focus, 'ONLOAD', 'Focus', array()); } $onload = HtmlSpecialChars($form->PageLoad()); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test for Manuel Lemos' PHP form class
<td><tt><?php echo $userfile_values['type']; ?> </tt></td> </tr> <tr> <th align="right">File size:</th> <td><tt><?php echo $userfile_values['size']; ?> </tt></td> </tr> </table></center> <?php } else { $form->AddInputPart('upload_progress'); $form->AddInputPart('MAX_FILE_SIZE'); $form->StartLayoutCapture(); $title = 'Form upload progress test - 1MB maximum size'; $body_template = 'form_upload_body.html.php'; include 'templates/form_frame.html.php'; $form->EndLayoutCapture(); $form->DisplayOutput(); } ?> <hr /> </body> </html>
<title>Test for Manuel Lemos' PHP form class using the scaffolding plug-in input</title> <style type="text/css"><!-- <?php echo $styles; ?> // --></style> <?php echo $head; ?> </head> <body onload="<?php echo $onload; ?> " onunload="<?php echo $onunload; ?> " bgcolor="#cccccc"> <center><h1>Test for Manuel Lemos' PHP form class using the scaffolding plug-in input</h1></center> <hr /> <?php $form->AddInputPart('posts'); $form->DisplayOutput(); ?> <hr /> </body> </html>