Exemple #1
0
        }
    }
    $object->setCancelAction($XML_SERVER);
} else {
    # Input area code
    $object = new AastraIPPhoneInputScreen();
    $object->setTitle(Aastra_get_label('Area code finder', $language));
    $object->setPrompt(Aastra_get_label('Enter area code', $language));
    $object->setParameter('area');
    $object->setType('number');
    $object->setURL($XML_SERVER);
    $object->setDestroyOnExit();
    # Softkeys
    if ($nb_softkeys > 0) {
        if ($nb_softkeys < 7) {
            $object->addSoftkey('1', Aastra_get_label('Backspace', $language), 'SoftKey:BackSpace');
            $object->addSoftkey('5', Aastra_get_label('Lookup', $language), 'SoftKey:Submit');
            $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
        } else {
            $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
        }
    }
}
# Top title
if (Aastra_is_top_title_supported()) {
    $object->setTopTitle(Aastra_get_label('Area code lookup'), '', '1');
    $object->addIcon('1', 'http://' . $AA_XML_SERVER . '/' . $AA_XMLDIRECTORY . '/icons/area.png');
}
# Display object
$object->output();
exit;