PATH:
opt
/
alt
/
php54
/
usr
/
share
/
doc
/
pear
/
ConsoleTools
/
docs
<?php require_once 'tutorial_autoload.php'; $output = new ezcConsoleOutput(); $output->formats->blue->color = 'blue'; $output->formats->blue->style = array( 'bold' ); $output->formats->red->color = 'red'; $output->formats->red->style = array( 'bold' ); $output->formats->green->color = 'green'; $output->formats->green->style = array( 'bold' ); $colors = array( 'red', 'blue', 'green' ); $aligns = array( ezcConsoleTable::ALIGN_LEFT, ezcConsoleTable::ALIGN_CENTER, ezcConsoleTable::ALIGN_RIGHT ); $table = new ezcConsoleTable( $output, 78 ); $table->options->corner = ' '; $table->options->lineHorizontal = ' '; $table->options->lineVertical = ' '; $table->options->widthType = ezcConsoleTable::WIDTH_FIXED; for ( $i = 0; $i < 10; $i++ ) { for ( $j = 0; $j < 10; $j++ ) { $table[$i][$j]->content = '*'; $table[$i][$j]->format = $colors[array_rand( $colors )]; $table[$i][$j]->align = $aligns[array_rand( $aligns )]; } } $table->outputTable(); $output->outputLine(); ?>
[-] example_table_2.php
[edit]
[-] tutorial_example_10_table_advanced.php
[edit]
[-] tutorial_example_03_output_options.php
[edit]
[-] LICENSE
[edit]
[-] example_output.php
[edit]
[-] example_question_dialog_factory_yesno.php
[edit]
[-] example_statusbar.php
[edit]
[-] tutorial_example_13_dialog_question.php
[edit]
[-] tutorial.txt
[edit]
[-] tutorial_example_output_targets.php
[edit]
[-] example_progressmonitor.php
[edit]
[-] example_table.php
[edit]
[-] tutorial_example_15_dialog_menu.php
[edit]
[-] tutorial_example_14_dialog_yesnoquestion.php
[edit]
[-] tutorial_example_07_progressbar_advanced.php
[edit]
[-] tutorial_autoload.php
[edit]
[-] example_input.php
[edit]
[-] example_menu_dialog_full.php
[edit]
[-] tutorial_example_06_progressbar_basic.php
[edit]
[-] tutorial_example_12_input_arguments.php
[edit]
[-] CREDITS
[edit]
[-] tutorial_example_05_input_advanced.php
[edit]
[-] example_question_dialog_collection_full.php
[edit]
[-] example_progressbar.php
[edit]
[-] tutorial_example_08_statusbar.php
[edit]
[-] tutorial_example_02_output_advanced.php
[edit]
[-] tutorial_example_01_output_basic.php
[edit]
[-] tutorial_example_11_progressmonitor.php
[edit]
[+]
..
[-] tutorial_example_04_input_basic.php
[edit]
[-] example_question_dialog_type_full.php
[edit]
[-] tutorial_example_09_table_basic.php
[edit]
[+]
img