Permalink
Browse files

output in table (as requested via https://de.wikipedia.org/w/index.ph…

  • Loading branch information...
FlominatorTM committed Oct 6, 2015
1 parent d3c97cd commit bab0f6ed02a3b734e40602b22973ef53ae5ab15b
Showing with 22 additions and 3 deletions.
  1. +16 −3 next_inc/OfferPages.php
  2. +3 −0 next_inc/lang/de.php
  3. +3 −0 next_inc/lang/en.php
View
@@ -51,10 +51,20 @@ function MergeOffers($locTo)
public function ListUsersToRequest()
{
global $messages;
echo '<table border="1">';
echo "<tr>";
echo "<th>" . $messages['column_user'] ."</th>";
echo "<th>" . $messages['column_distance'] ."</th>";
echo "<th>" . $messages['column_wiki'] ."</th>";
echo "</tr>";
foreach($this->AllOffers as $usr)
{
$resLine = $usr->Link . " (" . sprintf("%01.1f",$usr->distance) . " km)";
echo "<tr>";
$resLine = "<td>" . $usr->Link ."</td>";
if($usr->IsInRange())
{
echo "<b>$resLine</b>";
@@ -64,7 +74,8 @@ public function ListUsersToRequest()
echo "$resLine";
}
echo " <small>" . $usr->LinkHome . "</small>";
echo "<td>" . sprintf("%01.1f",$usr->distance) . " km</td>";
echo ' <td>' . $usr->LinkHome . "</td>";
if($usr->HasDuration())
{
@@ -88,7 +99,9 @@ public function ListUsersToRequest()
echo str_replace('_SECOND_DATE_', strftime("%x", $usr->dateTo), $out);
}
}
echo "<br>";
//echo "<br>";
echo "</tr>";
}
echo "</table>";
}
}
View
@@ -30,6 +30,9 @@
$messages['no_coordinates'] = 'Der Artikel _LOCATION_ ist ungültig oder hat keine Koordinaten.';
$messages['proj_not_supported'] = 'Das Projekt _PROJECT_ wird derzeit nicht unterstützt. Bitte nehme Kontakt mit :de:user:Flominator auf.';
$messages['new_request'] = 'Neue Suche durchführen';
$messages['column_user'] = 'Benutzer';
$messages['column_distance'] = 'Entfernung';
$messages['column_wiki'] = 'Wiki';
$messages['between_dates'] = 'nur zwischen _FIRST_DATE_ und _SECOND_DATE_';
$messages['until_date']= 'nur noch bis _DATE_';
$messages['until_date_over']= 'war bis _DATE_ dort :(';
View
@@ -31,6 +31,9 @@
$messages['no_coordinates'] = 'Location _LOCATION_ is invalid/does not have coordinates.';
$messages['proj_not_supported'] = 'project _PROJECT_ is currently not supported, please contact :de:user:Flominator for details';
$messages['new_request'] = 'Perform new search';
$messages['column_user'] = 'User';
$messages['column_distance'] = 'Distance';
$messages['column_wiki'] = 'Wiki';
$messages['between_dates'] = 'only between _FIRST_DATE_ and _SECOND_DATE_';
$messages['until_date']= 'only until _DATE_';
$messages['until_date_over']= 'was there until _DATE_ :(';

0 comments on commit bab0f6e

Please sign in to comment.