# Layout

**URL:** <https://forum.phpvms.net/t/layout/3311>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [August 27, 2010, 11:55pm UTC](https://forum.phpvms.net/t/layout/3311 "2010-08-27T23:55:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Connor1994](https://forum.phpvms.net/user_avatar/forum.phpvms.net/connor1994/32/84_2.png) [@Connor1994](https://forum.phpvms.net/u/Connor1994)\
**Post date:** [August 27, 2010, 11:55pm UTC](https://forum.phpvms.net/t/layout/3311/1 "2010-08-27T23:55:38Z")

</div>

Hi all, posted previously about how to go around getting something like this:

Never really got a strong response, Nabeel suggested something like:

```
<table>
 <tr>
       <td>flight num</td>
       ...
       <td>deprt city</td>
       <?php
       // We are gonna loop each day of the week
       for($dayofweek = 0; $dayofweek < 7; $dayofweek++)
       {
               // echo our column opening
               echo '<td>';

               // Check if $i (the current day of week) exists
               if(substr_count($schedule->daysofweek, $dayofweek) > 0)
               { 
                       // there is a flight for sunday , so echo that plane icon out
                       echo 'plane icon';
               }

               // Close that column
               echo '</td>';

       }
       ?>
       <td>arrival time</td>
       ...
 </tr>
</table>

```

I am not the best at coding, could someone please give me some sort of instructions ?

I would like it to look like the picture although not exact as it looks like I would be asking for too much then

---

<div class="post-metadata">

**Author:** ![simpilot](https://forum.phpvms.net/user_avatar/forum.phpvms.net/simpilot/32/26_2.png) [@simpilot](https://forum.phpvms.net/u/simpilot)\
**Post date:** [August 28, 2010, 2:03am UTC](https://forum.phpvms.net/t/layout/3311/2 "2010-08-28T02:03:49Z")

</div>

I did this for [jet2virtual.org](http://jet2virtual.org) when it was in operation. It is a bit cumbersome and could be refined but serves the purpose. You will have to change the image links.

[http://pastebin.com/Ka5MEtaZ](http://pastebin.com/Ka5MEtaZ)

It will produce something like this -\> [http://www.simpilotgroup.com/skins/index.php/Schedules](http://www.simpilotgroup.com/skins/index.php/Schedules)

Be sure to have the skin set to jet2org…

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [August 28, 2010, 2:21am UTC](https://forum.phpvms.net/t/layout/3311/3 "2010-08-28T02:21:11Z")

</div>

Thank you for that simpilot. I’ll will try that when i get home. Becasue i been looking something like this for a while. Thanks for sharing simpilot. +1 for your rep

---

<div class="post-metadata">

**Author:** ![Connor1994](https://forum.phpvms.net/user_avatar/forum.phpvms.net/connor1994/32/84_2.png) [@Connor1994](https://forum.phpvms.net/u/Connor1994)\
**Post date:** [August 28, 2010, 9:18am UTC](https://forum.phpvms.net/t/layout/3311/4 "2010-08-28T09:18:01Z")

</div>

Thanks a million, exactly what i was looking for :L

---

<div class="post-metadata">

**Author:** ![Tylor\_Eddy](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tylor_eddy/32/48_2.png) [@Tylor\_Eddy](https://forum.phpvms.net/u/Tylor_Eddy)\
**Post date:** [January 24, 2011, 12:08am UTC](https://forum.phpvms.net/t/layout/3311/5 "2011-01-24T00:08:21Z")

</div>

Just stumbled across this layout, looks amazing, anyone able to share this?, your link is dead simpilot

---

<div class="post-metadata">

**Author:** ![Tylor\_Eddy](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tylor_eddy/32/48_2.png) [@Tylor\_Eddy](https://forum.phpvms.net/u/Tylor_Eddy)\
**Post date:** [January 24, 2011, 12:12am UTC](https://forum.phpvms.net/t/layout/3311/6 "2011-01-24T00:12:46Z")

</div>

Just stumbled across this layout, looks amazing, anyone able to share this?, your link is dead simpilot

ps. sorry for the double post

---

<div class="post-metadata">

**Author:** ![TAV1702](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tav1702/32/41_2.png) [@TAV1702](https://forum.phpvms.net/u/TAV1702)\
**Post date:** [January 24, 2011, 2:43am UTC](https://forum.phpvms.net/t/layout/3311/7 "2011-01-24T02:43:07Z")

</div>

Hi Tylor. That pastebin is long gone. It was from August I believe. That is a nice little ditty though. I never saw it before.

---

<div class="post-metadata">

**Author:** ![Tylor\_Eddy](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tylor_eddy/32/48_2.png) [@Tylor\_Eddy](https://forum.phpvms.net/u/Tylor_Eddy)\
**Post date:** [January 24, 2011, 6:08am UTC](https://forum.phpvms.net/t/layout/3311/8 "2011-01-24T06:08:30Z")

</div>

> Hi Tylor. That pastebin is long gone. It was from August I believe. That is a nice little ditty though. I never saw it before.

Its a shame, it looks stunning, clean layout and easier to use than the default setup, if anyone has this code, or something similar, and is willing to share, don’t hesitate ! lol

---

<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:** [January 25, 2011, 5:18am UTC](https://forum.phpvms.net/t/layout/3311/9 "2011-01-25T05:18:20Z")

</div>

Look at the code I had posted… that’s the basic starting point for that

---

<div class="post-metadata">

**Author:** ![Tylor\_Eddy](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tylor_eddy/32/48_2.png) [@Tylor\_Eddy](https://forum.phpvms.net/u/Tylor_Eddy)\
**Post date:** [January 27, 2011, 1:36am UTC](https://forum.phpvms.net/t/layout/3311/10 "2011-01-27T01:36:05Z")

</div>

> Look at the code I had posted… that’s the basic starting point for that

Thanks Nabeel, i was keen to get some developed code as i have a very limited knowledge with developing tables, i can edit, move things around and thats about it, im not sure where to start with your code, if you could help nudge me in the right direction along the way that’d be great, and id learn alot out of it as well.

Cheers

---

<div class="post-metadata">

**Author:** ![Cor](https://forum.phpvms.net/user_avatar/forum.phpvms.net/cor/32/96_2.png) [@Cor](https://forum.phpvms.net/u/Cor)\
**Post date:** [January 27, 2011, 7:38pm UTC](https://forum.phpvms.net/t/layout/3311/11 "2011-01-27T19:38:46Z")

</div>

Too bad the code is not availible at this moment anymore. I really like it too.

Maybee somebody has something lying around:-)

Regards,

Cor
