Jump to content

Shuttle VA

Members
  • Posts

    16
  • Joined

  • Last visited

    Never

Posts posted by Shuttle VA

  1. I need some help with staff logging into the admin center, i am not using the PHPVMS navigation and my nav bar is static so i do not want everyone to see an admin center link. I have all administration resources in one web page, is there a way for staff to log into phpVMS and then get redirected to the admin panel. my goal is to have staff go

    Admin login to website==>login for phpVMS==> redirected to admin panel inside phpVMS

    Thanks, and i know this may not be the clearest explanation so dont be afraid to ask.

  2. Many thanks to all who help with the navigation bar. The site is coded and now all i need is the content, for those of you who are going to view the page source i have the site configured for each page to read a phpVMS created page so staff and others are able to edit without a web edit software. Comments, suggestions, questions are always welcome.

    http://www.shuttleva.com

    Tom

  3. I have my site working now :), now i have to add the bling and by that i mean change the navigation to look good. is there a way to change this code to look like my sites menu bar.

    <a href="<?php echo url('/'); ?>">Home</a>
    <?php
    if(!Auth::LoggedIn())
    {
    // Show these if they haven't logged in yet
    ?>
    
    <a href="<?php echo url('/login'); ?>">Login</a>
    <a href="<?php echo url('/registration'); ?>">Register</a>
    <?php
    }
    else
    {
    // Show these items only if they are logged in
    ?>
    
    <a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>
    
    <?php
    }
    ?>
    
    <a href="<?php echo url('/pilots'); ?>">Pilots</a>
    <a href="<?php echo url('/acars') ?>">Live Map</a>
    <?php echo $MODULE_NAV_INC;?>
    <?php
    if(Auth::LoggedIn())
    {
    if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
    {
    	echo '
    <a href="'.fileurl('/admin').'">Admin Center</a></li>';
    }
    ?>
    <?php
    $admin = ExamsData::check_admin(Auth::$userinfo->pilotid);
                    if ($admin->admin_level >= '1')
          {echo '<a href="'.url('/Exams_admin').'">EXAMCenter Admin</a>';}
    ?>
    
    <a href="<?php echo url('/Exams') ?>">EXAMCenter</a>
    <a href="<?php echo url('/logout'); ?>">Log Out</a></li>
    <?php
    }
    ?>
    

    site menu bar can be seen at http://www.shuttleva.com

    Thanks

  4. ok got the basic navigation working ;D yet i have yet to figure out how to edit it to the style of the rest of my menus, i will leave the basic nav alone and up on the web so you can see. i have the core_navigation.tpl in my custom skin folder looking like this

    <li><a href="<?php echo url('/'); ?>">home</a></li>
    
    <?php
    if(!Auth::LoggedIn())
    {
    // Show these if they haven't logged in yet
    ?>
    
    <li><a href="<?php echo url('/login'); ?>">Login</a></li>
    
    <li><a href="<?php echo url('/registration'); ?>">Register</a></li>
    
    <?php
    }
    else
    {
    // Show these items only if they are logged in
    ?>
    
    <li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>
    
    <?php
    }
    ?>
    
    <li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li>
    
    <li><a href="<?php echo url('/acars') ?>">Live Map</a></li>
    
    <?php echo $MODULE_NAV_INC;?>
    <?php
    if(Auth::LoggedIn())
    {
    if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
    {
    	echo '
    <li><a href="'.fileurl('/admin').'">Admin Center</a></li>';
    }
    ?>
    
    
    
    <li><a href="<?php echo url('/logout'); ?>">Log Out</a></li>
    <?php
    }
    ?>

    my menus are in this format

    <div id="wb_MenuBar1" style="position:absolute;left:0px;top:223px;width:750px;height:25px;z-index:2001;" align="left">
    <script type="text/javascript">
    <!--
    var wbMenuMenuBar1 =
    [
    [null, 'Home', 'http://www.shuttleva.com/phpVMS/index.php/', '_self', 'Home'],
    [null, 'Pilot Center', 'http://www.shuttleva.com/phpVMS/index.php/profile', '_self', 'Pilot Center'],
    [null, 'Pilots', 'http://www.shuttleva.com/phpVMS/index.php/pilots', '_self', 'Pilots'],
    [null, 'Live Map', 'http://www.shuttleva.com/phpVMS/index.php/acars', '_self', 'Live Map'],
    [null, 'Login', 'http://www.shuttleva.com/phpVMS/index.php/login', '_self', 'Login'],
    [null, 'Log Out', 'http://www.shuttleva.com/phpVMS/index.php/logout', '_self', 'Log Out'],
    [null, ' ', null, '_self', ' '],
    [null, ' ', null, '_self', ' '],
    [null, ' ', null, '_self', ' '],
    [null, ' ', null, '_self', ' '],
    [null, ' ', null, '_self', ' ']
    ];
    -->
    </script>
    <div id="MenuIDMenuBar1"></div>
    <script type="text/javascript">
    <!--
    cmDraw('MenuIDMenuBar1', wbMenuMenuBar1, 'hbr', cmThemeShadedBlue, 'ThemeShadedBlue');
    -->
    </script>
    </div>
    

    does anyone have a clue what needs to be done to integrate. All help is appreciated.

    phpVMS is at http://www.shuttleva.com/phpVMS

    home page is at http://www.shuttleva.com/index.php

    Thanks again

    Tom

    tbergman@shuttleva.com

  5. took the commas out, here is the code now, im still confused but thats normal, i think my error is when i follow the skinning tutorial i cannot find the

    In your navigation <ul>, place:
    
    <?php 
       Template::Show('core_navigation.tpl');
    ?>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Shuttle Virtual Airlines</title>
    <meta name="generator" content="Shuttle Virtual Airlines">
    <style type="text/css">
    div#container
    {
       width: 750px;
       position: relative;
       margin-top: 0px;
       margin-left: auto;
       margin-right: auto;
       text-align: left;
    }
    body
    {
       text-align: center;
       margin: 0;
    }
    </style>
    <script type="text/javascript" src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/jscookmenu.js"></script>
    <link rel="stylesheet" href="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/ThemeShadedBlue/theme.css" type="text/css">
    <script type="text/javascript" src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/ThemeShadedBlue/theme.js"></script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <div id="container">
    <div id="wb_Image1" style="position:absolute;left:0px;top:0px;width:749px;height:200px;z-index:0;" align="left">
    <img src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/images/topbanner.jpg" id="Image1" alt="" align="top" border="0" style="width:749px;height:200px;"></div>
    <div id="wb_Text1" style="position:relative;margin-left:auto;margin-right:auto;width:750px;top:223;height:10px;z-index:4;" align="center">
    <font style="font-size:11px" color="#000000" face="Arial">PIREP/CARS software powered by <a href="http://www.phpvms.net" target="_blank">phpVMS</a></font></div>
    <div id="wb_MenuBar1" style="position:absolute;left:0px;top:233px;width:230px;height:25px;z-index:2001;" align="left">
    <script type="text/javascript">
    <!--
    var wbMenuMenuBar1 =
    [
    	[null 'Home' './index.php' '_self' 'Home']
          <?php 
          if(Auth::LoggedIn() == true)
          { ?>
          [null 'Pilot Center' '.<?php echo url('profile');?> '_self' 'Pilot Center']
          } ?>
          <?php 
          if(Auth::LoggedIn() == false)
          { ?>
          [null 'Log In' '.<?php echo url('login');?>' '_self' 'Log In']
          [null 'Register' '.<?php echo url('registration');?>' '_self' 'Register']
          <?php } ?>
          [null 'Pilots' '.<?php echo url('pilots');?>' '_self' 'Pilots']
          [null 'Live Map' '.<?php echo url('acars');?>' '_self' 'Live Map']
          <?php
          if(Auth::LoggedIn())
          {
          if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
          { ?>
          [null 'Admin Panel' '.<?php echo fileurl('/admin');?>' '_self' 'Admin Panel']   
          <?php 
          }
                    }
          ?>
    ];
    -->
    </script>
    <div id="MenuIDMenuBar1"></div>
    <script type="text/javascript">
    <!--
    cmDraw('MenuIDMenuBar1', wbMenuMenuBar1, 'hbr', cmThemeShadedBlue, 'ThemeShadedBlue');
    -->
    </script>
    </div>
    <div id="wb_Marquee1" style="position:absolute;left:0px;top:200px;width:750px;height:20px;background-color:#0000A0;z-index:2;" align="left">
    <marquee direction="up" height="20" scrolldelay="100" scrollamount="1" behavior="scroll" loop="0" style="background-color:#0000A0;" id="Marquee1"><font style="font-size:13px" color="#FFFFFF" face="Arial">Shuttle Virtual Airlines, website revision 3.0.</font></marquee></div>
    <hr noshade="noshade" size="2" width="750" color="#000000" id="Line1" style="margin:0;padding:0;position:absolute;left:0px;top:220px;width:750px;height:2px;z-index:3">
    </div>
    <div id="mycontent" style="position:relative;top:260px;margin-left:auto;margin-right:auto;width:750px;height:auto;z-index:4">

    Tom

  6. I am having some trouble with the navigation while skinning phpVMS, i have the core of the system in place but don't know what code and where to put it for the navigation. If someone can also help with what code and where to put the code for the powered by phpVMS. current code is as follows

    header.tpl

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Shuttle Virtual Airlines</title>
    <meta name="generator" content="Shuttle Virtual Airlines">
    <style type="text/css">
    div#container
    {
       width: 750px;
       position: relative;
       margin-top: 0px;
       margin-left: auto;
       margin-right: auto;
       text-align: left;
    }
    body
    {
       text-align: center;
       margin: 0;
    }
    </style>
    <script type="text/javascript" src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/jscookmenu.js"></script>
    <link rel="stylesheet" href="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/ThemeShadedBlue/theme.css" type="text/css">
    <script type="text/javascript" src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/ThemeShadedBlue/theme.js"></script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <div id="container">
    <div id="wb_Image1" style="position:absolute;left:0px;top:0px;width:749px;height:200px;z-index:0;" align="left">
    <img src="http://www.shuttleva.com/phpVMS/lib/skins/crystal1/images/topbanner.jpg" id="Image1" alt="" align="top" border="0" style="width:749px;height:200px;"></div>
    <div id="wb_MenuBar1" style="position:absolute;left:0px;top:223px;width:230px;height:25px;z-index:2001;" align="left">
    <script type="text/javascript">
    <!--
    var wbMenuMenuBar1 =
    [
    [null, 'Home', './index.php', '_self', 'Home']
    ];
    -->
    </script>
    <div id="MenuIDMenuBar1"></div>
    <script type="text/javascript">
    <!--
    cmDraw('MenuIDMenuBar1', wbMenuMenuBar1, 'hbr', cmThemeShadedBlue, 'ThemeShadedBlue');
    -->
    </script>
    </div>
    <div id="wb_Marquee1" style="position:absolute;left:0px;top:200px;width:750px;height:20px;background-color:#0000A0;z-index:2;" align="left">
    <marquee direction="up" height="20" scrolldelay="100" scrollamount="1" behavior="scroll" loop="0" style="background-color:#0000A0;" id="Marquee1"><font style="font-size:13px" color="#FFFFFF" face="Arial">Shuttle Virtual Airlines, website revision 3.0.</font></marquee></div>
    <hr noshade="noshade" size="2" width="750" color="#000000" id="Line1" style="margin:0;padding:0;position:absolute;left:0px;top:220px;width:750px;height:2px;z-index:3">
    </div>
    <div id="mycontent" style="position:relative;top:250px;margin-left:auto;margin-right:auto;width:750px;height:auto;z-index:4">

    footer.tpl

          </div>
       </body>
    </html>

    my phpVMS directory is located at http://www.shuttleva.com/phpVMS

    Thanks for the help

    Tom

    tbergman@shuttleva.com

×
×
  • Create New...