if (this.constMode2up == this.mode) {
options += '&index2=' + this.leafMap[this.twoPage.currentIndexR] + '&width2=' + this.getPageWidth(this.twoPage.currentIndexR);
options += '&height2=' + this.getPageHeight(this.twoPage.currentIndexR);
+ options += '&title=' + escape(this.shortTitle(30) + ' - Pages ' + this.getPageNum(this.twoPage.currentIndexL) + ', ' + this.getPageNum(this.twoPage.currentIndexR));
+ } else {
+ options += '&title=' + escape(this.shortTitle(30) + ' - Page ' + this.getPageNum(indexToPrint));
}
return '/bookreader/print.php?' + options;
//$imgAspect = $_REQUEST['aspect'];
$width = $_REQUEST['width'];
$height = $_REQUEST['height'];
+$title = $_REQUEST['title'];
// $$$ escape the values
echo " if (doPrint) { print(); }";
echo " }";
echo "</script>";
-echo "<title>" . $id . "</title><body onload='print(); return false;'>";
+echo "<title>" . $title . "</title><body onload='print(); return false;'>";
echo "<p class='noprint' style='text-align: right'>";
echo "<button class='GBicon rollover print' title='Print' onclick='conditionalPrint(); return false;'></button> <a href='#' onclick='print(); return false;'>Print</a></p>";
echo "<p style='text-align:center;'>";