当前位置: 首页>>代码示例>>PHP>>正文


PHP Aastra_number_softkeys_supported函数代码示例

本文整理汇总了PHP中Aastra_number_softkeys_supported函数的典型用法代码示例。如果您正苦于以下问题:PHP Aastra_number_softkeys_supported函数的具体用法?PHP Aastra_number_softkeys_supported怎么用?PHP Aastra_number_softkeys_supported使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了Aastra_number_softkeys_supported函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Aastra_getvar_safe

$user = Aastra_getvar_safe('user');
# Retrieve phone information
$header = Aastra_decode_HTTP_header();
if ($user == '') {
    $user = $header['mac'];
}
# Keep return URI
$XML_SERVER .= '?user=' . $user;
# Trace
Aastra_trace_call('biorhytm', 'user=' . $user);
# Get Language
$language = Aastra_get_language();
# Check compatibility
Aastra_test_phone_version('1.4.2.', 0);
Aastra_test_php_function('imagecreate', Aastra_get_label('PHP-GD extension not installed.', $language));
$nb_softkeys = Aastra_number_softkeys_supported();
# Nothing entered
if ($bdate == '') {
    $date = Aastra_get_user_context($user, 'biorhytm');
    $object = new AastraIPPhoneInputScreen();
    $object->setTitle(Aastra_get_label('Biorhythms', $language));
    $object->setPrompt(Aastra_get_label('Birth Date (MM/DD/YYYY)', $language));
    $object->setParameter('bdate');
    $object->setType('dateUS');
    $object->setURL($XML_SERVER);
    $object->setDefault($date);
    $object->setDestroyOnExit();
    if ($nb_softkeys == 10) {
        $object->addSoftkey('10', Aastra_get_label('Exit', $language), "SoftKey:Exit");
    }
} else {
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:biorhythm.php

示例2: Aastra_trace_call

Aastra_trace_call('Yahtzee', 'user=' . $user . ', action=' . $action . ', value=' . $value);
# Test User Agent
Aastra_test_phone_version('2.2.0.', 0);
Aastra_test_phone_model(array('Aastra55i', 'Aastra57i', 'Aastra57iCT', 'Aastra8000i'), True, 0);
Aastra_test_php_function('imagecreate', 'PHP-GD extension not installed.');
# Get Language
$language = Aastra_get_language();
# Retrieve phone information
$header = Aastra_decode_HTTP_header();
if ($user == '') {
    $user = $header['mac'];
}
# Keep return URI
$XML_SERVER .= '?user=' . $user;
# Number of softkeys
$nb_softkeys = Aastra_number_softkeys_supported($header);
# Get user context
$yahtzee = get_user_context($user);
# Init XML object
switch ($action) {
    case 'enter':
        $object = new AastraIPPhoneTextMenu();
        break;
    case 'hi':
        $object = new AastraIPPhoneFormattedTextScreen();
        break;
    case 'status':
        $object = new AastraIPPhoneImageScreen();
        $GDImage = new AastraIPPhoneGDImage();
        break;
    default:
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:yahtzee.php

示例3: AastraIPPhoneScrollableTextMenu

 function AastraIPPhoneScrollableTextMenu()
 {
     # Get Language
     $this->_language = Aastra_get_language();
     # Decode HTTP header
     $this->_header = Aastra_decode_HTTP_header();
     # Generate new cookie
     $this->_cookie = $this->_generateCookie();
     # Generate Scroll Handler reference
     global $XML_HTTP, $AA_XML_SERVER, $AA_XMLDIRECTORY;
     $this->_scrollHandlerReference = $XML_HTTP . $AA_XML_SERVER . "/" . $AA_XMLDIRECTORY . "/include/AastraIPPhoneScrollHandler.php?listCookie=" . $this->_cookie;
     # Calculate max linex
     $this->_calculateMaxLines();
     # Modify some values for 6739i
     if (Aastra_number_softkeys_supported() == 10) {
         $this->_exitKeyPosition = 10;
         $this->_nextKeyPosition = 8;
         $this->_previousKeyPosition = 7;
         $this->_selectKeyPosition = 3;
     }
 }
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:21,代码来源:AastraIPPhoneScrollableTextMenu.class.php

示例4: zoom


//.........这里部分代码省略.........
         } else {
             $iconIndex = NULL;
             $prompt = Aastra_get_label('(W)', $this->_language) . ' ';
         }
         if (!Aastra_test_phone_version('2.0.1.', 1)) {
             $menu->addEntry($prompt . $myrecord['office'], $URLprefix . $myrecord['officeDigits'], $myrecord['officeDigits'], $iconIndex, $myrecord['officeDigits']);
         } else {
             $menu->addEntry($prompt . $myrecord['office'], $URLprefix . $myrecord['officeDigits'], $myrecord['officeDigits']);
         }
     }
     # Office 2 number
     if (!empty($myrecord['office2'])) {
         if (Aastra_is_icons_supported()) {
             $iconIndex = 10;
             $prompt = '';
         } else {
             $iconIndex = NULL;
             $prompt = Aastra_get_label('(W)', $this->_language) . ' ';
         }
         if (!Aastra_test_phone_version('2.0.1.', 1)) {
             $menu->addEntry($prompt . $myrecord['office2'], $URLprefix . $myrecord['office2Digits'], $myrecord['officeDigits'], $iconIndex, $myrecord['office2Digits']);
         } else {
             $menu->addEntry($prompt . $myrecord['office2'], $URLprefix . $myrecord['office2Digits'], $myrecord['officeDigits']);
         }
     }
     # Mobile number
     if (!empty($myrecord['mobile'])) {
         if (Aastra_is_icons_supported()) {
             $iconIndex = 11;
             $prompt = '';
         } else {
             $iconIndex = NULL;
             $prompt = Aastra_get_label('(C)', $this->_language) . ' ';
         }
         if (!Aastra_test_phone_version('2.0.1.', 1)) {
             $menu->addEntry($prompt . $myrecord['mobile'], $URLprefix . $myrecord['mobileDigits'], $myrecord['officeDigits'], $iconIndex, $myrecord['mobileDigits']);
         } else {
             $menu->addEntry($prompt . $myrecord['mobile'], $URLprefix . $myrecord['mobileDigits'], $myrecord['officeDigits']);
         }
     }
     # Home number
     if (!empty($myrecord['home'])) {
         if (Aastra_is_icons_supported()) {
             $iconIndex = 12;
             $prompt = '';
         } else {
             $iconIndex = NULL;
             $prompt = Aastra_get_label('(H)', $this->_language) . ' ';
         }
         if (!Aastra_test_phone_version('2.0.1.', 1)) {
             $menu->addEntry($prompt . $myrecord['home'], $URLprefix . $myrecord['homeDigits'], $myrecord['officeDigits'], $iconIndex, $myrecord['homeDigits']);
         } else {
             $menu->addEntry($prompt . $myrecord['home'], $URLprefix . $myrecord['homeDigits'], $myrecord['officeDigits']);
         }
     }
     # Softkeys
     if (Aastra_is_softkeys_supported()) {
         if (Aastra_number_softkeys_supported() != 10) {
             # Regular phone with 6 softkeys
             if (!Aastra_test_phone_version('2.0.1.', 1)) {
                 $dialKeyType = 'SoftKey:Dial2';
             } else {
                 $dialKeyType = 'SoftKey:Dial';
             }
             $menu->addSoftkey(1, Aastra_get_label('Dial', $this->_language), $dialKeyType);
             $menu->addSoftkey(3, Aastra_get_label('Back', $this->_language), $this->_scrollHandlerReference . '&listPage=' . $recentPage . '&recentSelection=' . $recentSelection);
             $menu->addSoftkey(6, Aastra_get_label('Exit', $this->_language), 'SoftKey:Exit');
             # Check if speed dial URL is set
             if (isset($myrecord['speedURL'])) {
                 $menu->addSoftkey(4, Aastra_get_label('Add to Speed Dial', $this->_language), $myrecord['speedURL']);
             }
         } else {
             # 6739i
             $menu->addSoftkey(9, Aastra_get_label('Back', $this->_language), $this->_scrollHandlerReference . '&listPage=' . $recentPage . '&recentSelection=' . $recentSelection, 8);
             $menu->addSoftkey(10, Aastra_get_label('Exit', $this->_language), 'SoftKey:Exit', 9);
             # Check if speed dial URL is set
             if (isset($myrecord['speedURL'])) {
                 $menu->addSoftkey(6, Aastra_get_label('+Speed', $this->_language), $myrecord['speedURL']);
             }
         }
     }
     # Icons
     if (Aastra_is_icons_supported()) {
         if (Aastra_phone_type() != 5) {
             $menu->addIcon(10, Aastra_get_custom_icon('Office'));
             $menu->addIcon(11, Aastra_get_custom_icon('Cellphone'));
             $menu->addIcon(12, Aastra_get_custom_icon('Home'));
         } else {
             $menu->addIcon(8, 'Icon:ArrowLeft');
             $menu->addIcon(9, 'Icon:CircleRed');
             $menu->addIcon(10, 'Icon:Office');
             $menu->addIcon(11, 'Icon:CellPhone');
             $menu->addIcon(12, 'Icon:Home');
         }
     }
     # Cancel action
     $menu->setCancelAction($this->_scrollHandlerReference . '&listPage=' . $recentPage . '&recentSelection=' . $recentSelection);
     # Display XML object
     $menu->output();
 }
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:101,代码来源:AastraIPPhoneScrollableDirectory.class.php

