Git Product home page Git Product logo

phpvms_v2's People

Contributors

agarzon avatar codacy-badger avatar equinoxmatt avatar nabeelio avatar pierrelvx avatar shadolio avatar silentt-fr avatar vansers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phpvms_v2's Issues

profile_main.tpl pilots Next Rank

Nabeel, Pilots next rank code doesn't seem to be working any more, this is what i have,

<?php
     if($nextrank)
     {
     ?>
<td colspan="2"><p align="center"><strong>You have</strong> <?php echo ($nextrank->minhours - $pilot_hours)?> <strong>hours left until your promotion to <?php echo $nextrank->rank?></strong></p></td>
   <?php
     }
     ?>  

Normalize template variables

Some templates are using $userinfo, some are $pilotinfo, some are $user........ normalize all of these, which are available in templates and the usage within controllers:

For pilots:

$pilot - The current pilot this template refers to

$pilot_list - A list of pilots

For PIREPs:

$pirep - A single PIREP

$pirep_list - A list of PIREPs

For schedules:

$schedule - A single schedule

$schedule_list - A list of Schedules

And any other variables used have to follow the same naming schema. Loops are changed to something like:

foreach($pirep_list as $pirep)

and

foreach($pilot_list as $pilot)

Etc, to keep them consistent with the single-row templates. Both are depending on context. Profile template (for viewing and the current user) should use $pilot... etc.

The old variables will still work. This is for new people as of 3.0, or those who are starting from scratch. Should reduce confusion...

Add url link to approve pireps to new pirep email

Nabeel can you add a link to the site for approving new pireps to the PIREP.data.class.php when a email is sent. core/common/pirepData.class.php LINE 760 (its easier to then accept directly from the link)

Live map fields not matching (but show on vaCentral)

http://forum.phpvms.net/topic/4112-acars-map/

Hey Guys,

I have done some searching and couldn't find if anyone else has had this problem

On our ACARS map the "Status" and the "Distance/Time Remaing" information is not displaying correctly. I thought it was working at one time....

It always show the status as "enroute" and the D/TR as "0"

I have went back to the original template and copied it back over to the skins folder to start from scratch, and it still does not work properly. I go to the VA Central page and our info
is correct on their live map, so I know the information being sent is correct, just not on our page.....any suggestions??

Thanks

  • Nick

StatsDataClass

Build new queries to display for pilots active, inactive and annual leave / holiday.

PIREP edit always goes to "Pending PIREPS"

Going to Pilot Profile in Admin Aera > Pilot List > Pilot PIREP > Editing PIREP > Saving PIREP

It jumps back to "Pending PIREP" page instead of staying under Pilot PIREP Page...

Custom PIREP field edit not remembered

I created a couple of custom PIREP fields, both of which are drop downs as follows:

  1. Network: Offline, VATSIM, IVAO
  2. Simulator: FS2004, FSX, Other

I decided to edit the accepted (existing) PIREP and entered the missing values of the PIREP, i.e. IVAO and FSX. Then I clicked on the Save Report button and it was "successfully" saved.

Out of curiosity (yes, I am a thorough tester :-) I decided to open up the same PIREP again and verify that it contained the values I had set for the custom fields. Unfortunately the edit form was NOT showing the values I had selected, instead it was showing the first value in the list for each of the custom fields.

I think your template simply renders the values of the drop downs without actually setting the "selected" attribute when the value matches the actual value on the database. Or it could be that it is simply NOT saving it and not reporting the error.

In any case it is a bug which I hope gets fixed in the next release. Love the system BTW.

Ability To Back Up or Download Databases.

Hey Nabeel,

This was in my mind...

What if you could add a feature like phpBB that where you can download the database or back up the database and the ability to restore it.

Hope this is clear.

Ability To Assgin Pilots the Flights.

Like say, if the flight dispacther goes to the pilot profile in the admin and goes to assgin flight tabs, and then he can add a flight assignment to the bids.

That would sound awsome to phpVMS.

Default Ranks

Alright... I have renamed and added several ranks to my airline however when a new pilot signs up with the airline, they receive "New Hire" as their rank when that rank isn't even a rank! I think it has something 2 do with the default settings on when they are entered into the database for the first time, but im not a expert so. Anyways Thanks!

set awards display to ASC

core/common/Awards_Data.class.php line 30

class AwardsData extends CodonData {

/**
 * Get all awards
 *
 * @return mixed array of objects
 *
 */
public static function GetAllAwards() {
    $sql = 'SELECT * FROM ' . TABLE_PREFIX . 'awards ORDER BY name ASC';
    return DB::get_results($sql);
}

registrationaccepted.tpl

the registration accepted email isn't send from the lib/skins folder i have on in my skin and al went fine until now i had to change the one in the core/templates to be correct

1 HR = 100 mins

This is how time counter for the new rank to achieve interprets hours.

Centralize all post-PIREP stats updates

Right now it's scattered around or in several different functions - create several streamlined functions which update specific stats in specific conditions, so resources are not wasted when stats are aggregated when not needed

News/Activity feed - Account history for pilots profile.

As Nabeel Requested to add into the bug.

http://forum.phpvms.net/topic/4949-rev-v21934-107-ga045c0f-stats-fixes/page__view__findpost__p__33105

What would if you could put a feature like a Account History for per pilots.

Like for Example, you change the pilot's hub from KLGA to KLAS, the log data will be logged to the pilot's profile and it will display like this....

12.21.10
Hub Changed From KLGA to KLAS
VA0001 Kyle S.

And it will show who changed the pilot's hub from the staff and what date. Just like DeltaVA.

I'm kinda feeling it would be little hard but it's a great feature to have though. I'm interested to have that. It helps to keep track to what changes were made to the pilot's account

abilaty to store admin templates

would there be the abilaty to have something like the skins folder but then for the admin now i need to first delete lots off files from the new beta's.

gr joeri

Allow combined PAX/Cargo flights

Since XACARS and other online reporting systems have cargo values reported, could it be possible to insert a new column and give possibility to users doing cargo or mixed flights to report cargo values ?

Add Landing Rate to admin pirep email

I have modded the PIREPData.class.php to show the landing rate in the email as i have a maximum, could you add it to the general release please.
Line 761
."Landing Rate: {$pirepdata['landingrate']}\n\n"

Bump News Item

Have the ability to bump a previous news item to the top of the page without reposting.

Edit button on the

edit button dissapeared on the pilot group section all are now This group cannot be renamed or deleted

Flight Type Wrong

When filing a pirep using anything BUT KACARS from as far as I can tell, records the wrong flight type. The pireps are filed as passenger flights and not cargo. I have not tried with a charter flight yet.

The pilot pay and ticket price are charged correct for the pirep. The only thing I can find effected is the flight type. If fixed in the database, the stats adjust accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.