Jump to content

FlyingMachine

Members
  • Posts

    160
  • Joined

  • Last visited

Posts posted by FlyingMachine

  1. Dears,

    I have the code of custom field on Pilot list page, works perfect, i would like to show the same filed on pending pireps, next to full name check my code.

    The problem is in that template forache requests : foreach($pireps as $pirep) i would like to add pilots as pilot here.

    To display the custom filed.

    Yours,

  2. Hi all,
    I am trying to show cutom filed in Pending PIREPS,
    using the following code, any help in foreach code ?
    I got one issue where to put this and correct way to add it :
     

    <?php
    foreach($pilot_list as $pilot)
    {

     

    ?>

    <?php
    }
    ?>
    Because in pending PIREPs i call for : foreach ( pireps as pirep !

    Thank you
     

    <tbody>
    <?php
    foreach($pireps as $pirep)
    {	
    	if($pirep->accepted == PIREP_PENDING)
    		$td_class = 'pending';
    	else
    		$td_class = '';
    	
    	$error = false;
    ?>
    <tr class="<?php echo $class?> pirep_list" id="row<?php echo $pirep->pirepid;?>">
    	<td align="center" valign="top" nowrap="nowrap" style="width: 27px;" class="<?php echo $td_class;?>">
    		<img height="25px" width="25px" src="<?php echo PilotData::GetPilotAvatar($pirep->pilotid);?>" align="left" />
    </td>
    
    	<td align="left" valign="top" nowrap class="<?php echo $td_class;?>">
    	<strong><a href="<?php echo SITE_URL?>/admin/index.php/pilotadmin/viewpilots?action=viewoptions&pilotid=<?php echo $pirep->pilotid;?>">
    	<?php echo PilotData::GetPilotCode($pirep->pcode, $pirep->pilotid) . ' - ' .$pirep->firstname .' ' . $pirep->lastname;?></a>  
    	<!-- Here i would like to show VATSIM or IVAO ID using the following code -->
         l <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM CID or IVAO VID'); ?>
    	
    	</strong>
    	<strong>Flight:</strong> <?php echo $pirep->code . $pirep->flightnum; ?></div>
    	<strong>Dep/Arr: </strong><?php echo $pirep->depicao; ?>/<?php echo $pirep->arricao; ?> 
    	<strong>Flight Time: </strong><?php echo $pirep->flighttime; ?> <br />
    	<strong>Submit Date: </strong><?php echo date(DATE_FORMAT, $pirep->submitdate); ?> 
    <strong>Current Status:	</strong> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM CID or IVAO VID');?>
    	<?php 
    	
    	if($pirep->accepted == PIREP_ACCEPTED)
    		echo 'Accepted';
    	elseif($pirep->accepted == PIREP_REJECTED)
    		echo 'Rejected';
    	elseif($pirep->accepted == PIREP_PENDING)
    		echo 'Approval Pending';
    	
    	?>
    	<?php
    	# If there was an error, don't allow the PIREP to go through
    	if($pirep->aircraft == '')
    	{
    		$error = true;
    	}	
    	?>
    <table width="100%" style="border: none;">

     

  3. Hi all,

    I am using a module of CrazyCreatives, however couple of months ago, there is no support anymore, I would like to know if you can help to fix an issue with Event center.

    The event center closes event at 00 Midnight of the day of the event, ex: if my event starts today at 14:00z, normally in the same day people still can book and see the event as upcoming event before 14:00z. However, the module recognize the event as past event early morning at 00:00 of the same day before the event starts yet.

    Thank you in advance,

  4. Thank you ProAvia and Leonardl.

    What i meant something totally different example: i am a pilot KLM100 if already i have a booking, when ever i try to book a 2nd flight, the website redirects me to the bid i have already booked. It does not allow me to book 2nd booking.

    I would like to allow pilots to book more than 1 flight at once. the same pilot can book many flights without restrictions. 

    thank you,

  5. Hi all,

    I've just installed phpvms 7.0, the installation process went well, I am now trying to import the data from phpvms 5 simpilot. The import process starts and I get some data into my new database, but the pireps are missing:

     

    [2020-04-12T05:19:40.428021+00:00] prod.INFO: --- PIREP IMPORT --- [] []
    [2020-04-12T05:19:40.436016+00:00] prod.INFO: Found 15724 rows in pireps [] []
    [2020-04-12T05:19:40.436576+00:00] prod.INFO: Imported 0 pireps [] []
    [2020-04-12T05:19:40.436823+00:00] prod.INFO: Using DSN: mysql:host=localhost;port=;dbname=mydbnamexxxx [] []
    [2020-04-12T05:19:40.436923+00:00] prod.INFO: --- PIREP IMPORT --- [] []
    [2020-04-12T05:19:40.443979+00:00] prod.INFO: Found 15724 rows in pireps [] []
    [2020-04-12T05:19:40.444461+00:00] prod.INFO: Imported 0 pireps [] []
    [2020-04-12T05:19:40.444681+00:00] prod.INFO: Using DSN: mysql:host=localhost;port=;dbname=mydbnamexxxx [] []
    [2020-04-12T05:19:40.444774+00:00] prod.INFO: --- PIREP IMPORT --- [] []
    [2020-04-12T05:19:40.452084+00:00] prod.INFO: Found 15724 rows in pireps [] []
    [2020-04-12T05:19:40.452532+00:00] prod.INFO: Imported 0 pireps [] []
    [2020-04-12T05:19:40.452761+00:00] prod.INFO: Using DSN: mysql:host=localhost;port=;dbname=mydbnamexxxx [] []
    [2020-04-12T05:19:40.452869+00:00] prod.INFO: --- PIREP IMPORT --- [] []
    [2020-04-12T05:19:40.460096+00:00] prod.INFO: Found 15724 rows in pireps [] []
    [2020-04-12T05:19:40.460420+00:00] prod.INFO: Imported 0 pireps [] []
    [2020-04-12T05:19:40.460658+00:00] prod.INFO: Using DSN: mysql:host=localhost;port=;dbname=mydbnamexxxx [] []
    [2020-04-12T05:19:40.460748+00:00] prod.INFO: --- PIREP IMPORT --- [] []
    [2020-04-12T05:19:40.467972+00:00] prod.INFO: Found 15724 rows in pireps [] []
    [2020-04-12T05:19:40.468188+00:00] prod.INFO: Imported 0 pireps [] []
    [2020-04-12T05:19:40.468409+00:00] prod.INFO: Using DSN: mysql:host=localhost;port=;dbname=mydbnamexxxx [] []
    [2020-04-12T05:19:40.468504+00:00] prod.INFO: --- RECALCULATING USER STATS --- [] []
    [2020-04-12T05:19:40.508306+00:00] prod.INFO: User RAM0001 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.519813+00:00] prod.INFO: User RAM0002 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.540115+00:00] prod.INFO: User RAM0004 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.552260+00:00] prod.INFO: User RAM0005 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.572913+00:00] prod.INFO: User RAM0007 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.591792+00:00] prod.INFO: User RAM0008 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.611283+00:00] prod.INFO: User RAM0010 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.645049+00:00] prod.INFO: User RAM0011 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.656523+00:00] prod.INFO: User RAM0012 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.683673+00:00] prod.INFO: User RAM0013 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.698594+00:00] prod.INFO: User RAM0014 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []
    [2020-04-12T05:19:40.728909+00:00] prod.INFO: User RAM0015 updated; pirep count=0, rank=myRank HQ Staff, flight_time=0 minutes [] []

    The output is not complete, because it's too long, the prod.info found 15724 rows in pireps, but nothing imported anyway!

    Any suggestions ?

     

  6. Dear sirs,

    I am running a phpvms simpilot 5.5.2 version, months ago, with php v 5.6.30 everything normal, but now my provider hosing i guess made an update in that php version, the index.php always hows error "

    This page isn’t working

    xxxxxxxxxxxxxxx.com is currently unable to handle this request.

    HTTP ERROR 500

    "

    But if i proceed to index.php/login it works perfectly also all functions except when visiting domain.com/index.php 

    Any ideas ?

    Yours,

×
×
  • Create New...