Artjom Posted May 2, 2010 Report Posted May 2, 2010 I've a questions, how can I do 1. that's in the Briefing shows the firstname and lastname pilot?? 2. tahat's the time-not a single number 1:20 and the conclusions separately at first hours : minutes example: (<?php echo "{$schedule->deptimehours}"; ?>:<?php echo "{$schedule->deptimeseconds}"; ?>) 1 Quote
Administrators Nabeel Posted May 2, 2010 Administrators Report Posted May 2, 2010 I'm a bit lost... Quote
Artjom Posted May 2, 2010 Author Report Posted May 2, 2010 I need to at VATSIM plan was already full, here is my link: <a class="post" href="http://www.vatsim.net/fp/?2=<?php echo $schedule->flightnum; ?>&3=<?php echo "{$schedule->aircraft}"; ?>&4=none&5=<?php echo "$schedule->depicao"; ?>&6=<?php echo "{$schedule->deptime}"; ?>&7=<?php echo "{$schedule->flightlevel}"; ?>&8=<?php if($schedule->route == ''){echo '<br />';}else{echo strtoupper($schedule->route);}?>&9=<?php echo "$schedule->arricao"; ?>&10a=HOURTIME&10b=HOURMINUTES&11=HERELINK& target="_blank">VATSIM</a> Quote
Administrators Nabeel Posted May 2, 2010 Administrators Report Posted May 2, 2010 To get the hour/minute you can do: <?php $time = explode(':', $schedule->deptime); $hour = $time[0]; $minute = $time[1]; Something like that should work Quote
Artjom Posted May 2, 2010 Author Report Posted May 2, 2010 To get the hour/minute you can do: <?php $time = explode(':', $schedule->deptime); $hour = $time[0]; $minute = $time[1]; Something like that should work Thanks Nabeel for your Replay I've add your code into schedules_briefing.tpl but that isn't work <?php $time = explode(':', $schedule->deptime); $hour = $time[0]; $minute = $time[1]; ?> Quote
Administrators Nabeel Posted May 2, 2010 Administrators Report Posted May 2, 2010 Can you paste the template into pastebin.org and put the link here? Thanks Quote
Artjom Posted May 2, 2010 Author Report Posted May 2, 2010 Can you paste the template into pastebin.org and put the link here? Thanks I've lost these problem! use this code!!! <?php $time = explode(":", $schedule->deptime); echo $time[0]; echo $time[1]; ?> 1 Quote
Artjom Posted May 2, 2010 Author Report Posted May 2, 2010 I've lost all the problems!! Thank you Nabeel! Quote
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.