- Timestamp:
- 2006-01-27T12:47:40+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/browsetools.cpp
r10981 r11131 84 84 here = buttons.begin(); 85 85 end = buttons.end(); 86 int count = 0;87 86 while (here != end) { 88 if ((count != 0) && ((count % 2) == 0)) textout<< outconvert << "<br>\n";89 87 textout << outconvert << disp << *here; 90 ++count;91 88 ++here; 92 89 } … … 109 106 if (args["d"].empty()) return; 110 107 111 textout << outconvert << disp << "<img alt=\"\" onError=\"src='_httpimg_/blank.gif'\" src=\"_httpcollimg_/_thisOID_/cover.jpg\"> <br>\n";108 textout << outconvert << disp << "<img alt=\"\" onError=\"src='_httpimg_/blank.gif'\" src=\"_httpcollimg_/_thisOID_/cover.jpg\">\n"; 112 109 } 113 110 … … 796 793 797 794 int tabcount = 0; 798 bool havecontrols = false;799 795 bool fulltoc = false; 800 796 … … 810 806 // if we're inside a book 811 807 if ((!fulltoc) && (!args["d"].empty())) { 812 textout << outconvert << "<center>\n"; 813 textout << outconvert << disp << "<p><table width=_pagewidth_ cellpadding=0 cellspacing=0><tr>\n"; 814 textout << outconvert << "<td valign=top align=left"; 815 if (formatinfo.DocumentContents) textout << outconvert << " width=200>\n"; 816 else textout << outconvert << " width=\"100%\">\n"; 808 textout << outconvert << "<div class=\"heading\">\n"; 817 809 if (formatinfo.DocumentImages) 818 810 output_cover_image (args, collectproto, disp, outconvert, textout, logout); 819 811 else if (formatinfo.DocumentTitles) 820 812 output_titles (args, collectproto, browsermap, formatinfo, disp, outconvert, textout, logout); 813 textout << outconvert << "\n</div>\n\n<div class=\"buttons\" id=\"toc_buttons\">\n"; 821 814 if (args["u"] != "1") { 822 815 output_controls (args, formatinfo.DocumentButtons, collectproto, disp, 823 816 outconvert, textout, logout); 824 817 } 825 textout << outconvert << "</td><td valign=\"top\">\n"; 826 havecontrols = true; 818 textout << outconvert << "</div>\n\n"; 827 819 } 828 820 829 821 if (formatinfo.DocumentContents || args["d"].empty()) { 822 textout << outconvert << "<div class=\"toc\">\n"; 830 823 if (args.getintarg("gc") == 1) { 831 824 … … 838 831 expand_show_contents(args, tabcount, fulltoc, browsermap, formatinfo, 839 832 collectproto, disp, outconvert, textout, logout); 840 833 } else { 841 834 842 835 // contracted table of contents … … 844 837 collectproto, disp, outconvert, textout, logout); 845 838 } 846 } 847 848 if (havecontrols) textout << outconvert << "</td></tr></table></center>\n"; 839 textout << outconvert << "</div>\n"; 840 } 849 841 850 842 //if there is a format specified in the config file then
Note:
See TracChangeset
for help on using the changeset viewer.