Ejemplo n.º 1
0
            $object = new AastraIPPhoneTextScreen();
            $object->setTitle(Aastra_get_label('Currency converter', $language));
            $object->setText(Aastra_get_label('Information not available at this time. Please try again later.', $language));
        }
        # Add remaining softkeys
        if ($nb_softkeys == 6) {
            if ($action == 'display') {
                $object->addSoftkey('4', Aastra_get_label('New Lookup', $language), $XML_SERVER . '&action=init');
            } else {
                $object->addSoftkey('4', Aastra_get_label('Back', $language), $XML_SERVER . '&action=favorites&selection=' . $selection);
            }
            $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
        } else {
            if ($action == 'display') {
                $object->addSoftkey('6', Aastra_get_label('New Lookup', $language), $XML_SERVER . '&action=init');
            } else {
                $object->addSoftkey('9', Aastra_get_label('Back', $language), $XML_SERVER . '&action=favorites&selection=' . $selection);
            }
            $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
        }
        break;
}
# Top title
if (Aastra_is_top_title_supported()) {
    $object->setTopTitle(Aastra_get_label('Currency'), '', '1');
    $object->addIcon('1', 'http://' . $AA_XML_SERVER . '/' . $AA_XMLDIRECTORY . '/icons/currency.png');
}
# Display object
$object->setDestroyOnExit();
$object->output();
exit;
Ejemplo n.º 2
0
                        $object->addSoftkey('5', Aastra_get_label('More...', $language), $XML_SERVER . '&index=' . ($index + 1) . '&rank=' . ($rank + 1) . '&set=' . ($set + 1));
                    } else {
                        $object->addSoftkey('5', Aastra_get_label('More...', $language), $XML_SERVER . '&index=' . ($index + 1) . '&rank=' . ($rank + 1) . '&set=1');
                    }
                }
                if ($rank != 0) {
                    $object->addSoftkey('8', Aastra_get_label('Previous', $language), $XML_SERVER . '&index=' . ($index + 1) . '&rank=' . $rank . '&set=' . $set);
                }
                if ($rank != count($array_rss) - 1) {
                    $object->addSoftkey('9', Aastra_get_label('Next', $language), $XML_SERVER . '&index=' . ($index + 1) . '&rank=' . ($rank + 2) . '&set=' . $set);
                }
                $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
                $object->setCancelAction($back);
            }
        } else {
            $object->setDoneAction($back);
        }
    }
    # Top Title
    if (Aastra_is_top_title_supported() and $TopTitle_label != '') {
        if ($TopTitle_icon != '') {
            $object->setTopTitle($TopTitle_label, '', '1');
            $object->addIcon('1', 'http://' . $AA_XML_SERVER . '/' . $AA_XMLDIRECTORY . '/' . $TopTitle_icon);
        } else {
            $object->setTopTitle($TopTitle_label);
        }
    }
    # Display output
    $object->output();
    exit;
}