Jump to content

Dominican Airways

Members
  • Posts

    68
  • Joined

  • Last visited

Posts posted by Dominican Airways

  1. Okay, so you want to divide the planes into classes and basically at the last tab show the details. Do you have any templates already made? or you want to do this from scratch?

    I don't have anything made I want to start from scratch or if there is something I can use to go off

  2. Hello,

    I think you would be able to add an option to the registration page. You can go into the Admin Center/Site Settings/Profile Fields and set up a new Profile Field and put the Hub Info there. Make sure If you have more then One Hub position available you select Drop Down and also select Show on Registration.

    If you want to create another type of Application form for Hub Manager with more information you could use a site called JotForm which is here - http://www.jotform.com/. I have used their free services before and I was very impressed with the outcome of the Forms I used. You will be able to copy the code directly into a Page built from the Admin Center and it will display in that page. There are plenty of Options for JotForm.

    Hope this information helps.

    Thank you so much helped a bunch :D

  3. SOLVED

    Does anyone know how I can add another application for example for Hub Manager? Or would I be able just to add an option when they apply for pilot asking if they want to apply for one of the staff positions?

    • Like 1
  4. I made an account on VA central and added my airline to it (Dominican Airways) and I changed my e-mail on the account to something else, But now when I log into the account the VA's that I have are not on there or anything and I can't manage my account so can someone help me please?

  5. Good morning, here's the code.

    Insert it in your frontpage_main.tpl

    <?php
    		 $flights = PIREPData::getRecentReportsByCount(10);																																	
    		 $string = "";
    		 foreach($flights as $flight)
    		 {	
    						 $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+';
    		 }																																	
    ?>
    <img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=wls&MR=900&MX=720x360&PM=b:disc7%2b%25U" width="725 px" /><br />
    Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.voegolv.net" target="_blank">Luiz Fernando </a>
    <!--Start Table-->
    <?php
    $count = 10;
    $pireps = PIREPData::getRecentReportsByCount($count);
    ?>
    <table width="725 px" border="1" bordercolor="#FFFFFF">
    <thead>
    	 <tr align="center" valign="middle" bgcolor="#7D95AF">
    	 <th>Flight #</th>
    	 <th>Departure</th>
    	 <th>Arrival</th>
    	 <th>Duration</th>
    	 <th>Pilot</th>
    	 <th>Landing Rate</th>
    	 <th>Aircraft</th>
    	 </tr>
    </thead>
     <tbody>
    
    <?php
    if(count($pireps) > 0)
    {
    foreach ($pireps as $pirep)
    {
     $pilotinfo = PilotData::getPilotData($pirep->pilotid);
     $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
     echo "<tr>";
     echo "<td align=center> $pirep->code $pirep->flightnum </td>";
     echo "<td align=center> $pirep->depicao </td>";
     echo "<td align=center> $pirep->arricao </td>";
     echo "<td align=center> $pirep->flighttime </td>";
     echo "<td align=center> $pilotid $pilotinfo->firstname $pilotinfo->lastname </td>";
     echo "<td align=center> $pirep->landingrate </td>";
     echo "<td align=center> $pirep->aircraft </td>";
     echo "</tr>";
    }
    }
    else
    {
     echo "<tr><td>There are no recent flights!</td></tr>";
    }
    ?>
    </table>
    </td>
    

    This you insert in your Profile_main.tpl,

    it reports the last 10 flights each pilot and shows how many days lack to Prevent Them from being retired

    <?php
     $flights = PIREPData::getLastReports($userinfo->pilotid, '10');
     $string = "";
     foreach($flights as $flight)
     {
     $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+';
     }
     ?>
    </p>
    		 <p align="center"><img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=520x260&PM=pemr:disc10:red%2b%22%25I%22:white&PC=blue" /><br />
    		 </p>
    		 <div class="alert alert-info">
    			 <?php $totaldays = Config::Get('PILOT_INACTIVE_TIME');
    
    
    										 {
    						 ?>
    			 <?php
    				 if ($userinfo->lastpirep == '0000-00-00 00:00:00') {
    						 echo 'Voce não realizou ainda nenhum voo na Gol Virtual!';
    				 }
    				 else {
    						 $datebefore1 = substr($userinfo->lastpirep, 0, 10);
    						 $datetoday2 = date("Y-m-d");
    						 $datebefore3 = strtotime($datebefore1);
    						 $datetoday4 = strtotime($datetoday2);
    						 $newdate = $datetoday4-$datebefore3;
    						 $lastpirep = floor($newdate/(60*60*24));
    						 $daysleft = $totaldays-$lastpirep;
    						 echo 'your last flight was ';
    								 if ($lastpirep == 0) { echo 'Today'; }
    								 else if ($lastpirep == 1) { echo 'Yesterday'; }
    								 else {
    										 echo $lastpirep . ' day(s) ago.';
    								 }
    								 echo '&nbspVoce tem ';
    								 if ($daysleft == 0) { echo 'Our system has identified the absence of flights within 30 days, carrying his status was changed to inactive!'; }
    								 else {
    										 echo $daysleft . '&nbspdays to make your flight and prevent your registration is changed to inactive.';
    								 }
    
    
    				 }
    				 ?>
    			 <?php
    }
    ?>
    

    GLO0004.png

    Thank you

  6. Oke,

    here it is.

    I downloaded this some time ago.

    I had tried to find it again, but could not find it.

    So this is the deal.

    You need a folder, for instance bannerimages. In there you put your banners and the rotate.php.

    You do not need to change anything in the file.

    And add as many banners as you want.

    I did put a few examples in it.

    You upload that to your web.

    Next you change or add something to your css file.

    For instance in the part of the bannerimages.

    #bannercontainer {
    width: 920px;
    height: 232px;
    background: #000 url(../bannerimages/rotate.php) no-repeat 50% 0;
    background-color: #000066;
    z-index: 3;
    background-position: right;
    }
    

    Instead of adding a link to an jpg, you add the link to the rotate.php file.

    background: #000 url(../bannerimages/rotate.php) no-repeat 50% 0;
    

    Upload the changed css, and start reloading your website.

    Have fun.

    Note, I have not written that code, nor do I change things.

    I just uploaded some images to my site, where you can see what it does do.

    Visit www.citylink-va.com and hit the reload button a few times.

    Greetings,

    RobB

    Thank you

  7. It looks like you're using a free host due to your dot.tk domain name.

    phpVMS and free hosts don't play very well because free hosts are horrible.

    I recommend fivedev. It costs 7$ a month, the equivalent of two starbucks coffees.

    Is there any way to fix it though?

  8. Hello I keep getting this error on my site I think that it's from phpVMS

    PHP Error Message

    Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>Lost connection to MySQL server at 'reading initial communication packet', system error: 111 (2013)</b></font>]<br />[<font color=000000></font>]</font><p> </blockquote><hr noshade color=dddddd size=1> thrown in/home/a5887766/public_html/core/classes/ezdb/ezdb_mysql.class.php on line 99

    http://dominicanair.tk/ that is my site's website please someone help

  9. Thats an easy one :)

    Simply go to you admin panel within PHPVMS and go to "Site and Settings" then to "Profile Fields" then finally "Add custom field" top left.

    Make sure to choose "available in registration".

    Cheers!

    M

    Thanks, but can you tell me how to add the drop down menu because it has the option for that but I just don't get how to

×
×
  • Create New...