Jump to content

Artjom

Members
  • Posts

    120
  • Joined

  • Last visited

Posts posted by Artjom

  1. I've a questions,

    how can I do

    1. that's in the Briefing shows the firstname and lastname pilot??

    2. tahat's the time-not a single number 1:20 and the conclusions separately at first hours : minutes example: (<?php echo "{$schedule->deptimehours}"; ?>:<?php echo "{$schedule->deptimeseconds}"; ?>)

    • Like 1
  2. Time rotate

    logo_night.png - Night logo (00:00 - 07:00)

    logo_morning.png - Morning logo (07:00 - 12:00)

    logo_day.png - Daily logo (12:00 - 19:00)

    logo_evening.png - Evening logo (19:00 - 00:00)

    This is code:

    <script type="text/javascript">
    function shapka(n)
    {document.write('<img border="0" src="<?php echo SITE_URL?>/lib/skins/YOUR_SKIN_NAME/images/'+n+'.png">');}
    var h=(new Date()).getHours();
    if (h > 23 || h <7) shapka('logo_night');
    if (h > 6 && h < 12) shapka('logo_morning');
    if (h > 11 && h < 19) shapka('logo_day');
    if (h > 18 && h < 24) shapka('logo_evening');
    </script>

  3. Hello, i request any php now

    well i have more one images, and i put 3,4 or more images in my header logo, bat i need a rotate code to make this. Similar a flash.

    Where is cod of my header logo

    i want put more one images rotate in this part.

    Thanks :D

    I have 2 scripts rotation, one works at the time were taken:

    1.gif - Night logo (00:00 - 07:00)

    2.gif - Morning logo (07:00 - 12:00)

    3.gif - daily logo (12:00 - 19:00)

    4.gif - Evening logo (19:00 - 00:00)

    and the other rotates, logo and extradite him gently, and not just appeared ...

    evening ladies script!

  4. Last Location in Badge

    Tested on phpvms 2.1 (940)

    IT DOESN'T WILL WORK IF YOU DIDN'T SEND PIREP!

    core\common\PilotData.class.php

    1. After (LINE 956)

    $pilot = self::getPilotData($pilotid);

    add this code 

    $last_location = PIREPData::getLastReports($pilotid, 1, PIREP_ACCEPTED);

    2. After  (LINE 974)

    $output[] = 'Total Hours: ' . $totalhours;

    add this code

    $output[] = 'Last Location: ' . $last_location->arricao;

    Download: 

    PilotData.class.php

    Should look like this:

    
    1.
    
          $pilot = self::getPilotData($pilotid);
           $last_location = PIREPData::getLastReports($pilotid, 1, PIREP_ACCEPTED); 
          $pilotcode = self::getPilotCode($pilot->code, $pilot->pilotid);
    
    
    
    2.
    
            $output[] = $pilotcode.' '. $pilot->firstname.' '.$pilot->lastname;
            $output[] = $pilot->rank.', '.$pilot->hub;
            $output[] = 'Total Flights: ' . $pilot->totalflights;
            $output[] = 'Total Hours: ' . $totalhours;
           $output[] = 'Last Location: ' . $last_location->arricao;
    
    
    

    post-424-127185988855_thumb.png

    • Like 1
  5. I've solved this problem!

    To change the name Schedules to your language or any other module you need to add this code:

    core\modules\Schedules\Schedules.php(line: 19-20)

    class Schedules extends CodonModule
    {
    public $title = 'Name of your page';  //It was added
    public function index()

  6. hi, this code is not working, pilots can't write names in Russian language (gives characters example: Артём Антипов), the download page has the same problem with Russian does not understand and the Sceudules page has the same problem with Russian ...

  7. At a very good idea, let's try to create such a module, I have been to do something on the similarity but I have not come, it rouses very convenient in that there is no need to be created for each separate type of aircraft flight, I visited this code,but it does not work, can some one can modify

    admin/templates/ops_scheduleform.tpl

    Repace this code: (Line 125)

    <select name="aircraft">
    	<?php
    
    	foreach($allaircraft as $aircraft)
    	{
    		if($aircraft->registration == $schedule->registration)
    			$sel = 'selected';
    		else
    			$sel = '';
    
    		echo '<option value="'.$aircraft->id.'" '.$sel.'>'.$aircraft->name.' ('.$aircraft->registration.')</option>';
    	} ?>
    	</select>
    

    To this code:

    <?php
    
                   foreach($allaircraft as $aircraft)
                   {
                           if($aircraft->registration == $schedule->registration)
                                   $sel = 'selected';
                           else
                                   $sel = '';
    
                           echo '<input name="aircraft" type="checkbox" value="'.$aircraft->id.'" '.$sel.'>'.$aircraft->name.' ('.$aircraft->registration.')<br>';
                   } ?>

    And you get in this form (but how to keep two aircraft about the trip has not been done, can anyone ever be able to help us in this issue?)

    post-424-127137306403_thumb.jpg

  8. The module is really not in use since the release of version 2.0 as the function is built into the fsacars module and deposits the stat in the database. I am not sure if the function is working with kACARS, but if it is not it probably would not be a big deal to adjust it. it is just a matter of extracting the info from the database and displaying it as you wish.

    Thanks! :P

  9. @ ARTJOM - Not sure what you mean, the script wwas reposted with an included license....

    @ Tom - You are correct, but after watching one individual start to sell a script he was not totally responsible for writing, and then also want to charge to install it I figured it was just a matter of time. I want everyone to be able to use the work I am responsible for, not just the ones that have a few dollars to spend. I realize there is always going to be someone that uses other peoples work in a way that may not be proper, I believe adding the license gets me closer to my goal. I hope you understand. B)

    Thanks! Excelent script! :rolleyes:

×
×
  • Create New...