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->addIcon(18, 'Icon:ArrowDown');
                $object->addIcon(19, 'Icon:CircleRed');
            }
        } else {
            # Display error
            require_once 'AastraIPPhoneTextScreen.class.php';
            $object = new AastraIPPhoneTextScreen();
            $object->setDestroyOnExit();
            if ($lookup == '') {
                $object->setTitle(Aastra_get_label('Directory error', $language));
                $object->setText(Aastra_get_label('Directory list is empty. Please contact your administrator.', $language));
            } else {
                $object->setTitle(Aastra_get_label('Lookup error', $language));
                $object->setText(Aastra_get_label('Sorry no match.', $language));
            }
            # Softkey
            if ($lookup != '') {
                $object->addSoftkey('5', Aastra_get_label('List Mode', $language), $XML_SERVER . '&action=list', 1);
                $object->addSoftkey('9', Aastra_get_label('Back', $language), $XML_SERVER . '&action=search&lookup=' . $lookup, 2);
                $object->setCancelAction($XML_SERVER . '&action=search&lookup=' . $lookup);
            }
            $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit', 3);
            $object->addIcon(1, 'Icon:Book');
            $object->addIcon(2, 'Icon:ArrowLeft');
            $object->addIcon(b, 'Icon:CircleRed');
        }
        break;
}
# Output XML object
$object->output();
exit;
Ejemplo n.º 3
0
}
# Depending on how many directories are configured
switch (count($ARRAY_CONFIG)) {
    # No directory
    case '0':
        require_once 'AastraIPPhoneTextScreen.class.php';
        $object = new AastraIPPhoneTextScreen();
        $object->setDestroyOnExit();
        $object->setTitle(Aastra_get_label('Error', $language));
        $object->setText(Aastra_get_label('No directory configured. Please contact your administrator.', $language));
        if ($nb_softkeys) {
            if ($nb_softkeys == 6) {
                $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
            } else {
                $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit', 1);
                $object->addIcon(1, 'Icon:CircleRed');
            }
        }
        break;
        # Just one
    # Just one
    case '1':
        # Straight to the directory
        require_once 'AastraIPPhoneExecute.class.php';
        $object = new AastraIPPhoneExecute();
        $object->addEntry($ARRAY_CONFIG[$first_source]['uri']);
        break;
        # More than one
    # More than one
    default:
        # Display selection
Ejemplo n.º 4
0
                }
                $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;
Ejemplo n.º 5
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;
}