示例5: count

     $object->setTitle($array_rss[$rank]['title']);
 } else {
     if (count($array_rss) > 1) {
         $object->setTitle($Title[$index] . ' (' . ($rank + 1) . '/' . count($array_rss) . ') - ' . $array_rss[$rank]['title']);
     } else {
         $object->setTitle($Title[$index] . ' - ' . $array_rss[$rank]['title']);
     }
 }
 $object->setText($array_rss[$rank]['description']);
 if ($rank != 0 or $rank != count($array_rss) - 1) {
     $back = $XML_SERVER . '&index=' . ($index + 1) . '&last_rank=' . ($rank + 1);
 } else {
     $back = $XML_SERVER . '&last_index=' . ($index + 1);
 }
 if (Aastra_is_softkeys_supported()) {
     if (Aastra_number_softkeys_supported() < 7) {
         if ($rank != 0) {
             $object->addSoftkey('2', Aastra_get_label('Previous', $language), $XML_SERVER . '&index=' . ($index + 1) . '&rank=' . $rank);
         }
         $object->addSoftkey('4', Aastra_get_label('Back', $language), $back);
         if ($rank != count($array_rss) - 1) {
             $object->addSoftkey('5', Aastra_get_label('Next', $language), $XML_SERVER . '&index=' . ($index + 1) . '&rank=' . ($rank + 2));
         }
         $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
     } else {
         $last_set = intval($nb_rss / 4);
         if ($nb_rss - $last_set * 4 != 0) {
             $last_set++;
         }
         $softkey = 1;
         for ($y = 0; $y < $nb_rss; $y++) {
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:rss.php

示例6: AastraIPPhoneInputScreen

         if ($hits == 1) {
             $object->setTitle(Aastra_get_label('One Match', $LANGUAGE));
         } else {
             $object->setTitle(sprintf(Aastra_get_label('%s Matches', $LANGUAGE), $hits));
         }
         if ($ARRAY_USER['display'] == 'firstlast') {
             $object->setNameDisplayFormat(0);
         } else {
             $object->setNameDisplayFormat(1);
         }
         if ($ARRAY_USER['sort'] == 'first') {
             $object->natsortByFirstname();
         } else {
             $object->natsortByLastname();
         }
         if (Aastra_number_softkeys_supported() == 10) {
             $object->setBackKeyPosition(9);
         }
         $object->setBackURI($XML_SERVER . '&lastname=' . $lastname . '&firstname=' . $firstname . '&lookup=' . $lookup);
         $object->setEntries($result);
     }
     break;
     # INIT
 # INIT
 case 'input':
 default:
     # InputScreen
     require_once 'AastraIPPhoneInputScreen.class.php';
     $object = new AastraIPPhoneInputScreen();
     $object->setDestroyOnExit();
     if ($ARRAY_CONFIG[$source]['label'] == '') {
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:ldap_directory.php


注:本文中的Aastra_number_softkeys_supported函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。