Jump to content

Pirep times


Alex

Recommended Posts

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. :angry:

Link to comment
Share on other sites

  • Administrators

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. :angry:

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Administrators

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='';" />

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...