Changeset 2899
- Timestamp:
- 2001-12-14T13:18:02+13:00 (22 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/vlistbrowserclass.cpp
r2763 r2899 124 124 ResultDocInfo_tarray::iterator endsection = sections.docInfo.end(); 125 125 126 // ** here lies Alan's hack to get 4 results per table row 127 int item = 0, perline;; // set perline to 1 normally 128 text_t fstring; 129 if ( thissection != endsection ) { // only if there are results (else corrupts display) 130 fstring = 131 get_formatted_string (collection, collectproto, 132 *thissection, disp, formatlistptr, link, icon, false, logout); 133 // if format string 134 // has <td><t (e.g. <td><table>) then 135 // we assume it is an image and put it in 4 columns 136 if (fstring[5] == 't') 137 perline = 4; 138 else 139 perline = 1; 140 } 141 126 142 while (thissection != endsection) { 127 143 item++; 128 144 get_link_icon (*thissection, args, collink, link, icon); 129 145 bool highlight = false; … … 133 149 if (arg_cl == (*thissection).OID) highlight = true; 134 150 135 if (use_table || colnumber > 0) textout << "<tr valign=top>"; 151 if ((item == 1 && use_table) || colnumber > 0 ) 152 textout << "<tr valign=top>\n"; 153 136 154 textout << outconvert << disp 137 << get_formatted_string (collection, collectproto, 138 *thissection, disp, formatlistptr, 139 link, icon, highlight, logout); 140 141 if (use_table || colnumber > 0) textout << "</tr>"; 155 << " " << get_formatted_string (collection, collectproto, 156 *thissection, disp, formatlistptr, link, icon, false, logout); 157 158 if ((item >= perline && use_table) || colnumber > 0) { 159 textout << "\n</tr>"; 160 item = 0; 161 } 142 162 textout << "\n"; 143 163 thissection ++;
Note:
See TracChangeset
for help on using the changeset viewer.