bass Posted August 10, 2016 Report Share Posted August 10, 2016 Prompt how to report (pirep_viewreport.tpl) on the flight of the log page to display a pitch angle of (...) deg.? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted August 10, 2016 Members Report Share Posted August 10, 2016 is it recorded from your acars ? Quote Link to comment Share on other sites More sharing options...
bass Posted August 10, 2016 Author Report Share Posted August 10, 2016 (edited) is it recorded from your acars ? [16:34] - Flaps to position 3 at 2067ft and 156kts [16:34] - Flaps to position 4 at 2041ft and 153kts [16:37] - Landed at -306fpm. With 2266kgs of fuel onboard and a pitch angle of 2deg. [16:37] - Wind Heading 90 | Wind Speed 12kts | Temperature 33 deg ........ Edited August 10, 2016 by bass Quote Link to comment Share on other sites More sharing options...
CedGauche Posted August 11, 2016 Report Share Posted August 11, 2016 (edited) <?php $string = "$pirep->log"; if($string!=str_replace("a pitch angle of 2deg","",$string)) echo "<font color='red'>Pitch of 2 deg!</font> </br>"; ?> But you get only a message, if the pitch angle was 2deg. If you want to have it for other values, you can copy it and change the angle of pitch here ("a pitch angle of 2deg", Edited August 11, 2016 by CedGauche Quote Link to comment Share on other sites More sharing options...
bass Posted August 11, 2016 Author Report Share Posted August 11, 2016 But you get only a message, if the pitch angle was 2deg. If you want to have it for other values, you can copy it and change the angle of pitch here Here I made an example code, maybe there is some other way? (Is too large code....) <?php $string = "$pirep->log"; if($string!=str_replace("-1deg","",$string)) echo "<font color='red'>Strike the front of the chassis!</font> </br>"; elseif($string!=str_replace("-2deg","",$string)) echo "<font color='red'>Strike the front of the chassis!</font> </br>"; elseif($string!=str_replace("-3deg","",$string)) echo "<font color='red'>Strike the front of the chassis!</font> </br>"; elseif($string!=str_replace("-4deg","",$string)) echo "<font color='red'>Strike the front of the chassis!</font> </br>"; elseif($string!=str_replace("-5deg","",$string)) echo "<font color='red'>Strike the front of the chassis!</font> </br>"; elseif($string!=str_replace("-6deg","",$string)) echo "<font color='red'>Strike the front of the chassis!</font> </br>"; elseif($string!=str_replace("-7deg","",$string)) echo "<font color='red'>Strike the front of the chassis!</font> </br>"; elseif($string!=str_replace("-8deg","",$string)) echo "<font color='red'>Strike the front of the chassis!</font> </br>"; elseif($string!=str_replace("-9deg","",$string)) echo "<font color='red'>Strike the front of the chassis!</font> </br>"; elseif($string!=str_replace("-10deg","",$string)) echo "<font color='red'>Strike the front of the chassis!</font> </br>"; elseif($string!=str_replace("-11deg","",$string)) echo "<font color='red'>Hard touch the front!</font> </br>"; elseif($string!=str_replace("-12deg","",$string)) echo "<font color='red'>Hard touch the front!</font> </br>"; elseif($string!=str_replace("-13deg","",$string)) echo "<font color='red'>Hard touch the front!</font> </br>"; elseif($string!=str_replace("-14deg","",$string)) echo "<font color='red'>Hard touch the front!</font> </br>"; elseif($string!=str_replace("-15deg","",$string)) echo "<font color='red'>Hard touch the front!</font> </br>"; elseif($string!=str_replace("-16deg","",$string)) echo "<font color='red'>Broken front landing gear!!!</font> </br>"; elseif($string!=str_replace("-17deg","",$string)) echo "<font color='red'>Broken front landing gear!!!</font> </br>"; elseif($string!=str_replace("-18deg","",$string)) echo "<font color='red'>Broken front landing gear!!!</font> </br>"; elseif($string!=str_replace("-19deg","",$string)) echo "<font color='red'>Broken front landing gear!!!</font> </br>"; elseif($string!=str_replace("-20deg","",$string)) echo "<font color='red'>Broken front landing gear!!!</font> </br>"; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.