I would like to put the following script (from tips and tricks) on the printer friendly page for a Report
global $strTableName;
if (isset($_SESSION[$strTableName.'_advsearch']))
{
$searchClauseObj = unserialize($_SESSION[$strTableName.'_advsearch']);
}
$fieldSearchData = $searchClauseObj->getSearchCtrlParams("FieldName");
$fieldSearchData = $searchClauseObj->_where[$strTableName."_srchFields"];
for($i=0; $i<count($fieldSearchData); $i++){
$fName = $fieldSearchData[$i]['fName'];
$val1 = $fieldSearchData[$i]['value1'];
$val2 = $fieldSearchData[$i]['value2'];
$srchCat = $fieldSearchData[$i]['opt'];
$srchNot = $fieldSearchData[$i]['not'];
echo "<B>Search: ".$fName." Option: ".$val1." ".$val2."</B>
";
}
The problem is I do not see a way to do this for the Report Printer Friendly (_print.php) page, there is no event section for it.