2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Do it the XHTML way

This commit is contained in:
azammitdcarf
2009-05-05 23:13:06 +00:00
parent 50ee7c17a1
commit f6d2496bd9

View File

@@ -45,11 +45,12 @@
*/
function xhtml_head($title="",$body=true,$css=false,$javascript=false,$bodytext=false,$refresh=false,$clearrefresh=false)
{
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title><? if (empty($title)) print "queXS"; else print "queXS: $title"; ?></title>
<head><title><? if (empty($title)) print "queXS"; else print "queXS: $title"; ?></title>
<?
if ($css)
foreach ($css as $c) print "<link rel='stylesheet' href='$c' type='text/css'></link>";