Changeset 1247


Ignore:
Timestamp:
2000-06-28T11:02:40+12:00 (24 years ago)
Author:
sjboddie
Message:

Tidied up the way collections are displayed on 'standard' homepage.
Removed all the nzdl.org specific stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/pageaction.cpp

    r1234 r1247  
    2828/*
    2929   $Log$
     30   Revision 1.32  2000/06/27 23:02:40  sjboddie
     31   Tidied up the way collections are displayed on 'standard' homepage.
     32   Removed all the nzdl.org specific stuff.
     33
    3034   Revision 1.31  2000/06/23 03:48:08  sjboddie
    3135   Added Arabic language and encoding options to the preferences page. This
     
    211215    text_tarray::iterator collist_here = collist.begin();
    212216    text_tarray::iterator collist_end = collist.end();
    213    
    214     int row1 = 9;
    215     int row2 = 8;
    216     int count = 1;
     217
     218    int count = 0;
     219    bool first = true;
    217220    while (collist_here != collist_end) {
    218221     
     
    246249          }
    247250       
    248           if ((count == 1) || (count == (row1+1)) || (count == ((row1+row2)+1)))
    249         homeextra += "<td align=center>";
    250           else homeextra += "<p>";
    251 
    252           if (*collist_here == "niupepa") {
    253         homeextra += "<a href=\"_httpmusiclibrary_\">_iconmusiclibrary_</a>\n";
    254         if ((count == row1) || (count == (row1+row2))) homeextra += "</td>";
    255         count ++;
    256         if ((count == 1) || (count == (row1+1)) || (count == ((row1+row2)+1)))
    257           homeextra += "<td align=center>";
    258         else homeextra += "<p>";
    259           }
     251          if ((count%3 == 0) && (!first))
     252        homeextra += "</tr><tr valign=top>\n";
    260253         
    261254          text_t link = "<a href=\"_gwcgi_?a=p&p=about&c=" + *collist_here + "\">";
     
    263256        link = "<a href=\"_gwcgi_?a=p&p=about&l=zh&nw=u&c=" + *collist_here + "\">";
    264257          if (*collist_here == "arabic")
    265         link = "<a href=\"_gwcgi_?a=p&p=about&w=a&c=" + *collist_here + "\">";
     258        link = "<a href=\"_gwcgi_?a=p&p=about&l=ar&nw=u&c=" + *collist_here + "\">";
    266259
    267260          if (!cinfo.receptionist.empty())
    268261        link = "<a href=\"" + cinfo.receptionist + "\">";
    269262         
    270           homeextra += link + collectionname + "</a>\n";
    271          
    272           if ((count == row1) || (count == (row1+row2)))
    273         homeextra += "</td>";
     263          homeextra += "<td>" + link + collectionname + "</a></td>\n";
    274264         
    275265          count ++;
     266          first = false;
    276267        }
    277268      }
     
    279270      collist_here ++;
    280271    }
     272    for (; count%3 != 0; count ++) homeextra += "<td></td>\n";
    281273    homeextra += "</tr></table></center>\n";
    282274    disp.setmacro ("homeextra", "home", homeextra);
Note: See TracChangeset for help on using the changeset viewer.