Jump to content

OmerAslan

Members
  • Posts

    288
  • Joined

  • Last visited

Posts posted by OmerAslan

  1. Hello,

    I made some changes. I add some extra columns from templates page and works good only problen this: I want banner comes till end.

    0cd54de26db54efeab1cadac16fe042f.png

    Here is my code:

    $offset = 0;
    $total = 1;
    $page = 1;
    while($offset < $numschedules) {
        ?>
    <center>
        <h3><?php echo SITE_NAME; ?> Timetable</h3>
    </center>
    <table width="100%" frame="box">
        <tr align="center">
            <?php
                $count = 1;
                while($count <= 1) {
            ?>
    
            <td width="100%" valign="top">
                <table width="100%">
                    <tr bgcolor="#cccccc">
    
                        <td width="13%">Arr</td>
                        <td width="12%">Code</td>
                        <td width="13%">Flight</td>
                        <td width="12%">Type</td>
                        <td width="13%">Freq</td>
                        <td width="12%">Dep. Time</td>
                        <td width="13%">Arr. Time</td>
                        <td width="12%">Duration</td>
                    </tr>
            <?php
                $schedules = TimetableData::get_schedules($offset);
                            foreach($schedules as $schedule) {
                                if($departure <> $schedule->depicao) {
                                    $field = OperationsData::getAirportInfo($schedule->depicao);
                                    echo '<tr>';
                                    echo '<td bgcolor="#cccccc" colspan="5"><b>'.$schedule->depicao.' - '.$field->name.'</b></td>';
                                    echo '</tr>';
                                }
                                $departure = $schedule->depicao;
                                echo '<tr>';
                                echo '<td>'.$schedule->arricao.'</td>';
                                echo '<td>'.$schedule->code.'</td>';
                                echo '<td>'.$schedule->flightnum.'</td>';
                                $aircraft = OperationsData::getAircraftInfo($schedule->aircraft);
                                echo '<td>'.$aircraft->icao.'</td>';
                                echo '<td>'.Util::GetDaysCompact($schedule->daysofweek).'</td>';
                                echo '<td>'.$schedule->deptime.'</td>';
                                echo '<td>'.$schedule->arrtime.'</td>';
                                echo '<td>'.$schedule->flighttime.' Hr/s</td>';
                                echo '</tr>';
                                $total++;
                            }
                            $offset = $offset + 30;
             ?>
                </table>
            </td>
            <?php
                $count++;
                    if($offset >= $numschedules) {
                        while($count <= 1) {
                            echo '<td width="100%" valign="top">
                                        <table width="100%">
                                        <tr bgcolor="#cccccc">
    
                                        <td width="13%">Arr</td>
                                        <td width="12%">Code</td>
                                        <td width="13%">Flight</td>
                                        <td width="12%">Type</td>
                                        <td width="13%">Freq</td>
                                        <td width="12%">Dep. Time</td>
                                        <td width="13%">Arr. Time</td>
                                        <td width="12%">Duration</td>
                                        </tr>
                                        </table>';
                            $count++;
                        }
                    }
                }
            ?>
        </tr>
    </table>
    <center>
        <br />
        <h5>Page <?php echo $page;
                $page++; ?></h5>
    </center>
    <hr />
    <br />
        <?php
    }
            ?>
    Total Flights: <?php echo $total; ?>
    <br /><br />

    Thanks...

  2. On 5/15/2017 at 0:05 AM, OmerAslan said:

    Interesting, I have this module in my crew center and don't have this problem also in regular phpvms 5.5.2 and i have this problem and i couldn't fix it.

    To fix top empty place go to lib/css/toppilot.css and find all %85 make %84 and done...

    But still i don't know how to fix numbers...

  3. Hello,

    Reset Hours option shows for all the pilots,

    AAL030 - found 1 flight hours for number
    AAL134 - found 1 flight hours for number
    AAL161 - found 1 flight hours for number
    AAL169 - found 1 flight hours for number
    AAL173 - found 1 flight hours for number
    AAL192 - found 1 flight hours for number
    AAL204 - found 1 flight hours for number
    AAL209 - found 1 flight hours for number
    AAL255 - found 1 flight hours for number
    AAL260 - found 1 flight hours for number
    AAL262 - found 1 flight hours for number
    AAL1032 - found 1 flight hours for number
    AAL1036 - found 1 flight hours for number
    AAL1041 - found 1 flight hours for number
    AAL1047 - found 1 flight hours for number
    AAL1049 - found 1 flight hours for number
    AAL1054 - found 1 flight hours for number
    AAL1055 - found 1 flight hours for number
    AAL1063 - found 1 flight hours for number
    AAL1066 - found 1 flight hours for number
    ATA001 - found 1 flight hours for number
    AAL1067 - found 1 flight hours for number
    AAL1069 - found 1 flight hours for number
    AAL1070 - found 1 flight hours for number
    AAL1071 - found 1 flight hours for number
    AAL1072 - found 1 flight hours for number
    AAL1073 - found 1 flight hours for number
    AAL1074 - found 1 flight hours for number
    Pilots have a total of 28.00 hours

    Which is not right... Is it normal?

  4. On 5/14/2017 at 11:45 PM, OmerAslan said:

    No matter what i tried didn't go right wat. price is 0... I add this also but no change.

    
    Config::Set('JUMPSEAT_COST', '.25'); //0.25 is the cost

    When i click on Select Airport To Transfer :  dropdown takes some time to open...

    Parkho are you on vacation :D:D:D  I miss you

    I change this code line to the bottom of the page and now working. Only problem is page loading slow. ı have 500 schedules and takes 15-20 seconds to load the page...

    Config::Set('JUMPSEAT_COST', '.25'); //0.25 is the cost

     

  5. Hello All,

    I have American Airlines Virtual and i want to have codeshare flights with other virtual airline. Doesn't make different for me if airline is real world airline or not and schedules are real world schedules or not. If anyone interested about it please send me an email. If we do then i will add your virtual airline name, logo and web address to my main page and i will expect the same. Thanks...

    My website : American Airlines Virtual

    My Email : omeraslan@aalvirtual.com

  6. On 5/2/2017 at 7:38 PM, OmerAslan said:

    Hi Parkho,

    I have two more problems. Please see the picture. Thanks479ca28bea5148f19c3cb3ed87878866.png

    Interesting, I have this module in my crew center and don't have this problem also in regular phpvms 5.5.2 and i have this problem and i couldn't fix it.

  7. On 5/5/2017 at 11:59 AM, OmerAslan said:

    Hi,

    672f7801866546e0a1e6a3174d886f2c.png

    All costs 0 and when i open this pages takes around 15 seconds. I don't know what i did wrong.

    I see 2 errors in error log maybe this can help

    
    [05-May-2017 13:13:48 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/....../core/classes/MainController.class.php on line 218
    [05-May-2017 13:13:48 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'assets' in /home/....../core/classes/MainController.class.php on line 21

     

    No matter what i tried didn't go right wat. price is 0... I add this also but no change.

    Config::Set('JUMPSEAT_COST', '.25'); //0.25 is the cost

    When i click on Select Airport To Transfer :  dropdown takes some time to open...

    Parkho are you on vacation :D:D:D  I miss you

  8. 6 minutes ago, gian1992 said:

    Hello! Sorry again and thank you for patience, i'm working on website and mysqli problem..i found the solution but i need some file on my desktop and i will be at home in a couple of hours! I will update you soon.
    I repeat, i'm alone to develop it..i do my best but i can't test it on any configuration :D

    I need to work to feature page too because some things like auto fp-filler by ivao isn't showed...i will install a forum on my site too...so i can create a bug-search/changelog page.

    Thankyou again!

    Ok my friend. Take you time.

  9. 30 minutes ago, servetas said:

    Didn't the drop down issue in the admin center get resolved?

    I had same problem with textarea and dropdown. Now textarea works but dropdown not.

    Let me explain, I add custom field says how did you heard about us? and i put dropdown: ---, google, valist, through a friend and some more option. During this registration. After they answer and submit form i am checking from my admin side and i see like they didn't pick any staying like first option. --- But i am changing from custom field dropdown to text and i see that pilot pick google as an example. So dropdown not showing. Or i am doing something wrong.

  10. 28 minutes ago, servetas said:

    Can you try adding the below code at the top of the file you run using cronjob?

    
    error_reporting(0);

    For your information, it should be placed within <?php and ?> tags. Alternatively, you can just try to solve the errors reported. ;)

    Sorry George,

    I am trying to find the way to erase this error log. It has errors like this in it. I don't understand where do i have to put this code.

    [08-May-2017 02:12:02 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'js' in /home/assertiveomer/public_html/aalvirtual.com/crew/core/classes/MainController.class.php on line 218
    [08-May-2017 02:12:04 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'js' in /home/assertiveomer/public_html/aalvirtual.com/crew/core/classes/MainController.class.php on line 218
    [08-May-2017 06:36:52 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'js' in /home/assertiveomer/public_html/aalvirtual.com/crew/core/classes/MainController.class.php on line 218

    791c837b815645dc905f3f1baa84adfb.png

×
×
  • Create New...