GIF89a;
| Direktori : /home/serb/public_html/ |
| Current File : /home/serb/public_html/login.php |
<?php
include("lib/common.php");
include("lib/globals.php");
include("lib/functions.php");
?>
<? include "includes/header_top.php";?>
<script language="javascript">
function validate()
{
if((document.f1.emailAddrs.value.indexOf('@',0)<1)||(document.f1.emailAddrs.value.indexOf('.',0)<1))
{
alert("Enter any valid email address");
document.f1.emailAddrs.focus();
return false;
}
if(document.f1.emailAddrs.value!=document.f1.confrmEmail.value)
{
alert("Email not match.");
document.f1.confrmEmail.value="";
document.f1.confrmEmail.focus();
return false;
}
if(document.f1.userName.value=="")
{
alert("Enter your username");
document.f1.userName.focus();
return false;
}
if(document.f1.passWord.value=="")
{
alert("Enter your password");
document.f1.passWord.focus();
return false;
}
if(document.f1.passWord.value!=document.f1.repassWord.value)
{
alert("Password not match");
document.f1.repassWord.focus();
return false;
}
if(document.f1.sex[0].value==false || document.f1.sex[1].value==false)
{
alert("You need to choose your sex.");
return false;
}
/*if(document.f1.check.checked!=true)
{
alert("You need to check your age.");
return false;
}*/
}
</script>
<body>
<? include "includes/header.php";?>
<div class="main_bg">
<div style="height:32px;"></div>
<div style="width:1000px; margin:0 auto;">
<div class="statedetails">
<div class="stdtls_header">
login
</div>
<div class="stdtls_midder">
<div style=" width:990px; margin:0 auto;">
<? if($_GET['err']==2)
{ ?>
<p style="color:#900; text-align:center;">The email or password you entered in incorrect</p>
<? } ?>
<? if($_GET['msg']==1){ ?>
<p>Your password has been sent to your email.</p>
<? } ?>
<?
if($_GET['estid'])
{?>
<form action="login-process.php?estid=<?=$_GET['estid']?>" method="post" name="logform" style="margin: 0px; padding: 0px;" onSubmit="return validate();">
<input name="submit_form" value="1" type="hidden">
<? }
else if($_GET['advinfo'])
{ ?>
<form action="login-process.php?advinfo=<?=$_GET['advinfo']?>" method="post" name="logform" style="margin: 0px; padding: 0px;" onSubmit="return validate();">
<input name="submit_form" value="1" type="hidden">
<? }
else if($_GET['newuser'])
{ ?>
<form action="login-process.php?newuser=1" method="post" name="logform" style="margin: 0px; padding: 0px;" onSubmit="return validate();">
<input name="submit_form" value="1" type="hidden">
<? }
else{
?>
<form action="login-process.php?log=home" method="post" name="logform" style="margin: 0px; padding: 0px;" onSubmit="return validate();">
<input name="submit_form" value="1" type="hidden">
<? } ?>
<table class="join_table2" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="jointext222">Username <br/><input name="username" id="username" class="main_input" type="text"><br/>
</td>
<td></td>
</tr>
<tr>
<td class="jointext222">password <br/><input name="passWord" id="passWord" class="main_input" type="password"></td>
<td></td>
</tr>
<tr>
<td align="right"><input src="images/submit.png" type="image" /></td>
<td>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="color:#a2345e;"><a style="color:#a2345e; font-family:'Open Sans',sans-serif;" href="join.php">Register</a> | <a style="color:#a2345e; font-family:'Open Sans',sans-serif;" href="#">Password Help</a></td>
<td></td>
<td></td>
</tr>
</table>
</form>
</div>
</div>
<div class="stdtls_footer"></div>
</div>
</div>
</div>
<? include "includes/footer.php";?>