} if ($E == 1) { $GDImage->drawtext(1, 51, 33, sprintf(Aastra_get_label('E=%+.3f', $language), $array['day']['E']), 1); } if ($P == 1) { $GDImage->drawtext(1, 104, 33, sprintf(Aastra_get_label('P=%+.3f', $language), $array['day']['P']), 1); } # Attach GD image $object->setGDImage($GDImage); # Create Softkeys if ($I == 1) { $new = 0; } else { $new = 1; } $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()) {