[php] getting rank on left side, login on right
My Login panel always appear underneath Ranking panel, or above it. Plus my annoucnement and Play Live moves down to the bottom. I am trying to get Ranking on left, and Login on right.
Code:
[<?php
include "title.php";
include "config.php";
include "_functions.php";
if(!$opened == 0){
if ($_GET['header'] == 1){
if (file_exists("mod_" . $_GET['do'] . ".php")) {
include "mod_" . $_GET['do'] . ".php";
}
} }
include "banneduser.php";
include "checkcookie.php";
?><html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>GunZone - <?=$pagetitle?></title>
<link rel="stylesheet" type="text/css" href="images/style.css">
<script language="JavaScript" src="functions.js"> </script>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" bgcolor="#000000">
<div align="center">
<table border="0" style="border-collapse: collapse" width="921" id="table1">
<tr>
<td background="images/header.jpg" width="921" height="158"> </td>
</tr>
<tr>
<td background="images/nav_bar.jpg" height="28" class="menu" valign="middle">
<p align="center"><a href="index.php">Home</a> |
<a href="index.php?do=register">Register</a>
| <a href="index.php?do=downloads">Downloads</a> |
<a href="http://gunzone.info/forum">Forum</a> |
<a href="index.php?do=ranking&expand=1">Ranking</a> |
<a href="index.php?do=myclan">Clan</a> |
<a href="index.php?do=itemshop&expand=1">Item
Shop</a> | <a href="index.php?do=contact">Contact</a></td>
</tr>
<tr>
<td background="images/main_bg.jpg">
<table border="0" style="border-collapse: collapse" width="919" height="100%" id="table2">
<? if ($_GET['expand'] == 1){
if (file_exists("mod_" . $_GET['do'] . ".php")) {
include "mod_" . $_GET['do'] . ".php";
$include = "1";
}
} ?>
<tr>
<td width="917" colspan="5" height="26"> </td>
</tr>
<tr>
<td width="10"> </td>
<td width="208" valign="top">
<div align="left">
<? if($_SESSION['UGradeID'] == 255 or $_SESSION['UGradeID'] == 254){include"mod_adminindex.php";echo "</br>";} ?>
<? include "mod_clanranking.php" ?>
</div>
</td>
<table border="0" style="border-collapse: collapse" width="919" height="100%" id="table3">
<? if ($_GET['expand'] == 1){
if (file_exists("mod_" . $_GET['do'] . ".php")) {
include "mod_" . $_GET['do'] . ".php";
$include = "1";
}
} ?>
<tr>
<td width="917" colspan="5" height="26"> </td>
</tr>
<tr>
<td width="10"> </td>
<td width="208" valign="top">
<div align="left">
<? if($_SESSION['UGradeID'] == 255 or $_SESSION['UGradeID'] == 254){include"mod_adminindex.php";echo "</br>";} ?>
<? include "usr_login.php" ?>
</div>
</td>
<? if ($_GET['expand'] == 1){
if (file_exists("mod_" . $_GET['do'] . ".php")) {
include "mod_" . $_GET['do'] . ".php";
$include = "1";
}
} ?>
<td width="481" valign="top">
<? if($opened == 0){
include "mod_offline.php";
}else{
if (isset($_GET['do'])) {
$_GET['expand'] = 0;
if (file_exists("mod_" . $_GET['do'] . ".php")) {
include "mod_" . $_GET['do'] . ".php";
}
}else{
include "mod_index.php";
}
if(isset($default)){
include $default;
} }
?></td>
<td width="206" valign="top">
<p><? include "mod_iLogin.php" ?></p>
<p> </p>
<p> </td>
<td width="12"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="images/footer.jpg" height="65"> </td>
</tr>
</table>
</div>
</body>
</html>
anyone who helps gets a cookie?
Re: [php] getting rank on left side, login on right
I only see div align center and left, no right ?
Or you could try it with css files =]
Re: [php] getting rank on left side, login on right
Lol. Im bad enough at php.
Yeah, I did add the div align to the right, but it moves like a quarter inch to the right. XD
Re: [php] getting rank on left side, login on right
Try using a table with 2 columns....