Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

miromalc

[Resolvido] Busca bd com link para ampliar imagem

Recommended Posts

Bom dia pessoal,

Estou com uma dúvida cruel aqui que me parece simples mas não consigo acertar o código corretamente, se possível gostaria e pedir a ajuda de quem entende, desde já agradeço.

 

Seguinte: tenho uma pagina de busca que me retorna o resultado do bd, um dos campos é um link para mais imformações que me retorna a pagina detalhes do produto com a imagem do mesmo, (meu pb está aqui) preciso ampliar a imagem que possui um id em um pouppop mas o poupop vem em branco.

 

Segue o código

<p onclick="MM_openBrWindow('ampliar.php','poupop','width=500,height=500')"><img src="/Novo Site/imagens/img_prod_pq/<?php echo $row_DetailRS1['Imagem']; ?>" onclick="MM_openBrWindow('ampliar.php','poupop','width=500,height=500')" /><br />

<span class="style4 style7"><a href="ampliar.php"?recordID=<?php echo $row_Recordset1['Código']; ?>"></a>Clique

para ampliar</p>

 

Agradeço a ajuda.

Compartilhar este post


Link para o post
Compartilhar em outros sites

<p onclick="MM_openBrWindow('ampliar.php','poupop','width=500,height=500')"><img src="/Novo Site/imagens/img_prod_pq/<?php echo $row_DetailRS1['Imagem']; ?>" onclick="MM_openBrWindow('ampliar.php','poupop','width=500,height=500')" /><br />

<span class="style4 style7"><a href="ampliar.php"?recordID=<?php echo $row_Recordset1['Código']; ?>"></a>Clique

para ampliar</p>

 

Perceba os links em negrito acima, você precisa passar o ID como parâmetro lá também http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites

 

<p onclick="MM_openBrWindow('ampliar.php','poupop','width=500,height=500')"><img src="/Novo Site/imagens/img_prod_pq/<?php echo $row_DetailRS1['Imagem']; ?>" onclick="MM_openBrWindow('ampliar.php','poupop','width=500,height=500')" /><br />

<span class="style4 style7"><a href="ampliar.php"?recordID=<?php echo $row_Recordset1['Código']; ?>"></a>Clique

para ampliar</p>

 

Perceba os links em negrito acima, você precisa passar o ID como parâmetro lá também http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif

 

Obrigado por responder Alebae, agradeço sua ajuda.

Seguinte; eu até tentei passar o id la, só que não estou conseguindo programar o código corretamente dae tirei e deixei limpo, seria possivel você passar um exemplo de como ficaria o campo que você citou? se sim agradeço, se não também fico agradecido.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Não tenho como testar aqui, mas:

 

<p onclick="MM_openBrWindow('ampliar.php?recordID=<?php echo $row_Recordset1['Código']; ?>','poupop','width=500,height=500')"><img src="/Novo Site/imagens/img_prod_pq/<?php echo $row_DetailRS1['Imagem']; ?>" onclick="MM_openBrWindow('ampliar.php?recordID=<?php echo $row_Recordset1['Código']; ?>','poupop','width=500,height=500')" /><br />

<span class="style4 style7"><a href="ampliar.php?recordID=<?php echo $row_Recordset1['Código']; ?>"></a>Clique

para ampliar</p>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Não tenho como testar aqui, mas:

 

<p onclick="MM_openBrWindow('ampliar.php?recordID=<?php echo $row_Recordset1['Código']; ?>','poupop','width=500,height=500')"><img src="/Novo Site/imagens/img_prod_pq/<?php echo $row_DetailRS1['Imagem']; ?>" onclick="MM_openBrWindow('ampliar.php?recordID=<?php echo $row_Recordset1['Código']; ?>','poupop','width=500,height=500')" /><br />

<span class="style4 style7"><a href="ampliar.php?recordID=<?php echo $row_Recordset1['Código']; ?>"></a>Clique

para ampliar</p>

Mais uma vez obrigado aleabe, já tinha respondido que estava perfeito o código, mas ai surgiu outro problma, vou postar o codigo completo para que se você tiver paciência de analizar, verificar onde está o erro.

