forked from inclusive-design/AChecker
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue-4930: Fixed the invalid html doctype and missing xmlns that wer…
…e used in handbook and popup frame window.
- Loading branch information
Showing
6 changed files
with
239 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,99 @@ | ||
<?php | ||
/************************************************************************/ | ||
/* AChecker */ | ||
/************************************************************************/ | ||
/* Copyright (c) 2008 - 2011 */ | ||
/* Inclusive Design Institute */ | ||
/* */ | ||
/* 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. */ | ||
/************************************************************************/ | ||
// $Id$ | ||
|
||
define('AC_INCLUDE_PATH', '../include/'); | ||
include(AC_INCLUDE_PATH.'vitals.inc.php'); | ||
|
||
if (isset($_GET['p'])) { | ||
$this_page = htmlentities($_GET['p']); | ||
} else { | ||
exit; | ||
} | ||
|
||
?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html lang="<?php echo DEFAULT_LANGUAGE_CODE; ?>"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title><?php echo _AC('achecker_documentation'); ?></title> | ||
<style type="text/css"> | ||
body { font-family: Verdana,Arial,sans-serif; font-size: x-small; margin: 0px; padding: 3px; background: #f4f4f4; color: #afafaf; } | ||
ul, ol { list-style: none; padding-left: 0px; margin-left: -15px; } | ||
li { margin-left: 19pt; padding-top: 2px; } | ||
a { text-decoration: none; } | ||
a:link, a:visited { color: #006699; } | ||
a:hover { color: #66AECC; } | ||
input { border: 0px; padding: 2px 5px 2px 5px; } | ||
input[type=submit] { background-color: #dfdfdf; padding: 1px; border: #AAA solid 1px; } | ||
input[type=submit]:hover { color: blue; background-color: #eee; padding: 1px; } | ||
form { padding: 0px; margin: 0px; display: inline; } | ||
</style> | ||
<script type="text/javascript"> | ||
// <!-- | ||
var currentPage; | ||
|
||
function showTocToggle(show, hide) { | ||
if(document.getElementById) { | ||
document.writeln('<a href="javascript:toggleToc(false)">' + | ||
'<span id="showlink" style="display:none;">' + show + '</span>' + | ||
'<span id="hidelink">' + hide + '</span>' + '</a>'); | ||
} | ||
} | ||
function toggleToc(override) { | ||
var showlink=document.getElementById('showlink'); | ||
var hidelink=document.getElementById('hidelink'); | ||
|
||
if (override && (hidelink.style.display == 'none')) { | ||
top.show(); | ||
hidelink.style.display=''; | ||
showlink.style.display='none'; | ||
} else if (!override && (hidelink.style.display == 'none')) { | ||
top.show(); | ||
hidelink.style.display=''; | ||
showlink.style.display='none'; | ||
} else if (!override) { | ||
top.hide(); //('0, *'); | ||
hidelink.style.display='none'; | ||
showlink.style.display=''; | ||
} | ||
} | ||
// --> | ||
</script> | ||
</head> | ||
<body><form method="get" action="search.php" target="toc" onsubmit='toggleToc(true);false;'> | ||
<input type="hidden" name="p" value="<?php echo $this_page; ?>"> | ||
|
||
<script type="text/javascript"> | ||
// <!-- | ||
if (top.name == 'popup') { | ||
document.write('<a href="javascript:top.close();"><?php echo _AC('close_popup'); ?></a> | '); | ||
} | ||
// --> | ||
</script> | ||
|
||
<input type="text" name="query" /> <input type="submit" name="search" value="<?php echo _AC('search'); ?>" /> | | ||
<a href="print.php?p=<?php echo $this_page; ?>" target="_top"><?php echo _AC('print_version'); ?></a> | ||
|
||
<script type="text/javascript"> | ||
//<!-- | ||
document.writeln(' | '); | ||
showTocToggle('<?php echo _AC('show_contents'); ?>' ,'<?php echo _AC('hide_contents'); ?>'); | ||
if (top.name == 'popup') { | ||
toggleToc(true); | ||
} | ||
//--> | ||
</script> | ||
|
||
</form> | ||
</body> | ||
<?php | ||
/************************************************************************/ | ||
/* AChecker */ | ||
/************************************************************************/ | ||
/* Copyright (c) 2008 - 2011 */ | ||
/* Inclusive Design Institute */ | ||
/* */ | ||
/* 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. */ | ||
/************************************************************************/ | ||
// $Id$ | ||
|
||
define('AC_INCLUDE_PATH', '../include/'); | ||
include(AC_INCLUDE_PATH.'vitals.inc.php'); | ||
|
||
if (isset($_GET['p'])) { | ||
$this_page = htmlentities($_GET['p']); | ||
} else { | ||
exit; | ||
} | ||
|
||
?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo DEFAULT_LANGUAGE_CODE; ?>" lang="<?php echo DEFAULT_LANGUAGE_CODE; ?>"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title><?php echo _AC('achecker_documentation'); ?></title> | ||
<style type="text/css"> | ||
body { font-family: Verdana,Arial,sans-serif; font-size: x-small; margin: 0px; padding: 3px; background: #f4f4f4; color: #afafaf; } | ||
ul, ol { list-style: none; padding-left: 0px; margin-left: -15px; } | ||
li { margin-left: 19pt; padding-top: 2px; } | ||
a { text-decoration: none; } | ||
a:link, a:visited { color: #006699; } | ||
a:hover { color: #66AECC; } | ||
input { border: 0px; padding: 2px 5px 2px 5px; } | ||
input[type=submit] { background-color: #dfdfdf; padding: 1px; border: #AAA solid 1px; } | ||
input[type=submit]:hover { color: blue; background-color: #eee; padding: 1px; } | ||
form { padding: 0px; margin: 0px; display: inline; } | ||
</style> | ||
<script type="text/javascript"> | ||
// <!-- | ||
var currentPage; | ||
|
||
function showTocToggle(show, hide) { | ||
if(document.getElementById) { | ||
document.writeln('<a href="javascript:toggleToc(false)">' + | ||
'<span id="showlink" style="display:none;">' + show + '</span>' + | ||
'<span id="hidelink">' + hide + '</span>' + '</a>'); | ||
} | ||
} | ||
function toggleToc(override) { | ||
var showlink=document.getElementById('showlink'); | ||
var hidelink=document.getElementById('hidelink'); | ||
|
||
if (override && (hidelink.style.display == 'none')) { | ||
top.show(); | ||
hidelink.style.display=''; | ||
showlink.style.display='none'; | ||
} else if (!override && (hidelink.style.display == 'none')) { | ||
top.show(); | ||
hidelink.style.display=''; | ||
showlink.style.display='none'; | ||
} else if (!override) { | ||
top.hide(); //('0, *'); | ||
hidelink.style.display='none'; | ||
showlink.style.display=''; | ||
} | ||
} | ||
// --> | ||
</script> | ||
</head> | ||
<body><form method="get" action="search.php" target="toc" onsubmit='toggleToc(true);false;'> | ||
<input type="hidden" name="p" value="<?php echo $this_page; ?>"> | ||
|
||
<script type="text/javascript"> | ||
// <!-- | ||
if (top.name == 'popup') { | ||
document.write('<a href="javascript:top.close();"><?php echo _AC('close_popup'); ?></a> | '); | ||
} | ||
// --> | ||
</script> | ||
|
||
<input type="text" name="query" /> <input type="submit" name="search" value="<?php echo _AC('search'); ?>" /> | | ||
<a href="print.php?p=<?php echo $this_page; ?>" target="_top"><?php echo _AC('print_version'); ?></a> | ||
|
||
<script type="text/javascript"> | ||
//<!-- | ||
document.writeln(' | '); | ||
showTocToggle('<?php echo _AC('show_contents'); ?>' ,'<?php echo _AC('hide_contents'); ?>'); | ||
if (top.name == 'popup') { | ||
toggleToc(true); | ||
} | ||
//--> | ||
</script> | ||
|
||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.