'PARAM_3' => $email,
'PARAM_4' => '',
'PARAM_5' => '',
- 'PARAM_6' => $def_orientation);
+ 'PARAM_6' => $rep == 107 ? '' : $def_orientation);
+ if ($rep == 107)
+ $ar['PARAM_7'] = $def_orientation;
break;
case ST_PURCHORDER :
$rep = 209;
'PARAM_0' => $doc_no,
'PARAM_1' => $doc_no,
'PARAM_2' => '',
- 'PARAM_3' => '',
- 'PARAM_4' => $def_orientation);
+ 'PARAM_3' => $email,
+ 'PARAM_4' => '',
+ 'PARAM_5' => $def_orientation);
break;
case ST_SUPPAYMENT :
$rep = 210;
'PARAM_3' => '',
'PARAM_4' => $def_orientation);
break;
-// default: $ar = array();
+ case ST_DIMENSION :
+ $rep = 501;
+ // from, to, email, comments, orientation
+ $ar = array(
+ 'PARAM_0' => $doc_no,
+ 'PARAM_1' => $doc_no,
+ 'PARAM_2' => 1,
+ 'PARAM_3' => '',
+ 'PARAM_4' => $def_orientation);
+ break;
+ default:
+ return null;
}
-
+
return print_link($link_text, $rep, $ar, "", $icon, $class, $id);
}
//