$list[] = "<span class='disabled'>" . get_string('download', 'local_request') . "</span>"; } if ($reg_approval == 1) { $list[] = get_string('approvedc', 'local_request'); $list[] = "<a href='../../local/request/transcriptpdf.php?id={$request->id}&semid={$request->req_semester}' target = '_blank' >" . get_string('download', 'local_request') . "</a>"; } if ($reg_approval == 2) { $list[] = get_string('rejectedc', 'local_request'); $list[] = "<span class='disabled'>" . get_string('download', 'local_request') . "</span>"; } $data[] = $list; } } echo $OUTPUT->heading($strheading); $currenttab = 'view'; $requestpro->requesttranscripttabview($currenttab); echo $OUTPUT->box(get_string('viewtranscriptsdes', 'local_request')); echo $OUTPUT->box_start('generalbox'); if (!empty($data)) { $PAGE->requires->js('/local/request/js/requesttranscriptjs.js'); echo "<div id='filter-box' >"; echo '<div class="filterarea"></div></div>'; } $table = new html_table(); $table->id = 'requesttranscripttable'; $table->head = array( get_string('requestsem', 'local_semesters'), get_string('requested_date', 'local_request'), get_string('status', 'local_request'), get_string('download', 'local_request')); $table->size = array('25%', '25%', '25%', '25%');