BaRBeR Posted March 1, 2013 Report Posted March 1, 2013 Hi All, I am currently getting the no route passed error when bidding for a flight. I understand this is due to unneeded javascript in the layout.tpl but i cant find any. Any help would be appreciated. Here is my layout code: <link href='http://fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet' type='text/css'> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <link href="http://www.xlava.co.uk/en/lib/skins/XL%20VA/menu.css" rel="stylesheet" type="text/css" /> <link href="css/modal.css" rel="stylesheet" type="text/css" /> <head> <? echo $page_htmlreq; ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $page_title; ?></title> <link rel="stylesheet" href="http://www.xlava.co.uk/en/lib/skins/XL%20VA/nivo-slider/themes/default/default.css" type="text/css" media="screen" /> <link rel="stylesheet" href="http://www.xlava.co.uk/en/lib/skins/XL%20VA/nivo-slider/themes/light/light.css" type="text/css" media="screen" /> <link rel="stylesheet" href="http://www.xlava.co.uk/en/lib/skins/XL%20VA/nivo-slider/nivo-slider.css" type="text/css" media="screen" /> <link rel="stylesheet" href="http://www.xlava.co.uk/en/lib/skins/XL%20VA/nivo-slider/style.css" type="text/css" media="screen" /> <style type="text/css"> #body { margin: auto; padding: 0px; width: 968px; margin-top: 10px; } #header { background-image: url(http://www.xlava.co.uk/en/lib/skins/XL%20VA/header.png); height: 92px; } #main_menu_cont { width: 968px; font-family: 'Comfortaa', cursive; margin-top: 20px; z-index: 1000; } #main-cont { width:958px; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; /* Borders */ -moz-box-shadow:inset 0px 0px 1px #edf9ff; -webkit-box-shadow:inset 0px 0px 1px #edf9ff; box-shadow:inset 0px 0px 1px #edf9ff; float: left; background-color: #FFF; border-color: #CCC; border-style: solid; border-width: thin; padding-left: 5px; padding-right: 5px; margin-bottom: 20px; margin-top: 20px; padding: 5; font-size: 12px; font-family: 'Comfortaa', cursive; } hr.drop_shadow { height: 10px; border: 1; box-shadow: inset 0 9px 9px -3px rgba(141,179,134,0.8); -webkit-border-radius: 5px; -moz-border-radius: 5px; -ms-border-radius: 5px; -o-border-radius: 5px; border-radius: 5px; color: #000; } #join { float: left; height: 110px; width: 600px; margin-top: 20px; } #news { width:320px; border-style:solid; border-width: thin; border-color:#005CA5; float: right; -moz-border-radius-bottomright: 5px; border-bottom-right-radius: 5px; -moz-border-radius-bottomleft: 5px; border-bottom-left-radius: 5px; margin-top: 20px; margin-left: 20px; } #news2 { width:320px; border-style:solid; border-width: thin; border-color:#005CA5; float: right; -moz-border-radius-bottomright: 5px; border-bottom-right-radius: 5px; -moz-border-radius-bottomleft: 5px; border-bottom-left-radius: 5px; margin-top: 20px; margin-left: 20px; } #sidebar_cont { width:230px; float:right; } #news-top { background-color:#005CA5; color:#FFF; padding: 5; } #footer { background-image:url(http://www.xlava.co.uk/en/lib/skins/XL%20VA/img/footer.png); background-repeat:inherit; vertical-align:bottom; height: 150px; width: 100%; margin: auto; float: left; } #notams { border-style: solid; border-width: thin; border-color: #005CA5; -moz-border-radius-bottomright: 5px; border-bottom-right-radius: 5px; -moz-border-radius-bottomleft: 5px; border-bottom-left-radius: 5px; -moz-box-shadow: 0 0 1px 1px #888; -webkit-box-shadow: 0 0 1px 1px#888; box-shadow: 0 0 1px 1px #888; margin-top: 20px; height: 10px; } #insidenews { padding: 5px; }.main { background: #aaa url(../images/bg.jpg) no-repeat; width: 800px; height: 600px; margin: 50px auto; } .panel { background-color: #444; height: 34px; padding: 10px; } .panel a#login_pop, .panel a#join_pop { border: 2px solid #aaa; color: #fff; display: block; float: right; margin-right: 10px; padding: 5px 10px; text-decoration: none; text-shadow: 1px 1px #000; -webkit-border-radius: 10px; -moz-border-radius: 10px; -ms-border-radius: 10px; -o-border-radius: 10px; border-radius: 10px; } a#login_pop:hover, a#join_pop:hover { border-color: #eee; } .overlay { background-color: rgba(0, 0, 0, 0.6); bottom: 0; cursor: default; left: 0; opacity: 0; position: fixed; right: 0; top: 0; visibility: hidden; z-index: 1; -webkit-transition: opacity .5s; -moz-transition: opacity .5s; -ms-transition: opacity .5s; -o-transition: opacity .5s; transition: opacity .5s; } .overlay:target { visibility: visible; opacity: 1; } .popup { background-color: #fff; border: 3px solid #fff; display: inline-block; left: 50%; opacity: 0; padding: 15px; position: fixed; text-align: justify; top: 40%; visibility: hidden; z-index: 10; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); transform: translate(-50%, -50%); -webkit-border-radius: 10px; -moz-border-radius: 10px; -ms-border-radius: 10px; -o-border-radius: 10px; border-radius: 10px; -webkit-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset; -moz-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset; -ms-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset; -o-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset; box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset; -webkit-transition: opacity .5s, top .5s; -moz-transition: opacity .5s, top .5s; -ms-transition: opacity .5s, top .5s; -o-transition: opacity .5s, top .5s; transition: opacity .5s, top .5s; } .overlay:target+.popup { top: 50%; opacity: 1; visibility: visible; } .close { background-color: rgba(0, 0, 0, 0.8); height: 30px; line-height: 30px; position: absolute; right: 0; text-align: center; text-decoration: none; top: -15px; width: 30px; -webkit-border-radius: 15px; -moz-border-radius: 15px; -ms-border-radius: 15px; -o-border-radius: 15px; border-radius: 15px; } .close:before { color: rgba(255, 255, 255, 0.9); content: "X"; font-size: 24px; text-shadow: 0 -1px rgba(0, 0, 0, 0.9); } .close:hover { background-color: rgba(64, 128, 128, 0.8); } .popup p, .popup div { margin-bottom: 10px; } .popup label { display: inline-block; text-align: left; width: 120px; } .popup input[type="text"], .popup input[type="password"] { border: 1px solid; border-color: #999 #ccc #ccc; margin: 0; padding: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; -ms-border-radius: 2px; -o-border-radius: 2px; border-radius: 2px; } .popup input[type="text"]:hover, .popup input[type="password"]:hover { border-color: #555 #888 #888; } .sidebar_cont { font-family: 'Comfortaa', cursive; } .partners_top{ width:950px; background-color: #005CA5; padding: 5; color: #FFF; } .partners_main { border-style: solid; border-color: #005CA5; border-width: thin; margin-top: 20px; -moz-border-radius-bottomright: 5px; border-bottom-right-radius: 5px; -moz-border-radius-bottomleft: 5px; border-bottom-left-radius: 5px; float: left; width: 960px; } a:link{ color:#005ca5; } a:visited{ color:#005ca5; } a:hover{ color:#005ca5; } a:focus{ color:#005ca5; } a:active{ color:#005ca5; } .news3 { width:320px; border-style:solid; border-width: thin; border-color:#005CA5; float: right; -moz-border-radius: 5px; border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; margin-top: 20px; margin-left: 20px; font-family: Arial, Helvetica, sans-serif; } .classname { -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; box-shadow:inset 0px 1px 0px 0px #ffffff; -moz-border-radius:6px; -webkit-border-radius:6px; border-radius:6px; border:1px solid #005CA5; display:inline-block; color:#ffffff; font-family:arial; font-size:15px; font-weight:bold; text-decoration:none; margin-left: 35px; padding-top: 6px; padding-right: 24px; padding-bottom: 6px; padding-left: 24px; }.classname:active { position:relative; top:1px; color: #FFF; } </style> <?php /* This is required, so phpVMS can output the necessary libraries it needs */ echo $page_htmlhead; ?> </head> <?php /* This should be the first thing you place after a <body> tag This is also required by phpVMS */ echo $page_htmlreq; ?> <body style="background-image:url(http://www.xlava.co.uk/en/lib/skins/XL%20VA/img/background.jpg); background-repeat:repeat-x;"> <div class="body" id="body"> <div class="header" id="header"></div> <div id="main_menu_cont"> <ul id="menu" style="vertical-align:middle;"> <center><li><a href="/en/index.php" class="drop">Home</a><!-- Begin Home Item --> </li> <!--End Home Nav!--> <li class="menu_right"><a href="#" class="drop">About Us</a> <div class="dropdown_1column align_right"> <div class="col_1"> <ul class="greybox"> <li><a href="http://xlava.co.uk/en/index.php/about">XL Information</a></li> <li><a href="http://xlava.co.uk/en/index.php/staff">Staff Team</a></li> </ul> </div> </div> </li><!-- End 3 columns Item --> <?php if(!Auth::LoggedIn()) { // Show these if they haven't logged in yet ?> <!--Start Reg Menu!--> <li class="menu_right"><a href="<?php echo url('/registration');?>" class="drop">Registration</a> <div class="dropdown_1column align_right"> <div class="col_1"> <ul class="greybox"> <li style="color:#090;"><a href="<?php echo url('/registration');?>" style="color:#090;">Become a Pilot</a></li> <li><a href="http://xlava.co.uk/en/index.php/careers">Careers</a></li> </ul> </div> </div> </li> <?php } ?> <!--End reg menu!--> <!--Start Staff Menu!--> <?php // Only show this column if they're staff. if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { ?> <li class="menu_right"><a href="<?php echo url('/admin');?>" class="drop">Staff Only</a> <div class="dropdown_1column align_right"> <div class="col_1"> <ul class="greybox"> <?php if(Auth::LoggedIn()) { if(Auth::UserInGroup('Administrators')) { echo '<li><a href="'.SITE_URL.'/admin/">Staff Center</a>'; } } ?> </ul> </div> </div> <?php } ?> <li class="menu_right"><a href="" class="drop">Operations</a> <div class="dropdown_1column align_right"> <div class="col_1"> <ul class="greybox"> <li><a href="<?php echo url('/pilots');?>">Pilot Roster</a></li> <li><a href="<?php echo url('/acars');?>">Current Flights</a></li> <?php if(Auth::LoggedIn() == true) { ?> <li><a href="<?php echo url('/schedules');?>">Flight Schedules</a></li> <li><a href="<?php echo url('/dispatch');?>">Dispatch Centre</a></li> <li><a href="<?php echo url('/pireps/filepirep');?>">Manual PIREP</a></li> <?php } ?> </ul> </div> </div> </li> <!--Crew Center!--> <?php if(Auth::LoggedIn() == true) { ?> <li class="menu_right"><a href="<?php echo url('/profile');?>" class="drop">Crew Centre</a> <div class="dropdown_1column align_right"> <div class="col_1"> <ul class="greybox"> <li><a href="#">Event Slots</a></li> <li><a href="#">IFE</a></li> <li><a href="">Expo Track</a></li> <li><a href="">Exam Center</a></li> </ul> </div> </div> </li> <?php } ?> <!--End Crew!--> <!--Training Centre!--> <?php if(Auth::LoggedIn() == true) { ?> <li class="menu_right"><a href="<?php echo url('/profile');?>" class="drop">Training</a> <div class="dropdown_1column align_right"> <div class="col_1"> <ul class="greybox"> <li><a href="<?php echo url('/airbus');?>">Airbus</a></li> <li><a href="http://xlava.co.uk/en/index.php/boeing">Boeing</a></li> </ul> </div> </div> </li> <?php } ?> <!--End Training Centre!--> <!-- Begin Home Item --> <?php if(Auth::LoggedIn() == false) { ?> <li><a href="#login_form" id="pop_menu">Crew Login</a> </li> <?php } ?> <li class="menu_right"><a href="http://xlava.co.uk/en/community/" class="drop">Community</a> <!--End Home Nav!--> <?php if(Auth::LoggedIn() == true) { ?> <li><a href="<?php echo url('/logout');?>">Logout</a> <!--Contact Start!--> <?php } ?> <li class="menu_right"><a href="<?php echo url('/contact');?>" class="drop">Contact Us</a> </li></center> <!--Contact End!--> </ul></div> <!--Slideshow!--> <div id="wrapper"> <div class="slider-wrapper theme-default"> <? Template::Show('pages/script.tpl'); ?> <!--End Slideshow !--> <div class="main-cont" id="main-cont"> <?echo $page_content;?> </div></div> <div class="body" id="body"> <div class="partners_main" id="partners_main"> <div class="partners_top" id="partners_tio">Our Partners</div> <marquee behavior="scroll" direction="left" scrollamount="10"> <a href="http://www.fs-products.net/"><img src="http://www.fs-products.net/images/logos/fsproducts_small.png" width="401" height="101" alt="Flying Bat" /></a><a href="http://uk2000scenery.org/"><img src="http://i5.photobucket.com/albums/y177/mutleys/2010/UK2000SceneryLogo.jpg" alt="uk2000" width="250" height="113" /></a><a href="http://www.captainsim.com"><img src="http://www.simflight.com/wp-content/uploads/2009/12/captainsim-logo.gif" alt="captainsim" width="522" height="65" /></a><a href="http://www.vroute.info/"><img src="http://simflight.com/wp-content/uploads/2009/02/vroutelogo.png" alt="vroute" width="251" height="74" /></a><a href="http://www.simpilotgroup.com/"><img src="http://www.flyhellenicairways.com/lib/images/hel/spg3.png" alt="simpilotgroup" width="350" height="90" /></a> </marquee> </div></div> </div> <div class="footer" id="footer"><center>Copyright XL Virtual Airways 2012. All Rights Reserved. No parts of this website may be reproduced. Powered by <a href="http://www.phpvms.net">PHPVMS</a>. Designed by <a href="http://jordanbarber.co.uk/">Jordan Barber (Virtual Solutions)</a>. </center></div> </div></body> </div> <!-- popup form #1 --> <a href="#x" class="overlay" id="login_form"></a> <div class="popup"> <h2>Welcome Guest!</h2> <p>Please login below...</p> <form name="loginform" action="<?php echo url('/login');?>" method="post"> <?php if(isset($message)) echo '<p class="error">'.$message.'</p>'; ?> <dl> <dt>E-mail Address:</dt> <dd><input type="text" name="email" value="" /> <dt>Password:</dt> <dd><input type="password" name="password" value="" /> <dt></dt> <dd>Remember Me? <input type="checkbox" name="remember" /></dd> <dt></dt> <dd><input type="hidden" name="redir" value="index.php/profile" /> <input type="hidden" name="action" value="login" /> <input type="submit" name="submit" value="Log In" /> <dt></dt> <dd><a href="<?php echo url('Login/forgotpassword'); ?>">I forgot my password</a></dd> </dl> </form> <a class="close" href="#close"></a> </div> </body> </html> Thanks, Jordan Quote
flyalaska Posted March 2, 2013 Report Posted March 2, 2013 That error usual has to do something with a javascript conflict. Quote
Tom Posted March 2, 2013 Report Posted March 2, 2013 You asked me on Skype before posting this and yet you've made none of the changes I pointed out to you... 1 Quote
BaRBeR Posted March 2, 2013 Author Report Posted March 2, 2013 tried them and they didn't work so posted the original code Quote
freshJet Posted March 2, 2013 Report Posted March 2, 2013 I've been having it too, try using this solution to fix it and prevent further errors. Quote
Tom Posted March 2, 2013 Report Posted March 2, 2013 tried them and they didn't work so posted the original code My edits made it closer to valid HTML... that would be a better start. Quote
BaRBeR Posted March 2, 2013 Author Report Posted March 2, 2013 Solved it, some javascript in a separate file. Quote
freshJet Posted March 2, 2013 Report Posted March 2, 2013 Solved it, some javascript in a separate file. What about it? 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.