Mas sua resposta deu certo.

O problema é que ao ampliar a imagem ela não linka o id do produto e está fixa em um unico produto.

 

Página ampliar.php

<?php require_once('Connections/conexao.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
  $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;

$colname_Recordset1 = "ABR";
if (isset($_GET['Código'])) {
  $colname_Recordset1 = $_GET['Código'];
}
mysql_select_db($database_conexao, $conexao);
$query_Recordset1 = sprintf("SELECT * FROM tblprodutos WHERE Código LIKE %s", GetSQLValueString("%" . $colname_Recordset1 . "%", "text"));
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $conexao) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);

if (isset($_GET['totalRows_Recordset1'])) {
  $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
  $all_Recordset1 = mysql_query($query_Recordset1);
  $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;

$maxRows_DetailRS1 = 10;
$pageNum_DetailRS1 = 0;
if (isset($_GET['pageNum_DetailRS1'])) {
  $pageNum_DetailRS1 = $_GET['pageNum_DetailRS1'];
}
$startRow_DetailRS1 = $pageNum_DetailRS1 * $maxRows_DetailRS1;

$colname_DetailRS1 = "-1";
if (isset($_GET['recordID'])) {
  $colname_DetailRS1 = $_GET['recordID'];
}
mysql_select_db($database_conexao, $conexao);
$query_DetailRS1 = sprintf("SELECT * FROM tblprodutos WHERE Código = %s", GetSQLValueString($colname_DetailRS1, "text"));
$query_limit_DetailRS1 = sprintf("%s LIMIT %d, %d", $query_DetailRS1, $startRow_DetailRS1, $maxRows_DetailRS1);
$DetailRS1 = mysql_query($query_limit_DetailRS1, $conexao) or die(mysql_error());
$row_DetailRS1 = mysql_fetch_assoc($DetailRS1);

if (isset($_GET['totalRows_DetailRS1'])) {
  $totalRows_DetailRS1 = $_GET['totalRows_DetailRS1'];
} else {
  $all_DetailRS1 = mysql_query($query_DetailRS1);
  $totalRows_DetailRS1 = mysql_num_rows($all_DetailRS1);
}
$totalPages_DetailRS1 = ceil($totalRows_DetailRS1/$maxRows_DetailRS1)-1;

$currentPage = $_SERVER["PHP_SELF"];

$queryString_Recordset1 = "";
if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_Recordset1") == false && 
        stristr($param, "totalRows_Recordset1") == false) {
      array_push($newParams, $param);
    }
  }
  if (count($newParams) != 0) {
    $queryString_Recordset1 = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_Recordset1 = sprintf("&totalRows_Recordset1=%d%s", $totalRows_Recordset1, $queryString_Recordset1);
?>
<!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>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
	<meta http-equiv="Content-Language" content="pt-br" />
    <meta http-equiv="cache-control" content="no-cache,no-store" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta name="expires" content="Tue, 01 Jun 1999 19:58:02 GMT" />
<title>Untitled Document</title>
<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body>
<p align="center"><img src="/Novo Site/imagens/img_prod_gd/<?php echo $row_DetailRS1['Imagem']; ?>" /></p>
</body>
</html>
<?php
mysql_free_result($Recordset1);

mysql_free_result($DetailRS1);
?>

Pagina resultado de busca

detalhes.php

<?php require_once('Connections/conexao.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
  $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;

$colname_Recordset1 = "ABR";
if (isset($_GET['Código'])) {
  $colname_Recordset1 = $_GET['Código'];
}
mysql_select_db($database_conexao, $conexao);
$query_Recordset1 = sprintf("SELECT * FROM tblprodutos WHERE Código LIKE %s", GetSQLValueString("%" . $colname_Recordset1 . "%", "text"));
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $conexao) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);

