1<?php
2/********************************
3OSBib:
4A collection of PHP classes to create and manage bibliographic formatting for OS bibliography software
5using the OSBib standard.
6
7Released through http://bibliophile.sourceforge.net under the GPL licence.
8Do whatever you like with this -- some credit to the author(s) would be appreciated.
9
10If you make improvements, please consider contacting the administrators at bibliophile.sourceforge.net
11so that your improvements can be added to the release package.
12
13Adapted from WIKINDX: http://wikindx.sourceforge.net
14
15Mark Grimshaw 2005
16http://bibliophile.sourceforge.net
17********************************/
18/*****
19* CLOSEPOPUP class
20*
21* Close tidily and print HTML. this used for javascript pop-ups so does not include titles, GIFs etc.
22*
23*	$Header: /cvsroot/bibliophile/OSBib/create/CLOSEPOPUP.php,v 1.1 2005/06/25 02:57:34 sirfragalot Exp $
24*
25*****/
26class CLOSEPOPUP
27{
28// Constructor
29	function CLOSEPOPUP($pString = FALSE)
30	{
31		include_once("MESSAGES.php");
32		$this->messages = new MESSAGES();
33		print $this->header();
34		print $this->printBody($pString);
35		ob_end_flush();
36		die;
37	}
38/**
39* Print HTML header information
40*/
41	function header()
42	{
43return <<< END
44<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
45<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
46
47<head>
48<title>OSBib-Create</title>
49<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
50<link rel="stylesheet" href="osbib.css" type="text/css" />
51</head>
52
53END;
54	}
55/**
56* Print result
57*/
58	function printBody($pString)
59	{
60return <<< END
61<body>
62<table class="mainTable" border="0" cellspacing="0" cellpadding="0" align="center">
63<tr class="" align="left" valign="top">
64<td class="" align="left" valign="top">
65$pString
66</td>
67</tr>
68</table>
69</body>
70</html>
71END;
72	}
73}
74?>
75