home *** CD-ROM | disk | FTP | other *** search
- <?php
- ////////////////////////////////////////////////////////////////////////////////
- // <!--Copyright (c) 2005 Pure Networks Inc. All rights reserved.-->
- ////////////////////////////////////////////////////////////////////////////////
- //
- // Build: 3.0.6121.0 (Stable)
- // $Revision: #1 $
- //
- $sNavLocation = "glossary";
- require "_util.php";
- require "_config.php";
- require "_glossary.php";
-
- // PHP does crappy case insensitive sorts, so we make a case insensitive (CI array that matches the real array)
- foreach ($arGlossary as $itmGlossary)
- {
- $arGlossaryCI[strtolower($itmGlossary[0])][0] = strtolower($itmGlossary[0]);
- $arGlossaryCI[strtolower($itmGlossary[0])][1] = strtolower($itmGlossary[1]);
- }
-
- // now we sort both arrays together so the keys match, and we do it ASC on the CI one so we get a true alpha sort
- array_multisort($arGlossaryCI,SORT_ASC, SORT_REGULAR,$arGlossary);
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <head>
- <title><?php echo ($sProductNameInformal); ?> Glossary Entries</title>
- <?php
- require "_styles_import.php";
- ?>
- </head>
-
- <body>
- <!--Copyright (c) 2005 Pure Networks Inc. All rights reserved.-->
- <table width="100%" border="0" class="GlossaryTable">
- <tr>
- <td valign="top">
- <!--Main Content Starts Here-->
- <?php
- //now that we have a CI alpha sort, we run through and print the items in the array out.
- foreach ($arGlossary as $itmGlossary)
- {
- $sGlossaryTerm = $itmGlossary[0];
- $sGlossaryDef = $itmGlossary[1];
- echo ("<a name=\"" . urlencode($sGlossaryTerm) . "\"></a>\r\n");
- echo ("<div class=\"GlossaryItem\">" . $sGlossaryTerm . "</div>\r\n");
- echo ("<div class=\"GlossaryDefinition\">" . $sGlossaryDef . "</div>\r\n");
- }
- ?>
- <!-- Main content ends here -->
- </td>
- </tr>
- </table>
- </body>
- </html>