if (isset($_GET['totalRows_Recordset1'])) {
  $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
  $all_Recordset1 = mysql_query($query_Recordset1);
  $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;

$maxRows_DetailRS1 = 10;
$pageNum_DetailRS1 = 0;
if (isset($_GET['pageNum_DetailRS1'])) {
  $pageNum_DetailRS1 = $_GET['pageNum_DetailRS1'];
}
$startRow_DetailRS1 = $pageNum_DetailRS1 * $maxRows_DetailRS1;

$colname_DetailRS1 = "-1";
if (isset($_GET['recordID'])) {
  $colname_DetailRS1 = $_GET['recordID'];
}
mysql_select_db($database_conexao, $conexao);
$query_DetailRS1 = sprintf("SELECT * FROM tblprodutos  WHERE Código = %s", GetSQLValueString($colname_DetailRS1, "text"));
$query_limit_DetailRS1 = sprintf("%s LIMIT %d, %d", $query_DetailRS1, $startRow_DetailRS1, $maxRows_DetailRS1);
$DetailRS1 = mysql_query($query_limit_DetailRS1, $conexao) or die(mysql_error());
$row_DetailRS1 = mysql_fetch_assoc($DetailRS1);

if (isset($_GET['totalRows_DetailRS1'])) {
  $totalRows_DetailRS1 = $_GET['totalRows_DetailRS1'];
} else {
  $all_DetailRS1 = mysql_query($query_DetailRS1);
  $totalRows_DetailRS1 = mysql_num_rows($all_DetailRS1);
}
$totalPages_DetailRS1 = ceil($totalRows_DetailRS1/$maxRows_DetailRS1)-1;

$currentPage = $_SERVER["PHP_SELF"];

$queryString_Recordset1 = "";
if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_Recordset1") == false && 
        stristr($param, "totalRows_Recordset1") == false) {
      array_push($newParams, $param);
    }
  }
  if (count($newParams) != 0) {
    $queryString_Recordset1 = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_Recordset1 = sprintf("&totalRows_Recordset1=%d%s", $totalRows_Recordset1, $queryString_Recordset1);
?><!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>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
	<meta http-equiv="Content-Language" content="pt-br" />
    <meta http-equiv="cache-control" content="no-cache,no-store" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta name="expires" content="Tue, 01 Jun 1999 19:58:02 GMT" />
<link href="estilo.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
<!--
#apDiv1 {
	position:absolute;
	left:300px;
	top:273px;
	width:371px;
	height:313px;
	z-index:1;
}
.style11 {font-size: 9px}
-->
</style>
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
</head>

