Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: ayuda con Left.php  (Visto 697 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline ghostx Posteado: September 08, 2019, 11:52:54 PM | Modificado: September 09, 2019, 02:24:27 AM by ZabiinoOo

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 285
  • Gracias recibida: 290
  • ar
Hola gente buenas noches como dice el titulo tengo un problema con el php sacado de aqui http://tuservermu.com.ve/index.php?topic=24264

mi problema es que yo tengo al reves el baner en la izquierda y el php quiero ponerlo ala derecha pero queda muy grande si alguno me puede ayudar

su code
Code: [Select]
<?php
header("Refresh: 180; URL='left.php'");
//////////////////////////////////////////////////////////////
@$conection = mssql_connect('ip','sa','passsql');
$fans = "https://www.facebook.com/";
$grupo = "https://www.facebook.com/";
$exp = "500x";
$drop = "85%";
///////////////////////////////////////////////////////////////
@mssql_select_db('MuOnline',$conection);
$Cantidad_Online = mssql_fetch_row(mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = 1"));
$SiegeInfo = mssql_fetch_row(mssql_query("SELECT OWNER_GUILD FROM MuCastle_DATA"));
$GuildCS_ = mssql_num_rows(mssql_query("SELECT G_Name FROM Guild where G_Name='".$SiegeInfo[0]."'"));
$character_top = mssql_fetch_row(mssql_query("Select Name,ResetCount from Character where ctlcode !='32' and ctlcode !='8' order by Grand_Resets desc ,ResetCount desc ,clevel desc"));
$guild_top = mssql_fetch_row(mssql_query("SELECT * from guild order by G_score desc"));
if($GuildCS_ <=0){
$castlesiege = '<font color=#ff0000>N/A</font>';
}else{
$castlesiege = ''.$SiegeInfo[0].'';
}
if($Cantidad_Online[0]==0)
$online = '<font color=#ff0000>'.$Cantidad_Online[0].'</font>';
else
$online = '<font color=#00ff00>'.$Cantidad_Online[0].'</font>';
?>
<style type="text/css">
body {
background-color: #000000;
background-image: url();
margin-left: 6px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}

#contenedor{
margin:0 auto;
padding:0;
padding-top: 10px;
width:545px;
text-align:center;
height:auto;
background:transparent;
}

#espacio1{
padding:0;
width:460px;
float:left;
height:auto;
margin-right:10px;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}

.Estilo6 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
}

.Estilo9 {
color: #FFFFFF
}

a:link {
color: #FFFFFF;
text-decoration: none;
}

a:visited {
text-decoration: none;
color: #FFFFFF;
}

a:hover {
text-decoration: underline;
}

a:active {
text-decoration: none;
}

.Estilo1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
}

.Estilo12 {
font-weight: bold;
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}

</style>
<div id="contenedor">
<div id="espacio1">
<table width="530" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="100%" align="center" bgcolor="#0101DF" class="Estilo1">
<strong>Informaci&oacute;n General </strong>
</td>
</tr>
</table>
<table width="530" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">Exp: <?php echo $exp; ?></span>
</div>
</td>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">Drop: <?php echo $drop; ?></span>
</div>
</td>
</tr>
</table>
<table width="530" height="74" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="100%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
<span class="Estilo12">Usuarios Jugando:</span>
</span>
<strong>
<span class="Estilo12">
<?php echo $online; ?>
</span>
</strong>
</div>
</td>
</tr>
<tr>
<td bgcolor="#666666">
<div align="center" class="Estilo9">
<div align="center" class="Estilo9">
<span class="Estilo12">Ganador Castle Siege: <?php echo $castlesiege; ?></span>
</div>
</div>
</td>
</tr>
</table>
<table width="530" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
<a href="<?php echo $fans; ?>" target="_blank">Fan Page de Facebook</a>
</span>
</div>
</td>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
<a href="<?php echo $grupo; ?>" target="_blank01">Grupo de Facebook</a>
</span>
</div>
</td>
</tr>
</table>
<table width="530" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
Top Jugador: <?php echo $character_top[0]; ?>
</span>
</div>
</td>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
Top Clan: <?php echo $guild_top[0]; ?>
</span>
</div>
</td>
</tr>
</table>
</div>
</div>

Gracias:


Offline ZabiinoOo #1 Posteado: September 09, 2019, 12:08:38 AM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 7.302
  • Gracias recibida: 125859
  • pe
