Jump to content

lorlandi

Members
  • Posts

    173
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by lorlandi

  1. Hi, for example these are in my VA Expenses

    Staff Salary Monthly

    Marketing Monthly

    Spare parts Monthly

    Ramp Cargo Per Flight

    Insurance Monthly

    Training Monthly

    Engineering Training Monthly

    Depreciation Percent (per flight)

    Leasing Monthly

    Office Mintenance Monthly

    Office Supplies Monthly

    Taxes Percent (month)

    Regards

    • Like 1
  2. Hi, i had the problem with days of week too long and also with hours the format is 12:00 EST, all of my pages are in spanish.

    The solution for this detail was add a little command like this:

    $departure = $schedule->depicao;

    echo '<tr>';

    echo '<td><center>'.$schedule->arricao.'</center></td>';

    echo '<td><center>'.$schedule->flightnum.'</center></td>';

    $aircraft = OperationsData::getAircraftInfo($schedule->aircraft);

    echo '<td><center>'.$aircraft->icao.'</center></td>';

    $idmaximo1 = Util::GetDaysCompact($schedule->daysofweek);

    $cadena1 = $idmaximo1;

    $trozo1 = substr($cadena1, 0,2);

    echo '<td><strong><center>'.$trozo1.'</center></strong></td>';

    $idmaximo = $schedule->deptime;

    $cadena = $idmaximo;

    $trozo = substr($cadena, 0,5);

    echo '<td><center>'.$trozo.'</center></td>';

    echo '</tr>';

    $total++;

    In the code ($cadena1, 0,2) you can modify number 2 in order if you like to show the first two letters or alter to 3 in order to show 3 letters

    The same is with $schedule->deptime if you have 12:00 EST you can use thsi code if not just use the original code.

    Regards and i hope to help somebody.

  3. I have a question regarding maintenance of aircraft. We currently have two aircraft entering on maintenance in a few days which will be replaced by two similar aircraft but different callsign to cover scheduled routes, i'll not edit the previous callsign because the statistics system would be affected, i think the only way to do this is to disable the aircraft in maintenance and its scheduled routes.

    To continue the normal service on routes is create new routes with aircraft replacement. Is there any way to have a system for maintenance of aircraft maintaining the same route but changing the complete aircraft.

    Regards

  4. Looks very nice, in my opinion only two things, the live map is too small a little resize will be good, the second is try to adjust the map position because the menu is behind the map when select it, anyway your job is great.

    Regards

  5. Well, after some test finaly the code is working good for to show the total flights on current month, for expert this is easy but for me is a great thing, i added following code on StatsData.class on line 782.

    /**

    * Return the total number of Flights current Month

    *

    *

    */

    public static function Totalflightsmonth()

    {

    $key = 'total_flights_month';

    if($airline_code != '')

    {

    $key .= '_'.$airline_code;

    }

    $total = CodonCache::read($key);

    if($total === false)

    {

    $sql = 'SELECT COUNT(*) AS `total`

    FROM '.TABLE_PREFIX.'pireps p

    WHERE month(p.submitdate) = month(now())

    AND year(p.submitdate) = year(now())';

    $result = DB::get_row($sql);

    if(!$result)

    {

    $total = 0;

    }

    else

    {

    $total = $result->total;

    }

    CodonCache::write($key, $total, '15minute');

    }

    return $total;

    }

    Best regards

  6. Hi, the average pireps per day not display the real information just one by day instead average 8 flights, till now we have 160 pireps thats mean 8 flights average. Someting wrong in some templates on my site??

    Thanks and regards

    Transpolar Virtual Cargo (www.transpolar.cl) #15 on VA Central

  7. Hi, try to move the sentence into this lines

    <td width="50%" >

    <?php include ('fuel.tpl'); ?>

    </td>

    <td width="50%" >

    <?php

    if($schedule->flighttype=='P')

    Also have in mind every time when you upgrade the version (Example ver 930 to 931) the file schedule_briefing.tpl will be replaced for a new one, in my case i have the file in the skin folder located on lib folder.

    That is working for me.

    Regards

  8. Hi, i have problems to edit expenses on admin panel after update to 930 following message appear:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Finance::editexpense1' was given in /home/xxxxxx/transpolar.cl/core/classes/MainController.class.php on line 218

    I created a new expense and try to edit with same resoult.

    Create and delete works ok.

    Regards

×
×
  • Create New...