HighFlyerPL185 Posted January 16, 2013 Report Posted January 16, 2013 I'm trying to seperate pilot roster into different sections, using jQuery tabs, however I have completely no idea where to start, or how the pilot roster works on phpVMS (never looked at the roster in detail). Basically, I want each tab to stand for a hub, i.e Belfast Aldergrove, London Gatwick, so on, and quite obviously, each tab would display pilots at that respective hub. I assume that pilots_list.tpl does a foreach or something for hubs, because the default code works for all of the hubs displayed on the list. I've done this so far, but it just merely replaces the titles of the hubs, and does not work at all. <div class="usual"> <ul class="idTabs"> <li><a href="#<?php echo $title?>" class="selected"><?php echo $title?></a></li> </ul> <div id="#<?php echo $title?>"> <!-- Should take the title of the first hub? --> <!-- Rest of the code, can interpret the default code, I've just styled it --> </div> </div> 1 Quote
freshJet Posted January 16, 2013 Report Posted January 16, 2013 Did you actually include the jQuery? Also take the hash out of the id. Quote
HighFlyerPL185 Posted January 16, 2013 Author Report Posted January 16, 2013 Yeah, it is included in the layout template. It works on other pages fine; it doesn't work on this one because there's an individual section for each hub - I don't know how to explain it. Quote
freshJet Posted January 17, 2013 Report Posted January 17, 2013 Put it in that file too, it will only work for the files you place it in... Quote
HighFlyerPL185 Posted January 17, 2013 Author Report Posted January 17, 2013 Put it in that file too, it will only work for the files you place it in... It does actually work on all other pages, but I'll try that. Quote
HighFlyerPL185 Posted January 18, 2013 Author Report Posted January 18, 2013 Still haven't figured out a way to do this, anyone got any clue? Quote
Members Vangelis Posted July 12, 2013 Members Report Posted July 12, 2013 Hello i just saw your message, If you are still arround this is my template i am using this tabs qith jqueryhttp://jqueryui.com/tabs/ Do a litle reverse engeneer in the tpl files and you will find how i have done it 2 tips 1 tip jquery is in corehtmlhead add it to your template 2 tabc code is in profile_main.tpl If you have any questions tell me upload.zip 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.