16
PHP / problema de posiciones con login.php
« en: 07 de Mayo de 2010, 23:24:55 pm »
Bueno no se que pasa que se ve el texto de usuario y contraseña junto y no donde yo quiero miren asi se ve:

lo que quiero es que ''Nombre de usuario'' se vea arriba de donde se inserta el nombre y ''Contraseña'' arriba de donde se escribe la contraseña y el que dice ''Logeate/Registrate para enviar mensajes'' se vea arriba de todo
Aqui esta el codigo del index aver si pueden ayudarme
lo que quiero es que ''Nombre de usuario'' se vea arriba de donde se inserta el nombre y ''Contraseña'' arriba de donde se escribe la contraseña y el que dice ''Logeate/Registrate para enviar mensajes'' se vea arriba de todo
Aqui esta el codigo del index aver si pueden ayudarme
Código: [Seleccionar]
<?
// Comprobamos si el archivo indispensable para le funcionamiento este presente
if(!file_exists("conectar.php")){
echo"<body><title>
Error: archivo conectar inexistente!!</title><b><font size=3> El Archivo conectar.php no existe!!</font></b><br><br><h1><font face=verdana>Sin ese archivo dificilmente vas a poder usar el minichat �, arreglalo! xD</font></h1></body>";
} else {
// Comprobamos si el instalador esta presente en la carpeta
if(file_exists("instalador.php")){
echo"<body><title>
Error: debes borrar el archivo instalar.php!!</title><b><font size=3> Para poder usar el minichat debes borrar el archivo instalador.php!!</font></b><br><br>
<h1><font face=verdana>Mas facil no puede ser, BORRA EL ARCHIVO instalador.php ;)</font></h1></body>";
} else {
session_start();
session_cache_limiter('nocache,private');
include("configtag.php");
include("lanzaralerta.php");
include("lanzaralertageneral.php");
include("colores.php");
include("funciones.php");
include("language/lang-".$langactual.".php");
// Panel del usuario v1 by: RamFu
// Chekamos DB
$check = mysql_query("SELECT * from `usuarios` where nick='".$_SESSION['nnick']."'");
$user = mysql_fetch_array($check);
// Variables
$nombre = $_SESSION['nnick'];
$habboname = $user['habbo'];
$pixels = $user['pixeles'];
$fichas = $user['cantidad'];
$rango = $user['rol'];
$mensajes = $user['mensajes'];
$hotel = $user['hotel'];
// Placas
$qbadge = mysql_query("SELECT * FROM `placas` WHERE user = '".$nombre."' and puesta=1");
$respre = mysql_fetch_array($qbadge);
if ($respre['user'] == $nombre) {
$mybadge = $respre['placa'];
} else {
$plakae = "placas/".$user['rol'].".gif";
$mybadge = $plakae;
}
?>
<? if ($activarMant == "off") { ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Description" content="Minichat v<?=$version; ?>">
<meta name="Author" content="RamFu">
<meta name="Generator" content="Minichat v<?=$version; ?>">
<title>Minichat v<?=$version; ?></title>
<link REL="STYLESHEET" HREF="style.css" TYPE="text/css">
<link href="css/general.css" rel="stylesheet" type="text/css" />
<script language="javascript">
<? include("funciones.js"); ?>
function catalogo(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,menubar=0,resizable=0,width=980,height=990,left = 500,top = 500');");
}
function registro(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,menubar=0,resizable=0,width=230,height=260,left = 152,top = 134');");
}
function badges(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,menubar=0,resizable=0,width=230,height=200,left = 152,top = 134');");
}
function guias(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,menubar=0,resizable=0,width=230,height=260,left = 152,top = 134');");
}
function ayuda(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,menubar=0,resizable=0,width=307,height=263,left = 152,top = 134');");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
</script>
<style type="text/css">
.CampoTexto {
font-size: 10px;
font-family: verdana;
border: 1px solid <? echo $bordecampo; ?>;
background: <? echo $fondocampo; ?>;
}
#caja1 {
margin:0px;
padding:0px;
width:161px;
height:auto;
}
#caja2 {
margin:0px;
padding:0px;
width:161px;
height:auto;
background-image:url(img/vip_middle.png);
background-repeat:repeat;
}
.Texto {
font-family: verdana;
font-size: 10px;
font-weight: normal;
color: <?=$colortexto; ?>;
}
.toolbar{
background-image:url(menu_new/back.png);
border:#37798A SOLID 1PX;
}
body {
background-image: url();
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.lithiumboton {
border:1px solid #CCC;
margin:2px;
padding:2px;
font-family:Verdana, Geneva, sans-serif;
font-size:11px;
border-radius:3px;
-ms-border-radius:3px;
-moz-border-radius:3px;
-webkit-border-radius:3px;
-khtml-border-radius:3px;
}
.buttonv3 {
BORDER-RIGHT: #37798A 2px solid; BORDER-TOP: #37798A 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #37798A 2px solid; CURSOR: pointer; COLOR: #37798A; BORDER-BOTTOM: #37798A 4px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #E0EFF3; border-radius: 4px; moz-border-radius: 4px
}
.buttonv31 { BORDER-RIGHT: #37798A 2px solid; BORDER-TOP: #37798A 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #37798A 2px solid; CURSOR: pointer; COLOR: #37798A; BORDER-BOTTOM: #37798A 4px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #E0EFF3; border-radius: 4px; moz-border-radius: 4px
}
.Estilo17 {font-size: 12}
.Estilo5 {font-size: 9}
.buttonv32 { BORDER-RIGHT: #37798A 2px solid; BORDER-TOP: #37798A 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #37798A 2px solid; CURSOR: pointer; COLOR: #37798A; BORDER-BOTTOM: #37798A 4px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #E0EFF3; border-radius: 4px; moz-border-radius: 4px
}
.Estilo19 {
font-size: 12px;
font-weight: bold;
}
.Estilo20 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
}
</style>
</head>
<body style="background-color: transparent">
<span class="Estilo5">
<?php
if (isset($_SESSION['nnick'])) {
?>
</span>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="119" valign="top"><table width="208" height="129" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" width="68" height="129" valign="top"><span class="Estilo5"><img src="http://www.habbo.es/habbo-imaging/avatarimage?user=<?php echo $habboname; ?>&action=wav&direction=3&head_direction=3&img_format=gif&gesture=sml" width="64" height="110"></span></td>
<td width="140" valign="top"><table width="132" height="105" border="0" cellpadding="0" cellspacing="0">
<div id="Box_center" style="padding-bottom:3px;" align="left"><img src="images/icons/new_01.gif" width="15" height="16" /><a href="account-messages.php" target="main"> <strong>Mis mensajes</strong></a></div>
<div id="Box_center" style="padding-bottom:3px;" align="left"><img src="images/icons/new_05.gif" width="16" height="16" /><a href="account-badges.php" target="main"> <strong>Mis placas</strong></a></div>
<div id="Box_center" style="padding-bottom:3px;" align="left"><img src="images/icons/new_04.gif" width="16" height="14" /><a href="account-money.php" target="main"> <strong>Monedero</strong></a></div>
<div id="Box_center" style="padding-bottom:3px;" align="left"><img src="images/icons/new_11.gif" width="15" height="15" /><a href="account-nick.php" target="main"> <strong>Mi nick y Subnick</strong></a></div>
<div id="Box_center" style="padding-bottom:3px;" align="left"><img src="images/icons/new_03.gif" width="15" height="16" /> <a href="account-club.php" target="main"> <strong>Talk Club</strong></a></div>
<div id="Box_center" style="padding-bottom:3px;" align="left"><img src="images/icons/my_5.gif" width="16" height="16" /><a href="account-dates.php" target="main"> <strong>Mis datos</strong></a></div>
<div id="Box_center" style="padding-bottom:3px;" align="left"><img src="images/icons/new_15.gif" width="15" height="16" /><a href="exit.php"> <strong>Desconectar</strong></a></div>
</table></td>
</tr>
</table></td>
</tr>
</table>
<span class="Estilo5">
<?php
} else {?>
</span>
<table width="187" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
</tr>
</table>
<span class="Estilo5"></span>
<form action="procesar2.php?<? echo session_name()."=".session_id() ?>" method="post" name="tag" id="tag" onSubmit="return enviado()">
<div align="center"><span class="Estilo17">
<?
include ("main.php");
if ($_GET['mostrar'] == "tag.php") {
?>
<?
if (isset($_SESSION['nnick'])) {
echo _WELLCOME." <b>".$_SESSION['nnick']."";
echo "</b> <a href=\"exit.php\" class=\"EnlaceMenu\">"._LOGOUT."</a> ";
if (isset($_SESSION['nnick'])){
$nick = $_SESSION['nnick'];
}
else if (isset($_POST['nick'])) {
echo "</b> <a href=\"exit.php\" class=\"EnlaceMenu\">"._LOGOUT."</a> ";
}
} else {
if ($activarReg == "on")
$size = "17";
else
$size = "30";
if (!isset($_GET['n']) || $_GET['n'] == "")
$nick =_NICKNAME;
else
$nick = $_GET['n'];
?>
<? } ?>
<? if ($activarReg == "on") { ?>
<? } ?>
<br>
</span>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="login.php" target="">Logeate</a>/<a href="catalogo/index.php" target="">Registrate</a> para enviar mensajes</td>
<td align="center" class="Estilo20"></td>
</tr>
<tr>
<img src="http://img266.imageshack.us/img266/2909/new19.gif"> Nombre de Usuario
<td align="center"><span class="Estilo17">
<input name="nick" class="lithiumboton" id="nick" style="text-align:center" onFocus="this.value=(this.value=='<?=$nick; ?>') ? '' : this.value;"
onBlur="this.value=(this.value=='') ? '<?=$nick; ?>' : this.value;" value="<?=$nick; ?>" size="19" maxlength="<? echo $maxNick; ?>" />
</span></td>
</tr>
<tr>
<td align="center"><span class="Estilo20"></span></td>
</tr>
<tr>
<img src="http://img59.imageshack.us/img59/9835/new16gif.png"> Contraseña
<td align="center"><span class="Estilo17"><strong>
<input name="clave" type="password" class="lithiumboton" id="clave" style="text-align:center" onFocus="this.value=(this.value=='<?=_PASSWORD; ?>') ? '' : this.value;"
onBlur="this.value=(this.value=='') ? '<?=_PASSWORD; ?>' : this.value;" value="<?=_PASSWORD; ?>" size="19" maxlength="10" />
</strong></span></td>
</tr>
<tr>
<td height="31" align="center"><input name="enviar" type="submit" class="lithiumboton" id="enviar" value="Entrar"></td>
</tr>
</table>
<a href="catalogo/index.php" target='_blank' class="Estilo20">Registrate</a>
<?
} else {
?>
<? include($_GET['mostrar']); ?>
<?php
if (isset($_SESSION['nnick'])) {
} else {
?>
<?php
}
if (isset($_SESSION['nnick'])) {
} else {
}
?>
<? } ?>
</div>
</form>
<? } ?>
</body>
</html>
<? } else { ?>
<? include ("maintenmance.php");?>
<? } } } ?>
<? if ($raton == "off") {?>
<script language="Javascript">
var vie=
parseFloat(navigator.appVersion.slice(navigator.appVersion.indexOf("MSIE")+4,navigator.appVersion.length));
function sinmenu()
{
event.cancelBubble = true;
event.returnValue = false;
return false;
}
function noclicderecho(e)
{
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
else
if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
{
if (vie < 5) // -- para el IE4 -- \\
{
alert('Puedes personalizar este mensaje');
return false;
}
else
if (vie >= 5) // -- para el IE5 -- \\
{
document.oncontextmenu = sinmenu;
return false;
}
}
return true;
}
document.onmousedown=noclicderecho;
// -- Desabilita el clic derecho en las capas (layers) -- \\
if (document.layers)window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=noclicderecho;
</script>
<!--webbot bot="HTMLMarkup" endspan --><!--webbot bot="HTMLMarkup" startspan --><script language="JavaScript">
<!--
function event_false() {
window.event.returnValue = false
}
document.onselectstart = event_false
//-->
</script>
<!--webbot bot="HTMLMarkup" endspan -->
<? } ?>