Copia y pega asi y pruebas aver como queda, igual te enseño para que vos puedas ajustar si esta demas o esta menos, cada linea de informacion es una tabla por lo cual debes buscar el sintax "table" y buscas el "width" que es el ancho de la tabla hay puedes manejar el ancho que tendra la tabla y asi lo haras con todas las tablas existentes para ajustar acorde a tu noticia

Code: [Select]
<?php
header("Refresh: 180; URL='left.php'");
//////////////////////////////////////////////////////////////
@$conection = mssql_connect('ip','sa','passsql');
$fans = "https://www.facebook.com/";
$grupo = "https://www.facebook.com/";
$exp = "500x";
$drop = "85%";
///////////////////////////////////////////////////////////////
@mssql_select_db('MuOnline',$conection);
$Cantidad_Online = mssql_fetch_row(mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = 1"));
$SiegeInfo = mssql_fetch_row(mssql_query("SELECT OWNER_GUILD FROM MuCastle_DATA"));
$GuildCS_ = mssql_num_rows(mssql_query("SELECT G_Name FROM Guild where G_Name='".$SiegeInfo[0]."'"));
$character_top = mssql_fetch_row(mssql_query("Select Name,ResetCount from Character where ctlcode !='32' and ctlcode !='8' order by Grand_Resets desc ,ResetCount desc ,clevel desc"));
$guild_top = mssql_fetch_row(mssql_query("SELECT * from guild order by G_score desc"));
if($GuildCS_ <=0){
$castlesiege = '<font color=#ff0000>N/A</font>';
}else{
$castlesiege = ''.$SiegeInfo[0].'';
}
if($Cantidad_Online[0]==0)
$online = '<font color=#ff0000>'.$Cantidad_Online[0].'</font>';
else
$online = '<font color=#00ff00>'.$Cantidad_Online[0].'</font>';
?>
<style type="text/css">
body {
background-color: #000000;
background-image: url();
margin-left: 6px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}

#contenedor{
margin:0 auto;
padding:0;
padding-top: 10px;
width:545px;
text-align:center;
height:auto;
background:transparent;
}

#espacio1{
padding:0;
width:460px;
float:left;
height:auto;
margin-right:10px;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}

.Estilo6 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
}

.Estilo9 {
color: #FFFFFF
}

a:link {
color: #FFFFFF;
text-decoration: none;
}

a:visited {
text-decoration: none;
color: #FFFFFF;
}

a:hover {
text-decoration: underline;
}

a:active {
text-decoration: none;
}

.Estilo1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
}

.Estilo12 {
font-weight: bold;
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}

</style>
<div id="contenedor">
<div id="espacio1">
<table width="230" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="100%" align="center" bgcolor="#0101DF" class="Estilo1">
<strong>Informaci&oacute;n General </strong>
</td>
</tr>
</table>
<table width="230" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">Exp: <?php echo $exp; ?></span>
</div>
</td>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">Drop: <?php echo $drop; ?></span>
</div>
</td>
</tr>
</table>
<table width="230" height="74" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="100%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
<span class="Estilo12">Usuarios Jugando:</span>
</span>
<strong>
<span class="Estilo12">
<?php echo $online; ?>
</span>
</strong>
</div>
</td>
</tr>
<tr>
<td bgcolor="#666666">
<div align="center" class="Estilo9">
<div align="center" class="Estilo9">
<span class="Estilo12">Ganador Castle Siege: <?php echo $castlesiege; ?></span>
</div>
</div>
</td>
</tr>
</table>
<table width="230" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
<a href="<?php echo $fans; ?>" target="_blank">Fan Page de Facebook</a>
</span>
</div>
</td>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
<a href="<?php echo $grupo; ?>" target="_blank01">Grupo de Facebook</a>
</span>
</div>
</td>
</tr>
</table>
<table width="230" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
Top Jugador: <?php echo $character_top[0]; ?>
</span>
</div>
</td>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
Top Clan: <?php echo $guild_top[0]; ?>
</span>
</div>
</td>
</tr>
</table>
</div>
</div>




Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Gracias:


Offline ghostx #2 Posteado: September 09, 2019, 12:37:35 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 285
  • Gracias recibida: 290
  • ar
Copia y pega asi y pruebas aver como queda, igual te enseño para que vos puedas ajustar si esta demas o esta menos, cada linea de informacion es una tabla por lo cual debes buscar el sintax "table" y buscas el "width" que es el ancho de la tabla hay puedes manejar el ancho que tendra la tabla y asi lo haras con todas las tablas existentes para ajustar acorde a tu noticia

