Login   Register  
PHP Classes
elePHPant
Icontem

File: sample2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rafat Katta  >  Dynamic form class lib  >  sample2.php  >  Download  
File: sample2.php
Role: Example script
Content type: text/plain
Description: example to use complex class elements
Class: Dynamic form class lib
Generate HTML forms
Author: By
Last change:
Date: 2006-02-14 23:49
Size: 1,476 bytes
 

Contents

Class file image Download
<?
// Just to test all objects*********
//**********************************
include("lib.element.class.inc");
//************************** OLD TEST Sample.php Beginn (
$oMyForm=new CBasicForm("MyForm","");
$oTest=& new CTextCheck('Test','Checker',$oMyForm);
//$oMyForm->showHtml(); for debug
//CCheckBoxes($name,$arrLable,$strFormName,$strFormAction)**********
$arrcheckbox=array(=> 'fr','me','de','sy','com','net','org','info','biz','travel','li','ly','ua');
$oMyCheckbox=&new CCheckBoxes("MyCeckBox[]",$arrcheckbox,$oMyForm);
$oMyCheckbox->setMainLBL("Check for All");
//$oMyCheckbox->showHtml(); for debug
//$oMyForm->showHtml(); for debug
echo "<br>";
$oTextFilde=& new CTextFildeCheck('Input','MyInput',$oMyForm);
echo 
"<br>";
//**********TETST**************
//$oRadioelem=&new CRadioElement("Radio","checkme",$oMyForm);
$arrRadio=array(=> 'first Value',
'2 Value',
'3 Value',
'4 Value');
$oMyRadios=&new CRadioGroup('Radio',$arrRadio,$oMyForm,1);
//$oMyForm->showHtml(); // for debug
//$oMyRadios->showHtml(); // for debug
echo "<br>";
$arrcheckbox=array(=> 'first Text like Name',
'2 Text like Familly Name',
'3 Text like phone');
$oMyTextGroup=& new CTextGroups("MyText[]",$arrcheckbox,$oMyForm);
$oMyForm->showHtml();
//$oMyTextGroup->showHtml(); //for debug
//***********************************************************/
// ******* OLD TEST sample.php END
//**********************************************************


?>