Jump to content

final skin....I think


kbohme

Recommended Posts

Nice, one question what is the code you used to get the number of schedules you have?

Cheers

Dan C

Actually I had to write a new class for that one, as well as for total aircraft and top pilot. In fact I think I had to write a new module for the top pilot....

I can't remember off the top of my head. Since I am a php newbie there was ALOT of trial and error going on there.

for the number of schedules the class code was:

public static function TotalSchedules()

{

$sql = 'SELECT COUNT(*) AS total

FROM '.TABLE_PREFIX.'schedules';

$res = DB::get_row($sql);

return $res->total;

}

and then I just called the class into the sidebar.

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...