Esempio n. 1
0
     foreach ($geocache->getUsersRecomeded() as $record) {
         $i++;
         $lists .= $record['username'];
         if (count($geocache->getUsersRecomeded()) == 1) {
             $lists .= ' ';
         } else {
             $lists .= ', ';
         }
     }
     $content_list = "<a class =\"links2\" href=\"javascript:void(0)\" onmouseover=\"Tip('<b>" . tr('recommended_by') . ": </b><br /><br />";
     $content_list .= $lists;
     $content_list .= "<br /><br/>', BALLOON, true, ABOVE, false, OFFSETY, 20, OFFSETX, -17, PADDING, 8, WIDTH, -240)\" onmouseout=\"UnTip()\">";
     tpl_set_var('list_of_rating_begin', $content_list);
     tpl_set_var('list_of_rating_end', '</a>');
 }
 if ($geocache->getWayLenght() == null && $geocache->getSearchTime() == null || $geocache->getWayLenght() == 0 && $geocache->getSearchTime() == 0) {
     tpl_set_var('hidetime_start', '<!-- ');
     tpl_set_var('hidetime_end', ' -->');
     tpl_set_var('search_time', tr('not_available'));
     tpl_set_var('way_length', tr('not_available'));
 } else {
     tpl_set_var('hidetime_start', '');
     tpl_set_var('hidetime_end', '');
     if ($geocache->getSearchTime() == null || $geocache->getSearchTime() == 0) {
         tpl_set_var('search_time', tr('not_available'));
     } else {
         $time_hours = floor($geocache->getSearchTime());
         $time_min = ($geocache->getSearchTime() - $time_hours) * 60;
         $time_min = sprintf('%02d', round($time_min, 1));
         tpl_set_var('search_time', $time_hours . ':' . $time_min . ' h');
     }