Alex
1
I have been getting complaints in relation to the filing of Pireps and in particular the flight duration box.
We know that 5.3 = 5 1/2hrs or 5 hours 30 minutes. however some people have difficulty with this ???
is there a code snippet to include a box “hours” “minutes” in text format so that this issue can be resolved?
Any help with coding would be appreciated, even if it’s just to get the monkey off my back.
nabeel
2
I have been getting complaints in relation to the filing of Pireps and in particular the flight duration box.
We know that 5.3 = 5 1/2hrs or 5 hours 30 minutes. however some people have difficulty with this ???
is there a code snippet to include a box “hours” “minutes” in text format so that this issue can be resolved?
Any help with coding would be appreciated, even if it’s just to get the monkey off my back.
You can add some text under it in the template to specifically say hours:minutes, or id you edit the template, just add a
<input value="HOURS:MINUTE" onclick="this.value='';" />
Add the value= and onclick= to the existing text box
Alex
3
So do i add this or replace the current code?
Here is the current line.
<div align="center">
<input type="text" name="flighttime" value="<?php echo $_POST['flighttime'] ?>" />
</div>
<p align="center">Enter as hours - "5.3" is five hours and thirty minutes</p></dd>
Thanks
nabeel
4
Replace this line:
<input type="text" name="flighttime" value="<?php echo $_POST['flighttime'] ?>" />
With:
<input type="text" name="flighttime" value="<?php echo ($_POST['flighttime']
== '') ? 'HOURS:MINUTE' : $_POST['flighttime'] ?>" onclick="this.value='';" />
Alex
5
Thanks Nabeel, that did it.