<body onload="MM_preloadImages('imagens/img_menu/menu_home_select.png','imagens/img_menu/menu_home_over.png','imagens/img_menu/menu_produtos_select.png','imagens/img_menu/menu_produtos_over.png','imagens/img_menu/menu_contato_select.png','imagens/img_menu/menu_contato_over.png','imagens/img_menu/menu_formulario_select.png','imagens/img_menu/menu_formulario_over.png','imagens/img_menu/menu_empresa_select.png','imagens/img_menu/menu_empresa_over.png','imagens/img_menu/menu_historia_select.png','imagens/img_menu/menu_historia_over.png')">
<div id="total">
  <div id="topo">
    <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','900','height','150','title','Mundo das Soldas','src','imagens/img_index/Banner1','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','imagens/img_index/Banner1' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="150" title="Mundo das Soldas">
      <param name="movie" value="imagens/img_index/Banner1.swf" />
      <param name="quality" value="high" />
      <embed src="imagens/img_index/Banner1.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="150"></embed>
    </object>
  </noscript></div>
  <div id="menu">
    <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><a href="index.php" target="_top" onclick="MM_nbGroup('down','group1','Home','imagens/img_menu/menu_home_select.png',1)" onmouseover="MM_nbGroup('over','Home','imagens/img_menu/menu_home_over.png','',1)" onmouseout="MM_nbGroup('out')"><img src="imagens/img_menu/menu_home.png" alt="" name="Home" width="120" height="27" border="0" id="Home" onload="" /></a></td>
        <td><a href="produtos.php" target="_top" onclick="MM_nbGroup('down','group1','Produtos','imagens/img_menu/menu_produtos_select.png',1)" onmouseover="MM_nbGroup('over','Produtos','imagens/img_menu/menu_produtos_over.png','',1)" onmouseout="MM_nbGroup('out')"><img src="imagens/img_menu/menu_produtos.png" alt="" name="Produtos" width="120" height="27" border="0" id="Produtos" onload="" /></a></td>
        <td><a href="contato.php" target="_top" onclick="MM_nbGroup('down','group1','Contato','imagens/img_menu/menu_contato_select.png',1)" onmouseover="MM_nbGroup('over','Contato','imagens/img_menu/menu_contato_over.png','',1)" onmouseout="MM_nbGroup('out')"><img src="imagens/img_menu/menu_contato.png" alt="" name="Contato" width="120" height="27" border="0" id="Contato" onload="" /></a></td>
        <td><a href="formulario.php" target="_top" onclick="MM_nbGroup('down','group1','Formulario','imagens/img_menu/menu_formulario_select.png',1)" onmouseover="MM_nbGroup('over','Formulario','imagens/img_menu/menu_formulario_over.png','',1)" onmouseout="MM_nbGroup('out')"><img src="imagens/img_menu/menu_formulario.png" alt="" name="Formulario" width="120" height="27" border="0" id="Formulario" onload="" /></a></td>
        <td><a href="empresa.php" target="_top" onclick="MM_nbGroup('down','group1','Empresa','imagens/img_menu/menu_empresa_select.png',1)" onmouseover="MM_nbGroup('over','Empresa','imagens/img_menu/menu_empresa_over.png','',1)" onmouseout="MM_nbGroup('out')"><img src="imagens/img_menu/menu_empresa.png" alt="" name="Empresa" width="120" height="27" border="0" id="Empresa" onload="" /></a></td>
        <td><a href="historia.php" target="_top" onclick="MM_nbGroup('down','group1','Historia','imagens/img_menu/menu_historia_select.png',1)" onmouseover="MM_nbGroup('over','Historia','imagens/img_menu/menu_historia_over.png','',1)" onmouseout="MM_nbGroup('out')"><img src="imagens/img_menu/menu_historia.png" alt="" name="Historia" width="120" height="27" border="0" id="Historia" onload="" /></a></td>
      </tr>
    </table>
    <div align="center"></div>
  </div>
  <div id="centro">
    <div id="data">

      <script language=JavaScript>
hoje = new Date()
dia = hoje.getDate()
dias = hoje.getDay()
mes = hoje.getMonth()
ano = hoje.getYear()
if (dia < 10)
dia = "0" + dia
if (ano < 2000)
ano = "19" + ano
function CriaArray (n) {
this.length = n }
NomeDia = new CriaArray(7)
NomeDia[0] = "Domingo"
NomeDia[1] = "Segunda-feira"
NomeDia[2] = "Terça-feira"
NomeDia[3] = "Quarta-feira"
NomeDia[4] = "Quinta-feira"
NomeDia[5] = "Sexta-feira"
NomeDia[6] = "Sábado"
NomeMes = new CriaArray(12)
NomeMes[0] = "Janeiro"
NomeMes[1] = "Fevereiro"
NomeMes[2] = "Março"
NomeMes[3] = "Abril"
NomeMes[4] = "Maio"
NomeMes[5] = "Junho"
NomeMes[6] = "Julho"
NomeMes[7] = "Agosto"
NomeMes[8] = "Setembro"
NomeMes[9] = "Outubro"
NomeMes[10] = "Novembro"
NomeMes[11] = "Dezembro"
document.write ("<center><font face='arial' color='#C0C0C0' size='2'>"
+ NomeDia[dias] + ", " + dia + " de "
+ NomeMes[mes] + " de 2009" + " </font></center>")
            </SCRIPT>
    </div>
    <div id="busca">
      <form id="form1" name="form1" method="post" action="">
        <div align="right">
          <span class="style3">Encontre o Produto</span>
          <script>
function Esvazia(valor_campo){
   
if (valor_campo.value == valor_campo.defaultValue)
	valor_campo.value='';
}

