Changeset 1247 for trunk/gsdl/src/recpt
- Timestamp:
- 2000-06-28T11:02:40+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pageaction.cpp
r1234 r1247 28 28 /* 29 29 $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 30 34 Revision 1.31 2000/06/23 03:48:08 sjboddie 31 35 Added Arabic language and encoding options to the preferences page. This … … 211 215 text_tarray::iterator collist_here = collist.begin(); 212 216 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; 217 220 while (collist_here != collist_end) { 218 221 … … 246 249 } 247 250 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"; 260 253 261 254 text_t link = "<a href=\"_gwcgi_?a=p&p=about&c=" + *collist_here + "\">"; … … 263 256 link = "<a href=\"_gwcgi_?a=p&p=about&l=zh&nw=u&c=" + *collist_here + "\">"; 264 257 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 + "\">"; 266 259 267 260 if (!cinfo.receptionist.empty()) 268 261 link = "<a href=\"" + cinfo.receptionist + "\">"; 269 262 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"; 274 264 275 265 count ++; 266 first = false; 276 267 } 277 268 } … … 279 270 collist_here ++; 280 271 } 272 for (; count%3 != 0; count ++) homeextra += "<td></td>\n"; 281 273 homeextra += "</tr></table></center>\n"; 282 274 disp.setmacro ("homeextra", "home", homeextra);
Note:
See TracChangeset
for help on using the changeset viewer.