[ Th3_Err0r Bypassed ]




Upload:

Command:

liwaavux@216.73.216.140: ~ $
<?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 a new format "headline"
$out->formats->headline->color = 'red';
$out->formats->headline->style = array( 'bold' );
// Define a new format "sum"
$out->formats->sum->color = 'blue';
$out->formats->sum->style = array( 'negative' );

// Create a new table
$table = new ezcConsoleTable( $out, 60 );

// Create first row and in it the first cell
$table[0][0]->content = 'Headline 1';

// Create 3 more cells in row 0
for ( $i = 2; $i < 5; $i++ )
{
     $table[0][]->content = "Headline $i";
}

$data = array( 1, 2, 3, 4 );

// Create some more data in the table...
foreach ( $data as $value )
{
     // Create a new row each time and set it's contents to the actual value
     $table[][0]->content = "$value";
}

// Set another border format for our headline row
$table[0]->borderFormat = 'headline';

// Set the content format for all cells of the 3rd row to "sum"
$table[2]->format = 'sum';

$table->outputTable();
echo "\n";
/*

RESULT (without color):

+------------+------------+------------+------------+       // 
| Headline 1 | Headline 2 | Headline 3 | Headline 4 |       // Red bordered line
+------------+------------+------------+------------+       // 
| 1          |            |            |            |
+------------+------------+------------+------------+
| 2          |            |            |            |       // Content printed in white on blue
+------------+------------+------------+------------+
| 3          |            |            |            |
+------------+------------+------------+------------+
| 4          |            |            |            |
+------------+------------+------------+------------+

*/
?>

Filemanager

Name Type Size Permission Actions
img Folder 0755
CREDITS File 229 B 0644
LICENSE File 1.53 KB 0644
example_input.php File 2.64 KB 0644
example_menu_dialog_full.php File 624 B 0644
example_output.php File 2.06 KB 0644
example_progressbar.php File 3.36 KB 0644
example_progressmonitor.php File 1.07 KB 0644
example_question_dialog_collection_full.php File 613 B 0644
example_question_dialog_factory_yesno.php File 461 B 0644
example_question_dialog_type_full.php File 630 B 0644
example_statusbar.php File 987 B 0644
example_table.php File 2.09 KB 0644
example_table_2.php File 1.71 KB 0644
tutorial.txt File 23.92 KB 0644
tutorial_autoload.php File 495 B 0644
tutorial_example_01_output_basic.php File 184 B 0644
tutorial_example_02_output_advanced.php File 657 B 0644
tutorial_example_03_output_options.php File 755 B 0644
tutorial_example_04_input_basic.php File 399 B 0644
tutorial_example_05_input_advanced.php File 1.11 KB 0644
tutorial_example_06_progressbar_basic.php File 271 B 0644
tutorial_example_07_progressbar_advanced.php File 596 B 0644
tutorial_example_08_statusbar.php File 656 B 0644
tutorial_example_09_table_basic.php File 1.06 KB 0644
tutorial_example_10_table_advanced.php File 1 KB 0644
tutorial_example_11_progressmonitor.php File 299 B 0644
tutorial_example_12_input_arguments.php File 1.41 KB 0644
tutorial_example_13_dialog_question.php File 552 B 0644
tutorial_example_14_dialog_yesnoquestion.php File 334 B 0644
tutorial_example_15_dialog_menu.php File 739 B 0644
tutorial_example_output_targets.php File 308 B 0644