Source for file HTML_Table_Matrix_example.php
Documentation is available at HTML_Table_Matrix_example.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2002 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Ian Eure <ieure@php.net> |
// +----------------------------------------------------------------------+
// $Id: HTML_Table_Matrix_example.php 195730 2005-09-10 18:59:48Z ieure $
require_once 'HTML/QuickForm.php';
require_once 'Numbers/Words.php';
require_once 'HTML/Table/Matrix.php';
for($i = 5; $i <= 20; $i +=5 ) {
for($i = 0; $i <= 20; $i ++ ) {
'RLTB' => 'Right to left, top to bottom',
'RLBT' => 'Right to left, bottom to top',
'LRTB' => 'Left to right, top to bottom',
'LRBT' => 'Left to right, bottom to top',
'TBLR' => 'Top to bottom, left to right',
'TBRL' => 'Top to bottom, right to left',
'BTLR' => 'Bottom to top, left to right',
'BTRL' => 'Bottom to top, right to left',
'InC' => 'Inwards, clockwise',
'InCC' => 'Inwards, counter-clockwise',
'OutC' => 'Outwards, clockwise',
'OutCC' => 'Outwards, counter-clockwise'
$form = new HTML_QuickForm ('formMatrixExample');
$form->setDefaults ($_POST);
$form->setDefaults ($def);
$form->addElement ('header', '', "HTML_Table_Matrix Example");
$form->addElement ('select', 'number', "Number of items", $nSel);
$form->addElement ('select', 'cols', "Columns", $sel);
$form->addElement ('select', 'rows', "Rows", $sel);
$form->addElement ('select', 'startcol', "X Offset", $sel);
$form->addElement ('select', 'startrow', "Y Offset", $sel);
$form->addElement ('select', 'fillmode', "Fill", $fm);
$form->addElement ('submit', "Submit");
for($i = 1; $i <= $_POST['number']; $i++ ) {
$data[] = $nw->toWords ($i);
$m->setTableSize ($_POST['rows'], $_POST['cols']);
$m->setFillStart ($_POST['startrow'], $_POST['startcol']);
Documentation generated on Mon, 11 Mar 2019 15:32:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|