# How difficult would this be?

**URL:** <https://forum.phpvms.net/t/how-difficult-would-this-be/2140>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [March 4, 2010, 5:17am UTC](https://forum.phpvms.net/t/how-difficult-would-this-be/2140 "2010-03-04T05:17:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [March 4, 2010, 5:17am UTC](https://forum.phpvms.net/t/how-difficult-would-this-be/2140/1 "2010-03-04T05:17:42Z")

</div>

Displaying different badges for inactive pilots. would that be a major job?

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [March 4, 2010, 9:16am UTC](https://forum.phpvms.net/t/how-difficult-would-this-be/2140/2 "2010-03-04T09:16:24Z")

</div>

Like this you mean,

[http://www.easyjetva.com/index.php/pilots](http://www.easyjetva.com/index.php/pilots)

Active / inactive column

Its a if else statement, i dont see no reason why this couldnt be adapted to the avtar

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [March 5, 2010, 2:21pm UTC](https://forum.phpvms.net/t/how-difficult-would-this-be/2140/3 "2010-03-05T14:21:39Z")

</div>

> if($pilot == inactive)
> 
> {
> 
> //Show this badge
> 
> }
> 
> else
> 
> {
> 
> //Show this badge
> 
> }
> 
> }

```
if($pilot == inactive)
{
//Show this badge
}
else
{
//Show this badge
}

```

took out the extra }

i have it in my site, it works, but only for the bottom pilot of each table. How could i fix this?

Cheers

Dan C

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [March 5, 2010, 3:53pm UTC](https://forum.phpvms.net/t/how-difficult-would-this-be/2140/4 "2010-03-05T15:53:15Z")

</div>

```
<?php
 if($pilot == inactive)
{
	echo '<img src="'.SITE_URL.'/lib/skins/cargo/images/inactive.png" width="150" height="58" alt="inactive">';
}

 else
{
	echo '<img src="'.SITE_URL.'/lib/skins/cargo/images/active.png" width="150" height="58" alt="active">';
}
?>

```

That is the code i used, should be fine, as it shows the active, but only at the bottom of each hubs roster.

Cheers

Dan C

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [March 5, 2010, 4:00pm UTC](https://forum.phpvms.net/t/how-difficult-would-this-be/2140/5 "2010-03-05T16:00:59Z")

</div>

I think Brian was just using pseudo-code..

```
if($pilot->retired == 0)
{
// theyre active
}
else
{
// theyre inactive
}

```

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [March 5, 2010, 4:07pm UTC](https://forum.phpvms.net/t/how-difficult-would-this-be/2140/6 "2010-03-05T16:07:57Z")

</div>

```
if($pilot->retired == 1)
{
// theyre inactive
}
else
{
// theyre active
}

```

for some reason I found that nabeel’s code got it wrong, and my active pilots were shown to be inactive when they were active. I have put the fix up. But you can try both ways and see what works for you.

Cheers

Dan C

---

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [March 5, 2010, 9:01pm UTC](https://forum.phpvms.net/t/how-difficult-would-this-be/2140/7 "2010-03-05T21:01:56Z")

</div>

Thanks to all for their input. I think I’ve got the gist of it. After thinking it through, I realize it is probably a bad idea. After all, who wants the world to know how many pilots are there in name only.
