Web Design Discussion > General Web Design Discussion

stat tables in untraveled regions & systems

<< < (2/2)

yakra:
work in progress

region2.php
Total mileage acquired first via separate query, instead of from $row['totalActiveMileage'] after tm_fetch_user_row_with_rank.
Fixes bug where total mileage is shown as 0.00.

region3.php
Mileage percentages no longer acquired from $row after tm_fetch_user_row_with_rank. PHP divides clinched mileage by total mileage and echoes that instead.
Distance Traveled percentage now shown as "(0%)" rather than "(%)".

region4.php
SQL queries simplified; no more 'activePercentage' field or LEFT JOIN.
TravelerInfo arrays simplified; no more mileage percentages. PHP divides clinched mileage by total mileage and echoes that instead.
Check if ($row['traveler'] != ""), and if not, $activePreviewMileageRank = "N/A";

region5.php
Routes Traveled/Clinched percentages no longer acquired from $row after tm_fetch_user_row_with_rank. PHP divides Traveled/Clinched count by total number and echoes that instead.
Now shown as "(0%)" rather than "(%)".

region6.php
Check if ($row['traveler'] != ""), and if not, Traveled/Clinched Routes set to 0, with Rank as "N/A".

system2.php
Check if ($row['traveler'] != ""), and if not, $rank = "N/A";

system3.php
Check if ($row['traveler'] != ""), and if not, Traveled/Clinched Routes set to 0, with Rank as "N/A".

yakra:
https://github.com/TravelMapping/Web/pull/334
Changes are live on lab2 for those who wish to test them out.

Navigation

[0] Message Index

[*] Previous page

Go to full version