$object->addSoftkey('5', Aastra_get_label('Back', $language), $XML_SERVER); $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit'); # Cancel Action $object->setCancelAction($XML_SERVER); break; # Change password # Change password case 'chg_password': # Input Screen require_once 'AastraIPPhoneInputScreen.class.php'; $object = new AastraIPPhoneInputScreen(); $object->setDestroyOnExit(); # Input number $object->setTitle(Aastra_get_label('Password Change', $language)); $object->setType('number'); $object->setPassword(); $object->setPrompt(Aastra_get_label('New password', $language)); $object->setParameter('paused'); $object->setURL($XML_SERVER . '&action=set_password&origin=' . $origin); # Softkeys $object->addSoftkey('1', Aastra_get_label('Backspace', $language), 'SoftKey:BackSpace'); $object->addSoftkey('5', Aastra_get_label('Submit', $language), 'SoftKey:Submit'); $object->addSoftkey('6', Aastra_get_label('Cancel', $language), $XML_SERVER . '&action=options&origin=' . $origin); break; # Play/Record Greetings # Play/Record Greetings case 'play_greetings': case 'rec_greetings': # Action if ($action == 'play_greetings') { $action = 'play';
$text->setTitle('Title'); $text->setText('The screen object can be implemented similar to the firmware info screen.'); $text->setDestroyOnExit(); $text->addSoftkey('1', 'Mail', 'http://myserver.com/script.php?action=1'); $text->addSoftkey('6', 'Exit', 'SoftKey:Exit'); $text->output(); break; case 'inputscreen1': require_once 'AastraIPPhoneInputScreen.class.php'; $input = new AastraIPPhoneInputScreen(); $input->setTitle('Title'); $input->setPrompt('Enter your password'); $input->setParameter('param'); $input->setType('string'); $input->setURL('http://myserver.com/script.php?test=1'); $input->setPassword(); $input->setDestroyOnExit(); $input->setDefault(''); $input->setCancelAction($XML_SERVER); $input->output(); break; case 'inputscreen2': require_once 'AastraIPPhoneInputScreen.class.php'; $input = new AastraIPPhoneInputScreen(); $input->setTitle('Title'); $input->setPrompt('Enter the date'); $input->setParameter('param'); $input->setType('dateUS'); $input->setURL('http://myserver.com/script.php'); $input->setDestroyOnExit(); $input->setCancelAction($XML_SERVER);