changeset 976:047fa29bc07e

Tiny cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 13 Jun 2010 23:42:32 +0000
parents af0fc3a965dc
children c7fc7b40bb86
files www/loc.php
diffstat 1 files changed, 7 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/www/loc.php	Sun Jun 13 23:39:52 2010 +0000
+++ b/www/loc.php	Sun Jun 13 23:42:32 2010 +0000
@@ -3,7 +3,7 @@
 require "common.inc.php";
 
 
-function makeURL($afilter, $filter, $coders, $desc, $qname, $qclass)
+function printTitleLink($afilter, $filter, $coders, $desc, $qname, $qclass)
 {
   $s = "";
   if ($afilter) $s = "f=".$filter;
@@ -125,9 +125,9 @@
    </td>
    <td></td>
 <?
-makeURL($applyFilter, $filter, $showCoders, "All continents", "", "");
+printTitleLink($applyFilter, $filter, $showCoders, "All continents", "", "");
 foreach ($continentList as $continent => $data) {
-  makeURL($applyFilter, $filter, $showCoders, $data[0], $continent, $continent);
+  printTitleLink($applyFilter, $filter, $showCoders, $data[0], $continent, $continent);
 }
 ?>
    <td><a href="<? echo $pageIndex ?>">Back to main page</a></td>
@@ -140,20 +140,17 @@
 /* Coder/creator information box
  */
 if (isset($coderName) && isset($wizTable[$coderName]) && count($wizTable[$coderName]) > 1) {
-  echo "<div class=\"wizinfo\">\n <table>\n  <tr>\n";
   
   $s = $wizTable[$coderName]["imageURL"];
   if (isset($s)) {
     if (substr($s, 0, 6) == "bat://")
-    $s = "img/unknown.png";
-//      $s = "http://www.bat.org/albums/".substr($s, 6);
+      $s = "img/unknown.png";
   } else
     $s = "img/unknown.png";
   
-  echo "   <td class=\"img\"><img src=\"".$s."\" alt=\"".$coderName."\" /></td>\n";
-
-
-  echo "   <td class=\"info\">\n".
+  echo "<div class=\"wizinfo\">\n <table>\n  <tr>\n".
+  "   <td class=\"img\"><img src=\"".$s."\" alt=\"".$coderName."\" /></td>\n".
+  "   <td class=\"info\">\n".
   "    <h2>".$coderName."</h2>\n";
 
   $s = $wizTable[$coderName]["desc"];