<?php
/*
* PHP JQuery Toggler - A class library to manage toggle in JQuery
* Copyright (C) 2010 Daniele Monti (monska13 [at] gmail.com)
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*
* */
?>
<?php /* REMOVABLE HEADER */ ?>
<html>
<head>
<title>PHP JQuery Toggler</title>
<link rel="stylesheet" type="text/css" media="screen" href="style/style.css" />
</head>
<?php /* END OF REMOVABLE HEADER */ ?>
<body>
<script>
function toggleBorder(div,onoff)
{
if(onoff=="on")
{
document.getElementById(div).style.border="1px solid #0C0C0C"
}
else
{
setTimeout('document.getElementById("'+div+'").style.border="0px solid #0C0C0C"',400);
}
}
</script>
<?php
require_once("../PHPJQueryToggler.php");
$toggler = new phpToggler("toggler_button_img","toggler_contents_container","I",1,400);
$toggler->includeJQuery("js/jquery-1.4.2.min.js");
$toggler->setOpenCloseImg("image/open.png","image/close.png");
$toggler->addOpenFunction("toggleBorder(\"toggler_contents_container\",\"on\")");
$toggler->addCloseFunction("toggleBorder(\"toggler_contents_container\",\"off\")");
?>
<div id="content">
<div id="toggler_button">
<img id="toggler_button_img" src="image/close.png" alt="open" title="open" />
</div>
<div id="toggler_contents_container" style="border: 1px solid #0C0C0C; display:block">
<div id="toggler_contents">
<?php
$toggler->printVars();
?>
<br /><br />
<strong>Software released under GPL V3</strong><br /><br />
<img src="image/gplv3.png" alt="GPL 3 License" title="GPL 3 License" />
<br /><br />
PHP JQuery Toggler - A class library to manage toggle in JQuery<br />
Copyright (C) 2010 Daniele Monti (monska13 [at] gmail.com)<br />
<br />
This program is free software: you can redistribute it and/or modify<br />
it under the terms of the GNU General Public License as published by<br />
the Free Software Foundation, either version 3 of the License, or<br />
(at your option) any later version.<br />
<br />
This program is distributed in the hope that it will be useful,<br />
but WITHOUT ANY WARRANTY; without even the implied warranty of<br />
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br />
GNU General Public License for more details.<br />
<br />
You should have received a copy of the GNU General Public License<br />
along with this program. If not, see <a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>.<br />
</div>
</div>
</div>
<div style="clear:both;"></div>
<?php
$toggler->printJs();
?>
</body>
</html>
|