'.__('You don\'t have enough privileges to view this section').''); } if (!isset($_SESSION['memberID'])) { die(); } require SIMBIO.'simbio_GUI/table/simbio_table.inc.php'; require SIMBIO.'simbio_UTILS/simbio_date.inc.php'; // page title $page_title = 'Member Loan List'; ob_start(); ?>
:
0) { // create table object $temp_loan_list = new simbio_table(); $temp_loan_list->table_attr = "align='center' style='width: 100%;' cellpadding='3' cellspacing='0'"; $temp_loan_list->table_header_attr = 'class="dataListHeader" style="font-weight: bold;"'; $temp_loan_list->highlight_row = true; // table header $headers = array(__('Remove'), __('Item Code'), __('Title'), __('Loan Date'), __('Due Date')); $temp_loan_list->setHeader($headers); // row number init $row = 1; foreach ($_SESSION['temp_loan'] as $_loan_ID => $temp_loan_list_d) { // alternate the row color $row_class = ($row%2 == 0)?'alterCell':'alterCell2'; // remove link $remove_link = ' '; // check if manually changes loan and due date allowed if ($sysconf['allow_loan_date_change']) { $loan_date = ''.$temp_loan_list_d['loan_date'].''; $due_date = ''.$temp_loan_list_d['due_date'].''; } else { $loan_date = $temp_loan_list_d['loan_date']; $due_date = $temp_loan_list_d['due_date']; } // row colums array $fields = array( $remove_link, $temp_loan_list_d['item_code'], $temp_loan_list_d['title'], $loan_date, $due_date); // append data to table row $temp_loan_list->appendTableRow($fields); // set the HTML attributes $temp_loan_list->setCellAttr($row, null, 'class="'.$row_class.'"'); $temp_loan_list->setCellAttr($row, 0, 'valign="top" align="center" style="width: 5%;"'); $temp_loan_list->setCellAttr($row, 1, 'valign="top" style="width: 10%;"'); $temp_loan_list->setCellAttr($row, 2, 'valign="top" style="width: 60%;"'); $row++; } echo $temp_loan_list->printTable(); } } // get the buffered content $content = ob_get_clean(); // include the page template require SB.'/admin/'.$sysconf['admin_template']['dir'].'/notemplate_page_tpl.php';