Changeset 7618


Ignore:
Timestamp:
2004-06-18T10:17:15+12:00 (20 years ago)
Author:
davidb
Message:

previousarrow variable renamed prevarrow to be more consistent with
other variable names in function.

File:
1 edited

Legend:

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

    r7432 r7618  
    131131
    132132  text_t previousOID, previoustitle, nextOID, nexttitle;
    133   text_t previousarrow, nextarrow, httpprevarrow, httpnextarrow;
     133  text_t prevarrow, nextarrow, httpprevarrow, httpnextarrow;
    134134  bool found = false;
    135135
     
    149149    previoustitle = (*(thissection-1)).metadata["Title"].values[0];
    150150      } else {
    151     previousarrow = "_document:parentarrow_";
     151    prevarrow = "_document:parentarrow_";
    152152      }
    153153
     
    168168  textout << outconvert << disp
    169169      << ("_document:textnumpages_(" + text_t(numpages) + ")</center></td></tr>\n");
     170
     171  disp.setmacro ("numpages", "document", numpages);
    170172
    171173  if (!found) {
     
    177179    if (!previousOID.empty()) {
    178180      httpprevarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + dm_safe(previousOID);
    179       previousarrow = "<a href=\"" + httpprevarrow + "\">_iconprev_" + previoustitle + "</a>\n";
     181      prevarrow = "<a href=\"" + httpprevarrow + "\">_iconprev_" + previoustitle + "</a>\n";
    180182    }
    181183    if (!nextOID.empty()) {
     
    188190  if (!httpnextarrow.empty()) disp.setmacro ("httpnextarrow", "document", httpnextarrow);
    189191
     192  if (!prevarrow.empty()) disp.setmacro ("prevarrow", "document", prevarrow);
     193  if (!nextarrow.empty()) disp.setmacro ("nextarrow", "document", nextarrow);
     194
     195
    190196  textout << outconvert << disp << "<tr valign=middle>\n"
    191       << "<td align=right>" << previousarrow << "</td>\n"
     197      << "<td align=right>" << prevarrow << "</td>\n"
    192198      << "<td align=center valign=top>_document:gotoform_</td>"
    193199      << "<td align=left>" << nextarrow << "</td>\n"
Note: See TracChangeset for help on using the changeset viewer.