$object->addSoftkey('1', Aastra_get_label('Intellect', $language), $XML_SERVER . '&bdate=' . $bdate . '&I=' . $new . '&E=' . $E . '&P=' . $P); if ($E == 1) { $new = 0; } else { $new = 1; } $object->addSoftkey('2', Aastra_get_label('Emotional', $language), $XML_SERVER . '&bdate=' . $bdate . '&I=' . $I . '&E=' . $new . '&P=' . $P); if ($P == 1) { $new = 0; } else { $new = 1; } $object->addSoftkey('3', Aastra_get_label('Physical', $language), $XML_SERVER . '&bdate=' . $bdate . '&I=' . $I . '&E=' . $E . '&P=' . $new); } else { # Display results if (Aastra_is_formattedtextscreen_supported()) { # create object $object = new AastraIPPhoneFormattedTextScreen(); if (Aastra_size_formattedtextscreen() > 3) { $object->addLine(Aastra_get_label('BIORHYTHMS', $language)); if (Aastra_size_formattedtextscreen() > 4) { $object->addLine(''); } $object->addLine(sprintf(Aastra_get_label('I=%+.3f %s', $language), $array['day']['I'], $array['trend']['I'])); $object->addLine(sprintf(Aastra_get_label('E=%+.3f %s', $language), $array['day']['E'], $array['trend']['E'])); $object->addLine(sprintf(Aastra_get_label('P=%+.3f %s', $language), $array['day']['P'], $array['trend']['P'])); } else { $object->setScrollStart('2'); $object->addLine(sprintf(Aastra_get_label('I=%+.3f %s', $language), $array['day']['I'], $array['trend']['I'])); $object->addLine(sprintf(Aastra_get_label('E=%+.3f %s', $language), $array['day']['E'], $array['trend']['E'])); $object->addLine(sprintf(Aastra_get_label('P=%+.3f %s', $language), $array['day']['P'], $array['trend']['P']));
if ($asterisk) { Aastra_trace_call('asterisk_csv_dir', 'action=' . $action . ', lookup=' . $lookup . ', page=' . $page . ', index=' . $index . ', lastn=' . $lastn . ', firstn=' . $firstn . ', user='******', speed=' . $speed); } else { Aastra_trace_call('csv_directory', 'action=' . $action . ', lookup=' . $lookup . ', page=' . $page . ', index=' . $index . ', lastn=' . $lastn . ', firstn=' . $firstn . ', user='******', speed=' . $speed); } # Test User Agent Aastra_test_phone_versions(array('1' => '', '2' => '1.4.2.', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0'); # Get Language $language = Aastra_get_language(); # Get global compatibility $is_multipleinputfields = Aastra_is_multipleinputfields_supported(); $nb_softkeys = Aastra_number_softkeys_supported(); $is_icons = Aastra_is_icons_supported(); $is_lockin = Aastra_is_lockin_supported(); $is_style_textmenu = Aastra_is_style_textmenu_supported(); $is_formatted_textscreen = Aastra_is_formattedtextscreen_supported(); $is_textmenu_wrapitem = Aastra_is_textmenu_wrapitem_supported(); # Retrieve the size of the display $chars_supported = Aastra_size_display_line(); if ($is_style_textmenu) { $chars_supported--; } # To handle non softkey phones if ($nb_softkeys) { $MaxLines = AASTRA_MAXLINES; } else { $MaxLines = AASTRA_MAXLINES - 2; } # Update URI $XML_SERVER .= '?user='******'&source=' . $source . '&back=' . $back; # Get user context