Changeset 3914 for trunk/tools/database


Ignore:
Timestamp:
Aug 2, 2000, 3:00:45 AM (25 years ago)
Author:
bird
Message:

Rewrote ProjectTeams.phtml. Misc.

Location:
trunk/tools/database/www
Files:
1 added
3 edited

Legend:

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

    r3904 r3914  
    22182218/* TEXT FORMATTING OVERLOADS */
    22192219$aContent = array();
     2220$aaSubContent = array();
     2221$fNumberSections = 0;
     2222
     2223/**
     2224 * Call this to autogenerate section and subsection numbers.
     2225 */
     2226function ODin32DBNumberSections()
     2227{
     2228    global $fNumberSections;
     2229    $fNumberSections = 1;
     2230}
     2231
    22202232
    22212233/**
     
    22262238{
    22272239    global $aContent;
    2228 
    2229     TocBeg();
     2240    global $aaSubContent;
     2241
     2242    echo "\n",
     2243         "<tr><td>\n";
     2244
    22302245    for ($i = 0; $i < sizeof($aContent); $i += 2)
    2231         AnchNaslov($aContent[$i], $aContent[$i + 1], "");
    2232     TocEnd();
     2246    {
     2247        echo "<font size=-2 face=\"WarpSans, Helv, Helvetica, Arial\">".
     2248             "<a href=\"#".$aContent[$i+1]."\"><font color=000099>".
     2249             $aContent[$i]."</font></a><br>\n";
     2250
     2251        $aSubContent = $aaSubContent[$i/2];
     2252        echo "\n";
     2253        if (sizeof($aSubContent) > 0)
     2254        {
     2255            echo "<table>\n";
     2256            for ($j = 0; $j < sizeof($aSubContent); $j += 2)
     2257            {
     2258                echo "<tr><td width=10%>&nbsp;</td>\n",
     2259                     "    <td><font size=-2 face=\"WarpSans, Helv, Helvetica, Arial\">".
     2260                     "<font size=-2 face=\"WarpSans, Helv, Helvetica, Arial\">".
     2261                     "<a href=\"#".$aSubContent[$j+1]."\"><font color=000099>".
     2262                     $aSubContent[$j]."</font></a><br>\n";
     2263                echo "</td></tr>\n";
     2264            }
     2265            echo "</table>\n";
     2266        }
     2267        else
     2268            echo "<p>\n";
     2269    }
     2270
     2271    echo "</td></tr>\n";
    22332272}
    22342273
     
    22392278{
    22402279    global $aContent;
     2280    global $aaSubContent;
     2281    global $fNumberSections;
     2282
     2283    if ($fNumberSections)
     2284        $sFull = (sizeof($aContent)/2 + 1).". ".$sFull;
    22412285
    22422286    $aContent[] = $sFull;
    22432287    $aContent[] = $sShort;
     2288    $aaSubContent[] = array();
    22442289    return Naslov($sFull, $sShort);
    22452290}
    22462291
    22472292
     2293/**
     2294 * Forwarder which also maintains the contents array.
     2295 * Equal to Odin32DBNaslov, but have allows a different contents text.
     2296 */
     2297function Odin32DBNaslov2($sFull, $sFullContents, $sShort)
     2298{
     2299    global $aContent;
     2300    global $aaSubContent;
     2301    global $fNumberSections;
     2302
     2303    if ($fNumberSections)
     2304    {
     2305        $sFull = (sizeof($aContent)/2 + 1).". ".$sFull;
     2306        $sFullContents = (sizeof($aContent)/2 + 1).". ".$sFullContents;
     2307    }
     2308
     2309    $aContent[] = $sFullContents;
     2310    $aContent[] = $sShort;
     2311    $aaSubContent[] = array();
     2312    return Naslov($sFull, $sShort);
     2313}
     2314
     2315
     2316/**
     2317 * Sub title with contents entry.
     2318 */
     2319function Odin32DBPodNaslov($sFull, $sShort)
     2320{
     2321    global $aContent;
     2322    global $aaSubContent;
     2323    global $fNumberSections;
     2324
     2325    $j = (sizeof($aContent) / 2) - 1;
     2326    $aSubContent = $aaSubContent[$j];
     2327
     2328    if ($fNumberSections)
     2329        $sFull = (sizeof($aContent)/2).".".(sizeof($aSubContent)/2 + 1)." ".$sFull;
     2330
     2331    $aSubContent[] = $sFull;
     2332    $aSubContent[] = $sShort;
     2333    $aaSubContent[$j] = $aSubContent;
     2334    echo "<p><b><a name=\"".$sShort."\"><font size=+0 face=\"Helv, Arial\"><br>".$sFull."</font></b></a><p>";
     2335}
    22482336
    22492337?>
  • trunk/tools/database/www/Odin32GuidelineDocumentation.phtml

    r3908 r3914  
    6666CodeBeg();
    6767echo "
    68 /* \$Id: Odin32GuidelineDocumentation.phtml,v 1.1 2000-08-01 21:08:57 bird Exp $
     68/* \$Id: Odin32GuidelineDocumentation.phtml,v 1.2 2000-08-02 01:00:45 bird Exp $
    6969 *
    7070 * <i>&lt;insert file description here&gt;</i>
  • trunk/tools/database/www/Odin32WAI.phtml

    r3904 r3914  
    8282
    8383/*
    84  * Start kso Wed 19.07.2000 0.38.35
    85  *
    8684 * Select the odin32 database.
    8785 * Select all groups under the WAI team.
     
    113111    while ($group = @mysql_fetch_array($result))
    114112    {
    115         Naslov($group["name"]." Group", $group["name"]);
     113        Odin32DBNaslov($group["name"]." Group", $group["name"]);
    116114
    117115        TekstBeg();
     
    226224
    227225/*
    228  * End kso
     226 * Summary
    229227 */
    230228
    231 
    232 
    233 Naslov("Summary", "summary");
    234 
    235         TekstBeg();
    236         echo "
    237                   For DLLs with no active maintaner, you can contact maintaners of
    238                   the root, include and library directories since they have write access
    239                   to all parts of the code.
    240              ";
    241         TekstEnd();
    242 
    243         PodNaslov("Root, include and library code maintainers:");
    244         TekstBeg();
    245         echo "
    246                       <ul>
    247                            <li> Sander van Leeuwen
    248                            <li> Knut St. Osmundsen
    249                            <li> Patrick Haller
    250                            <li> Achim Hasenmueller
    251                       </ul>
    252               ";
    253         TekstEnd();
    254 
    255         TekstBeg();
    256         echo "
    257                 Lot of work stil has to be done, and it's expected
    258                 that some <i>unassigned</i> members of WAI Team will
    259                 jump in.
    260              ";
    261         TekstEnd();
    262 
    263 
    264         PodNaslov("Unassigned members:");
    265         $sql = "SELECT      a.name  AS name
    266                     FROM    author a,
    267                             tgroupmember m
    268                     WHERE   m.tgroup            = 3999 AND
    269                             a.refcode           = m.author ";
    270         $result = mysql_query($sql, $db);
    271         TekstBeg();
    272         printf("<ul>\n");
    273         if (@mysql_num_rows($result) > 0)
    274         {
    275             while ($member = @mysql_fetch_array($result))
    276                 printf("  <li> %s\n", $member["name"]);
    277         }
    278         else
    279             printf("  <li> No unassigned members.");
    280         echo " </ul>
    281         For better overview of WAI Team status as a whole, grouped
    282         status bars are presented below. Only those Odin32 API functions
    283         that are actually implemented (work as their Win32 counterparts)
    284         are counted.
     229    Odin32DBNaslov("Summary", "summary");
     230
     231    TekstBeg();
     232    echo "
     233              For DLLs with no active maintaner, you can contact maintaners of
     234              the root, include and library directories since they have write access
     235              to all parts of the code.
     236         ";
     237    TekstEnd();
     238
     239    PodNaslov("Root, include and library code maintainers:");
     240    TekstBeg();
     241    echo "
     242                  <ul>
     243                       <li> Sander van Leeuwen
     244                       <li> Knut St. Osmundsen
     245                       <li> Patrick Haller
     246                       <li> Achim Hasenmueller
     247                  </ul>
     248          ";
     249    TekstEnd();
     250
     251    TekstBeg();
     252    echo "
     253            Lot of work stil has to be done, and it's expected
     254            that some <i>unassigned</i> members of WAI Team will
     255            jump in.
     256         ";
     257    TekstEnd();
     258
     259
     260    PodNaslov("Unassigned members:");
     261    $sql = "SELECT      a.name  AS name
     262                FROM    author a,
     263                        tgroupmember m
     264                WHERE   m.tgroup            = 3999 AND
     265                        a.refcode           = m.author ";
     266    $result = mysql_query($sql, $db);
     267    TekstBeg();
     268    printf("<ul>\n");
     269    if (@mysql_num_rows($result) > 0)
     270    {
     271        while ($member = @mysql_fetch_array($result))
     272            printf("  <li> %s\n", $member["name"]);
     273    }
     274    else
     275        printf("  <li> No unassigned members.");
     276    echo " </ul>
     277    For better overview of WAI Team status as a whole, grouped
     278    status bars are presented below. Only those Odin32 API functions
     279    that are actually implemented (work as their Win32 counterparts)
     280    are counted.
     281    ";
     282    TekstEnd();
     283
     284
     285
     286    PodNaslov("Implementation Status All Dlls:");
     287    $sql = "SELECT  name,
     288                    refcode
     289            FROM    dll
     290            ORDER BY name";
     291    $result = mysql_query($sql, $db);
     292    TekstBeg();
     293    if (@mysql_num_rows($result) > 0)
     294    {
     295        while ($dll = @mysql_fetch_array($result))
     296            Odin32DBCompletionBarDll($dll["refcode"], $dll["name"],  $db);
     297
     298        Odin32DBCompletionBarDll(-1, "Total",  $db);
     299    }
     300    else
     301        printf("<font color=ff0000> <b>NOBODY</b> </font>");
     302    TekstEnd();
     303
     304
     305    PodNaslov("Notes:");
     306    TekstBeg();
     307    echo "
     308                <ul>
     309                    <li> No application needs all API functions and most
     310                         smaller programs use only a limited set of APIs,
     311                         for example multimedia, Direct Draw or Winsock.
     312                    <li> Some programs may work even if the entire
     313                         set of API it would use is not implemented
     314                         (printing or OLE, for example), if appropriate
     315                         stub functions are provided - the application
     316                         would think it has those APIs available, but
     317                         nothing (or failure) will happen only if the user
     318                         tries to actually use the feature that requires them.
     319                </ul>
     320          ";
     321    TekstEnd();
     322
     323
     324    TekstBeg();
     325    echo "
     326            To access root of Odin32 API on-line database, click
     327         ";
     328          LocLink("Odin32DB.phtml", "here");
     329    echo ".";
     330
     331    TekstEnd();
     332
     333
     334    Odin32DBNaslov("Joining the WAI Team", "joinwai");
     335
     336    TekstBeg();
     337
     338    echo "
     339    WAI Team has a mailing list where team members discuss and coordinate. You can
     340    join the list by filling the form provided below.<p>
     341
     342            <center>
     343            <form method=GET action='http://www.egroups.com/subscribe'>
     344             <input type=hidden name='listname' value='win32os2-wai'>
     345             <input type=hidden name='SubmitAction' value='Subscribe'>
     346             <table width=350 cellspacing=0 cellpadding=2 border=0 bgcolor=#f0f0f0>
     347             <tr>
     348              <td colspan=2 align=center>
     349                <font size=-1>
     350                <b>Click on logo to subscribe<br>to Odin's WAI Team mailing list:</b>
     351                </font>
     352              </td>
     353             </tr><tr>
     354              <td align=right>
     355                <input type=text name='emailaddr' value='your e-mail' size=21>
     356              </td><td align=left>
     357                <input type=image border=0 alt='Click here to join WAI Team mailing list!'
     358                name='Click here to join Odin mailing list!' SRC='odin-bann.jpg'>
     359              </td>
     360             </tr><tr>
     361              <td colspan=2 align=center><font size=-1>
    285362        ";
    286         TekstEnd();
    287 
    288 
    289 
    290         PodNaslov("Implementation Status All Dlls:");
    291         $sql = "SELECT  name,
    292                         refcode
    293                 FROM    dll
    294                 ORDER BY name";
    295         $result = mysql_query($sql, $db);
    296         TekstBeg();
    297         printf("<ul>\n");
    298         if (@mysql_num_rows($result) > 0)
    299         {
    300             while ($dll = @mysql_fetch_array($result))
    301                 Odin32DBCompletionBarDll($dll["refcode"], $dll["name"],  $db);
    302 
    303             Odin32DBCompletionBarDll(-1, "Total",  $db);
    304         }
    305         else
    306             printf("  <li> <font color=ff0000> <b>NOBODY</b> </font>");
    307         printf("</ul>\n");
    308         TekstEnd();
    309 
    310 
    311         PodNaslov("Notes:");
    312         TekstBeg();
    313         echo "
    314                     <ul>
    315                         <li> No application needs all API functions and most
    316                              smaller programs use only a limited set of APIs,
    317                              for example multimedia, Direct Draw or Winsock.
    318                         <li> Some programs may work even if the entire
    319                              set of API it would use is not implemented
    320                              (printing or OLE, for example), if appropriate
    321                              stub functions are provided - the application
    322                              would think it has those APIs available, but
    323                              nothing (or failure) will happen only if the user
    324                              tries to actually use the feature that requires them.
    325                     </ul>
    326               ";
    327         TekstEnd();
    328 
    329 
    330         TekstBeg();
    331         echo "
    332                 To access root of Odin32 API on-line database, click
    333              ";
    334               LocLink("Odin32DB.phtml", "here");
    335         echo ".";
    336 
    337         TekstEnd();
    338 
    339 
    340         PodNaslov("Joining the WAI Team");
    341 
    342         TekstBeg();
    343 
    344         echo "
    345         WAI Team has a mailing list where team members discuss and coordinate. You can
    346         join the list by filling the form provided below.<p>
    347 
    348                 <center>
    349                 <form method=GET action='http://www.egroups.com/subscribe'>
    350                  <input type=hidden name='listname' value='win32os2-wai'>
    351                  <input type=hidden name='SubmitAction' value='Subscribe'>
    352                  <table width=350 cellspacing=0 cellpadding=2 border=0 bgcolor=#f0f0f0>
    353                  <tr>
    354                   <td colspan=2 align=center>
    355                     <font size=-1>
    356                     <b>Click on logo to subscribe<br>to Odin's WAI Team mailing list:</b>
    357                     </font>
    358                   </td>
    359                  </tr><tr>
    360                   <td align=right>
    361                     <input type=text name='emailaddr' value='your e-mail' size=21>
    362                   </td><td align=left>
    363                     <input type=image border=0 alt='Click here to join WAI Team mailing list!'
    364                     name='Click here to join Odin mailing list!' SRC='odin-bann.jpg'>
    365                   </td>
    366                  </tr><tr>
    367                   <td colspan=2 align=center><font size=-1>
    368             ";
    369               UrlLink('www.egroups.com/group/win32os2-wai/', 'Read mail-list archive on-line');
    370          echo "
    371                     </font>
    372                   </td>
    373                  </tr>
    374                  </TABLE>
    375                  </form>
    376                 </center>
    377               ";
    378 
    379         TekstEnd();
    380 
    381 
    382 
     363          UrlLink('www.egroups.com/group/win32os2-wai/', 'Read mail-list archive on-line');
     364     echo "
     365                </font>
     366              </td>
     367             </tr>
     368             </TABLE>
     369             </form>
     370            </center>
     371          ";
     372
     373    TekstEnd();
    383374
    384375
     
    388379require "09-ContentsTitle.php3";
    389380
    390 TocBeg();
    391 
    392 /*
    393  * Start kso Wed 19.07.2000 0.38.35
    394  */
    395 $sql="SELECT    g.name          AS name
    396         FROM    team t,
    397                 tgroup g
    398         WHERE   t.name = 'WAI' AND
    399                 t.refcode = g.team AND
    400                 g.refcode <> 3999
    401        ORDER BY g.name";
    402 $result = @mysql_query($sql,$db);
    403 if (@mysql_num_rows($result) > 0)
    404 {
    405     while ($group = @mysql_fetch_array($result))
    406         AnchNaslov($group["name"]." Group", $group["name"], "");
    407 }
    408 /*
    409  * End kso Wed 19.07.2000 2:19am
    410  */
    411     AnchNaslov("Summary", "summary", "");
    412 TocEnd();
    413 
    414 /*
    415  * Start kso Jul 20 2000 12:22am
    416  */
     381Odin32DBWriteContents();
    417382Odin32DBStateLegend($db);
    418 /*
    419  * End kso Jul 20 2000 12:22am
    420  */
    421 
    422383
    423384require "10-EndOfContent.php3";
Note: See TracChangeset for help on using the changeset viewer.