Changeset 3877 for trunk/tools/database


Ignore:
Timestamp:
Jul 21, 2000, 5:45:32 AM (25 years ago)
Author:
bird
Message:

Seems quit ok.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/www/Odin32WAI.phtml

    r3860 r3877  
    8383 *
    8484 */
     85Require "Odin32DBHelpers.php3";
     86
    8587$db = mysql_connect("127.0.0.1", "root", "");
    8688$rc = mysql_select_db("odin32", $db);
     
    107109    while ($group = @mysql_fetch_array($result))
    108110    {
    109         Naslov($group[name]." Group", $group[name]);
    110 
    111         TekstBeg();
    112         echo $group[description];
     111        Naslov($group["name"]." Group", $group["name"]);
     112
     113        TekstBeg();
     114        echo $group["description"];
    113115        TekstEnd();
    114116
     
    121123                                m.codemaintainer    = 'Y'  AND
    122124                                a.refcode           = m.author ",
    123                       $group[refcode]);
     125                      $group["refcode"]);
    124126        $result2 = mysql_query($sql, $db);
    125127        TekstBeg();
     
    129131            while ($member = @mysql_fetch_array($result2))
    130132                printf("  <li><a href=\"mailto:%s?Subject=Odin32 %s\">%s</a>\n",
    131                        $member[email],
    132                        $group[name],
    133                        $member[name]
     133                       $member["email"],
     134                       $group["name"],
     135                       $member["name"]
    134136                       );
    135137        }
     
    148150                                m.codemaintainer    = 'N'  AND
    149151                                a.refcode           = m.author ",
    150                       $group[refcode]);
     152                      $group["refcode"]);
    151153        $result2 = mysql_query($sql, $db);
    152154        TekstBeg();
     
    155157        {
    156158            while ($member = @mysql_fetch_array($result2))
    157                 printf("  <li> %s\n", $member[name]);
     159                printf("  <li> %s\n", $member["name"]);
    158160        }
    159161        else
     
    163165
    164166
    165         PodNaslov("Completed:");
     167        PodNaslov("Implementation Status:");
     168        $sql = sprintf("SELECT  UPPER(d.name)   AS name,
     169                                d.refcode       AS refcode
     170                        FROM    dll d,
     171                                tgroupdll t
     172                        WHERE   t.tgroup = %d AND
     173                                t.dll = d.refcode
     174                        ORDER BY name",
     175                      $group["refcode"]);
     176        $result2 = mysql_query($sql, $db);
     177        TekstBeg();
     178        if (@mysql_num_rows($result2) > 0)
     179        {
     180            while ($dll = @mysql_fetch_array($result2))
     181                Odin32DBCompletionBar($dll["refcode"], $dll["name"], $db);
     182        }
     183        else
     184            printf("  <font color=ff0000> <b>Huh! NO DLLs?</b> </font>");
     185        TekstEnd();
     186
     187
     188        PodNaslov("Notes:");
     189        TekstBeg();
     190        echo "<ul>";
     191        echo $group["notes"];
     192        echo "</ul>";
     193        TekstEnd();
     194
     195
     196        TekstBeg();
    166197        $sql = sprintf("SELECT  UPPER(d.name)  AS name
    167198                        FROM    dll d,
     
    170201                                t.dll = d.refcode
    171202                        ORDER BY name",
    172                       $group[refcode]);
     203                      $group["refcode"]);
    173204        $result2 = mysql_query($sql, $db);
    174205        TekstBeg();
     
    177208            while ($dll = @mysql_fetch_array($result2))
    178209            {
    179                 /*$finished = Odin32ComputeCompletion($dll[name]);  - TODO */
    180                 $finished = 7;
    181                 DoneBar($finished, $dll[name]);
    182             }
    183         }
    184         else
    185             printf("  <font color=ff0000> <b>Huh! NO DLLs?</b> </font>");
    186         TekstEnd();
    187 
    188 
    189         PodNaslov("Notes:");
    190         TekstBeg();
    191         echo "<ul>";
    192         echo $group[notes];
    193         echo "</ul>";
    194         TekstEnd();
    195 
    196 
    197         TekstBeg();
    198         $sql = sprintf("SELECT  UPPER(d.name)  AS name
    199                         FROM    dll d,
    200                                 tgroupdll t
    201                         WHERE   t.tgroup = %d AND
    202                                 t.dll = d.refcode
    203                         ORDER BY name",
    204                       $group[refcode]);
    205         $result2 = mysql_query($sql, $db);
    206         TekstBeg();
    207         if (@mysql_num_rows($result2) > 0)
    208         {
    209             while ($dll = @mysql_fetch_array($result2))
    210             {
    211                 printf(" To Access the %s part of the Odin32 API database, click ", $dll[name]);
    212                 $lnk = sprintf("Odin32DB.phtml?dll=%s", $dll[name]);
     210                printf(" To Access the %s part of the Odin32 API database, click ", $dll["name"]);
     211                $lnk = sprintf("Odin32DB.phtml?dll=%s", $dll["name"]);
    213212                LocLink($lnk, "here");
    214213                printf(".<BR>\n");
     
    229228Naslov("Summary", "summary");
    230229
    231         /*
    232230        TekstBeg();
    233231        echo "
     
    271269        {
    272270            while ($member = @mysql_fetch_array($result))
    273                 printf("  <li> %s\n", $member[name]);
     271                printf("  <li> %s\n", $member["name"]);
    274272        }
    275273        else
     
    285283
    286284
    287         PodNaslov("Completed API summary:");
     285        PodNaslov("Implementation Status:");
    288286        $sql = "SELECT  name,
    289287                        refcode
     
    296294        {
    297295            while ($dll = @mysql_fetch_array($result))
    298             {
    299                 /* $finished = Odin32CalculateCompleteness($dll[name]) */
    300                 $finieshed = 8;
    301                 DoneBar($finished, &dll[name]);
     296                Odin32DBCompletionBar($dll["refcode"], $dll["name"],  $db);
    302297        }
    303298        else
     
    305300        printf("</ul>\n");
    306301        TekstEnd();
    307         */
    308302
    309303
     
    403397{
    404398    while ($group = @mysql_fetch_array($result))
    405     {
    406         AnchNaslov($group[name]." Group", $group[name], "");
    407     }
     399        AnchNaslov($group["name"]." Group", $group["name"], "");
    408400}
    409401/*
    410  * Start kso Wed 19.07.2000 2:19am
     402 * End kso Wed 19.07.2000 2:19am
    411403 */
    412404    AnchNaslov("Summary", "summary", "");
    413405TocEnd();
    414406
     407/*
     408 * Start kso Jul 20 2000 12:22am
     409 */
     410Odin32DBStateLegend($db);
     411/*
     412 * End kso Jul 20 2000 12:22am
     413 */
     414
     415
    415416require "10-EndOfContent.php3";
    416417require "11-NetlabsContact.php3";
Note: See TracChangeset for help on using the changeset viewer.