Code | Title | Loan | Due |
';
echo ''.$loan['itemCode'].' | ';
echo ''.substr($loan['title'], 0, $receipt_titleLength);
if (strlen($loan['title']) > $receipt_titleLength) {
echo ' ...';
}
echo '. | ';
echo ''.$loan['loanDate'].' | ';
echo ''.$loan['dueDate'].' | ';
echo '';
}
}
// loan extend
if (isset($_SESSION['receipt_record']['extend'])) {
foreach ($_SESSION['receipt_record']['extend'] as $ext) {
echo '';
echo ''.$ext['itemCode'].' | ';
#echo ''.substr($ext['title'], 0, 50).'... -- extended -- | ';
echo ''.substr($ext['title'], 0, $receipt_titleLength);
if (strlen($ext['title']) > $receipt_titleLength) {
echo ' ...';
}
echo '. (Loan Extended) | ';
echo ''.$ext['loanDate'].' | ';
echo ''.$ext['dueDate'].' | ';
echo '
';
}
}
?>
$value) {
if ($_SESSION['receipt_record']['extend'][$key]['itemCode'] == $_SESSION['receipt_record']['return'][$key]['itemCode']) {
unset($_SESSION['receipt_record']['return'][$key]);
}
}
}
?>
Code | Title | Return | Ovd. |
';
echo ''.$ret['itemCode'].' | ';
echo ''.substr($ret['title'], 0, $receipt_titleLength);
if (strlen($ret['title']) > $receipt_titleLength) {
echo ' ...';
}
echo '. | ';
echo ''.$ret['returnDate'].' | ';
if ($ret['overdues']) {
echo ''.$ret['overdues']['days'].' days overdue | ';
} else {
echo ' | ';
}
echo '';
}
?>
Library Staf
|
Library member
|