OSDN Git Service

Web: Add list of subdomains to tracker shortcuts page
authorTim Gerundt <tim@gerundt.de>
Thu, 5 Mar 2009 19:48:04 +0000 (19:48 +0000)
committerTim Gerundt <tim@gerundt.de>
Thu, 5 Mar 2009 19:48:04 +0000 (19:48 +0000)
Web/page.inc
Web/support/tracker-shortcuts.php

index 1e226bd..59e8b1e 100644 (file)
           $subtabs[1] = new Subtab('http://forums.winmerge.org/', 'Discussion Forums', 'WinMerge Discussion Forums');
           $subtabs[2] = new Subtab('/support/mailing-lists.php', 'Mailing Lists', 'WinMerge Mailing Lists');
           $subtabs[3] = new Subtab('http://sourceforge.net/tracker/?group_id=13216', 'Tracker', 'WinMerge Tracker');
-          $subtabs[4] = new Subtab('http://sourceforge.net/donate/index.php?group_id=13216', 'Donate', 'Donate money to WinMerge');
+          $subtabs[4] = new Subtab('/support/tracker-shortcuts.php', 'Tracker Shortcuts', 'WinMerge Tracker Shortcuts');
+          $subtabs[5] = new Subtab('http://sourceforge.net/donate/index.php?group_id=13216', 'Donate', 'Donate money to WinMerge');
           break;
         case TAB_TRANSLATIONS: //if "Translations" ...
           $subtabs[0] = new Subtab('/translations/', 'Index', 'WinMerge Translations');
index e4faa59..8e2a294 100644 (file)
@@ -25,8 +25,10 @@ items from our <a href="http://sourceforge.net/projects/winmerge">SF.net project
     <td>\r
       <select name="type" id="type" size="1">\r
 <?php\r
+  $post_type = isset($_POST['type']) ? $_POST['type'] : '';\r
+  $post_id = isset($_POST['id']) ? $_POST['id'] : '';\r
   foreach ($types as $value => $name) { //For all types...\r
-    if ($value == $_POST['type']) $selected = ' selected="selected"'; else $selected = '';\r
+    if ($value == $post_type) $selected = ' selected="selected"'; else $selected = '';\r
     echo "        <option value=\"" . $value . "\"" . $selected . ">" . $name . "</option>\n";\r
   }\r
 ?>\r
@@ -39,16 +41,27 @@ items from our <a href="http://sourceforge.net/projects/winmerge">SF.net project
   <tr>\r
     <td><label for="id">ID:</label></td>\r
     <td>\r
-      <input type="text" name="id" id="id" size="8" maxlength="8" value="<?php echo htmlentities($_POST['id']); ?>" />\r
+      <input type="text" name="id" id="id" size="8" maxlength="8" value="<?php echo htmlentities($post_id); ?>" />\r
     </td>\r
   </tr>\r
 </table>\r
 </form>\r
 <?php\r
-  if (isset($_POST['type']) && ($_POST['type'] != '') && isset($_POST['id']) && ($_POST['id'] > 0)) {\r
+  if (($post_type != '') && ($post_id > 0)) {\r
     echo "<p />\n";\r
-    echo "<p style=\"font-size:larger;\"><code>http://winmerge.org/" . htmlentities($_POST['type']) . "/" . htmlentities($_POST['id']) . "</code></p>\n";\r
+    echo "<pre class=\"code\">http://winmerge.org/" . htmlentities($post_type) . "/" . htmlentities($post_id) . "</pre>\n";\r
     echo "<p />\n";\r
   }\r
+?>\r
+<h3>Subdomains</h3>\r
+<ul class="rssfeeditems">\r
+  <li><a href="http://bugs.winmerge.org/">bugs.winmerge.org</a></li>\r
+  <li><a href="http://forums.winmerge.org/">forums.winmerge.org</a></li>\r
+  <li><a href="http://lists.winmerge.org/">lists.winmerge.org</a></li>\r
+  <li><a href="http://patches.winmerge.org/">patches.winmerge.org</a></li>\r
+  <li><a href="http://project.winmerge.org/">project.winmerge.org</a></li>\r
+  <li><a href="http://wiki.winmerge.org/">wiki.winmerge.org</a></li>\r
+</ul>\r
+<?php\r
   $page->printFoot();\r
 ?>
\ No newline at end of file