Code: [Select]
<?php
header("Refresh: 180; URL='left.php'");
//////////////////////////////////////////////////////////////
@$conection = mssql_connect('ip','sa','passsql');
$fans = "https://www.facebook.com/";
$grupo = "https://www.facebook.com/";
$exp = "500x";
$drop = "85%";
///////////////////////////////////////////////////////////////
@mssql_select_db('MuOnline',$conection);
$Cantidad_Online = mssql_fetch_row(mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = 1"));
$SiegeInfo = mssql_fetch_row(mssql_query("SELECT OWNER_GUILD FROM MuCastle_DATA"));
$GuildCS_ = mssql_num_rows(mssql_query("SELECT G_Name FROM Guild where G_Name='".$SiegeInfo[0]."'"));
$character_top = mssql_fetch_row(mssql_query("Select Name,ResetCount from Character where ctlcode !='32' and ctlcode !='8' order by Grand_Resets desc ,ResetCount desc ,clevel desc"));
$guild_top = mssql_fetch_row(mssql_query("SELECT * from guild order by G_score desc"));
if($GuildCS_ <=0){
$castlesiege = '<font color=#ff0000>N/A</font>';
}else{
$castlesiege = ''.$SiegeInfo[0].'';
}
if($Cantidad_Online[0]==0)
$online = '<font color=#ff0000>'.$Cantidad_Online[0].'</font>';
else
$online = '<font color=#00ff00>'.$Cantidad_Online[0].'</font>';
?>
<style type="text/css">
body {
background-color: #000000;
background-image: url();
margin-left: 6px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}

#contenedor{
margin:0 auto;
padding:0;
padding-top: 10px;
width:545px;
text-align:center;
height:auto;
background:transparent;
}

#espacio1{
padding:0;
width:460px;
float:left;
height:auto;
margin-right:10px;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}

.Estilo6 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
}

.Estilo9 {
color: #FFFFFF
}

a:link {
color: #FFFFFF;
text-decoration: none;
}

a:visited {
text-decoration: none;
color: #FFFFFF;
}

a:hover {
text-decoration: underline;
}

a:active {
text-decoration: none;
}

.Estilo1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
}

.Estilo12 {
font-weight: bold;
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}

</style>
<div id="contenedor">
<div id="espacio1">
<table width="230" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="100%" align="center" bgcolor="#0101DF" class="Estilo1">
<strong>Informaci&oacute;n General </strong>
</td>
</tr>
</table>
<table width="230" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">Exp: <?php echo $exp; ?></span>
</div>
</td>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">Drop: <?php echo $drop; ?></span>
</div>
</td>
</tr>
</table>
<table width="230" height="74" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="100%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
<span class="Estilo12">Usuarios Jugando:</span>
</span>
<strong>
<span class="Estilo12">
<?php echo $online; ?>
</span>
</strong>
</div>
</td>
</tr>
<tr>
<td bgcolor="#666666">
<div align="center" class="Estilo9">
<div align="center" class="Estilo9">
<span class="Estilo12">Ganador Castle Siege: <?php echo $castlesiege; ?></span>
</div>
</div>
</td>
</tr>
</table>
<table width="230" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
<a href="<?php echo $fans; ?>" target="_blank">Fan Page de Facebook</a>
</span>
</div>
</td>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
<a href="<?php echo $grupo; ?>" target="_blank01">Grupo de Facebook</a>
</span>
</div>
</td>
</tr>
</table>
<table width="230" height="33" border="2" cellpadding="4" cellspacing="0" bordercolor="#000000" bgcolor="#333399">
<tr>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
Top Jugador: <?php echo $character_top[0]; ?>
</span>
</div>
</td>
<td width="50%" bgcolor="#333333">
<div align="center" class="Estilo9">
<span class="Estilo6">
Top Clan: <?php echo $guild_top[0]; ?>
</span>
</div>
</td>
</tr>
</table>
</div>
</div>
Muchas gracias por tus consejos probaré que tal me queda


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3318 Views
Last post October 28, 2016, 11:25:44 PM
by ZabiinoOo
2 Replies
3317 Views
Last post November 06, 2017, 10:45:49 PM
by arnaldo751
2 Replies
762 Views
Last post April 20, 2018, 10:48:35 AM
by Marote
1 Replies
648 Views
Last post August 30, 2018, 05:47:15 PM
by Rescate
13 Replies
4400 Views
Last post October 28, 2021, 10:14:43 AM
by onlinezajzaj