Login   Register  
PHP Classes
elePHPant
Icontem

File: example_1_tbl.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Charles Siegrist  >  FF Form  >  example_1_tbl.php  >  Download  
File: example_1_tbl.php
Role: Example script
Content type: text/plain
Description: example file 1
Class: FF Form
Generate Web forms filling with data from MySQL
Author: By
Last change:
Date: 2004-06-05 15:47
Size: 2,051 bytes
 

Contents

Class file image Download
<!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>
<title>Example 1 :: with table</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css"/>

</head>

<body bgcolor="#D5E2E6">
<!--
// FF_Form
// http://www.hotreca.de/
// email: info@hotreca.de
// If you use this script, please put a link back to http://www.hotreca.de/
*/-->
<div style="width:99%; background-color:#86afbc; text-align:center; color:#000080; "><h1>FF_FORM - Example with table</h1></div>
<br />
<br />
<?php
include ("inc/ff_form.class.php");
include (
"inc/connect_mysql.php");
$ff = new ff_form;
echo 
$ff->ff_form ('heading_radio''label_lr''label_select''heading_select''data_select''20' 'label_rl''heading_check''label_lc''label_cl''tbl'"hsn"'lrn','rln''lsn''lcn''cln');
//Set the form header
echo $ff->ff_head('form''$SELF_PHP''get');
//set the table header
echo $ff->ff_tbl_head('form_1');
// heading for select groups
echo $ff->ff_select_heading ('Drinks');
//a select field
echo $ff->fft_select('Drinks','ff_form' ,'drinks''drinks');
//a radio button with field label left
echo $ff->fft_lr('Fruit','ff_form','fruit''mango''fruit');
//a radio button  field with label right
echo $ff->fft_rl('Vegetables','ff_form','vegetables''onion''vegetables');
//a checkbox field with label left
echo $ff->fft_lc('Names','ff_form','names''Gina''Juan''''''','names');
//a checkbox field with label right
echo $ff->fft_cl('Countries','ff_form','countries''Germany''England''Spain''''''countries');
echo 
"<tr><td>";
// submit button
echo $ff->ff_btn_s ('Send');
// Back button
echo $ff->ff_btn_b ('Back');
// reset button
echo $ff->ff_btn_r ('Reset')."</td></tr>";
//closing tag table
echo $ff->ff_tbl_foot();
//closing tag form
echo $ff->ff_foot();

?>
</body>
</html>