r1801 + remove internal help code, because we have online docs now
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 19 Mar 2008 22:21:23 +0000 (22:21 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 19 Mar 2008 22:21:23 +0000 (22:21 +0000)
ChangeLog
inc/help.php [deleted file]
inc/init.php
inc/interface.php
inc/navigation.php
pi.css
pix/help.png [deleted file]
pix/helphint.png [deleted file]

index c8fccab24ee455f37c21ca8047a54a768edadf7b..7d97d88b4674d07ebe07311864010698f0aa45f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
                switches, Raisecom MUXes, updated Cisco routers
        update: async port type has been split
        update: don't allow duplicate rack names in one row
+       update: internal help system has been dropped
        bugfix: make switchvlans gateway work on Linux
 0.14.12 2008-02-29
        new feature: default value for RS inservice status
diff --git a/inc/help.php b/inc/help.php
deleted file mode 100644 (file)
index 73ef1fb..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/*
-*
-*  This file contains help rendering functions for RackTables.
-*
-*/
-
-// Generate a link to the help tab.
-function genHelpLink ($tabno)
-{
-       global $root;
-       return "${root}?page=help&tab=${tabno}";
-}
-
-// Checks if a topic is present for page and tab and render a hinting element;
-// do nothing otherwise.
-function lookupHelpTopic ($pageno, $tabno)
-{
-       global $helptab;
-       if (!isset ($helptab[$pageno][$tabno]))
-               return;
-       echo "<li style='position: absolute; top: 80px; right: 0px;'><a style='background-color: #f0f0f0; border: 0;' href='" . genHelpLink ($helptab[$pageno][$tabno]);
-       echo "' alt='Help' title='Help is available for this page'>";
-       printImageHREF ('helphint');
-       echo '</a>';
-       return;
-}
-
-// Prints the help page content.
-function renderHelpTab ($tabno)
-{
-       switch ($tabno)
-       {
-               default:
-                       startPortlet ('Oops!');
-                       echo __FUNCTION__ . ": There was no help text found for help tab '${tabno}'";
-                       finishPortlet();
-                       break;
-       }
-}
-
-?>
index 3d35bf02945b227d8698f4e852553069bc5a0f2b..83f2a7d7069dd4a69b73f5b0705bbfea056aa3ef 100644 (file)
@@ -118,7 +118,6 @@ require_once 'inc/pagehandlers.php';
 require_once 'inc/ophandlers.php';
 require_once 'inc/triggers.php';
 require_once 'inc/gateways.php';
-require_once 'inc/help.php';
 
 global $page;
 $expl_tags = array();
index f6a91bfc19226e14234a3222c29c715210a259a1..87618d9afc868fd061b1a716f15c267c1481c827 100644 (file)
@@ -3099,9 +3099,6 @@ function printImageHREF ($tag, $title = '', $do_input = FALSE, $tabindex = 0)
        $image['reports']['path'] = 'pix/report.png';
        $image['reports']['width'] = 218;
        $image['reports']['height'] = 200;
-       $image['help']['path'] = 'pix/help.png';
-       $image['help']['width'] = 218;
-       $image['help']['height'] = 200;
        $image['reserve']['path'] = 'pix/stop.png';
        $image['reserve']['width'] = 16;
        $image['reserve']['height'] = 16;
@@ -3127,9 +3124,6 @@ function printImageHREF ($tag, $title = '', $do_input = FALSE, $tabindex = 0)
        $image['nodelete']['height'] = 16;
        $image['grant'] = $image['add'];
        $image['revoke'] = $image['delete'];
-       $image['helphint']['path'] = 'pix/helphint.png';
-       $image['helphint']['width'] = 24;
-       $image['helphint']['height'] = 24;
        $image['inservice']['path'] = 'pix/go.png';
        $image['inservice']['width'] = 16;
        $image['inservice']['height'] = 16;
index a2137675a72336e9ff4c1b5a29bd906e1340cdb4..e0404ab81202f8e0ae32b478373a6dba0f97f09c 100644 (file)
@@ -404,7 +404,6 @@ function showTabs ($pageno, $tabno)
                }
                echo "'>${tabtitle}</a></li>\n";
        }
-       lookupHelpTopic ($pageno, $tabno);
        echo "</ul></div></td>\n";
 }
 
diff --git a/pi.css b/pi.css
index 0d74fc2e91e16776830009e30392d0c573afd432..983026caa8929364beb0814b5efb2d147ec02ce9 100644 (file)
--- a/pi.css
+++ b/pi.css
@@ -49,10 +49,6 @@ table.molecule {
        margin: 5px;
 }
 
-.portlet .helptext {
-       text-align: left;
-}
-
 .dragon {
        background-color: #000033;
        text-align: left;
diff --git a/pix/help.png b/pix/help.png
deleted file mode 100644 (file)
index 975f729..0000000
Binary files a/pix/help.png and /dev/null differ
diff --git a/pix/helphint.png b/pix/helphint.png
deleted file mode 100644 (file)
index 42beee1..0000000
Binary files a/pix/helphint.png and /dev/null differ