//
function print_link($link_text, $rep, $pars = array(), $dir = '')
{
- global $path_to_root;
+ global $path_to_root, $pdf_debug;
$url = $dir == '' ? $path_to_root.'/reporting/prn_redirect.php?' : $dir;
}
$pars[] = 'REP_ID='.urlencode($rep);
$url .= implode ('&', $pars);
-
- return "<a class='printlink' target='_blank' href='$url'>$link_text</a>";
+ $class = $pdf_debug ? '' : "class='printlink'";
+ $pars = access_string($link_text);
+ return "<a $class target='_blank' href='$url'$pars[1]>$pars[0]</a>";
}
function get_first_bank_account()