function Padrao(valor_campo){

if (valor_campo.value == '')
	valor_campo.value=valor_campo.defaultValue;
}
</script>
          <input name="search" type="text" class="style1" id="search" onfocus="Esvazia(this)" onblur="Padrao(this)" value="Nome do Produto" />
          <input type="image" name="enviar" id="enviar" src="imagens/img_index/botaoenviar.png" />
          </div>
      </form>
    </div>
    <div id="corpo">
    <table width="691" border="0" align="center">
  <tr>
    <td width="131" height="111" align="center" valign="middle"><p><span class="style11 style4"><strong><?php echo $row_DetailRS1['Descrição']; ?></strong></span></p>
      <p><p onclick="MM_openBrWindow('ampliar.php?recordID=<?php echo $row_Recordset1['Código']; ?>','poupop','width=500,height=500')"><img src="/Novo Site/imagens/img_prod_pq/<?php echo $row_DetailRS1['Imagem']; ?>" onclick="MM_openBrWindow('ampliar.php?recordID=<?php echo $row_Recordset1['Código']; ?>','poupop','width=500,height=500')" /><br />
<span class="style4 style7"><a href="ampliar.php?recordID=<?php echo $row_Recordset1['Código']; ?>"></a>Clique
para ampliar</p></p>
    <td width="550"><div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Informações do Produto</li>
        <li class="TabbedPanelsTab" tabindex="0">Dados Técnicos</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">
          <table width="544" border="0">
            <tr>
              <td width="87"><span class="style11"><span class="style4">Código:</span></span></td>
              <td width="447"><span class="style11"><span class="style4"><?php echo $row_DetailRS1['Código']; ?></span></span></td>
            </tr>
            <tr>
              <td><span class="style11"><span class="style4">Fabricante:</span></span></td>
              <td><span class="style11"><span class="style4"><?php echo $row_DetailRS1['Fabricante']; ?></span></span></td>
            </tr>
            <tr>
              <td><span class="style11"><span class="style4">UN de Venda:</span></span></td>
              <td><span class="style11"><span class="style4"><?php echo $row_DetailRS1['UN']; ?></span></span></td>
            </tr>
            <tr>
              <td><span class="style11"><span class="style4">Embalagem:</span></span></td>
              <td><span class="style11"><span class="style4"><?php echo $row_DetailRS1['Embalagem']; ?></span></span></td>
            </tr>
            <tr>
              <td><span class="style11"><span class="style4">Dimensões:</span></span></td>
              <td><span class="style11"><span class="style4"><?php echo $row_DetailRS1['Medida']; ?></span></span></td>
            </tr>
            <tr>
              <td><span class="style11"><span class="style4">Categoria:</span></span></td>
              <td><span class="style11"><span class="style4"><?php echo $row_DetailRS1['Categoria']; ?></span></span></td>
            </tr>
            <tr>
              <td><span class="style11"><span class="style4">Referência:</span></span></td>
              <td><span class="style11"><span class="style4"><?php echo $row_DetailRS1['Referência']; ?></span></span></td>
            </tr>
          </table>
          </div>
        <div class="TabbedPanelsContent style11 style4"><?php echo $row_DetailRS1['Aplicacao']; ?></div>
      </div>
    </div></td>
  </tr>
</table>

      <p> </p>
      <div align="center"></div>
      <div id="vendas"><span class="style4 style5"><strong>Central de Vendas:</strong><br />
SP - 11-4083-3700<br />
Fax - 11-4083-3711<br />
Brasil - 0800-600-2900<br />
vendas@mundodassoldas.com.br</span></div>
    </div>
    <div class="style3" id="transp"><strong>Entregamos em 24 Horas</strong><br />
      Para Grande SP e Transportadoras<br />
      conveniadas</div>
  </div>
  <div id="rodape">Mundo das Soldas - Todos os direitos reservados</div>
</div>

<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
</script>
</body>
</html>
<?php
mysql_free_result($Recordset1);

mysql_free_result($DetailRS1);
?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Problema resolvido aleabe.

Foi só alterar essa linha:

<p onclick="MM_openBrWindow('ampliar.php?recordID=<?php echo $row_Recordset1['Código']; ?>'

por esta:

<p onclick="MM_openBrWindow('ampliar.php?recordID=<?php echo $row_DetailRS1['Código']; ?>

 

Mais uma vez muito obrigado.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.