Ignore:
Timestamp:
Jul 31, 2000, 3:25:53 AM (25 years ago)
Author:
bird
Message:

First preview? Most pages are completed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/www/Odin32DBHelpers.php3

    r3902 r3903  
    622622
    623623
     624/* NAVIGATION */
     625/* NAVIGATION */
     626/* NAVIGATION */
     627
     628/**
     629 * Make top of page navigation stuff for the Odin32 database pages.
     630 * @param       $sExpand    Expand arguments.
     631 * @param       $sCollapse  Collapse arguments.
     632 * @author      knut st. osmundsen (knut.stange.osmundsen@mynd.no)
     633 */
     634function Odin32DBNavigationTop($sExpand, $sCollapse)
     635{
     636    echo "\n<center><font size=1>\n";
     637
     638    echo "<a href=\"Odin32DB.phtml\">Root</a>\n".
     639         " - <a href=\"Odin32DB.phtml?dlls=1\">Dlls</a>\n".
     640         " - <a href=\"Odin32DB.phtml?authors=1\">Authors</a>\n".
     641         " - <a href=\"Odin32DB.phtml?apigroups=1\">API Groups</a>\n";
     642
     643    if ($sExpand != "" && $sCollapse != "")
     644    {
     645        echo "<br><a href=\"Odin32DB.phtml?".$sExpand."\">Expand</a> - \n".
     646             "<a href=\"Odin32DB.phtml?".$sCollapse."\">Collapse</a>\n";
     647    }
     648
     649    echo "</font></center>\n";
     650}
     651
     652
     653/**
     654 * Make bottom of page navigation stuff for the Odin32 database pages.
     655 * @param       $sExpand    Expand arguments.
     656 * @param       $sCollapse  Collapse arguments.
     657 * @author      knut st. osmundsen (knut.stange.osmundsen@mynd.no)
     658 */
     659function Odin32DBNavigationBottom($sExpand, $sCollapse)
     660{
     661    echo "\n<p><br><center>\n".
     662         "<font size=1>\n";
     663
     664    if ($sExpand != "" && $sCollapse != "")
     665    {
     666        echo "<a href=\"Odin32DB.phtml?".$sExpand."\">Expand</a> - \n".
     667             "<a href=\"Odin32DB.phtml?".$sCollapse."\">Collapse</a><br>\n";
     668    }
     669
     670    echo
     671         "<a href=\"Odin32DB.phtml\">Root</a>\n".
     672         " - <a href=\"Odin32DB.phtml?dlls=1\">Dlls</a>\n".
     673         " - <a href=\"Odin32DB.phtml?authors=1\">Authors</a>\n".
     674         " - <a href=\"Odin32DB.phtml?apigroups=1\">API Groups</a>\n";
     675    echo "</font></<center>\n";
     676}
     677
    624678
    625679
     
    642696function Odin32DBFunctionInfo(&$aContent, $db, $iRefcode)
    643697{
     698    Odin32DBNavigationTop("","");
     699
    644700    $sql = sprintf("SELECT\n".
    645701                   "    f.name          AS name,\n".
     
    862918        Odin32DBSqlError($sql);
    863919    }
     920    Odin32DBNavigationBottom("","");
    864921}
    865922
     
    885942function Odin32DBDllInfo(&$aContent, $db, $iRefcode, $fFunctions, $fFiles, $fAPIGroups, $fAuthors, $fSortByState)
    886943{
    887 
    888 
     944    /*
     945     * Navigation - TOP
     946     */
     947    $sExpand    = "dllrefcode=".$iRefcode."&fFiles=1&fFunctions=1&fAPIGroups=1&fAuthors=1";
     948    if ($fSortByState)  $sExpand = $sExpand."&fSortByState=".$fSortByState;
     949    $sCollapse  = "dllrefcode=".$iRefcode;
     950    Odin32DBNavigationTop($sExpand, $sCollapse);
     951
     952    /*
     953     * Fetch (vital) data.
     954     */
    889955    $sql = sprintf("SELECT\n".
    890956                   "    d.name          AS name,\n".
     
    901967    if (($result = mysql_query($sql, $db)) && mysql_num_rows($result) > 0 && ($array = mysql_fetch_array($result)))
    902968    {
    903         echo "<a href=\"Odin32DB.phtml?dllrefcode=".$iRefcode."&fFiles=1&fFunctions=1&fAPIGroups=1&fAuthors=1";
    904         if ($fSortByState)  echo "&fSortByState=".$fSortByState;
    905         echo "\">Expand all.</a>\n";
    906         echo "<a href=\"Odin32DB.phtml?dllrefcode=".$iRefcode."\">Collapse all.</a>\n";
    907 
    908969        /*
    909970         * General
     
    12331294        Odin32DBSqlError($sql);
    12341295    }
     1296
     1297    /*
     1298     * Navigation - Bottom
     1299     */
     1300    Odin32DBNavigationBottom($sExpand, $sCollapse);
    12351301}
    12361302
     
    12551321function Odin32DBFileInfo(&$aContent, $db, $iRefcode, $fFunctions, $fAPIGroups, $fAuthors, $fSortByState)
    12561322{
    1257 
     1323    /*
     1324     * Navigation - TOP
     1325     */
     1326    $sExpand    = "filerefcode=".$iRefcode."&fFiles=1&fFunctions=1&fAPIGroups=1&fAuthors=1";
     1327    if ($fSortByState)  $sExpand = $sExpand."&fSortByState=".$fSortByState;
     1328    $sCollapse  = "filerefcode=".$iRefcode;
     1329    Odin32DBNavigationTop($sExpand, $sCollapse);
     1330
     1331    /*
     1332     * Fetch (vital) data.
     1333     */
    12581334    $sql = sprintf("SELECT\n".
    12591335                   "    f.name          AS name,\n".
     
    12771353    if (($result = mysql_query($sql, $db)) && mysql_num_rows($result) > 0 && ($array = mysql_fetch_array($result)))
    12781354    {
    1279         echo "<a href=\"Odin32DB.phtml?filerefcode=".$iRefcode."&fFiles=1&fFunctions=1&fAPIGroups=1&fAuthors=1";
    1280         if ($fSortByState)  echo "&fSortByState=".$fSortByState;
    1281         echo "\">Expand all.</a>\n";
    1282         echo "<a href=\"Odin32DB.phtml?filerefcode=".$iRefcode."\">Collapse all.</a>\n";
    1283 
    12841355        /*
    12851356         * General
     
    15421613        Odin32DBSqlError($sql);
    15431614    }
     1615
     1616    /*
     1617     * Navigation - Bottom
     1618     */
     1619    Odin32DBNavigationBottom($sExpand, $sCollapse);
    15441620}
    15451621
     
    15671643function Odin32DBAuthorInfo(&$aContent, $db, $iRefcode, $fDlls, $fFunctions, $fFiles, $fAPIGroups, $fSortByState, $iDllRefcode)
    15681644{
     1645    /*
     1646     * Navigation - TOP
     1647     */
     1648    $sExpand    = "authorrefcode=".$iRefcode."&fDlls=1&fFiles=1&fFunctions=1&fAPIGroups=1&fAuthors=1&dll=".$iDllRefcode;
     1649    if ($fSortByState)  $sExpand = $sExpand."&fSortByState=".$fSortByState;
     1650    $sCollapse  = "authorrefcode=".$iRefcode;
     1651    Odin32DBNavigationTop($sExpand, $sCollapse);
     1652
     1653    /*
     1654     * Fetch (vital) data.
     1655     */
    15691656    $sql = sprintf("SELECT\n".
    15701657                   "    a.name          AS name,\n".
     
    15831670    if (($result = mysql_query($sql, $db)) && mysql_num_rows($result) > 0 && ($array = mysql_fetch_array($result)))
    15841671    {
    1585         echo "<a href=\"Odin32DB.phtml?authorrefcode=".$iRefcode."&fDlls=1&fFiles=1&fFunctions=1&fAPIGroups=1&fAuthors=1&dll=".$iDllRefcode;
    1586         if ($fSortByState)  echo "&fSortByState=".$fSortByState;
    1587         echo "\">Expand all.</a>\n";
    1588         echo "<a href=\"Odin32DB.phtml?authorrefcode=".$iRefcode."\">Collapse all.</a>\n";
    1589 
    1590 
    15911672        /*
    15921673         * General
     
    19432024        Odin32DBSqlError($sql);
    19442025    }
     2026
     2027    /*
     2028     * Navigation - Bottom
     2029     */
     2030    Odin32DBNavigationBottom($sExpand, $sCollapse);
    19452031}
    19462032
     
    19652051function Odin32DBAPIGroupInfo(&$aContent, $db, $iRefcode, $fFunctions, $fFiles, $fAuthors, $fSortByState)
    19662052{
     2053    /*
     2054     * Navigation - TOP
     2055     */
     2056    $sExpand    = "apigrouprefcode=".$iRefcode."&fFiles=1&fFunctions=1&fAuthors=1";
     2057    if ($fSortByState)  $sExpand = $sExpand."&fSortByState=".$fSortByState;
     2058    $sCollapse  = "apigrouprefcode=".$iRefcode;
     2059    Odin32DBNavigationTop($sExpand, $sCollapse);
     2060
     2061    /*
     2062     * Fetch (vital) data.
     2063     */
    19672064    $sql = sprintf("SELECT\n".
    19682065                   "    g.name          AS name,\n".
     
    19802077    if (($result = mysql_query($sql, $db)) && mysql_num_rows($result) > 0 && ($array = mysql_fetch_array($result)))
    19812078    {
    1982         echo "<a href=\"Odin32DB.phtml?apigrouprefcode=".$iRefcode."&fFiles=1&fFunctions=1&fAuthors=1";
    1983         if ($fSortByState)  echo "&fSortByState=".$fSortByState;
    1984         echo "\">Expand all.</a>\n";
    1985         echo "<a href=\"Odin32DB.phtml?apigrouprefcode=".$iRefcode."\">Collapse all.</a>\n";
    1986 
    19872079        /*
    19882080         * General
     
    22462338        Odin32DBSqlError($sql);
    22472339    }
     2340
     2341    /*
     2342     * Navigation - Bottom
     2343     */
     2344    Odin32DBNavigationBottom($sExpand, $sCollapse);
    22482345}
    22492346
     
    22602357 * @sketch      Writes the headers present in the contents array.
    22612358 */
    2262 function DBWriteContents(&$aContent)
     2359function Odin32DBWriteContents(&$aContent)
    22632360{
    22642361    TocBeg();
Note: See TracChangeset for help on using the changeset viewer.