<?php
include_once "conexion.php";
include_once "function_login.php";
$error = "";
if (isset($_POST['username']){
$id = $_POST['username'];
$n = 1;
switch ($user)
{
case "a":
$_POST['password'] = md5($_POST['password']);
if(verificar_login_a($_POST['username'],$_POST['password'],$result) == 1)
{
$_SESSION['userid'] = $result->id_user;
echo '<script type="text/javascript">location.href="admin/index.php"</script>';
}
else
{
$error = "Clave i/o usuario erroneos";
}
break;
case "e":
$_POST['password'] = md5($_POST['password']);
if(verificar_login_e($_POST['username'],$_POST['password'],$result) == 1)
{
$_SESSION['userid'] = $result->id_alumno;
echo '<script type="text/javascript">location.href="alumno/index.php"</script>';
}
else
{
$error = "Clave i/o usuario erroneos";
}
break;
default:
$error = "Clave i/o usuario erroneos";
}
};
?>
<!DOCTYPE html>
<html>
<head>
<script language="javascript" src="jquery.js"></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<title>ziceinclude; admin version 1.0 online</title>
<link href="componentes/css/zice.style.css" rel="stylesheet" type="text/css" />
<link href="componentes/css/icon.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="componentes/components/tipsy/tipsy.css" media="all"/>
<style type="text/css">
html {
background-image: none;
}
label.iPhoneCheckLabelOn span {
padding-left:0px
}
#versionBar {
background-color:#212121;
position:fixed;
width:100%;
height:35px;
bottom:0;
left:0;
text-align:center;
line-height:35px;
z-index:11;
-webkit-box-shadow: black 0px 10px 10px -10px inset;
-moz-box-shadow: black 0px 10px 10px -10px inset;
box-shadow: black 0px 10px 10px -10px inset;
}
.copyright{
text-align:center; font-size:10px; color:#CCC;
}
.copyright a{
color:#A31F1A; text-decoration:none
}
</style>
</head>
<body >
<div id="alertMessage"></div>
<div id="successLogin"></div>
<div class="text_success"><img src="componentes/images/loadder/loader_green.gif" alt="ziceAdmin" /><span>Please wait</span></div>
<div id="login" >
<div class="inner">
<div class="logo" ><img src="componentes/images/logo/logo_login.png" alt="ziceAdmin" /></div>
<div class="formLogin">
<form name="formLogin" id="formLogin" method="post" action="">
<div class="tip">
<input name="username" maxlenght="9" required type="text" id="username_id" title="Username" />
</div>
<div class="tip">
<input name="password" maxlenght="8" required type="password" id="password" title="Password" />
</div>
<div id="error" class="tip" colspan="2" align="center">
</div>
<div class="loginButton">
<div style="float:right; padding:3px 0; margin-right:-12px;">
<div>
<ul class="uibutton-group">
<li><input type="submit" value="Login" class="uibutton normal"></li>
<li><a href="olvide_pass.htm" class="uibutton normal" > olvide mi clave <a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</form>
</div>
</div>
<div class="clear"></div>
<div class="shadow"></div>
</div>
<!--Login div-->
<div class="clear"></div>
<div id="versionBar" >
<div class="copyright" > © Copyright 2012 UPS Intranet All Rights Reserved </div>
<!-- // copyright-->
</div>
<!-- Link JScript-->
<script type="text/javascript" src="componentes/js/jquery.min.js" tppabs="http://zicedemo.com/js/jquery.min.js"></script>
<script type="text/javascript" src="componentes/components/effect/jquery-jrumble.js" tppabs="http://zicedemo.com/components/effect/jquery-jrumble.js"></script>
<script type="text/javascript" src="componentes/components/ui/jquery.ui.min.js" tppabs="http://zicedemo.com/components/ui/jquery.ui.min.js"></script>
<script type="text/javascript" src="componentes/components/tipsy/jquery.tipsy.js" tppabs="http://zicedemo.com/components/tipsy/jquery.tipsy.js"></script>
<script type="text/javascript" src="componentes/components/checkboxes/iphone.check.js" tppabs="http://zicedemo.com/components/checkboxes/iphone.check.js"></script>
<script type="text/javascript" src="componentes/js/login.js" tppabs="http://zicedemo.com/js/login.js"></script>
</body>
</html> <!DOCTYPE html>
<html>
<head>
<script language="javascript" src="jquery.js"></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<title>ziceinclude; admin version 1.0 online</title>
<link href="componentes/css/zice.style.css" rel="stylesheet" type="text/css" />
<link href="componentes/css/icon.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="componentes/components/tipsy/tipsy.css" media="all"/>
<style type="text/css">
html {
background-image: none;
}
label.iPhoneCheckLabelOn span {
padding-left:0px
}
#versionBar {
background-color:#212121;
position:fixed;
width:100%;
height:35px;
bottom:0;
left:0;
text-align:center;
line-height:35px;
z-index:11;
-webkit-box-shadow: black 0px 10px 10px -10px inset;
-moz-box-shadow: black 0px 10px 10px -10px inset;
box-shadow: black 0px 10px 10px -10px inset;
}
.copyright{
text-align:center; font-size:10px; color:#CCC;
}
.copyright a{
color:#A31F1A; text-decoration:none
}
</style>
</head>
<body >
<div id="alertMessage"></div>
<div id="successLogin"></div>
<div class="text_success"><img src="componentes/images/loadder/loader_green.gif" alt="ziceAdmin" /><span>Please wait</span></div>
<div id="login" >
<div class="inner">
<div class="logo" ><img src="componentes/images/logo/logo_login.png" alt="ziceAdmin" /><?php print("$error"); ?></div>
<div class="formLogin">
<form name="formLogin" id="formLogin" method="post" action="control.php">
<div class="tip">
<input name="username" maxlenght="9" required type="text" id="username_id" title="Username" />
</div>
<div class="tip">
<input name="password" maxlenght="8" required type="password" id="password" title="Password" />
</div>
<div id="error" class="tip" colspan="2" align="center">
</div>
<div class="loginButton">
<div style="float:right; padding:3px 0; margin-right:-12px;">
<div>
<ul class="uibutton-group">
<li><input type="submit" value="Login" class="uibutton normal"></li>
<li><a href="olvide_pass.htm" class="uibutton normal" > olvide mi clave <a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
</form>
</div>
</div>
<div class="clear"></div>
<div class="shadow"></div>
</div>
<!--Login div-->
<div class="clear"></div>
<div id="versionBar" >
<div class="copyright" > © Copyright 2012 UPS Intranet All Rights Reserved </div>
<!-- // copyright-->
</div>
<!-- Link JScript-->
<script type="text/javascript" src="componentes/js/jquery.min.js" tppabs="http://zicedemo.com/js/jquery.min.js"></script>
<script type="text/javascript" src="componentes/components/effect/jquery-jrumble.js" tppabs="http://zicedemo.com/components/effect/jquery-jrumble.js"></script>
<script type="text/javascript" src="componentes/components/ui/jquery.ui.min.js" tppabs="http://zicedemo.com/components/ui/jquery.ui.min.js"></script>
<script type="text/javascript" src="componentes/components/tipsy/jquery.tipsy.js" tppabs="http://zicedemo.com/components/tipsy/jquery.tipsy.js"></script>
<script type="text/javascript" src="componentes/components/checkboxes/iphone.check.js" tppabs="http://zicedemo.com/components/checkboxes/iphone.check.js"></script>
<script type="text/javascript" src="componentes/js/login.js" tppabs="http://zicedemo.com/js/login.js"></script>
</body>
</html>