Jump to content

sayedzaafir

Members
  • Posts

    36
  • Joined

  • Last visited

Posts posted by sayedzaafir

  1. On 3/15/2018 at 5:31 PM, gio1961 said:

    Thanks. Problem is

        <script>
          $(function () {
            $('input').iCheck({
              checkboxClass: 'icheckbox_square-blue',
              radioClass: 'iradio_square-blue',
              increaseArea: '20%' // optional
            });
          });
        </script>

    To    

    <script>
          $(function () {      
          $('input').iCheck({
      labelHover: false,
      cursor: true
    });
        </script>

    i also have same issue ,,where to put it 

  2. it is phpvms 5.5 from simpilot 

     

    yes i did alll 

     

    i think it is problem with the domain because i tried it in my another domain and it worked perfectly but not in my new domain ,, is it somthing have to do with the domain if then what is it ?? its too strange 

     

    thx

  3. hello guys 

    i have installed phpvms 5.5 and tried to solve the reCAPTCHA  error by this forum 

    still the error remain to be there "ERROR for site owner: Invalid site key"

     

    but what i got confused is , before 2 month i already installed a va and solved recapchta using this thread but now it dosnt ,, why is it so ? am i doing somthing wrong ?

     

     

    thank you

     

  4. On 8/25/2011 at 6:42 AM, lorathon said:

    Try this complete code

     

    
     <?php
    $count = 5;
    $pireps = PIREPData::getRecentReportsByCount($count);
    ?>
     <table width="625" border="1" cellspacing="2" cellpadding="2">
       <tdead>
         <tr class="recent">
           <td><strong>Flight No</strong></td>
           <td><strong>Departure</strong></td>
           <td><strong>Arrival</strong></td>
           <td><strong>Duration</strong></td>
           <td><strong>Pilot</strong></td>
           <td><strong>Status</strong></td>
           </tr>
         </tdead>
       <tbody>
    
         <?php
    
    if(count($pireps) > 0)
    {
     foreach ($pireps as $pirep)
     {
     {
           $pilotinfo = PilotData::getPilotData($pirep->pilotid);
           $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
    } 
    ?>
         <tr>
           <td><a href="<?php echo url('/pireps/viewreport/'.$pirep->pirepid);?>">
                 <?php echo $pirep->code.$pirep->flightnum; ?></a>
           </td>
           <td><?php echo $pirep->depicao; ?></td>
           <td><?php echo $pirep->arricao; ?></td>
           <td><?php echo $pirep->flighttime; ?></td>
           <td><?php echo $pilotinfo->firstname.' '.$pilotinfo->lastname; ?></td>
           <td><?php
    
                   if($pirep->accepted == PIREP_ACCEPTED)
                           echo '<span style="color:#347C17"><strong>Accepted</strong></span>';
                   elseif($pirep->accepted == PIREP_REJECTED)
                           echo '<span style="color:#FF0000"><strong>Rejected</strong></span>';
                   elseif($pirep->accepted == PIREP_PENDING)
                           echo '<span style="color:#E56717"><strong>Approval Pending</strong></span>';
                   elseif($pirep->accepted == PIREP_INPROGRESS)
                           echo '<span style="color:#whatever">Flight in Progress</span>';
                           ?>
           </td>
         </tr>
         <?php
    }}
    else
    {
           echo '<tr><td>There are no recent flights!</td></tr>';
    }
    ?>
        </tbody>
     </table>
    </div>
    <hr />
     

     

    i used this , but how to link the pilot profile along there name ??

  5. On 2/27/2017 at 1:16 PM, Angel Air said:

    <?php if($pirep->accepted == PIREP_ACCEPTED) echo '<div class="label label-success pull-right">Accepted</div>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<div class="label label-danger pull-right">Rejected</div>'; elseif($pirep->accepted == PIREP_PENDING) echo '<div class="label label-info pull-right">Approval Pending</div>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<div class="label label-warning pull-right">Flight in Progress</div>'; ?>

    i tried this but it dint work , any updated code for it ??

  6. Hello guys 

     

    is there code for showing last recent flight details 

    can anyone help me to get these information for last flight 

    Callsign:

    Departure Airport:

    Arrival Airport: 

    Aircraft: 

    flight time:

    Date of Flight

    status of the pirep: 

     

     

    thank you 

     

     

  7. this is my content 

    <?php
    class IVAO extends CodonModule {
    	public function index() {
              $pilots = PilotData::getAllPilots();
              foreach($pilots as $pilot)
              {
              $fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'IVAO ID');
              if($fieldvalue != '')
              {
              if(strlen($fieldvalue) < 5)
              {
              continue;
              }
              if (!is_numeric($fieldvalue))
              {
              continue;
              }
              echo $fieldvalue.'<br />';
              }
    	}
    }

     

×
×
  • Create New...