Jump to content

Miggel

Members
  • Posts

    32
  • Joined

  • Last visited

Posts posted by Miggel

  1. We are looking for a new system, our current phpvms (5.5) is slowly at its performance limit, because we have expanded it but Arg. We need something new and faster, but the design and structure should remain.

    Is there someone here who will redesign the current site for a fee?

     

    But attention, we have 2 different (front page and crew center) designs. 

    For more detailed information please inquire via PM.

     

    Greeting

    Miggel

     

     

    www.flyedelweiss-virtual.com
    www.intranet.flyedelweiss-virtual.com

  2. We are looking for a new own small Acars system for Edelweiss Virtual. www.flyedelweiss-virtual.com

    What it must be able to

    - in our design and CI
    - work for MFS2020, P3d, fsx, fs9 and Xplane
    - record flight
    - send mail / Airmail
    - load simbrief data
    upload a cockpit screenshot every few minutes if needed
    - acquire divertet airports.

    Of course we pay for these ACARS

  3. Hi @all

     

    I will do an Destination Map (like this: Link). How can i do that?

     

    My Code (but only one airport work, and loadtime is very long)

    <?php $allairports = OperationsData::GetAllAirports(); ?>
    <?php foreach ($allairports as $airport) {?>
    
    <!-- Styles -->
    <style>
    #chartdiv {
      width: 100%;
      height: 500px;
    }																		
    </style>
    
    <!-- Resources -->
    <script src="https://www.amcharts.com/lib/3/ammap.js"></script>
    <script src="https://www.amcharts.com/lib/3/maps/js/worldLow.js"></script>
    <script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
    <link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
    <script src="https://www.amcharts.com/lib/3/themes/none.js"></script>
    
    <!-- Chart code -->
    <script>
    /**
     * Define SVG path for target icon
     */
    var targetSVG = "M9,0C4.029,0,0,4.029,0,9s4.029,9,9,9s9-4.029,9-9S13.971,0,9,0z M9,15.93 c-3.83,0-6.93-3.1-6.93-6.93S5.17,2.07,9,2.07s6.93,3.1,6.93,6.93S12.83,15.93,9,15.93 M12.5,9c0,1.933-1.567,3.5-3.5,3.5S5.5,10.933,5.5,9S7.067,5.5,9,5.5 S12.5,7.067,12.5,9z";
    
    /**
     * Create the map
     */
    var map = AmCharts.makeChart( "chartdiv", {
      "type": "map",
      "projection": "winkel3",
      "theme": "none",
      "imagesSettings": {
        "rollOverColor": "#089282",
        "rollOverScale": 3,
        "selectedScale": 3,
        "selectedColor": "#089282",
        "color": "#13564e"
      },
    
      "areasSettings": {
        "unlistedAreasColor": "#15A892",
        "outlineThickness": 0.1
      },
    
      "dataProvider": {
        "map": "worldLow",
        "images": [ {
          "svgPath": targetSVG,
          "zoomLevel": 5,
          "scale": 0.5,
          "title": "Vienna",
          "latitude": 48.2092,
          "longitude": 16.3728
        }, {
          "svgPath": targetSVG,
          "zoomLevel": 5,
          "scale": 0.5,
          "title": "<?php echo $airport->name; ?>",
          "latitude": <?php echo $airport->lat; ?>,
          "longitude": <?php echo $airport->lng; ?>
        }]
      },
      "export": {
        "enabled": true
      }
    } );
    </script>
    
    <!-- HTML -->
    <div id="chartdiv"></div>
    <?php
            }
        ?>

     

  4. Hi, I am trying for 2 days to solve the code for the connection with all the Aiports and the Map. Where is the mistake?

    // Print out rows
    <?php
    $airports = OperationsData::getAllAirports();
      /* Above <td> You have to put it */
    foreach($airports as $airport) {
                "svgPath": targetSVG" ','
      echo '  "title": ' . $airport->name . ','
      echo '  "latitude": ' . $airport->lat . ','
      echo '  "longitude": ' . $airport->lng . ''
      echo " }";
    } ?>

    So I bring at least one airport ...

          {
            "svgPath": targetSVG,
            "title": "<?php echo $airport->name; ?>",
            "latitude": <?php echo $airport->lat; ?>,
            "longitude": <?php echo $airport->lng; ?>
          }, 
        ]
      },
                    <?php
                    }
                    ?>

     

  5. Hello everybody

    I would also like to integrate the days into the schedule search. That means, if a pilot selects Monday in a box, then all flights from Monday are in the results. My code so far ...

    schedule_searchform.php

    <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
    <section class="content-header">
        <h1>Schedule Search</h1>
    </section>
    
    <!-- Main content -->
    <section class="content">
    <div class="cssload-ball"></div>
        <!-- Main row -->
        <div class="row">
            <!-- Left col -->
            <section class="col-md-8 connected">
                <form id="form" action="<?php echo url('/schedules/view');?>" method="post">
                    <!-- Custom Tabs -->
                    <div class="nav-tabs-custom">
                        <ul class="nav nav-tabs">
                            <li class="active"><a href="#tab_1" data-toggle="tab">Departure</a></li>
                            <li><a href="#tab_2" data-toggle="tab">Arrival</a></li>
                            <li><a href="#tab_3" data-toggle="tab">Aircraft</a></li>
    			<li><a href="#tab_4" data-toggle="tab">Flight duaration</a></li>
    			<li><a href="#tab_5" data-toggle="tab">Weekday</a></li>
    
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane active" id="tab_1">
                                <p>Select your departure airport:</p>
                                <div class="form-group">
                                    <select id="depicao" name="depicao" class="form-control">
                                         
    <option value="">Select All</option>
     <?php if (Auth::LoggedIn()) {?>   
    <?php $reports = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, PIREP_ACCEPTED);
    if(is_object($reports))
    {echo '<option value="'.$reports->arricao.'">From current location ('.$reports->arricao.')</option>';}
    elseif(!$reports)
    {echo '<option value="'.Auth::$userinfo->hub.'">From current location ('.Auth::$userinfo->hub.')</option>';}}?>
    <?php
    foreach ($airports as $airport)
    {
    echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';
    }	
    								if(!$depairports) $depairports = array();
    								foreach($depairports as $airport)
    								{
    									echo '<option value="'.$airport->icao.'">'.$airport->icao
    											.' ('.$airport->name.')</option>';
    								}
                                    ?>
    
                                    </select>
                                </div>
                                <input type="submit" name="submit" value="Search" class="btn btn-flat btn-primary" />
                            </div>
                            <!-- /.tab-pane -->
                            <div class="tab-pane" id="tab_2">
                                <p>Select your arrival airport:</p>
                                <div class="form-group">
                                    <select id="arricao" name="arricao" class="form-control">
                                    <option value="">Select All</option>
                                    <?php
    								if(!$depairports) $depairports = array();
    								foreach($depairports as $airport)
    								{
    									echo '<option value="'.$airport->icao.'">'.$airport->icao
    											.' ('.$airport->name.')</option>';
    								}
                                    ?>
    
                                    </select>
                                </div>
                                <input type="submit" name="submit" value="Search" class="btn btn-flat btn-primary" />
                            </div>
                            <!-- /.tab-pane -->
                            <div class="tab-pane" id="tab_3">
                                <p>Select aircraft:</p>
                                <div class="form-group">
                                    <select id="equipment" name="equipment" class="form-control">
                                    <option value="">Select equipment</option>                               
                                    <?php
    								if(!$equipment) $equipment = array();
    								foreach($equipment as $equip)
    								{
    									echo '<option value="'.$equip->name.'">'.$equip->name.'</option>';
    								}
                                    ?>
                                    </select>
                                </div>
                                <input type="submit" name="submit" value="Search" class="btn btn-flat btn-primary" />
                            </div>
    <!-- /.tab-pane -->
                            <div class="tab-pane" id="tab_5">
                                      <div class="form-group">
            <label id="daysofweek" class="col-lg-3 control-label">Search By Day</label>
            <div class="col-lg-9">
            <?php
    		/*$days = array('Sunday', 'Monday', 'Tuesday',
    					  'Wednesday', 'Thursday', 'Friday',
    					  'Saturday');
    		*/
    		
    		$days = Config::Get('DAYS_LONG');
    		
    		for($i=0; $i<=6; $i++)
    		{
    			# Add blank string to typecast from int to string, otherwise it won't search
    			if(strpos($schedule->daysofweek, $i.'') === false)
    				$checked = '';
    			else
    				$checked = 'checked';
    			
    			echo '<input type="checkbox" name="daysofweek" value="'.$i.'" '.$checked.'>'.$days[$i].'  </br>';			
    		}
    		?>
    
                                </div>
                                <input type="submit" name="submit" value="Search" class="btn btn-flat btn-primary" />
                            </div>
    <div class="tab-pane" id="tab_6">
        <div class="form-group">
           
                
    </div>
    </div>
      </div>
                          <!-- /.tab-pane -->
                            <div class="tab-pane" id="tab_4">
                                <p>Select Distance:</p>
                                <div class="form-group">
                                    <select id="type" name="type" class="form-control">
                                        <option value="greater">Greater Than</option>
                                        <option value="less">Less Than</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <input type="text" name="distance" value="" class="form-control" />
                                </div>
                                <input type="submit" name="submit" value="Search" class="btn btn-flat btn-primary" />
                            </div>
                            <!-- /.tab-pane -->
                        </div>
                        <!-- /.tab-content -->
                    </div>
                    <!-- nav-tabs-custom -->
                <p>
                    <input type="hidden" name="action" value="findflight" />
    
            </section>
            <!-- /.Left col -->
        </div>
        <!-- /.row (main row) -->
    </section>
    <!-- /.content -->

     

  6. Hello everybody
    I have a few questions...

    1. If I plan a flight (Simbrief integration) I have eg 150 passengers. After the flight in PIREP, only 118 or any other number may be debited. How do I get phpvms to take over Simbrief's data?

    2. I have an ugly white field above. How can I remove this?

    9a1a2097-0b29-426c-af84-5d022bda7e67.png

  7. On 1.12.2016 at 4:31 PM, DesComm said:

    Emails are not filling in the data pilotid, firstname, lastname, etc. see code below We are running simpilot 5.5.2.

    CODE:

    <?php

    $pilotid = $pilot->pilotid;

    $pirp = PManagerData::getpirep($pilotid);

    $pir = $pirp->submitdate;

    ?>

    <p>Dear <?php echo $pilot->firstname.' '.$pilot->lastname ;?>,</p>

    <p>You are required to submit one PIREP every day. Your last PIREP was sent on <?php echo $pir; ?>.</p>

    <p>Please be advised if you do not send a report within the next 2 days your account will be deleted.</p>

    <p>Sincerely</p>

    <p><?php echo SITE_NAME ;?> - Staff</p>

    Email sent:

    Dear ,

    You are required to submit one PIREP every 30 days. Your last PIREP was sent on .

    Please be advised if you do not send a report within the next 15 days your account will be deleted.

    Sincerely

    American Flight Airways - Staff

    Like this

×
×
  • Create New...