![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/07/2008, 09:50
|
![Avatar de Master_raven](http://static.forosdelweb.com/customavatars/avatar242448_4.gif) | | | Fecha de Ingreso: junio-2008 Ubicación: Guatemala City, Guatemala, Guatemala
Mensajes: 95
Antigüedad: 16 años, 8 meses Puntos: 3 | |
Respuesta: Ayuda; Problema pagina en php y IE bueno te dejo todo el codigo del index Cita: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>..::STP::.. Servicios Tecnicos Profecional/title>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
</head>
<body>
<div id="outer">
<div id="wrapper">
<div id="nav">
<div id="nav-left">
<div id="nav-right">
<ul>
<li><a href="ventas.php">VENTAS</a></li>
<li><a href="stecnico.php">SERVICIOS TECNICO </a></li>
<li><a href="ofertas.php">OFERTAS</a></li>
<li><a href="nuevos.php">NUEVOS</a></li>
<li><a href="nosotros.php">NOSOTROS</a></li>
<li><a href="buscar.php">BUSCAR</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
<div id="head">
<div id="head-left"></div>
<div id="head-right"></div>
<div id="head-1"></div>
<div id="navb">
<ul>
<li><a href="index.php">HOME</a></li>
<li><a href="contactenos.php">CONTACTO</a></li>
</ul>
</div>
</div>
<div id="ltxtlogo"><img src="img/txtlogo.png" alt="" width="112" height="57" /></div>
<div id="baner"></div>
<div id="llogo"><img src="img/logo.png" alt="" width="171" height="133" /></div>
<div id="head-2"></div>
<div id="body">
<div id="body-bot">
<h2><span class="Estilo1"></span></h2>
<div id="items">
<?php
include("libreria/conectdba.php");
$link=Conectarse();
//agregamos 2 ofertas al index
$result=mysql_query("select * from articulos where tipo='3' ORDER BY entrada DESC limit 3",$link);
while($row = mysql_fetch_array($result)) {
$descripsion=$row["descrip"];
$cont=strlen($descripsion);
if (!($cont>80))
{
$prev=substr($descripsion,1,$cont);
}
else
{
$prev=substr($descripsion,0,80);
}
printf("<div class=\"item\"><img src=\"%s\" width=\"91\" height=\"105\" class=\"left\" /><h3><a href=\"libreria/datoofert.php?id=%d\">Oferta: %s</a></h3><p>%s<a href=\"libreria/datoofert.php?id=%d\"> Ver mas</a>.</p><div><a href=\"libreria/datoproducto.php?id=%d\" class=\"details\"> detalles</a></div><div class=\"divider\"></div></div>",$row["imagen"],$row["id_articulos"],$row["titulo"],$prev,$row["id_articulos"],$row["id_articulos"]);
}
mysql_free_result($result);
//agregamos 1 producto al index
$result=mysql_query("select * from articulos where tipo='1' limit 2",$link);
while($row = mysql_fetch_array($result)) {
printf("<div class=\"item\"><img src=\"%s\" width=\"91\" height=\"105\" class=\"left\" /><h3><a href=\"libreria/datoproducto.php?id=%d\">%s</a></h3><table width=\"106\" border=\"0\"> <tr><td width=\"32\">Codigo:</td><td width=\"82\"> %s</td></tr><tr><td>Marca:</td><td> %s</td></tr><tr><td>Modelo:</td><td> %s</td></tr><tr><td>Precio:</td><td>Q. %s</td></tr></table><div><a href=\"libreria/datoproducto.php?id=%d\" class=\"details\"> detailles</a></div><div class=\"divider\"></div></div>",$row["imagen"],$row["id_articulos"],$row["titulo"],$row["codigo"],$row["marca"],$row["modelo"],$row["pventa"],$row["id_articulos"]);
}
mysql_free_result($result);
//agregamos 1 repusto al index
$result=mysql_query("select * from articulos where tipo='2' limit 1",$link);
while($row = mysql_fetch_array($result)) {
printf("<div class=\"item\"><img src=\"%s\" width=\"91\" height=\"105\" class=\"left\" /><h3><a href=\"libreria/datoproducto.php?id=%d\">%s</a></h3><table width=\"106\" border=\"0\"> <tr><td width=\"32\">Codigo:</td><td width=\"82\"> %s</td></tr><tr><td>Marca:</td><td> %s</td></tr><tr><td>Modelo:</td><td> %s</td></tr><tr><td>Precio:</td><td>Q. %s</td></tr></table><div><a href=\"libreria/datoproducto.php?id=%d\" class=\"details\"> detailles</a></div><div class=\"divider\"></div></div>",$row["imagen"],$row["id_articulos"],$row["titulo"],$row["codigo"],$row["marca"],$row["modelo"],$row["pventa"],$row["id_articulos"]);
}
mysql_free_result($result);
mysql_close($link);
?>
<div class="clear"></div>
</div>
<div id="footer">
<p><a href="#">Privacy Policy</a> <strong> : </strong> <a href="#">InDesing de Cnet Guatemala</a> <br />
© Copyright 2008. All rights reserved.</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html> |