'OK', 'ERROR'=>'ERROR']; ob_start(); print "

Book ID input

"; print "
"; print '
'; print '
'; print '

ID type

'; print ''; print '
'; print ''; print '
'; print '
'; print ''; print ''; print ''; print ''; print '
'; if (isset ($_GET['ret'])){ if (array_key_exists($_GET['ret'],$rets)){ $r = $rets[$_GET['ret']]; print "

$r

"; } } print "
"; print "

Errors

"; print "
".errors()."
"; $output = ob_get_clean(); Template::render($output); function errors(){ ob_start(); $a = file("../data/isbn-error.txt"); $r = array_reverse($a); print "
";
        foreach ($r as $l){
            print($l);
        }
        print "
"; return ob_get_clean(); }