Jump to content

Grouping awards


BBuchanan

Recommended Posts

  • Moderators

You can add then as group names like i have,

So all event awards start with Events all flight awards start Flight all exams start Exams etc then all you need to do is order the output in the awards.dataclass.php file.

 /**
    * 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);
   }

Link to comment
Share on other sites

You can add then as group names like i have,

So all event awards start with Events all flight awards start Flight all exams start Exams etc then all you need to do is order the output in the awards.dataclass.php file.

 /**
    * 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);
   }

Thank you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...