Ejemplo n.º 1
0
        $ftext->addLine('Formatted Screen', 'double', 'center', 'red');
        $ftext->setScrollStart();
        $ftext->addLine('Scrolled text1');
        $ftext->addLine('Scrolled text2');
        $ftext->addLine('Scrolled text3');
        $ftext->addLine('Scrolled text4');
        $ftext->addLine('Scrolled text5');
        $ftext->setScrollEnd();
        $ftext->addLine('Footer', NULL, 'center');
        $ftext->addSoftkey('10', 'Exit', 'SoftKey:Exit');
        $ftext->output();
        break;
    case 'status1':
        require_once 'AastraIPPhoneStatus.class.php';
        $status = new AastraIPPhoneStatus();
        $status->setTriggerDestroyOnExit();
        $status->setSession('Session');
        $status->addEntry('1', 'Message 1');
        $status->addEntry('2', 'Message 2');
        $status->output();
        break;
    case 'status2':
        require_once 'AastraIPPhoneStatus.class.php';
        $status = new AastraIPPhoneStatus();
        $status->setSession('Session');
        $status->setTriggerDestroyOnExit();
        $status->addEntry('1', '');
        $status->addEntry('2', '');
        $status->output();
        break;
}