Retroceder   Foros del Web > Diseño de Sitios web > CSS

Respuesta
 
Herramientas Desplegado
Antiguo 10-jun-2007, 10:38   #1 (permalink)
DIRAB51 está en el buen camino
 
Avatar de DIRAB51
 
Fecha de Ingreso: diciembre-2002
Mensajes: 74
Problema con index.php

Hola:
Tengo un problema con ur archivo index.php, que se comporta de distinta manera en el Iexplorer y en el Firefox.
En Iexplorer:


En Firefox:


El script es este:

<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
$collspan_offset = ( mosCountModules( 'right', 'left' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
$left = 0;
$banner = 0;
// banner combos

//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
$colspan = 1;
}
//banner based combos
if ( mosCountModules( 'banner' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$banner = 1;

}

//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;

}
//left based combos
if ( mosCountModules( 'left' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$left = 1;

}
//top based combos
if ( mosCountModules( 'top' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$top = 1;

}
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ; ?>
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #66BC29;
}
-->
</style></head>
<body>

<tr>
<td id="header"><div id="header_inner"></div>
<div id="banner">
<div id="banner_inner"><?php mosLoadModules( "banner", -1 ); ?>
</div>
</div></td>
</tr>
<tr></tr>
<tr>
<td id="content_outer" valign="top">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
<tr valign="top">
<?php
if ( $left > 0 ) {
?>
<td>
<div id="left_outer">
<div id="left_header"></div>
<div id="left_inner_float">
<div id="left_inner">
<?php mosLoadModules ( 'left', -2 ); ?>
</div></div>
<div id="left_footer"></div>
</div> </td>
<?php
}
?>
<td width="100%" id="content"><div>
<div id="content_top"><div id="content_top_corner"></div></div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="content">
<tr>
<td colspan="<?php echo $colspan; ?>"><div id="pathway"> <div id="pathway_text">
<?php mosPathWay(); ?>
</div> </div>
<div id="main_content"><?php mosMainBody(); ?></div> </td>
</tr>

<?php
if ($colspan > 0) {
?>
<tr valign="top">

<?php
if ( $user1 > 0 ) {
?>
<td width="50%">
<div id="user1_outer"><div class="user1_inner">
<?php mosLoadModules ( 'user1', -2 ); ?>
</div> </div> </td>
<?php
}
if ( $colspan == 3) {
?>

<?php
}
if ( $user2 > 0 ) {
?>
<td width="50%">
<div id="user2_outer">
<div class="user2_inner">
<?php mosLoadModules ( 'user2', -2 ); ?>
</div> </div> </td>
<?php
}
?>
</tr>
<tr>
<td colspan="<?php echo $colspan; ?>"> </td>
</tr>
<?php
}
?>
</table> <div id="content_foot"><div id="content_foot_corner"></div></div> </div> </td>
<?php
if ( $right > 0 ) {
?>
<td>
<div id="right_outer">
<div id="right_header"></div>
<div id="right_inner_float">
<div id="right_inner">
<?php mosLoadModules ( 'right', -2 ); ?>
</div></div><div id="right_footer"></div>
</div> </td>
<?php
}
?>
</tr>
</table> </td>
</tr>
<tr><?php
if ( $banner > 0 ) {
?>
<td id="user"></td>
<?php
}
?>
</tr>
<tr>
<td id="footer"><?php include_once('includes/footer.php'); ?></td>
</tr>
</table>
<?php mosLoadModules( 'debug', -1 );?>
</body>
</html>

Podrian ayudarme:
Gracias y saludos
DIRAB51 está desconectado   Responder Citando
Antiguo 10-jun-2007, 12:08   #2 (permalink)
B**
B** ha deshabilitado el karma
 
Avatar de B**
 
Fecha de Ingreso: enero-2006
Ubicación: Monterrey,Mexico
Mensajes: 952
Re: Problema con index.php

Mmm ese es problema de CSS , no tiene nada que ver con PHP, mucho menos con POO.
__________________
-URL= Go PHP5.
-Age=22.
-Learning=PHP,J2EE,Struts,MAMBO,C++,JSON,AJAX,XHTML ,CSS.
B** está desconectado   Responder Citando
Antiguo 10-jun-2007, 18:38   #3 (permalink)
/** @package Moderador */
jam1138 llegará a ser famoso muy prontojam1138 llegará a ser famoso muy prontojam1138 llegará a ser famoso muy pronto
 
Avatar de jam1138
 
Fecha de Ingreso: julio-2004
Ubicación: sèveR led onieR lE
Mensajes: 7.821
Re: Problema con index.php

Ayuda a que se te ayude:
- Pon títulos DESCRIPTIVOS a tu consulta. "Diferencia en presentación en navegadores" por ejemplo.
- Coloca el tema en el foro correspondiente. Como ya te dijeron, eso no tiene que ver con PHP y menos con POO. PHP es un lenguaje del lado del servidor, tu problema es de presentación, corresponde a el cliente.
- Encierra tu código. http://www.forosdelweb.com/misc.php?do=bbcode#php (o los botónes correspondientes)

... y bueno, muevo tu tema a CSS aunque con lo que dejas no te podrán ayudar. Lo que necesitas mostrar es el código generado por el script que dejas .

Saludos
__________________
» ¿Cómo hacer preguntas inteligentes? «
jam1138 está desconectado   Responder Citando
Respuesta
No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 23:08.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93