#!/usr/bin/php <?php
require_once '../include/class.dialog.php';
$dialog = Dialog::factory('checklist', array( 'backtitle' => 'Checklists' ));
$options = array( array('one', "One", true), array('two', "Two", true), array( 'id' => 'five', 'caption' => 'Five', ) );
$dialog->returnCaption(true) ->setCaption('Testing Checklists') ->addOptions($options) ->addOption('six', "Six") ->disableCancel(true);
$res = $dialog->show();
system('clear'); echo "You selected:\n\n"; print_r($res); echo "\n";
exit();
|