Имам малък проблем със тази страница http://game.laf4e.org/game/reg.php Проблемът е че под полето за регистрация останалите неща не се виждат и също така от CSS незнам кожи речи нищо абе нищо си е и да ми кажете как да направя така, че в полето за регистрацията да оградя текста с рамки.
Код:
<html>
<head>
<meta name="author" content="Foka" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="21 days" />
<meta name="language" content="bg" />
<meta name="distribution" content="global" />
<meta name="audience" content="all" />
<meta name="author-mail" content="fokka@data.bg" />
<meta name="copyright" content="Star Wolves © 2007" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />
<title>Star Wolves - Българската безплатна стратегическа мултиплеър игра</title>
<style type="text/css">
</style>
<script language="JavaScript" type="text/JavaScript">
</script>
</head>
<body onLoad="Init();">
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td valign="top"></td><td width="100%" valign="top">
<center>
<table width="80%" cellspacing="0" cellpadding="0">
<tr style="background-image:url(img/head/back.gif)">
<td width="339"><img src="img/head/left.jpg" alt="" /></td>
<td width="100%"> </td>
<td width="320"><img src="img/head/right.jpg" alt="" /></td>
</tr>
</table>
<table class="lcd" style="background-image:url(img/main/bglcd.gif);" width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" valign="top" style="background-image:url(img/border/left_back.gif);"><img src="img/border/left_top.gif" alt="" /></td>
<td width="131" align="center" valign="top" style="background-image:url(img/border/navi_back.gif)">
<a href="./" target="_self" onMouseOver="MM_swapImage('image1','','img/navigation/bg/02o.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="img/navigation/bg/02.gif" name="image1" width="131" height="28" border="0" id="image1" alt="Начало"></a>
<a href="http://<?=$ogame_folder;?>/forum.php" target="_blank" onMouseOver="MM_swapImage('image2','','img/navigation/bg/10o.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="img/navigation/bg/10.gif" name="image2" width="131" height="28" border="0" id="image2" alt="Форум"></a>
<a href="screenshots.php" target="_self" onMouseOver="MM_swapImage('image3','','img/navigation/bg/26o.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="img/navigation/bg/26.gif" name="image3" width="131" height="28" border="0" id="image3" alt="Скрийншотове"></a>
<a href="about.php" target="_self" onMouseOver="MM_swapImage('image4','','img/navigation/bg/12o.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="img/navigation/bg/12.gif" name="image4" width="131" height="28" border="0" id="image4" alt="За играта"></a>
<a href="http://laf4e.redpicasso.com/game/" target="_blank" onMouseOver="MM_swapImage('image5','','img/navigation/bg/99o.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="img/navigation/bg/99.gif" name="image5" width="131" height="28" border="0" id="image5" alt="Играта"></a>
<a href="downloads.php" target="_self" onMouseOver="MM_swapImage('image6','','img/navigation/bg/14o.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="img/navigation/bg/14.gif" name="image6" width="131" height="28" border="0" id="image6" alt="Файлове"></a>
<br>
<span class="black_small"><font style="font-size: 11pt">
<b>Приятели</b>
</span></font>
</td>
<td width="13" valign="top" background="img/border/middle_back.gif"><img src="img/border/middle_top.gif" alt="" /></td>
<td width="100%" rowspan="2" align="center" valign="top">
<table width="100%" height="43" cellpadding="0" cellspacing="0">
<script type="text/javascript">
var lastType = "";
function changeAction(type) {
if(document.formular.Uni.value == '') {
alert('Выберите вселенную!');
}
else {
if(type == "login" && lastType == "") {
var url = "http://" + document.formular.Uni.value + "/login.php";
document.formular.action = url;
}
else {
var url = "http://" + document.formular.Uni.value + "/mail.php";
document.formular.action = url;
document.formular.submit();
}
}
}
</script>
<form name="formular" action="index.php" method="POST" onSubmit="changeAction('login');">
<tr>
<td align="center" valign="top" background="img/main/login_back.gif"><br />
<table width="97%" cellspacing="0" cellpadding="0">
<tr>
<td><img src="img/main/arrow.gif"></td>
<td>
<select tabindex="1" name='Uni' class="eingabe" style="width:150px;" size="1">
<option value="">Избор на вселена...</option>
<option value="<?=$ogame_folder;?>">Sirius</option>
</select>
<script type="text/javascript"> document.formular.Uni.focus(); </script>
</td>
<td>
<img src="img/main/arrow2.gif" alt="Username">
</td>
<td>
<nobr>
<span class="rahmen"><input tabindex="2" alt="Username" class="eingabe" name="username" /></span>
<span class="rahmen"><input tabindex="3" maxlength="20" alt="Password" type="password" class="eingabe" name="password" /></span></nobr>
</td><td width="40">
<input type="image" src="img/main/login.gif" width="40" height="15" border="0" value="Вход" name="submit">
</td>
<td align="left" width="100%"><span class="rahmen"></span></td>
</tr>
<tr>
<td colspan="4" align="left"><span class="black_small">
<font style="font-size: 7pt"><br />Прочетете <a href="conditions.php">правилата</a> на играта | </font></span><font style="font-size: 7pt">
</font><a class="footer_link" href="http://<?=$ogame_folder;?>/reg.php">
<font style="font-size: 7pt">Регистрация</font></a><font style="font-size: 7pt">
</font> <span class="black_small"><font style="font-size: 7pt"> | </font></span><font style="font-size: 7pt">
</font> <a href="javascript:changeAction('password');" class="footer_link">
<font style="font-size: 7pt">Забравена парола?</font></a></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<br />
<table width="98%" cellspacing="0" cellpadding="0">
<tr>
<td width="120" height="90"><table width="124" cellspacing="0" cellpadding="0">
<tr>
<td width="2" height="2"><img src="img/main/border/top_left.gif" width="2" height="2"></td>
<td background="img/main/border/top.gif"><img src="img/main/border/top.gif" width="1" height="2"></td>
<td width="2" height="2"><img src="img/main/border/top_right.gif" width="2" height="2"></td>
</tr>
<tr>
<td background="img/main/border/left.gif"><img src="img/main/border/left.gif" width="2" height="1"></td>
<td background="img/main/border/black_trans.gif">
<img src="img/main/bilder/startbild.jpg" width="120" height="90" alt="Start"></td>
<td background="img/main/border/right.gif"><img src="img/main/border/right.gif" width="2" height="1"></td>
</tr>
<tr>
<td width="2" height="2"><img src="img/main/border/bottom_left.gif" width="2" height="2"></td>
<td background="img/main/border/bottom.gif"><img src="img/main/border/bottom.gif" width="1" height="2"></td>
<td width="2" height="2"><img src="img/main/border/bottom_right.gif" width="2" height="2"></td>
</tr>
</table></td>
<td width="7"><img src="img/main/1x1.gif" width="7" height="1"></td>
<td valign="top"><table width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="2" height="2"><img src="img/main/border/top_left.gif" width="2" height="2"></td>
<td height="2" background="img/main/border/top.gif"><img src="img/main/border/top.gif" width="1" height="2"></td>
<td width="2" height="2"><img src="img/main/border/top_right.gif" width="2" height="2"></td>
</tr>
<tr>
<td align="top" background="img/main/border/left.gif" style="height:84px;"><img src="img/main/border/left.gif" width="2" height="1"></td>
<td align="left" valign="top" background="img/main/border/black_trans.gif" class="normtext" style="height:80px; padding-top:5px; padding-right:5px; padding-bottom:5px; padding-left:5px;"><p align="justify"><span class="sizeh3"><B>
<a target="_self" href="http://<?=$ogame_folder;?>/reg.php">Регистрирайте се</a></B></span><B><br>
</B>Регистрирайте се в <a href="http://<?=$ogame_folder;?>/reg.php">
Star Wolves</a> покажете на другите какво можете в играта!Обещаваме ви много екшън,адреналин и забавление в играта!
<br /></p></td>
<td background="img/main/border/right.gif" style="height:84px;"><img src="img/main/border/right.gif" width="2" height="1"></td>
</tr>
<tr>
<td width="2" height="2"><img src="img/main/border/bottom_left.gif" width="2" height="2"></td>
<td background="img/main/border/bottom.gif"><img src="img/main/border/bottom.gif" width="1" height="2"></td>
<td width="2" height="2"><img src="img/main/border/bottom_right.gif" width="2" height="2"></td>
</tr>
</table></td>
</tr>
</table><table width="98%" cellspacing="0" cellpadding="0">
<tr>
<td width="20"><img src="img/main/arrow.gif" alt="" /></td>
<td align="left"><span class="sizeh1"><B>Регистрация</B></span></td>
</tr>
</table>
<table width="98%" cellspacing="0" cellpadding="0" class="content">
<tr><td>
<?php //reg.php :: Registro v1.0 beta build.3
define('INSIDE', true);
$ugamela_root_path = './';
include($ugamela_root_path . 'extension.inc');
include($ugamela_root_path . 'common.'.$phpEx);
define('ADMINEMAIL',"fokka@data.bg");
define('GAMEURL',"http://".$_SERVER['HTTP_HOST']."/");
includeLang('reg');
function sendpassemail($emailaddress, $password) {
$gamename = "Star Wolves";
$staff = "The Rout Team ";
$email = ADMINEMAIL;
$gameurl = GAMEURL;
$email = "Tu o alguien se registro en $gamename ($gameurl).
La siguiente contraseña se te envia para poder ingresar en el juego.
Tu nueva contraseña es: $password
Gracias por jugar, $staff.
$gameurl";
$status = mymail($emailaddress, "Registro en $gamename", $email);
return $status;
}
function mymail($to, $title, $body, $from = '') {
$from = trim($from);
if (!$from) {
$from = '<'. ADMINEMAIL .'>';
}
$rp = ADMINEMAIL;
$org = GAMEURL;
$mailer = 'PHP';
$head = '';
$head .= "Content-Type: text/plain \r\n";
$head .= "Date: ". date('r'). " \r\n";
$head .= "Return-Path: $rp \r\n";
$head .= "From: $from \r\n";
$head .= "Sender: $from \r\n";
$head .= "Reply-To: $from \r\n";
$head .= "Organization: $org \r\n";
$head .= "X-Sender: $from \r\n";
$head .= "X-Priority: 3 \r\n";
$head .= "X-Mailer: $mailer \r\n";
$body = str_replace("\r\n", "\n", $body);
$body = str_replace("\n", "\r\n", $body);
return mail($to, $title, $body, $head);
}
if($_POST){
/*include("common.php");*/
$errors = 0;
$errorlist = "";
//Diferentes errores que pueden surgir
if(!is_email($_POST['email'])){
$errorlist .= "\"".$_POST['email']."\" ".$lang['error_mail'];
$errors++;
}
if(!$_POST['hplanet']){
$errorlist .= $lang['error_hplanet'];
$errors++;
}
if(preg_match("/[^A-z0-9_\-]/", $_POST['hplanet'])==1) {
$errorlist .= $lang['error_hplanetnum'];
$errors++;
}
if(!$_POST['character']){
$errorlist .= $lang['error_character'];
$errors++;
}
if (preg_match("/[^A-z0-9_\-]/", $_POST['character'])==1){
$errorlist .= "El nombre de usuario debe ser alfanumГ©ico.<br />";
$errors++;
}
if($_POST['v'] != 2){
$errorlist .= $lang['error_v'];
$errors++;
}
if($_POST['agb'] != 'on'){
$errorlist .= $lang['error_agb'];
$errors++;
}
//Comprueba el nombre de usuario
$user_array = doquery("SELECT `username` FROM {{table}} WHERE `username` = '{$_POST['character']}' LIMIT 1","users",true);
if($user_array){
$errorlist .= $lang['error_userexist'];
$errors++;
}
//Comprueba el E-Mail
$user_array = doquery("SELECT `email` FROM {{table}} WHERE `email` = '{$_POST['email']}' LIMIT 1","users",true);
if($user_array){
$errorlist .= $lang['error_emailexist'];
$errors++;
}
if($_POST['sex'] != '' && $_POST['sex'] != 'F' && $_POST['sex'] != 'M'){
$errorlist .= $lang['error_sex'];
$errors++;
}
if($errors != 0){
//se muestra los errores
message($errorlist,$lang['Register']);
}else{
//creamos la contraseГ±a
$newpass = '';
for ($i=0; $i<8; $i++) {
$newpass .= chr(rand(65,90));
}
$md5newpass = md5($newpass);
//creamos temporalmente el user
doquery("INSERT INTO {{table}} SET
`username`='{$_POST['character']}',
`password`='{$md5newpass}',
`email`='{$_POST['email']}',
`email_2`='{$_POST['email']}',
`sex`='{$_POST['sex']}',
`id_planet`='',
`register_time`='".time()."'"
,'users');
//obtenemos el id del user
$iduser_array = doquery("SELECT `id` FROM {{table}} WHERE `username` = '{$_POST['character']}' LIMIT 1","users",true);
$iduser = $iduser_array['id'];
//Seleccionamos una posicion
while(!isset($newpos_checked)){
//$g = round(rand(1,9));
//$s = round(rand(1,499));
//$p = round(rand(4,12));
$id_g = $game_config['id_g'];
$id_s = $game_config['id_s'];
$id_p = $game_config['id_p'];
for($x=$id_g;$x<=10;$x++)
{
for($y=$id_s;$y<=500;$y++)
{
for($z=id_p;$z<=4;$z++)
{
$g = $x;
$s = $y;
$p = round(rand(4,12));
switch($id_p)
{
case 1: $id_p = $id_p +1;break;
case 2: $id_p = $id_p +1;break;
case 3: if($id_s == 499)
{
$id_g = $id_g +1;
$id_s = 1;
$id_p = 1;break;
}else
$id_p =1;
$id_s=$id_s+1;break;
}
break;
}
break;
}
break;
}
doquery("UPDATE {{table}} SET `config_value`='{$id_g}' WHERE `config_name`='id_g'",'config');
doquery("UPDATE {{table}} SET `config_value`='{$id_s}' WHERE `config_name`='id_s'",'config');
doquery("UPDATE {{table}} SET `config_value`='{$id_p}' WHERE `config_name`='id_p'",'config');
$newpos = doquery("SELECT * FROM {{table}} WHERE `galaxy` = '$g' AND `system` = '$s' AND `planet` = '$p' LIMIT 1","galaxy",true);
if($newpos["id_planet"] == "0"){$newpos_checked = true;}
if(!$newpos){
//esta funcion crea un planeta? o una colonia?
make_planet($g,$s,$p,$iduser,$_POST['hplanet']);
$newpos_checked = true;
}
}
//Ahora agregamos los campos maximos
$diameter = ($game_config['initial_fields'] ^ (14 / 1.5)) * 75 ;
doquery("UPDATE {{table}} SET
diameter='{$diameter}',
field_max='{$game_config['initial_fields']}'
WHERE id_owner='{$iduser}' LIMIT 1",'planets');
//
//obtenemos el id planet
$idplanet_array = doquery("SELECT `id` FROM {{table}} WHERE id_owner='{$iduser}' LIMIT 1",'planets',true);
$idplanet = $idplanet_array['id'];
//actualizamos el id planet del user
doquery("UPDATE {{table}} SET
id_planet='{$idplanet}',
current_planet='{$idplanet}',
galaxy='{$g}',
system='{$s}',
planet='{$p}'
WHERE `id` = '{$iduser}' LIMIT 1","users");
//agregamos un contador de usuario,
doquery("UPDATE {{table}} SET config_value=config_value+1 WHERE config_name='users_amount' LIMIT 1","config");
//nos fijamos si es una cuenta admin
if($_POST['character'] == 'admin'){
doquery("UPDATE {{table}} SET `authlevel` = '1' WHERE `username` = 'admin' LIMIT 1","users");
}
if(sendpassemail($_POST['email'],"$newpass"))
//mostramos el mensaje de que se creo correctamente
message($lang['thanksforregistry']." ($newpass)",$lang['reg_welldone']);
else
//mostramos el mensaje de que se creo correctamente
message($lang['thanksforregistry']." ($newpass)Error",$lang['reg_welldone']);
}
}else{ //Formulario simple de registro
$parse = $lang;
$page = parsetemplate(gettemplate('registry_form'), $parse);
display($page,$lang['registry']);
}
?>
</td></tr>
</table>
</td>
<td width="20" valign="top" style="background-image:url(img/border/right_back.gif)"><img src="img/border/right_top.gif" width="20" height="61"></td>
</tr>
<tr>
<td valign="bottom" background="img/border/left_back.gif"><img src="img/border/left_bottom.gif" alt="" /></td>
<td align="center" valign="top" background="img/border/navi_back.gif"> </td>
<td valign="bottom" background="img/border/middle_back.gif"><img src="img/border/middle_bottom.gif" alt="" /></td>
<td width="20" valign="bottom" background="img/border/right_back.gif"><img src="img/border/right_bottom.gif" alt="" /></td>
</tr>
</table>
<table width="80%" cellspacing="0" cellpadding="0">
<tr>
<td width="159"><img src="img/footer/left.gif" alt="" /></td>
<td width="100%" style="background-image:url(img/footer/middle.gif)"> </td>
<td width="65"><img src="img/footer/right.gif" alt="" /></td>
</tr>
</table>
<table width="80%" cellspacing="0" cellpadding="0">
<tr>
<td width="68"><img src="img/footer/bottom1_left.gif" alt="" /></td>
<td width="100%" background="img/footer/bottom1_back.gif"><table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><a href="http://www.laf4e.org/">Star Wolves</a> © 2007</td>
<td align="right">
|
<a class="footer_link" href="conditions.php">Условия за ползване</a>|
<a class="footer_link" href="rules.php">Правилата</a> |
<a class="footer_link" href="story.php">Историята</a> |
<a class="footer_link" href="about.php">За играта</a> |
</td></tr>
</table></td>
<td width="65"><img src="img/footer/bottom1_right.gif" alt="" /></td>
</tr>
</table>
<table width="80%" cellspacing="0" cellpadding="0">
<tr>
<td width="68" height="8"><img src="img/footer/bottom2_left.gif" alt="" /></td>
<td width="100%" style="background-image:url(img/footer/bottom2_back.gif)"><img src="img/footer/bottom2_back.gif" alt="" /></td>
<td width="64" height="8"><img src="img/footer/bottom2_right.gif" alt="" /></td>
</tr>
</table>
</td></tr></table>
<br />
</center>
</body>
</html>