//
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'";
+ return "<a $class target='_blank' href='$url'>$link_text</a>";
}
function get_first_bank_account()
$st_params .= "<div id='REP_" . $rep_counter++ . "' style='display:none'>";
$st_params .= "<table border=0><tr><td>\n"
- . "<form method='POST' action='$action'>\n"
+ . "<form method='POST' action='$action' target='_blank'>\n"
. $report->getDisplay()
. "\n</form>\n"
. "</td></tr></table></div>";
function getDisplay()
{
- global $path_to_root, $use_date_picker;
+ global $path_to_root, $use_date_picker, $pdf_debug;
$st = hidden('REP_ID', $this->id, false);
$st .= submit('Rep'.$this->id,
_("Display: ") . access_string($this->name,true),
- false, '', true) . '<br><br>';
+ false, '', $pdf_debug==0) . '<br><br>';
$dummy = "";
if ($this->ar_params==null)
return "";