I have created the Print button next to the Edit, View, Edit and Delete buttons.
function ListOptions_Load() {
$opt = &$this->ListOptions->Add("Print");
$opt->MoveTo(0);
}
function ListOptions_Rendered() {
$body = "<a href='report.php?id_report=".$this->id_report->CurrentValue."' <button class='btn btn-primary btn-xs' target='_blank'> Print</a>" ;
$this->ListOptions->Items["Print"]->Body = $body;
}
I have 2 users ( professors and students). For edit button, view, delete can be set in table tab. How do I get the Print button to appear only on the Professor's menu while the student does not appear?