Changeset 3903 for trunk/tools/database/www/Odin32DBHelpers.php3
- Timestamp:
- Jul 31, 2000, 3:25:53 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/database/www/Odin32DBHelpers.php3
r3902 r3903 622 622 623 623 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 */ 634 function 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 */ 659 function 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 624 678 625 679 … … 642 696 function Odin32DBFunctionInfo(&$aContent, $db, $iRefcode) 643 697 { 698 Odin32DBNavigationTop("",""); 699 644 700 $sql = sprintf("SELECT\n". 645 701 " f.name AS name,\n". … … 862 918 Odin32DBSqlError($sql); 863 919 } 920 Odin32DBNavigationBottom("",""); 864 921 } 865 922 … … 885 942 function Odin32DBDllInfo(&$aContent, $db, $iRefcode, $fFunctions, $fFiles, $fAPIGroups, $fAuthors, $fSortByState) 886 943 { 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 */ 889 955 $sql = sprintf("SELECT\n". 890 956 " d.name AS name,\n". … … 901 967 if (($result = mysql_query($sql, $db)) && mysql_num_rows($result) > 0 && ($array = mysql_fetch_array($result))) 902 968 { 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 908 969 /* 909 970 * General … … 1233 1294 Odin32DBSqlError($sql); 1234 1295 } 1296 1297 /* 1298 * Navigation - Bottom 1299 */ 1300 Odin32DBNavigationBottom($sExpand, $sCollapse); 1235 1301 } 1236 1302 … … 1255 1321 function Odin32DBFileInfo(&$aContent, $db, $iRefcode, $fFunctions, $fAPIGroups, $fAuthors, $fSortByState) 1256 1322 { 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 */ 1258 1334 $sql = sprintf("SELECT\n". 1259 1335 " f.name AS name,\n". … … 1277 1353 if (($result = mysql_query($sql, $db)) && mysql_num_rows($result) > 0 && ($array = mysql_fetch_array($result))) 1278 1354 { 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 1284 1355 /* 1285 1356 * General … … 1542 1613 Odin32DBSqlError($sql); 1543 1614 } 1615 1616 /* 1617 * Navigation - Bottom 1618 */ 1619 Odin32DBNavigationBottom($sExpand, $sCollapse); 1544 1620 } 1545 1621 … … 1567 1643 function Odin32DBAuthorInfo(&$aContent, $db, $iRefcode, $fDlls, $fFunctions, $fFiles, $fAPIGroups, $fSortByState, $iDllRefcode) 1568 1644 { 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 */ 1569 1656 $sql = sprintf("SELECT\n". 1570 1657 " a.name AS name,\n". … … 1583 1670 if (($result = mysql_query($sql, $db)) && mysql_num_rows($result) > 0 && ($array = mysql_fetch_array($result))) 1584 1671 { 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 1591 1672 /* 1592 1673 * General … … 1943 2024 Odin32DBSqlError($sql); 1944 2025 } 2026 2027 /* 2028 * Navigation - Bottom 2029 */ 2030 Odin32DBNavigationBottom($sExpand, $sCollapse); 1945 2031 } 1946 2032 … … 1965 2051 function Odin32DBAPIGroupInfo(&$aContent, $db, $iRefcode, $fFunctions, $fFiles, $fAuthors, $fSortByState) 1966 2052 { 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 */ 1967 2064 $sql = sprintf("SELECT\n". 1968 2065 " g.name AS name,\n". … … 1980 2077 if (($result = mysql_query($sql, $db)) && mysql_num_rows($result) > 0 && ($array = mysql_fetch_array($result))) 1981 2078 { 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 1987 2079 /* 1988 2080 * General … … 2246 2338 Odin32DBSqlError($sql); 2247 2339 } 2340 2341 /* 2342 * Navigation - Bottom 2343 */ 2344 Odin32DBNavigationBottom($sExpand, $sCollapse); 2248 2345 } 2249 2346 … … 2260 2357 * @sketch Writes the headers present in the contents array. 2261 2358 */ 2262 function DBWriteContents(&$aContent)2359 function Odin32DBWriteContents(&$aContent) 2263 2360 { 2264 2361 TocBeg();
Note:
See TracChangeset
for help on using the changeset viewer.