Location: PHPKode > projects > SENAYAN Library Automation > senayan3-stable5/admin/modules/bibliography/pop_item.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

*/

/* Biblio Item List */

// start the session
session_start();

require '../../../sysconfig.inc.php';
require SIMBIO_BASE_DIR.'simbio_GUI/template_parser/simbio_template_parser.inc.php';

// included js
$js_include = '<script type="text/javascript" src="'.JS_WEB_ROOT_DIR.'prototype.js"></script>'."\n";
$js_include .= '<script type="text/javascript" src="'.JS_WEB_ROOT_DIR.'updater.js"></script>'."\n";
$js_include .= '<script type="text/javascript" src="'.JS_WEB_ROOT_DIR.'form.js"></script>'."\n";
$js_include .= '<script type="text/javascript" src="'.JS_WEB_ROOT_DIR.'gui.js"></script>';

// ajax action
$ajax_action = '<script type="text/javascript">'."\n";
$biblioID = intval($_GET['biblioID']);
if (isset($_GET['itemID']) AND isset($_GET['action'])) {
    $itemID = (integer)$_GET['itemID'];
    $ajax_action .= 'setContent(\'pageContent\', \'item.php?inPopUp=true&action=detail&biblioID='.$biblioID.'\', \'post\', \'itemID='.$itemID.'&detail=true\', true);';
} else {
    $ajax_action .= 'setContent(\'pageContent\', \'item.php?inPopUp=true&action=detail&biblioID='.$biblioID.'\', \'post\', \'\', true);';
}
$ajax_action .= '</script>';

// page title
$page_title = 'Bibliography Items';

// create the template object
$template = new simbio_template_parser(SENAYAN_BASE_DIR.'/admin/'.$sysconf['admin_template']['dir'].'/'.$sysconf['admin_template']['theme'].'/page_tpl.html');
// assign content to markers
$template->assign('<!--PAGE_TITLE-->', $page_title);
$template->assign('<!--CSS-->', SENAYAN_WEB_ROOT_DIR.'admin/'.$sysconf['admin_template']['css']);
$template->assign('<!--JS_INCLUDE-->', $js_include);
$template->assign('<!--MAIN_CONTENT-->', $ajax_action);

// print out the template
$template->printOut();
?>
Return current item: SENAYAN Library Automation