Jump to content

Vidofnir

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Jacksonville, FL
  • Interests
    Aviation, Naval Aviation, Computers, Web Design, Cats.

Vidofnir's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. <p class="under_blue"> <?php $id = $awardname->awardid; $awardid = AwardData::get_award_tittle_by_id($id); echo $awardid->name; ?> </p> <table width="70%" border="0"> <tr> <td width="60%">Comment</td> <td width="20%">Date</td> </tr> <?php if(!$awardinfo) { echo '<tr><td><center>There are no any awards issued!</center></td></tr>'; } else { $count = 1; foreach($awardinfo as $info) { ?> <tr> <td><?php echo $count . ". " . $info->comment; ?></td> <td><?php echo $info->dateissued; ?></td> </tr> <?php $count++; } } ?> </table> That should work.
  2. Our airline changes your pilot code once you join, so the big pilot codes (I.E 1300+) are not used. Each hub has a specific set of numbers associated with it. If no one has a pending application, then the person with the highest code is always the "newest pilot" regardless of his actual join date.
  3. The latest pilots to join thing on the index is nice and dandy if you keep consecutive Pilot IDs. If you change the Pilot IDs on registration (say, for hub purposes) there is an unfortunate problem where it only shows the highest Pilot ID, which may not necessarily be the newest pilot. I whipped up a work-around that should benefit airlines that do this. This simple change can be condensed even more, but I figured I would create a new Method just to keep things clean (and give me something to fall back on later). Open core/common/PilotData.class.php Add this snippet somewhere (perhaps after the getLatestPilots method, Line ~227) public static function getLatestPilotsByJoinDate($count=10) { $sql = 'SELECT * FROM '.TABLE_PREFIX.'pilots ORDER BY `joindate` DESC LIMIT '.$count; return DB::get_results($sql); } Save, Now open core/modules/Pilots/Pilots.php Change: $this->set('pilots', PilotData::GetLatestPilots($count)); To: $this->set('pilots', PilotData::GetLatestPilotsByJoinDate($count)); Save, upload, be happy. Alternatively, you can just change the existing SQL query under getLatestPilots to order by 'joindate' and leave it at that, but I preferred to make my own method just to not break things. Or something.
  4. Looks pretty good, although the LOGIN button on the top is not where it should be in Chrome. That could be a function of not enough padding or maybe even Windows 7 but who knows. Also, going back to the <b>/<strong> argument, they are both completely valid, even in HTML5. Just like <i>/<em> are. They have different meanings though. <b> is used to visually make something stand out -- Menu <strong> is used to emphasize a word and make it have a stronger meaning -- That is the menu <i> is used to visually make something italic -- Say hello! <em> is used to emphasize a word and make it have a different meaning -- This isn't my coat. (also, This isn't my coat) Hope that helps people. Again, nice job. Sorry to threadjack.
  5. Yeah, that did nothing. It does it on 5 different computers of varying browser types. I think it's a skin fault, thus I will just completely re-do the skin.
  6. Our files for some reason didn't even have VA Central reporting in it, so I made sure it was set to FALSE IAW the directive. Seems a bunch faster today.
  7. I have this strange issue with logging in that I am still trying to troubleshoot. If you are logged in and have it set to keep you logged in, it works perfectly fine... Until you close the browser window or tab for the site completely. When you re-open the page, it says you still have to login and acts like you are not... THEN, when you click to login, it says you are already logged in and goes back to working normal. I haven't thoroughly investigated this, but from the looks of it there is a session or cookie reading issue between the application and the templates. Has anyone else experienced this, and/or is there a fix for this?
×
×
  • Create New...