PHP Classes

File: sample2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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: 9 years ago
Size: 1,476 bytes


Class file image Download
// Just to test all objects*********
//************************** OLD TEST Sample.php Beginn (
$oMyForm=new CBasicForm("MyForm","");
$oTest=& new CTextCheck('Test','Checker',$oMyForm);
//$oMyForm->showHtml(); for debug
$arrcheckbox=array(0 => '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);
//$oRadioelem=&new CRadioElement("Radio","checkme",$oMyForm);
$arrRadio=array(0 => '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(0 => 'first Text like Name',
'2 Text like Familly Name',
'3 Text like phone');
$oMyTextGroup=& new CTextGroups("MyText[]",$arrcheckbox,$oMyForm);
//$oMyTextGroup->showHtml(); //for debug
// ******* OLD TEST sample.php END