Exemplo n.º 1
0
     $menu->addEntry('InputScreen2', $XML_SERVER . '?type=inputscreen2');
     $menu->addEntry('InputScreen3', $XML_SERVER . '?type=inputscreen3');
     $menu->addEntry('Execute', $XML_SERVER . '?type=execute');
     $menu->addEntry('FormattedTextScreen', $XML_SERVER . '?type=formattedtextscreen');
     $menu->addEntry('Status1', $XML_SERVER . '?type=status1');
     $menu->addEntry('Status2', $XML_SERVER . '?type=status2');
     $menu->natsortByName();
     $menu->output();
     break;
 case 'textmenu1':
     require_once 'AastraIPPhoneTextMenu.class.php';
     $menu = new AastraIPPhoneTextMenu();
     $menu->setTitle('Title, which is a pretty long title');
     $menu->setTitleWrap();
     $menu->setDestroyOnExit();
     $menu->setDeFaultIndex('3');
     $menu->addEntry('Choice 2', 'http://myserver.com/script.php?choice=2', 'Value=2', '', '12345');
     $menu->addEntry('Choice 1', 'http://myserver.com/script.php?choice=1', 'Value=1');
     $menu->addEntry('Choice 3', 'http://myserver.com/script.php?choice=3', 'Value=3');
     $menu->addEntry('Choice 4', 'http://myserver.com/script.php?choice=4', 'Value=4');
     $menu->addEntry('Choice 5', 'http://myserver.com/script.php?choice=5', 'Value=5');
     $menu->addEntry('Choice 6', 'http://myserver.com/script.php?choice=6', 'Value=6');
     $menu->addEntry('Choice 7', 'http://myserver.com/script.php?choice=7', 'Value=7');
     $menu->natsortByName();
     $menu->addSoftkey('1', 'My Select', 'http://myserver.com/script.php?action=1');
     $menu->addSoftkey('10', 'Done', 'SoftKey:Exit');
     $menu->output();
     break;
 case 'textmenu2':
     require_once 'AastraIPPhoneTextMenu.class.php';
     $menu = new AastraIPPhoneTextMenu();