$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;
                }
                $object->addSoftkey('4', Aastra_get_label('Back', $language), $XML_SERVER . '&zip=' . $zip);
                if ($index != count($array_rss) - 2) {
                    $object->addSoftkey('5', Aastra_get_label('Next', $language), $XML_SERVER . '&zip=' . $zip . '&index=' . ($index + 2));
                }
                $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
            } else {
                $softkey = 1;
                foreach ($array_rss as $key => $value) {
                    if ($key != '99') {
                        $object->addSoftkey($softkey, $value['title'], $value['uri'] . '&user='******'9', Aastra_get_label('Back', $language), $XML_SERVER);
                    $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
                }
                $object->setCancelAction($XML_SERVER);
            }
        } else {
            $object->setCancelAction($XML_SERVER);
        }
    }
}
# Top title
if (Aastra_is_top_title_supported()) {
    $object->setTopTitle(Aastra_get_label('US Weather'), '', '1');
    $object->addIcon('1', 'http://' . $AA_XML_SERVER . '/' . $AA_XMLDIRECTORY . '/icons/weather.png');
}
# Display output
$object->output();
exit;
Exemple #3
0
                        } else {
                            $object->addSoftkey('9', Aastra_get_label('Back', $language), $XML_SERVER . '?selection=' . $selection . '&user='******'&action=favorites');
                            $object->setCancelAction($XML_SERVER . '?selection=' . $selection . '&user='******'&action=favorites');
                        }
                        $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
                    }
                }
            } else {
                # Display error
                $object = new AastraIPPhoneTextScreen();
                $object->setDestroyOnExit();
                $object->setTitle(Aastra_get_label('Application error', $language));
                $object->setText(Aastra_get_label('The information you are looking for is not available at this time. Try again later.', $language));
            }
        } else {
            # Display error
            $object = new AastraIPPhoneTextScreen();
            $object->setDestroyOnExit();
            $object->setTitle(Aastra_get_label('Application error', $language));
            $object->setText(Aastra_get_label('The information you are looking for is not available at this time. Try again later.', $language));
        }
        break;
}
# Top title
if (Aastra_is_top_title_supported()) {
    $object->setTopTitle(Aastra_get_label('World Clock'), '', '1');
    $object->addIcon('1', 'http://' . $AA_XML_SERVER . '/' . $AA_XMLDIRECTORY . '/icons/clock.png');
}
# Display object
$object->output();
exit;
Exemple #4
0
                $object->setScrollEnd();
                $object->addLine(Aastra_get_label('Powered by Yahoo', $language), '', 'center');
            }
        } else {
            # Prepare result screen
            $object = new AastraIPPhoneTextScreen();
            require_once 'AastraIPPhoneTextScreen.class.php';
            $object->setTitle(Aastra_get_label('Stock results', $language));
            $object->setText(Aastra_get_label('Information not available at this time. Please try again later.', $language));
        }
        # Add remaining softkeys
        if ($nb_softkeys > 0) {
            if ($nb_softkeys == 6) {
                $object->addSoftkey('5', Aastra_get_label('Back', $language), $XML_SERVER . '&action=favorites&selection=' . $selection);
                $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
            } else {
                $object->addSoftkey('8', Aastra_get_label('Back', $language), $XML_SERVER . '&action=favorites&selection=' . $selection);
                $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
                $object->setCancelAction($XML_SERVER . '&action=favorites&selection=' . $selection);
            }
        }
        break;
}
# Display object
$object->setDestroyOnExit();
if (Aastra_is_top_title_supported()) {
    $object->setTopTitle(Aastra_get_label('Stock Quotes'), '', '1');
    $object->addIcon('1', 'http://' . $AA_XML_SERVER . '/' . $AA_XMLDIRECTORY . '/icons/stocks.png');
}
$object->output();
exit;
                    $object->addLine(sprintf(Aastra_get_label('P=%+.3f %s', $language), $array['day']['P'], $array['trend']['P']));
                    $object->setScrollEnd();
                }
            } else {
                # create object
                $object = new AastraIPPhoneTextScreen();
                $object->setTitle(Aastra_get_language('BIORHYTHMS', $language));
                $object->setText(sprintf(Aastra_get_label('I=%+.3f, E=%+.3f, P=%+.3f', $language), $array['day']['I'], $array['day']['E'], $array['day']['P']));
            }
        }
    }
    # Common parameters
    $object->setDestroyOnExit();
    if ($nb_softkeys) {
        if ($nb_softkeys == 6) {
            $object->addSoftkey('5', Aastra_get_label('Back', $language), $XML_SERVER);
            $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
        } else {
            $object->addSoftkey('9', Aastra_get_label('Back', $language), $XML_SERVER);
            $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
        }
    }
}
# Top title
if (Aastra_is_top_title_supported()) {
    $object->setTopTitle(Aastra_get_label('Biorhythms'), '', '1');
    $object->addIcon('1', 'http://' . $AA_XML_SERVER . '/' . $AA_XMLDIRECTORY . '/icons/bio.png');
}
# Display object
$object->output();
exit;
Exemple #6
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;
}