'.__('You are not authorized to view this section').''); } // page title $page_title = 'Kardex List'; $serialID = 0; if (isset($_GET['serialID'])) { $serialID = (integer)$_GET['serialID']; } if (isset($_POST['serialID'])) { $serialID = (integer)$_POST['serialID']; } // start content buffering ob_start(); $serial = new serial($dbs, $serialID); if (isset($_POST['saveKardexes'])) { // save kardexes $serial->saveKardexes(); utility::jsAlert(__('Kardex data updated!')); } else if (isset($_POST['remove'])) { // remove kardex $removeID = (integer)$_POST['remove']; $removed = $serial->deleteKardex($removeID); if ($removed) { utility::jsAlert(__('Kardex data deleted!')); } } // view kardexes list echo $serial->viewKardexes(); $content = ob_get_clean(); // js include $js = ''; // include the page template require SB.'/admin/'.$sysconf['admin_template']['dir'].'/notemplate_page_tpl.php';