Changeset 10947 for trunk/gsdl/src/recpt/vlistbrowserclass.cpp
- Timestamp:
- 2005-11-25T13:12:03+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/vlistbrowserclass.cpp
r10873 r10947 57 57 58 58 text_t vlistbrowserclass::get_default_formatstring () { 59 return "<td valign= top>[link][icon][/link]</td>"60 "<td valign= top>[srclink][srcicon][/srclink]</td>"61 "<td valign= top>[highlight]{Or}{[Title],Untitled}[/highlight]"59 return "<td valign=\"top\">[link][icon][/link]</td>" 60 "<td valign=\"top\">[srclink][srcicon][/srclink]</td>" 61 "<td valign=\"top\">[highlight]{Or}{[Title],Untitled}[/highlight]" 62 62 "{If}{[Source],<br><i>([Source])</i>}</td>"; 63 63 } … … 84 84 85 85 86 /* use_table is set to true if the format string starts with <td> */ 86 87 if (use_table || colnumber > 0) { 87 textout << outconvert << "<table ><tr valign=top>";88 textout << outconvert << "<table class=\"v_list\"><tr valign=\"top\">"; 88 89 // get tab size 89 90 text_t tab; int itab; … … 93 94 << "<td><img src=\"_httpimg_/space.gif\" width=" 94 95 << (itab*colnumber) << "></td>"; 96 } else { 97 textout << outconvert << "<div class=\"v_list\">\n"; 95 98 } 96 99 … … 106 109 options, logout); 107 110 108 if (use_table || colnumber > 0) textout << outconvert << "</tr></table>\n"; 111 if (use_table || colnumber > 0) { 112 textout << outconvert << "</tr></table>\n"; 113 } else { 114 textout << outconvert << "</div>\n"; 115 } 109 116 110 117 return 1; … … 127 134 128 135 if (colnumber > 0) { 129 textout << outconvert << "<table><tr valign= top>";136 textout << outconvert << "<table><tr valign=\"top\">"; 130 137 // get tab size 131 138 text_t tab; int itab; … … 137 144 textout << outconvert << "<td>"; 138 145 } 139 if (use_table) textout << outconvert << "<table>\n"; 146 147 /* use table set to true if format string starts with <td> */ 148 if (use_table) { 149 textout << outconvert << "<table class=\"v_list\">\n"; 150 } else { 151 textout << outconvert << "<div class=\"v_list\">\n"; 152 } 140 153 141 154 ResultDocInfo_tarray::iterator thissection = sections.docInfo.begin(); … … 143 156 144 157 // ** here lies Alan's hack to get 4 results per table row 145 int item = 0, perline; ;// set perline to 1 normally158 int item = 0, perline; // set perline to 1 normally 146 159 text_t fstring; 147 160 … … 194 207 } 195 208 196 if (use_table) textout << outconvert << "</table>\n"; 209 if (use_table) 210 textout << outconvert << "</table>\n"; 211 else 212 textout << outconvert << "</div>\n"; 197 213 if (colnumber > 0) textout << outconvert << "</td></tr></table>\n"; 198 214
Note:
See TracChangeset
for help on using the changeset viewer.