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()) if($u->save())
{ {
$info= "<div style='width:250px; $info= "<table style='width:100%;
color:#444; color:#444;
background-color:#eec; background-color:#eec;
border:solid 2px #669; border-bottom:solid 2px #669;
padding: 7px; padding: 7px;
text-align:center;' text-align:justify;
id='selfDestroyDiv'> position:absolute;
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/> top:0px;
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> bottom:0px;'
</div><br/>"; 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 }else
{ {
echo "Error: Please, set permissions to your PHP server, to change files in: 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/jquery.js"></script>
<script src="restrict/framework/scripts/coockies.js"></script> <script src="restrict/framework/scripts/coockies.js"></script>
<script> <script>
function okThanks()
{
clearInterval(vSelfDestroyCounter);
$('#selfDestroyDiv').fadeOut('slow', function(){
document.getElementById('selfDestroyDiv').parentNode.removeChild(document.getElementById('selfDestroyDiv'));
});
}
function validate() function validate()
{ {
if(document.getElementById('name').value.replace(/ /g, '') == '' if(document.getElementById('name').value.replace(/ /g, '') == ''
@@ -214,13 +241,13 @@
{ {
background-image:url(images/login_background.jpg); background-image:url(images/login_background.jpg);
background-repeat:no-repeat; background-repeat:no-repeat;
width:780px; width:658px; /* 780px; */
height:598px; height: 490px; /* 598px; */
border:solid 1px #236f77; border:solid 1px #236f77;
} }
#contentHere #contentHere
{ {
padding-top:120px; padding-top:70px;
} }
.iptText .iptText
{ {
@@ -231,13 +258,13 @@
} }
.footer .footer
{ {
margin-top:140px; margin-top:95px;
*margin-top:110px; /* IE Sucks*/ *margin-top:110px; /* IE Sucks*/
margin-left:7px; margin-left:7px;
padding-top:7px; padding-top:7px;
padding-left:12px; padding-left:12px;
width: 510px; width: 400px;
border-top: solid 2px #999; border-top: solid 1px #ccc;
} }
#capsLockMessage #capsLockMessage
{ {
@@ -253,6 +280,10 @@
-moz-border-radius:5px; -moz-border-radius:5px;
-webkit-border-radius:5px; -webkit-border-radius:5px;
} }
#selfDestroyCounter
{
color:#f00;
}
</style> </style>
</head> </head>
<body scroll='no' onload="" leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0'> <body scroll='no' onload="" leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0'>
@@ -399,14 +430,17 @@
{ {
?> ?>
<script> <script>
var vSelfDestroyCounter= false;
setTimeout(function(){ setTimeout(function(){
var vSelfDestroyCounter= setInterval(function(){ vSelfDestroyCounter= setInterval(function(){
if(document.getElementById('selfDestroyCounter')) if(document.getElementById('selfDestroyCounter'))
{ {
if(document.getElementById('selfDestroyCounter').innerHTML == '0') if(document.getElementById('selfDestroyCounter').innerHTML == '0')
{ {
clearInterval(vSelfDestroyCounter); clearInterval(vSelfDestroyCounter);
document.getElementById('selfDestroyDiv').parentNode.removeChild(document.getElementById('selfDestroyDiv')); $('#selfDestroyDiv').fadeOut('slow', function(){
document.getElementById('selfDestroyDiv').parentNode.removeChild(document.getElementById('selfDestroyDiv'));
});
return; return;
} }
document.getElementById('selfDestroyCounter').innerHTML= document.getElementById('selfDestroyCounter').innerHTML-1; document.getElementById('selfDestroyCounter').innerHTML= document.getElementById('selfDestroyCounter').innerHTML-1;
+1 -2
Ver Arquivo
@@ -17,13 +17,12 @@
Dialog:{ Dialog:{
ShowMessage: function (msg) 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"); top.$("#mind_login_message").fadeIn("slow");
} }
} }
}; };
<?php <?php
if(@$u->loadUser($_POST['login'], utf8_encode($_POST['pass']))) if(@$u->loadUser($_POST['login'], utf8_encode($_POST['pass'])))
{ {
if($_MIND['sessionLife']!== '0') if($_MIND['sessionLife']!== '0')