tela de boas vindas

Esse commit está contido em:
felipenmoura
2010-01-16 18:00:43 +00:00
commit c2bae23fd4
7 arquivos alterados com 53 adições e 20 exclusões
Arquivo binário não exibido.
Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 5.5 KiB

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 85 KiB

Arquivo binário não exibido.

Antes

Largura:  |  Altura:  |  Tamanho: 85 KiB

Depois

Largura:  |  Altura:  |  Tamanho: 62 KiB

Arquivo binário não exibido.
+52 -18
Ver Arquivo
@@ -16,16 +16,36 @@
if($u->save())
{
$info= "<div style='width:250px;
color:#444;
background-color:#eec;
border:solid 2px #669;
padding: 7px;
text-align:center;'
id='selfDestroyDiv'>
Oh! I see this is your first time around here.<br/>To you to start working with the system, the user <b><i>admin</i></b> has been created, with the password <b><i>admin</i></b><br/>
I advise you to change this password as soon as possible. This message will self destruct in <br><b><span id='selfDestroyCounter'>60</span></b>
</div><br/>";
$info= "<table style='width:100%;
color:#444;
background-color:#eec;
border-bottom:solid 2px #669;
padding: 7px;
text-align:justify;
position:absolute;
top:0px;
bottom:0px;'
id='selfDestroyDiv'
align='center'>
<tr>
<td>
Oh! I see this is your first time around here.<br/>To you to start working with the system, the user <b><i>admin</i></b> has been created, with the password <b><i>admin</i></b><br/>
</td>
<td style='padding-top:20px;'>
<center>
<input type='image'
value='Ok, thanks'
src='images/botao_ok.png'
onclick='okThanks();'>
</center>
</td>
</tr>
<tr>
<td colspan='2'>
I advise you to change this password as soon as possible. This message will self destruct in <b><span id='selfDestroyCounter'>60</span></b>
</td>
</tr>
</table>";
}else
{
echo "Error: Please, set permissions to your PHP server, to change files in:
@@ -96,6 +116,13 @@
<script src="restrict/framework/scripts/jquery.js"></script>
<script src="restrict/framework/scripts/coockies.js"></script>
<script>
function okThanks()
{
clearInterval(vSelfDestroyCounter);
$('#selfDestroyDiv').fadeOut('slow', function(){
document.getElementById('selfDestroyDiv').parentNode.removeChild(document.getElementById('selfDestroyDiv'));
});
}
function validate()
{
if(document.getElementById('name').value.replace(/ /g, '') == ''
@@ -214,13 +241,13 @@
{
background-image:url(images/login_background.jpg);
background-repeat:no-repeat;
width:780px;
height:598px;
width:658px; /* 780px; */
height: 490px; /* 598px; */
border:solid 1px #236f77;
}
#contentHere
{
padding-top:120px;
padding-top:70px;
}
.iptText
{
@@ -231,13 +258,13 @@
}
.footer
{
margin-top:140px;
margin-top:95px;
*margin-top:110px; /* IE Sucks*/
margin-left:7px;
padding-top:7px;
padding-left:12px;
width: 510px;
border-top: solid 2px #999;
width: 400px;
border-top: solid 1px #ccc;
}
#capsLockMessage
{
@@ -253,6 +280,10 @@
-moz-border-radius:5px;
-webkit-border-radius:5px;
}
#selfDestroyCounter
{
color:#f00;
}
</style>
</head>
<body scroll='no' onload="" leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0'>
@@ -399,14 +430,17 @@
{
?>
<script>
var vSelfDestroyCounter= false;
setTimeout(function(){
var vSelfDestroyCounter= setInterval(function(){
vSelfDestroyCounter= setInterval(function(){
if(document.getElementById('selfDestroyCounter'))
{
if(document.getElementById('selfDestroyCounter').innerHTML == '0')
{
clearInterval(vSelfDestroyCounter);
document.getElementById('selfDestroyDiv').parentNode.removeChild(document.getElementById('selfDestroyDiv'));
$('#selfDestroyDiv').fadeOut('slow', function(){
document.getElementById('selfDestroyDiv').parentNode.removeChild(document.getElementById('selfDestroyDiv'));
});
return;
}
document.getElementById('selfDestroyCounter').innerHTML= document.getElementById('selfDestroyCounter').innerHTML-1;
+1 -2
Ver Arquivo
@@ -17,13 +17,12 @@
Dialog:{
ShowMessage: function (msg)
{
top.$("#mind_login_message").html("Error: Invalid access data. Your login or password doesn't match.");
top.$("#mind_login_message").html("Error: Your login or password doesn't match.");
top.$("#mind_login_message").fadeIn("slow");
}
}
};
<?php
if(@$u->loadUser($_POST['login'], utf8_encode($_POST['pass'])))
{
if($_MIND['sessionLife']!== '0')