vpnmanager 1.0.0 new theme
This commit is contained in:
parent
619a83188b
commit
4df36dc230
@ -14,9 +14,9 @@ $SITE_MODULES[0]="Home#Home"; // Home Module required!
|
|||||||
//$SITE_MODULES[1]="Contact#Contact";
|
//$SITE_MODULES[1]="Contact#Contact";
|
||||||
//$SITE_MODULES[2]="Services#Services";
|
//$SITE_MODULES[2]="Services#Services";
|
||||||
$SITE_MODULES[1]="Server Traffic#ServerTraffic";
|
$SITE_MODULES[1]="Server Traffic#ServerTraffic";
|
||||||
$SITE_MODULES[2]="Downloads#Downloads";
|
//$SITE_MODULES[2]="Downloads#Downloads";
|
||||||
$SITE_MODULES[3]="Forum#Forum";
|
$SITE_MODULES[2]="Forum#Forum";
|
||||||
$SITE_MODULES[4]="Userinfo#UserControl";
|
$SITE_MODULES[3]="Userinfo#UserControl";
|
||||||
|
|
||||||
//Header Modules Admin -----------------------
|
//Header Modules Admin -----------------------
|
||||||
$SITE_MODULES_ADMIN[0]="Home#Home"; // Home Module required!
|
$SITE_MODULES_ADMIN[0]="Home#Home"; // Home Module required!
|
||||||
|
@ -17,121 +17,174 @@ else
|
|||||||
{
|
{
|
||||||
$moduleurl = $_SERVER["REQUEST_URI"] . "?site=1";
|
$moduleurl = $_SERVER["REQUEST_URI"] . "?site=1";
|
||||||
}
|
}
|
||||||
if($_SERVER["REQUEST_URI"] == "/Admin/" || is_null($_SERVER["REQUEST_URI"]))
|
if($_SERVER["REQUEST_URI"] == "/" || is_null($_SERVER["REQUEST_URI"]))
|
||||||
{
|
{
|
||||||
$moduleurl = "/Admin/index.php?site=1";
|
$moduleurl = "/index.php?site=1";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
include($_SERVER["DOCUMENT_ROOT"]."/Config/_siteconfig_.php");
|
include($_SERVER["DOCUMENT_ROOT"]."/Config/_siteconfig_.php");
|
||||||
|
|
||||||
|
$tpl_root = $SITE_WEBROOT . "Themes/" . $SITE_THEME . "/";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!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" dir="ltr" lang="en-US" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<script language="JavaScript1.2">
|
<!--
|
||||||
/* <![CDATA[ */
|
Designed by Christoph Haas
|
||||||
function Mailto(mail,nameli,nachnameli,domainli,landli)
|
-->
|
||||||
{
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
var mimimail;
|
<meta name="keywords" content="SprinterVPN, VPN, IPsec, OpenVPN, tunnel, secure" />
|
||||||
mimimail = "mailto:" + nameli + "." + nachnameli + "\@" + domainli + "." + landli;
|
<meta name="rights" content="© sprinternet.at" />
|
||||||
mail.href = mimimail;
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
return (1);
|
<meta name="description" content="SprinterVPN VPN Services" />
|
||||||
}
|
|
||||||
|
|
||||||
function my_confirm(msg,go) {
|
<title><?php echo $SITE_TITLE; ?> - <?php echo $SITE_SUBTITLE; ?></title>
|
||||||
var where_to= confirm(msg);
|
|
||||||
if (where_to== true) {
|
<script type="text/javascript">
|
||||||
window.location=go;
|
var templateroot = "<?php echo $tpl_root ?>";
|
||||||
}
|
|
||||||
}
|
|
||||||
/* ]]> */
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
Designed by Christoph Haas
|
<link rel="icon" href="<?php echo $tpl_root ?>img/favicon.ico" type="image/x-icon">
|
||||||
Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
|
<link rel="shortcut icon" href="<?php echo $tpl_root ?>img/favicon.ico" type="image/x-icon">
|
||||||
-->
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
|
|
||||||
<title><?php echo $SITE_TITLE; ?> - <?php echo $SITE_SUBTITLE; ?></title>
|
|
||||||
<script type="text/javascript" src="/Site/script.js"></script>
|
|
||||||
<link rel="stylesheet" href="/Themes/<?php echo $SITE_THEME;?>.css" type="text/css" media="screen" />
|
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
<link rel="stylesheet" media="all" href="<?php echo $tpl_root ?>css/style.css"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||||
|
<!-- Adding "maximum-scale=1" fixes the Mobile Safari auto-zoom bug: http://filamentgroup.com/examples/iosScaleBug/ -->
|
||||||
|
|
||||||
|
<!-- JS -->
|
||||||
|
<script src="<?php echo $tpl_root ?>js/jquery-1.6.4.min.js"></script>
|
||||||
|
<script src="<?php echo $tpl_root ?>js/css3-mediaqueries.js"></script>
|
||||||
|
<script src="<?php echo $tpl_root ?>js/custom.js"></script>
|
||||||
|
<script src="<?php echo $tpl_root ?>js/tabs.js"></script>
|
||||||
|
|
||||||
|
<!-- superfish -->
|
||||||
|
<link rel="stylesheet" media="screen" href="<?php echo $tpl_root ?>css/superfish.css" />
|
||||||
|
<script src="<?php echo $tpl_root ?>js/superfish-1.4.8/js/hoverIntent.js"></script>
|
||||||
|
<script src="<?php echo $tpl_root ?>js/superfish-1.4.8/js/superfish.js"></script>
|
||||||
|
<script src="<?php echo $tpl_root ?>js/superfish-1.4.8/js/supersubs.js"></script>
|
||||||
|
<!-- ENDS superfish -->
|
||||||
|
|
||||||
|
<!-- prettyPhoto -->
|
||||||
|
<script src="<?php echo $tpl_root ?>js/prettyPhoto/js/jquery.prettyPhoto.js"></script>
|
||||||
|
<link rel="stylesheet" href="<?php echo $tpl_root ?>js/prettyPhoto/css/prettyPhoto.css" media="screen" />
|
||||||
|
<!-- ENDS prettyPhoto -->
|
||||||
|
|
||||||
|
<!-- poshytip -->
|
||||||
|
<link rel="stylesheet" href="<?php echo $tpl_root ?>js/poshytip-1.1/src/tip-twitter/tip-twitter.css" />
|
||||||
|
<link rel="stylesheet" href="<?php echo $tpl_root ?>js/poshytip-1.1/src/tip-yellowsimple/tip-yellowsimple.css" />
|
||||||
|
<script src="<?php echo $tpl_root ?>js/poshytip-1.1/src/jquery.poshytip.min.js"></script>
|
||||||
|
<!-- ENDS poshytip -->
|
||||||
|
|
||||||
|
<!-- GOOGLE FONTS -->
|
||||||
|
<link rel="stylesheet" media="all" href="<?php echo $tpl_root ?>css/fonts.css"/>
|
||||||
|
|
||||||
|
<!-- Flex Slider -->
|
||||||
|
<link rel="stylesheet" href="<?php echo $tpl_root ?>css/flexslider.css" >
|
||||||
|
<script src="<?php echo $tpl_root ?>js/jquery.flexslider-min.js"></script>
|
||||||
|
<!-- ENDS Flex Slider -->
|
||||||
|
|
||||||
|
<!-- Less framework -->
|
||||||
|
<link rel="stylesheet" media="all" href="<?php echo $tpl_root ?>css/lessframework.css"/>
|
||||||
|
|
||||||
|
<!-- modernizr -->
|
||||||
|
<script src="<?php echo $tpl_root ?>js/modernizr.js"></script>
|
||||||
|
|
||||||
|
<!-- SKIN -->
|
||||||
|
<link rel="stylesheet" media="all" href="<?php echo $tpl_root ?>css/skin.css"/>
|
||||||
|
|
||||||
|
<!-- MAIN -->
|
||||||
|
<link rel="stylesheet" media="all" href="<?php echo $tpl_root ?>css/main.css"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
<div id="art-page-background-simple-gradient">
|
|
||||||
</div>
|
|
||||||
<div id="art-main">
|
|
||||||
<div class="art-Sheet">
|
|
||||||
<div class="art-Sheet-tl"></div>
|
|
||||||
<div class="art-Sheet-tr"></div>
|
|
||||||
<div class="art-Sheet-bl"></div>
|
|
||||||
<div class="art-Sheet-br"></div>
|
|
||||||
<div class="art-Sheet-tc"></div>
|
|
||||||
<div class="art-Sheet-bc"></div>
|
|
||||||
<div class="art-Sheet-cl"></div>
|
|
||||||
<div class="art-Sheet-cr"></div>
|
|
||||||
<div class="art-Sheet-cc"></div>
|
|
||||||
<div class="art-Sheet-body">
|
|
||||||
<div class="art-Header">
|
|
||||||
<div class="art-Header-jpeg"></div>
|
|
||||||
<?php
|
|
||||||
if(!isset($_SESSION["user_id"]))
|
|
||||||
{
|
|
||||||
echo "<form action=\"Site/login.php\" method=\"post\">
|
|
||||||
<b><font color=\"#FFFFFF\"> Username:</font></b>
|
|
||||||
<input style=\"font-weight: bold; font-size:15px; color: white; background-color: black; opacity: .7;filter: alpha(opacity=70); -moz-opacity: .7;\"
|
|
||||||
type=\"text\" name=\"name\" size=\"20\">
|
|
||||||
<b><font color=\"#FFFFFF\">Passwort:</font></b>
|
|
||||||
<input style=\"font-size:15px; color: white; background-color: black; opacity: .7;filter: alpha(opacity=70); -moz-opacity: .7;\"
|
|
||||||
type=\"password\" name=\"pwd\" size=\"20\">";
|
|
||||||
|
|
||||||
echo "
|
<body lang="en">
|
||||||
<input type=\"hidden\" name=\"path\" size=\"50\" value=\"".$moduleurl."\">
|
<script>
|
||||||
<input type=\"submit\" value=\"Login\">
|
document.body.className += ' js-enabled';
|
||||||
</form>";
|
</script>
|
||||||
}
|
<div id="noscript">
|
||||||
?>
|
<div class="center jstext">YOU HAVE TO ENABLE JAVASCRIPT TO USE THIS PAGE!</div>
|
||||||
<div class="art-Logo">
|
|
||||||
<h1 id="name-text" class="art-Logo-name"><a href="index.php"><?php echo $SITE_TITLE; ?></a></h1>
|
|
||||||
<div id="slogan-text" class="art-Logo-text">Administration</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="art-nav">
|
<header class="clearfix">
|
||||||
<div class="l"></div>
|
|
||||||
<div class="r"></div>
|
<div class="wrapper clearfix">
|
||||||
<ul class="art-menu">
|
|
||||||
|
<a title="Startpage" href="index.php" id="logo"><img src="<?php echo $tpl_root ?>img/logo.png" alt="SprinterSVN"></a>
|
||||||
|
<h1 class="yc-headline"><?php echo $SITE_TITLE; ?> - <?php echo $SITE_SUBTITLE; ?></h1>
|
||||||
|
<nav>
|
||||||
|
<ul id="nav" class="sf-menu">
|
||||||
|
<li><a href="http://vpn.sprinternet.at/">HOME</a>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a title="Webmail" href="https://www.sprinternet.at/webapp">WEBMAIL</a>
|
||||||
|
<ul>
|
||||||
|
<li><a title="Webaccess" href="https://www.sprinternet.at/webaccess">Webaccess</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a title="Cloud" href="https://www.sprinternet.at/owncloud">CLOUD</a></li>
|
||||||
|
<li><a title="Yuco" href="http://yuco.sprinternet.at/">YUCO</a></li>
|
||||||
|
<li><a title="Blog" href="http://blog.sprinternet.at">BLOG</a></li>
|
||||||
|
<li><a title="Wiki" href="http://www.sprinternet.at/wiki/doku.php?do=login">WIKI</a></li>
|
||||||
|
<li><a title="SVN" href="http://svn.sprinternet.at">SVN</a></li>
|
||||||
|
<li>
|
||||||
|
<a title="Impressum" target="_blank" href="http://blog.sprinternet.at/impressum/">IMPRESSUM</a>
|
||||||
|
<ul>
|
||||||
|
<li><a title="Terms of Service" target="_blank" href="http://blog.sprinternet.at/terms-of-service/">TERMS OF SERVICE</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<?php
|
<?php
|
||||||
$moduleid = 0;
|
$moduleid = 0;
|
||||||
foreach ($SITE_MODULES_ADMIN as $modul)
|
foreach ($SITE_MODULES_ADMIN as $modul) {
|
||||||
{
|
|
||||||
$moduleid++;
|
$moduleid++;
|
||||||
$cut = strpos($modul, "#");
|
$cut = strpos($modul, "#");
|
||||||
$modtitle = substr($modul,0,$cut);
|
$modtitle = substr($modul,0,$cut);
|
||||||
echo "
|
echo "
|
||||||
<li>
|
<li>
|
||||||
<a href=\"/Admin/index.php?site=".$moduleid."&uebergabe=0&uebergabe2=0&uebergabe3=0&uebergabe4=0\"";
|
<a title=\"".$modtitle."\"href=\"/Admin/index.php?site=" . $moduleid . "&uebergabe=0&uebergabe2=0&uebergabe3=0&uebergabe4=0\"";
|
||||||
if($moduleurl == "/Admin/index.php?site=".$moduleid)
|
if($moduleurl == "/Admin/index.php?site=".$moduleid)
|
||||||
echo " class=active>";
|
echo " class=active>";
|
||||||
else
|
else
|
||||||
echo ">";
|
echo ">";
|
||||||
echo " <span class=\"l\"></span>
|
echo $modtitle . "
|
||||||
<span class=\"r\"></span>
|
|
||||||
<span class=\"t\">".$modtitle."</span>
|
|
||||||
</a>
|
</a>
|
||||||
</li>";
|
</li>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_SESSION["user_admin"]) && $_SESSION["user_admin"] == "1")
|
if (isset($_SESSION["user_admin"]) && $_SESSION["user_admin"] == "1") {
|
||||||
{
|
echo "<li><a title=\"Logout\"href=\"Site/logout.php\">";
|
||||||
echo "<li><a href=\"/\">";
|
echo "LOGOUT";
|
||||||
echo "<span class=\"l\"></span><span class=\"r\">";
|
|
||||||
echo "</span><span class=\"t\">Logout</span>";
|
|
||||||
echo "</a>";
|
echo "</a>";
|
||||||
echo "</li>";
|
echo "</li>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
<div id="combo-holder"></div>
|
||||||
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<?php /*
|
||||||
|
if(!isset($_SESSION["user_id"]))
|
||||||
|
{
|
||||||
|
echo "<form action=\"Site/login.php\" method=\"post\">
|
||||||
|
<b><font color=\"#FFFFFF\"> Username:</font></b>
|
||||||
|
<input style=\"font-weight: bold; font-size:15px; color: white; background-color: black; opacity: .7;filter: alpha(opacity=70); -moz-opacity: .7;\"
|
||||||
|
type=\"text\" name=\"name\" size=\"20\"/>
|
||||||
|
<b><font color=\"#FFFFFF\">Passwort:</font></b>
|
||||||
|
<input style=\"font-size:15px; color: white; background-color: black; opacity: .7;filter: alpha(opacity=70); -moz-opacity: .7;\"
|
||||||
|
type=\"password\" name=\"pwd\" size=\"20\"/>";
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<input type=\"hidden\" name=\"path\" size=\"50\" value=\"".$moduleurl."\"/>
|
||||||
|
<input type=\"submit\" value=\"Login\"/>
|
||||||
|
</form>";
|
||||||
|
}
|
||||||
|
*/?>
|
||||||
|
|
||||||
<!-- MAIN CONTENT BEGINN ################################################################################ -->
|
<!-- MAIN CONTENT BEGINN ################################################################################ -->
|
||||||
|
@ -144,7 +144,7 @@ $tpl_root = $SITE_WEBROOT . "Themes/" . $SITE_THEME . "/";
|
|||||||
$moduleid++;
|
$moduleid++;
|
||||||
$cut = strpos($modul, "#");
|
$cut = strpos($modul, "#");
|
||||||
$modtitle = substr($modul,0,$cut);
|
$modtitle = substr($modul,0,$cut);
|
||||||
if($moduleid > 0) {
|
if($moduleid > 1) {
|
||||||
echo "
|
echo "
|
||||||
<li>
|
<li>
|
||||||
<a title=\"" . $modtitle . "\" href=\"/index.php?site=" . $moduleid . "&uebergabe=0&uebergabe2=0&uebergabe3=0&uebergabe4=0\"";
|
<a title=\"" . $modtitle . "\" href=\"/index.php?site=" . $moduleid . "&uebergabe=0&uebergabe2=0&uebergabe3=0&uebergabe4=0\"";
|
||||||
|
@ -2,27 +2,24 @@
|
|||||||
<?php
|
<?php
|
||||||
$moduleurl = $_SERVER["REQUEST_URI"];
|
$moduleurl = $_SERVER["REQUEST_URI"];
|
||||||
$urlcut = strpos($moduleurl, "&");
|
$urlcut = strpos($moduleurl, "&");
|
||||||
if($urlcut > 0)
|
if($urlcut > 0) {
|
||||||
{
|
|
||||||
$moduleurl = substr($moduleurl,0,$urlcut);
|
$moduleurl = substr($moduleurl,0,$urlcut);
|
||||||
}
|
} else {
|
||||||
else
|
if(strpos($moduleurl, "?") == 0) {
|
||||||
{
|
|
||||||
if(strpos($moduleurl, "?") == 0)
|
|
||||||
{
|
|
||||||
$moduleurl = $_SERVER["REQUEST_URI"] . "?site=1";
|
$moduleurl = $_SERVER["REQUEST_URI"] . "?site=1";
|
||||||
}
|
}
|
||||||
if($_SERVER["REQUEST_URI"] == "/" || is_null($_SERVER["REQUEST_URI"]))
|
if($_SERVER["REQUEST_URI"] == "/" || is_null($_SERVER["REQUEST_URI"])) {
|
||||||
{
|
|
||||||
$moduleurl = "/index.php?site=1";
|
$moduleurl = "/index.php?site=1";
|
||||||
}
|
}
|
||||||
if($moduleurl == "/index.php?site=lf")
|
if($moduleurl == "/index.php?site=lf") {
|
||||||
{
|
|
||||||
$moduleurl = "/index.php?site=1";
|
$moduleurl = "/index.php?site=1";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<!-- MAIN -->
|
||||||
|
<div id="main">
|
||||||
|
<div class="wrapper">
|
||||||
<h2><font color=red><b>Login was incorrect!</b></font></h2>
|
<h2><font color=red><b>Login was incorrect!</b></font></h2>
|
||||||
|
|
||||||
<form action="/Site/login.php" method="post">
|
<form action="/Site/login.php" method="post">
|
||||||
@ -43,6 +40,5 @@ Retry:
|
|||||||
</table>
|
</table>
|
||||||
<input type="submit" value="Login"/>
|
<input type="submit" value="Login"/>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
<!-- END CONTENT BEGINN ################################################################################# -->
|
</div>
|
||||||
|
|
@ -4,6 +4,9 @@ $moduleurl = $_SERVER["REQUEST_URI"];
|
|||||||
$urlcut = strpos($moduleurl, "&");
|
$urlcut = strpos($moduleurl, "&");
|
||||||
$moduleurl = substr($moduleurl,0,$urlcut);
|
$moduleurl = substr($moduleurl,0,$urlcut);
|
||||||
?>
|
?>
|
||||||
|
<!-- MAIN -->
|
||||||
|
<div id="main">
|
||||||
|
<div class="wrapper">
|
||||||
<h1><b> Administrator Login </h1></b>
|
<h1><b> Administrator Login </h1></b>
|
||||||
<form action="/admin/login.php" method="post">
|
<form action="/admin/login.php" method="post">
|
||||||
<table>
|
<table>
|
||||||
@ -28,5 +31,6 @@ $moduleurl = substr($moduleurl,0,$urlcut);
|
|||||||
</table>
|
</table>
|
||||||
<input type="submit" value="Login">
|
<input type="submit" value="Login">
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- END CONTENT BEGINN ################################################################################# -->
|
<!-- END CONTENT BEGINN ################################################################################# -->
|
||||||
|
278
Site/script.js
278
Site/script.js
@ -1,278 +0,0 @@
|
|||||||
/* begin Page */
|
|
||||||
|
|
||||||
/* file checksum is A9B5EF42. */
|
|
||||||
|
|
||||||
var artEventHelper = {
|
|
||||||
'bind': function(obj, evt, fn) {
|
|
||||||
if (obj.addEventListener)
|
|
||||||
obj.addEventListener(evt, fn, false);
|
|
||||||
else if (obj.attachEvent)
|
|
||||||
obj.attachEvent('on' + evt, fn);
|
|
||||||
else
|
|
||||||
obj['on' + evt] = fn;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var userAgent = navigator.userAgent.toLowerCase();
|
|
||||||
var browser = {
|
|
||||||
version: (userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1],
|
|
||||||
safari: /webkit/.test(userAgent) && !/chrome/.test(userAgent),
|
|
||||||
chrome: /chrome/.test(userAgent),
|
|
||||||
opera: /opera/.test(userAgent),
|
|
||||||
msie: /msie/.test(userAgent) && !/opera/.test(userAgent),
|
|
||||||
mozilla: /mozilla/.test(userAgent) && !/(compatible|webkit)/.test(userAgent)
|
|
||||||
};
|
|
||||||
|
|
||||||
var artLoadEvent = (function() {
|
|
||||||
|
|
||||||
|
|
||||||
var list = [];
|
|
||||||
|
|
||||||
var done = false;
|
|
||||||
var ready = function() {
|
|
||||||
if (done) return;
|
|
||||||
done = true;
|
|
||||||
for (var i = 0; i < list.length; i++)
|
|
||||||
list[i]();
|
|
||||||
};
|
|
||||||
|
|
||||||
if (document.addEventListener && !browser.opera)
|
|
||||||
document.addEventListener('DOMContentLoaded', ready, false);
|
|
||||||
|
|
||||||
if (browser.msie && window == top) {
|
|
||||||
(function() {
|
|
||||||
try {
|
|
||||||
document.documentElement.doScroll('left');
|
|
||||||
} catch (e) {
|
|
||||||
setTimeout(arguments.callee, 10);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ready();
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (browser.opera) {
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
|
||||||
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
||||||
if (document.styleSheets[i].disabled) {
|
|
||||||
setTimeout(arguments.callee, 10);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ready();
|
|
||||||
}, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (browser.safari) {
|
|
||||||
var numStyles;
|
|
||||||
(function() {
|
|
||||||
if (document.readyState != 'loaded' && document.readyState != 'complete') {
|
|
||||||
setTimeout(arguments.callee, 10);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ('undefined' == typeof numStyles) {
|
|
||||||
numStyles = document.getElementsByTagName('style').length;
|
|
||||||
var links = document.getElementsByTagName('link');
|
|
||||||
for (var i = 0; i < links.length; i++) {
|
|
||||||
numStyles += (links[i].getAttribute('rel') == 'stylesheet') ? 1 : 0;
|
|
||||||
}
|
|
||||||
if (document.styleSheets.length != numStyles) {
|
|
||||||
setTimeout(arguments.callee, 0);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ready();
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
artEventHelper.bind(window, 'load', ready);
|
|
||||||
|
|
||||||
return ({
|
|
||||||
add: function(f) {
|
|
||||||
list.push(f);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})();
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
// fix ie blinking
|
|
||||||
var m = document.uniqueID && document.compatMode && !window.XMLHttpRequest && document.execCommand;
|
|
||||||
try { if (!!m) { m('BackgroundImageCache', false, true); } }
|
|
||||||
catch (oh) { };
|
|
||||||
})();
|
|
||||||
|
|
||||||
function xGetElementsByClassName(clsName, parentEle, tagName) {
|
|
||||||
var elements = null;
|
|
||||||
var found = [];
|
|
||||||
var s = String.fromCharCode(92);
|
|
||||||
var re = new RegExp('(?:^|' + s + 's+)' + clsName + '(?:$|' + s + 's+)');
|
|
||||||
if (!parentEle) parentEle = document;
|
|
||||||
if (!tagName) tagName = '*';
|
|
||||||
elements = parentEle.getElementsByTagName(tagName);
|
|
||||||
if (elements) {
|
|
||||||
for (var i = 0; i < elements.length; ++i) {
|
|
||||||
if (elements[i].className.search(re) != -1) {
|
|
||||||
found[found.length] = elements[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return found;
|
|
||||||
}
|
|
||||||
|
|
||||||
var styleUrlCached = null;
|
|
||||||
function GetStyleUrl() {
|
|
||||||
if (null == styleUrlCached) {
|
|
||||||
var ns;
|
|
||||||
styleUrlCached = '';
|
|
||||||
ns = document.getElementsByTagName('link');
|
|
||||||
for (var i = 0; i < ns.length; i++) {
|
|
||||||
var l = ns[i];
|
|
||||||
if (l.href && /style\.css(\?.*)?$/.test(l.href)) {
|
|
||||||
return styleUrlCached = l.href.replace(/style\.css(\?.*)?$/, '');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ns = document.getElementsByTagName('style');
|
|
||||||
for (var i = 0; i < ns.length; i++) {
|
|
||||||
var matches = new RegExp('import\\s+"([^"]+\\/)style\\.css"').exec(ns[i].innerHTML);
|
|
||||||
if (null != matches && matches.length > 0)
|
|
||||||
return styleUrlCached = matches[1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return styleUrlCached;
|
|
||||||
}
|
|
||||||
|
|
||||||
function fixPNG(element) {
|
|
||||||
if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent)) {
|
|
||||||
var src;
|
|
||||||
if (element.tagName == 'IMG') {
|
|
||||||
if (/\.png$/.test(element.src)) {
|
|
||||||
src = element.src;
|
|
||||||
element.src = GetStyleUrl() + 'images/spacer.gif';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);
|
|
||||||
if (src) {
|
|
||||||
src = src[1];
|
|
||||||
element.runtimeStyle.backgroundImage = 'none';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "')";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function artHasClass(el, cls) {
|
|
||||||
return (el && el.className && (' ' + el.className + ' ').indexOf(' ' + cls + ' ') != -1);
|
|
||||||
}/* end Page */
|
|
||||||
|
|
||||||
/* begin Menu */
|
|
||||||
function Insert_Separators() {
|
|
||||||
var menus = xGetElementsByClassName("art-menu", document);
|
|
||||||
for (var i = 0; i < menus.length; i++) {
|
|
||||||
var menu = menus[i];
|
|
||||||
var childs = menu.childNodes;
|
|
||||||
var listItems = [];
|
|
||||||
for (var j = 0; j < childs.length; j++) {
|
|
||||||
var el = childs[j];
|
|
||||||
if (String(el.tagName).toLowerCase() == "li") listItems.push(el);
|
|
||||||
}
|
|
||||||
for (var j = 0; j < listItems.length - 1; j++) {
|
|
||||||
var span = document.createElement('span');
|
|
||||||
span.className = 'art-menu-separator';
|
|
||||||
var li = document.createElement('li');
|
|
||||||
li.appendChild(span);
|
|
||||||
listItems[j].parentNode.insertBefore(li, listItems[j].nextSibling);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
artLoadEvent.add(Insert_Separators);
|
|
||||||
|
|
||||||
function Menu_IE6Setup() {
|
|
||||||
var isIE6 = navigator.userAgent.toLowerCase().indexOf("msie") != -1
|
|
||||||
&& navigator.userAgent.toLowerCase().indexOf("msie 7") == -1;
|
|
||||||
if (!isIE6) return;
|
|
||||||
var aTmp2, i, j, oLI, aUL, aA;
|
|
||||||
var aTmp = xGetElementsByClassName("art-menu", document, "ul");
|
|
||||||
for (i = 0; i < aTmp.length; i++) {
|
|
||||||
aTmp2 = aTmp[i].getElementsByTagName("li");
|
|
||||||
for (j = 0; j < aTmp2.length; j++) {
|
|
||||||
oLI = aTmp2[j];
|
|
||||||
aUL = oLI.getElementsByTagName("ul");
|
|
||||||
if (aUL && aUL.length) {
|
|
||||||
oLI.UL = aUL[0];
|
|
||||||
aA = oLI.getElementsByTagName("a");
|
|
||||||
if (aA && aA.length)
|
|
||||||
oLI.A = aA[0];
|
|
||||||
oLI.onmouseenter = function() {
|
|
||||||
this.className += " art-menuhover";
|
|
||||||
this.UL.className += " art-menuhoverUL";
|
|
||||||
if (this.A) this.A.className += " art-menuhoverA";
|
|
||||||
};
|
|
||||||
oLI.onmouseleave = function() {
|
|
||||||
this.className = this.className.replace(/art-menuhover/, "");
|
|
||||||
this.UL.className = this.UL.className.replace(/art-menuhoverUL/, "");
|
|
||||||
if (this.A) this.A.className = this.A.className.replace(/art-menuhoverA/, "");
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
artLoadEvent.add(Menu_IE6Setup);
|
|
||||||
/* end Menu */
|
|
||||||
|
|
||||||
/* begin Button */
|
|
||||||
function artButtonsSetupJsHover(className) {
|
|
||||||
var tags = ["input", "a", "button"];
|
|
||||||
for (var j = 0; j < tags.length; j++){
|
|
||||||
var buttons = xGetElementsByClassName(className, document, tags[j]);
|
|
||||||
for (var i = 0; i < buttons.length; i++) {
|
|
||||||
var button = buttons[i];
|
|
||||||
if (!button.tagName || !button.parentNode) return;
|
|
||||||
if (!artHasClass(button.parentNode, 'art-button-wrapper')) {
|
|
||||||
if (!artHasClass(button, 'art-button')) button.className += ' art-button';
|
|
||||||
var wrapper = document.createElement('span');
|
|
||||||
wrapper.className = "art-button-wrapper";
|
|
||||||
if (artHasClass(button, 'active')) wrapper.className += ' active';
|
|
||||||
var spanL = document.createElement('span');
|
|
||||||
spanL.className = "l";
|
|
||||||
spanL.innerHTML = " ";
|
|
||||||
wrapper.appendChild(spanL);
|
|
||||||
var spanR = document.createElement('span');
|
|
||||||
spanR.className = "r";
|
|
||||||
spanR.innerHTML = " ";
|
|
||||||
wrapper.appendChild(spanR);
|
|
||||||
button.parentNode.insertBefore(wrapper, button);
|
|
||||||
wrapper.appendChild(button);
|
|
||||||
}
|
|
||||||
artEventHelper.bind(button, 'mouseover', function(e) {
|
|
||||||
e = e || window.event;
|
|
||||||
wrapper = (e.target || e.srcElement).parentNode;
|
|
||||||
wrapper.className += " hover";
|
|
||||||
});
|
|
||||||
artEventHelper.bind(button, 'mouseout', function(e) {
|
|
||||||
e = e || window.event;
|
|
||||||
button = e.target || e.srcElement;
|
|
||||||
wrapper = button.parentNode;
|
|
||||||
wrapper.className = wrapper.className.replace(/hover/, "");
|
|
||||||
if (!artHasClass(button, 'active')) wrapper.className = wrapper.className.replace(/active/, "");
|
|
||||||
});
|
|
||||||
artEventHelper.bind(button, 'mousedown', function(e) {
|
|
||||||
e = e || window.event;
|
|
||||||
button = e.target || e.srcElement;
|
|
||||||
wrapper = button.parentNode;
|
|
||||||
if (!artHasClass(button, 'active')) wrapper.className += " active";
|
|
||||||
});
|
|
||||||
artEventHelper.bind(button, 'mouseup', function(e) {
|
|
||||||
e = e || window.event;
|
|
||||||
button = e.target || e.srcElement;
|
|
||||||
wrapper = button.parentNode;
|
|
||||||
if (!artHasClass(button, 'active')) wrapper.className = wrapper.className.replace(/active/, "");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
artLoadEvent.add(function() { artButtonsSetupJsHover("art-button"); });
|
|
||||||
/* end Button */
|
|
||||||
|
|
||||||
|
|
1458
Site/style.css
1458
Site/style.css
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user