<?php
/*
* WebCompiler Footer
*
* Copyright (C) 2004-2005 David "BAILOPAN" Anderson and the AMX Mod X Development Team
* Copyright (C) 2005-2010 NiLuJe <niluje@ak-team.com>
*
* $Id: footer.inc.php 6337 2010-06-01 23:54:34Z NiLuJe $
*
* 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; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*
*/

// JS Workaround pour la checkbox, hardset la valeur
echo <<<EOF
<script type="text/javascript">
//<![CDATA[
	inputs = document.getElementsByTagName('input');
	for(var i=0; i < inputs.length; i++) {
		if(inputs[i].getAttribute('type') == 'checkbox') {
			if(inputs[i].checked) {
				document.getElementsByTagName('form')[0].adv.value = 'on';
				document.getElementsByTagName('form')[1].adv.value = 'on';
			} else {
				document.getElementsByTagName('form')[0].adv.value = 'off';
				document.getElementsByTagName('form')[1].adv.value = 'off';
			}
		}
	}
//]]>
</script>
EOF;

// Credits & Links
echo <<<EOF
<p><span class="small">
	<a href="http://www.amxmodx.org" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">AMX Mod X</a> -
	<a href="http://amxmod.net" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">AMX Mod</a> -
	<a href="http://wiki.amxmodx.org/index.php/Category:Documentation_(AMX_Mod_X)" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">AMX Mod X Doc</a> -
	<a href="http://amxmod.net/doc" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">AMX Mod Doc</a> -
	<a href="http://www.amxmodx.org/funcwiki.php" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">AMX Mod X FuncWiki</a> -
	<a href="http://wiki.amxmodx.org" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">AMX Mod X Wiki</a> -
	<a href="http://site.ak-team.com" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">AK|Team</a> -
	<a href="http://paste.ak-team.com" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">Pastebin</a> -
	<a href="ChangeLog.html" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">ChangeLog</a> -
	<a href="http://trac.ak-team.com/browser/Webcomp/trunk" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">Source</a> -
	<a href="http://svn.ak-team.com/svn/Webcomp/trunk/README.txt" style="color: #365d95" onmouseover="fadeElement(this, '#1f2126')" onmouseout="fadeElement(this, '#365d95')" onclick="window.open(this.href);return(false);">Info</a>
</span></p>
EOF;

/* GenTime */
$pg_end = microtime( true );
$totaltime = $pg_end - $pg_start;
$showtime = number_format( $totaltime, 4, '.', '' );
echo '<p><br/><span class="small">'._('Page generated in ').$showtime._(' seconds').'</span></p>'."\n";

/* SVN Id  & W3 Stuffs */
echo <<<EOF
<p><span class="credits">$MY_SVN_ID</span></p>

<p><br/>
	<a href="http://validator.w3.org/check?uri=$MY_URI&amp;accept=application%2Fxhtml%2Bxml%2C*&amp;accept-language=$LANG" onclick="window.open(this.href);return(false);"><img src="valid-xhtml11-blue.png" alt="Valid XHTML 1.1" style="border:0;width:88px;height:31px" /></a>

	<a href="http://jigsaw.w3.org/css-validator/validator?uri=$MY_CSS" onclick="window.open(this.href);return(false);"> <img style="border:0;width:88px;height:31px" src="vcss-blue.png" alt="Valid CSS" /> </a>
</p>

</body>
</html>
EOF;

?>
