Location: PHPKode > projects > SENAYAN Library Automation > senayan3-stable5/admin/modules/circulation/quick_return.php
<?php

/*

VERSION : 3.0
CODENAME : SENAYAN
AUTHOR :
    Code and Programming : ARIE NUGRAHA (hide@address.com)
    Database Design : HENDRO WICAKSONO (hide@address.com) & WARDIYONO (hide@address.com)

SENAYAN Library Automation System
Copyright (C) 2007

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program (GPL License.txt); if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/

// start the session
session_start();

require '../../../sysconfig.inc.php';
require SENAYAN_BASE_DIR.'admin/default/session_check.inc.php';

// load settings from database
utility::loadSettings($dbs);

// privileges checking
$can_read = utility::havePrivilege('circulation', 'r');
$can_write = utility::havePrivilege('circulation', 'w');

if (!($can_read AND $can_write)) {
    die('<div class="errorBox">'.lang_sys_common_no_privilege.'</div>');
}

// check if quick return is enabled
if (!$sysconf['quick_return']) {
    die('<div class="errorBox">'.lang_mod_circ_loan_quick_return_disable.'</div');
}
?>

<table id="searchForm" cellpadding="5" cellspacing="0">
<tr>
	<td class="imageLeft" valign="top" style="background-image: url(<?php echo $sysconf['admin_template']['dir'].'/'.$sysconf['admin_template']['theme'].'/quick_return.png'; ?>)">
		<?php echo strtoupper(lang_mod_circ_quick_return); ?> - <?php echo lang_mod_circ_quick_return_msg1; ?>
		<hr />
		<form action="<?php echo MODULES_WEB_ROOT_DIR; ?>circulation/ajax_action.php" target="circAction" method="post" style="display: inline;">
		<?php echo lang_mod_circ_loan_quick_return_form_item_id; ?> :
		<input type="text" name="quickReturnID" id="quickReturnID" size="30" />
		<input type="submit" value="<?php echo lang_mod_circ_loan_quick_return_form_button; ?>" class="button" />
		</form>
        <iframe name="circAction" id="circAction" style="display: inline; width: 5px; height: 5px; visibility: hidden;"></iframe>
	</td>
</tr>
</table>
<div id="circulationLayer">&nbsp;</div>
<script type="text/javascript">
// focus item code/barcode text field
$('quickReturnID').focus();
</script>
Return current item: SENAYAN Library Automation