X7ROOT File Manager
Current Path:
/opt/alt/php53/usr/share/doc/pear/ConsoleTools/docs
opt
/
alt
/
php53
/
usr
/
share
/
doc
/
pear
/
ConsoleTools
/
docs
/
ðŸ“
..
📄
CREDITS
(229 B)
📄
LICENSE
(1.53 KB)
📄
example_input.php
(2.64 KB)
📄
example_menu_dialog_full.php
(624 B)
📄
example_output.php
(2.06 KB)
📄
example_progressbar.php
(3.36 KB)
📄
example_progressmonitor.php
(1.07 KB)
📄
example_question_dialog_collection_full.php
(613 B)
📄
example_question_dialog_factory_yesno.php
(461 B)
📄
example_question_dialog_type_full.php
(630 B)
📄
example_statusbar.php
(987 B)
📄
example_table.php
(2.09 KB)
📄
example_table_2.php
(1.71 KB)
ðŸ“
img
📄
tutorial.txt
(23.92 KB)
📄
tutorial_autoload.php
(495 B)
📄
tutorial_example_01_output_basic.php
(184 B)
📄
tutorial_example_02_output_advanced.php
(657 B)
📄
tutorial_example_03_output_options.php
(755 B)
📄
tutorial_example_04_input_basic.php
(399 B)
📄
tutorial_example_05_input_advanced.php
(1.11 KB)
📄
tutorial_example_06_progressbar_basic.php
(271 B)
📄
tutorial_example_07_progressbar_advanced.php
(596 B)
📄
tutorial_example_08_statusbar.php
(656 B)
📄
tutorial_example_09_table_basic.php
(1.06 KB)
📄
tutorial_example_10_table_advanced.php
(1 KB)
📄
tutorial_example_11_progressmonitor.php
(299 B)
📄
tutorial_example_12_input_arguments.php
(1.41 KB)
📄
tutorial_example_13_dialog_question.php
(552 B)
📄
tutorial_example_14_dialog_yesnoquestion.php
(334 B)
📄
tutorial_example_15_dialog_menu.php
(739 B)
📄
tutorial_example_output_targets.php
(308 B)
Editing: example_table_2.php
<?php /** * Example for the usage of ezcConsoleTable class. * * @package ConsoleTools * @version 1.6.1 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License */ require_once 'Base/src/base.php'; /** * Autoload ezc classes * * @param string $className */ function __autoload( $className ) { ezcBase::autoload( $className ); } // Initialize the console output handler $out = new ezcConsoleOutput(); // Define format schemes for even and odd rows $out->formats->evenRow->color = 'red'; $out->formats->evenRow->style = array( 'bold' ); $out->formats->oddRow->color = 'blue'; $out->formats->oddRow->style = array( 'bold' ); // Define format schemes for even and odd cells $out->formats->evenCell->color = 'red'; $out->formats->evenCell->style = array( 'negative' ); $out->formats->oddCell->color = 'blue'; $out->formats->oddCell->style = array( 'negative' ); // Create a new table with a width of 60 chars $table = new ezcConsoleTable( $out, 60 ); // Set global cell content align $table->options->defaultAlign = ezcConsoleTable::ALIGN_CENTER; for ( $i = 0; $i < 5; $i ++ ) { for ( $j = 0; $j < 5; $j++ ) { // Fill each table cell with ## $table[$i][$j]->content = '##'; if ( $i === $j ) { // On diagonal line set explicit cell format for even/odd $table[$i][$j]->format = $j % 2 == 0 ? 'evenCell' : 'oddCell'; } } // Set global format for even/odd rows $table[$i]->format = $i % 2 == 0 ? 'evenRow' : 'oddRow'; // Set border format for even/odd rows $table[$i]->borderFormat = $i % 2 == 0 ? 'evenRow' : 'oddRow'; } $table->outputTable(); echo "\n"; ?>
Upload File
Create Folder