Ir para conteúdo
Fórum Script Brasil

saulus

Membros
  • Total de itens

    15
  • Registro em

  • Última visita

Tudo que saulus postou

  1. Tipo assim Fit, a foto não é exibida, fica um quadrado pequeno apenas, tipo quebrado (no firefox) no Internet Explorer fica um X... simplismente a imagem não carrega. TO querendo ver qual o problama de configuração do serve que ta causando isso.
  2. Bom Galera, preciso de uma ajuda de vocês em relação ao posicionamento de uma imagem de fundo para cada resolução de tela: Estou criando um site e nesse site eu criei 2 fundos da seguinte maneira: 1º Fundo na body normal como todos fazem, uma imagem que se repete no site inteiro, até ai tudo bem 2º Uma tabela com 100%, nessa tabela inseri um outro fundo que se repetição Y (repeat-y) e coloquei na posição 200px. O que acontece é que o 2º background muda de posição a cada resolução de monitor, (claro, pois defini como 200px sua posição), para quem tem monitores com resolução de 1280 fica na posição que eu quero, quando a resolução aumenta ou diminui começa a mudar de posição. então gostaria de saber se alguém pode me ajudar para que essa imagem fique exatamente na posição que eu quero independente da resolução do monitor. eu achei um tutorial na internet, mas com esse tutorial não consegui fazer. http://www.l9web.com.br/blog/?p=53 lembrando que é apenas o 2º backgound que esta dentro de uma tabela. Desde já agradeço e espero que voces me ajudem.
  3. FIT Verifique se a imagem esta aparecendo para você ai?? porque para mim ta normal... desde já agradeço
  4. Bom Galera tenho uma problema e não estou conseguindo solucionar e espero que vocês me ajudem: Tenho um site e esse mesmo site possui uma galeria, só que a galeria essa galeria não está funcinando, a galeria é cadastrada normalmente, verificos no banco de dados e estudo certo. Inicialmente achei que deveria ser problema no site mas não, instalei o mesmo site em outro servidor e a galeria funciona normalmente, somente no meu servidor que ela não funciona, então como você como são mais entendidos do que eu preciso de uma ajuda para que eu posssa colicitar junto a empresa para que essa galeria funcione normalmente, abaixo eu vou colocar os códigos PHP para funcionamento da galeria e uma imagem com a configuração PHP do servidor e espero que vocês me ajudem: Obs.: não aparecem nenhuma mensagem de erro php só aparece as imagens quebradas, como disse não funciona em meu servidor em outro testado funcionou. fotos.php <? include("../../config.php"); $id = $_GET[id]; $pgf = $_GET[pgf]; $Cor1 = "00427F"; $tabela1 = "galerias"; $sql = mysql_query("SELECT * FROM $tabela1 where id='$id'"); $dados= mysql_fetch_array($sql); $dir = "../../images/$tabela1/$id/"; ?> <script language=JavaScript1.2> function makevisible(cur,which){ if (which==0) cur.filters.alpha.opacity=70 else cur.filters.alpha.opacity=100 } </SCRIPT> <body style="background-color:transparent"> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" align="right" valign="top"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="132" height="350" align="center" valign="top"> <? if (strstr($pgf,".")== TRUE){ $pgf = ceil($pgf); $pgf = $pgf-1; } if (!$pgf==0){ $cont = $pgf * $qts_thumbs; } else { $cont = 0; } $handle = opendir($dir); $ext = "jpg"; $indice = 0; $ipp = $qts_thumbs; while (false !== ($file = readdir($handle))){ $fotos = explode("_", $file); //echo $fotos[0]; $pathdata = pathinfo($file); if (!is_dir($file) && $file != '..' && $file !='.' && $file !='' && $file != 'Thumbs.db' && ($pathdata["extension"] == strtolower($ext)) || ($pathdata["extension"] == strtoupper($ext)) ){ // && $fotos[0] == "tb"){ $imagens[$indice] = $file; $indice++; } } sort($imagens); reset($imagens); $pagina = 1; if ($pgf) $pagina = $pgf; $paginas = ceil(count($imagens) / $ipp); $inicio = $pgf * $ipp; //$thumb = "thumbs.php?w=52&h=52&imagem="; $thumb = "thumbs52x52.php?w=52&h=52&imagem="; for ($i=$inicio; $i<($inicio+$ipp); $i++) if($imagens[$i] != ""){ $cont = $cont+1; ?><a href="../../estrutura/<?=$tabela1?>/zoom.php?id=<? echo $id?>&page=<?=$cont-1;?>" target="exibe_fotos"><img src="<? echo "$thumb$dir$imagens[$i]"; ?>" hspace="2" vspace="2" border="0" style="FILTER: alpha(opacity=100)" onMouseOver="makevisible(this,0)" onMouseOut="makevisible(this,1)"></a><? }?></td> </tr> </table></td> </tr> <tr> <TD valign="top"> <!-- <table width="100%" border="0" cellpadding="2" cellspacing="0"> <tr valign="middle"> <td height="20" align="right" valign="top"><strong> <? $total = ceil(count($imagens)); echo $total; ?> </strong> Fotos</td> </tr> </table> --> <table width="100%" border="0" cellpadding="2" cellspacing="0"> <tr valign="middle"> <td> <table border="0" align="right" cellpadding="2" cellspacing="1"> <tr><? $total = ceil(count($imagens)); //echo "Pgs: "; for($i=0; $i<$paginas; $i++){ if (($i%5)==0) { echo "</tr><tr>"; } $url = "?id=$id&pgf=$i"; if ($i==$pgf) { echo "<td width='15' align='center' bgcolor='$Cor1' class='branco borda2'><b>".($i+1)."</b></td>"; //echo "<font color='$coronmouse'>".($i+1)."</font> "; } else { echo "<td width='15' align='center' class='borda2'><a href='$url'><b><font color='$Cor1'>".($i+1)."</font></b></a></td>"; //echo "<a href='$url'><font color='#000000'>".($i+1)."</font></a> "; } } ?></tr> </table> </td> </tr> </table> </td> </tr> </table> zoom.php <? include("../../config.php"); $id = $_GET[id]; $page = $_GET[/page][page]; $Cor1 = "#00427F"; $Cor2 = "#000000"; $tabela1 = "galerias"; $sql = mysql_query("SELECT * FROM $tabela1 where id='$id'"); $dados= mysql_fetch_array($sql); $dir = "../../images/$tabela1/$id/"; ?> <body style="background-color:transparent"> <!--<meta http-equiv="Page-Enter" content="blendTrans(Duration=2)">--> <meta http-equiv="Page-Exit" content="blendTrans(Duration=2)"> <? if (strstr($page,".")== TRUE){ $page = ceil($page); $page = $page-1; } if (!$page==0){ $cont = $page * 1; } else { $cont = 0; } $handle = opendir($dir); $ext = "jpg"; $indice = 0; $ipp = 1; //while (false !== ($file = readdir($handle))){ //$pathdata = pathinfo($file); //if (!is_dir($file) && ($pathdata["extension"] == strtolower($ext)) || ($pathdata["extension"] == strtoupper($ext))){ while ($file = readdir($handle)) { $fotos = explode("_", $file); //echo $fotos[0]; if($file != '..' && $file !='.' && $file !='' && $file != 'Thumbs.db' && $file != 'index.html'){ $imagens[$indice] = $file; $indice++; } } @sort($imagens); @reset($imagens); /* $pagina = 1; if ($page) $pagina = $page; $paginas = ceil(count($imagens) / $ipp); $total = ceil(count($imagens)); $inicio = $page * $ipp; for ($i=$inicio; $i<($inicio+$ipp); $i++) if($imagens[$i] != ""){ $cont = $cont+1; */ if($dados[logo] == "S"){ $thumb = "thumbs2.php?w=440&h=330&imagem="; } else { $thumb = "thumbs.php?w=440&h=330&imagem="; } $pagina = 1; if ($_GET['page']) $pagina = $_GET['page']; $paginas = ceil(count($imagens) / $ipp); $total = ceil(count($imagens)); //echo $total; $inicio = $page * $ipp; for ($i = $inicio; $i < ($inicio + $ipp); $i++) if($total > 0){ ?> <? $Foto_que_eh = "$dir$imagens[$i]"; $size = getimagesize("$Foto_que_eh"); $width = $size[0]; $height = $size[1]; //echo "Largura: <b>$width</b> - Altura: <b>$height</b>"; if($width > $height){ $PosicaoCanto1x = 0; $PosicaoCanto1y = 3; $PosicaoCanto2x = 432; $PosicaoCanto2y = 3; $PosicaoCanto3x = 0; $PosicaoCanto3y = 325; $PosicaoCanto4x = 432; $PosicaoCanto4y = 325; } else { $PosicaoCanto1x = 96; $PosicaoCanto1y = 3; $PosicaoCanto2x = 335; $PosicaoCanto2y = 3; $PosicaoCanto3x = 96; $PosicaoCanto3y = 325; $PosicaoCanto4x = 335; $PosicaoCanto4y = 325; } ?> <style type="text/css"> #canto1 { position:absolute; left:<?=$PosicaoCanto1x?>px; top:<?=$PosicaoCanto1y?>px; width:8px; height:8px; z-index:1; } #canto2 { position:absolute; left:<?=$PosicaoCanto2x?>px; top:<?=$PosicaoCanto2y?>px; width:8px; height:8px; z-index:2; } #canto3 { position:absolute; left:<?=$PosicaoCanto3x?>px; top:<?=$PosicaoCanto4y?>px; width:8px; height:8px; z-index:3; } #canto4 { position:absolute; left:<?=$PosicaoCanto4x?>px; top:<?=$PosicaoCanto4y?>px; width:8px; height:8px; z-index:4; } </style> <div id="canto1"><script>exibeFash('../../images/layout/img_cantoFotos1.swf', 8, 8, 0, 1);</SCRIPT></div> <div id="canto2"><script>exibeFash('../../images/layout/img_cantoFotos2.swf', 8, 8, 0, 1);</SCRIPT></div> <div id="canto3"><script>exibeFash('../../images/layout/img_cantoFotos3.swf', 8, 8, 0, 1);</SCRIPT></div> <div id="canto4"><script>exibeFash('../../images/layout/img_cantoFotos4.swf', 8, 8, 0, 1);</SCRIPT></div> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr><td height="3"></td></tr> <tr> <td align="center" valign="bottom"> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="440" height="330" align="center" valign="middle" style="background-position:center; background-repeat:no-repeat;" background="../../images/layout/img_carregando6.gif"><img src="<?="$thumb$dir$imagens[$i]";?>" name="Foto" border="0"></td> </tr></table> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="5" height="5"></td> </tr> <tr align="center"> <td><? if ($page > 0){ $pag=$page - 1; echo "<a title='Foto Anterior' href=?id=$id&page=" . ($pag) . "><img src='".$usite."images/layout/bt_gal_voltar.jpg' border='0'></a>"; } else { echo "<img src='".$usite."images/layout/bt_gal_voltar_off.jpg' border='0'>"; } ?></td> <td><a title="Indicar para Amigo" href="java script:Enviar('<?=$usite?>enviar.php?pg=evento&id=<?=$id;?>');"><img src="<?=$usite?>images/layout/bt_gal_enviar.jpg" border="0" /></a></td> <td><a title="Salvar Foto para usar no MSN" href="java script:MSN('exibe.php?acao=MSN&id=<?=$id;?>&imagem=<?="$imagens[$i]";?>');"><img src="<?=$usite?>images/layout/bt_gal_msn.jpg" border="0" /></a></td> <!--<td><img src="<?=$usite?>images/layout/bt_gal_comprar.jpg" border="0"></td> --> <td><? if($page<$total-1){ $pagp=$page+1; echo "<a title='Pr&oacute;xima Foto' href=?id=$id&page=" . ($pagp) . "><img src='".$usite."images/layout/bt_gal_avancar.jpg' border='0'></a>"; } else { echo "<img src='".$usite."images/layout/bt_gal_avancar_off.jpg' border='0'>";} ?></td> </tr> </table> <br /> <table border="0" cellpadding="0" cellspacing="2"> <tr><td width="33%" align="right">Código:</td> <td width="67%"><? $dt = explode("-", $dados[data1]); $data = "$dt[2]$dt[1]$dt[0]"; $foto = explode(".", $imagens[$i]); echo "$foto[0]-$id-$data"; /* // FUNCAO TROCA PAGE DE THUMBS (VOLTA UMA) $div = $page/$qts_thumbs; for ($x=1;$x<$paginas;$x++){ if ($div==$x){ $inter=0; break; } } if (isset($inter) AND $div * $qts_thumbs < $page){ if ($div==1){ $div = 0; } else { $div = $div-1; } echo "<script language=JavaScript>window.open('fotos.php?id=$id&pgf=$div', 'thumbs');</script>"; } // FUNCAO TROCA PAGE DE THUMBS (VOLTA UMA) // FUNCAO TROCA PAGE DE THUMBS (AVANÇA UMA) $div = $pag/$qts_thumbs; if(!strstr($div,'.')){ $inter = 0; } if (isset($inter) AND $div * $qts_thumbs < $page){ //echo "<body onload=\"parent.document.getElementById('thumbs').src = 'estrutura/galerias/fotos.php?id=$id&pgf=$div';\">"; echo "<script language=JavaScript>window.open('fotos.php?id=$id&pgf=$div', 'thumbs');</script>"; } // FUNCAO TROCA PAGE DE THUMBS (AVANÇA UMA) */ ?></td> </tr> </table> </td> </tr> </table> <? //} } else { ?> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="440" height="330" align="center" valign="middle">nenhuma foto nesta cobertura</td> </tr> </table> <? }?> Espero que voês possam me ajudar. Desde já agradeço.
  5. Para facilitar acesse o site: http://www.criarstudio.com.br/carros/ ai no campo de busca que fica do lado esquerdo, quando eu efetuo qualquer busca, por exemplo digitando o nome do veiculo ele não aparece no resultado. Desculpe mais tenho pouco conhecimento em php ainda.
  6. Bom galera to com um pequeno problema, toda vez que eu vou efetuar uma certa busca no site o resultado dessa busca não é exibido, no final da página aparece a seguinte mensagem: Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/saulolag/public_html/auto/resultado.php on line 1101 não sei bem o que é, sera que alguém poderia me ajudar? abaixo segue os códigos do arquivo resultado.php <?php require_once('Connections/portalveic.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $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; } } ?> <?php require_once('Connections/portalveic.php'); ?> <?php require_once('Connections/portalveic.php'); ?> <?php require_once('Connections/portalveic.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $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; } } $currentPage = $_SERVER["PHP_SELF"]; mysql_select_db($database_portalveic, $portalveic); $query_mascas_lista = "SELECT * FROM marcas ORDER BY marca ASC"; $mascas_lista = mysql_query($query_mascas_lista, $portalveic) or die(mysql_error()); $row_mascas_lista = mysql_fetch_assoc($mascas_lista); $totalRows_mascas_lista = mysql_num_rows($mascas_lista); if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $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; } } if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $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; } } if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $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_empresa = 12; $pageNum_empresa = 0; if (isset($_GET['pageNum_empresa'])) { $pageNum_empresa = $_GET['pageNum_empresa']; } $startRow_empresa = $pageNum_empresa * $maxRows_empresa; mysql_select_db($database_portalveic, $portalveic); $query_empresa = "SELECT * FROM empresa"; $query_limit_empresa = sprintf("%s LIMIT %d, %d", $query_empresa, $startRow_empresa, $maxRows_empresa); $empresa = mysql_query($query_limit_empresa, $portalveic) or die(mysql_error()); $row_empresa = mysql_fetch_assoc($empresa); if (isset($_GET['totalRows_empresa'])) { $totalRows_empresa = $_GET['totalRows_empresa']; } else { $all_empresa = mysql_query($query_empresa); $totalRows_empresa = mysql_num_rows($all_empresa); } $totalPages_empresa = ceil($totalRows_empresa/$maxRows_empresa)-1; $maxRows_ultimos_cadastrados = 6; $pageNum_ultimos_cadastrados = 0; if (isset($_GET['pageNum_ultimos_cadastrados'])) { $pageNum_ultimos_cadastrados = $_GET['pageNum_ultimos_cadastrados']; } $startRow_ultimos_cadastrados = $pageNum_ultimos_cadastrados * $maxRows_ultimos_cadastrados; mysql_select_db($database_portalveic, $portalveic); $query_ultimos_cadastrados = "SELECT * FROM auto ORDER BY id DESC"; $query_limit_ultimos_cadastrados = sprintf("%s LIMIT %d, %d", $query_ultimos_cadastrados, $startRow_ultimos_cadastrados, $maxRows_ultimos_cadastrados); $ultimos_cadastrados = mysql_query($query_limit_ultimos_cadastrados, $portalveic) or die(mysql_error()); $row_ultimos_cadastrados = mysql_fetch_assoc($ultimos_cadastrados); if (isset($_GET['totalRows_ultimos_cadastrados'])) { $totalRows_ultimos_cadastrados = $_GET['totalRows_ultimos_cadastrados']; } else { $all_ultimos_cadastrados = mysql_query($query_ultimos_cadastrados); $totalRows_ultimos_cadastrados = mysql_num_rows($all_ultimos_cadastrados); } $totalPages_ultimos_cadastrados = ceil($totalRows_ultimos_cadastrados/$maxRows_ultimos_cadastrados)-1; $maxRows_destaques = 12; $pageNum_destaques = 0; if (isset($_GET['pageNum_destaques'])) { $pageNum_destaques = $_GET['pageNum_destaques']; } $startRow_destaques = $pageNum_destaques * $maxRows_destaques; mysql_select_db($database_portalveic, $portalveic); $query_destaques = "SELECT * FROM auto WHERE veiculo = 'Motos Usadas'"; $query_limit_destaques = sprintf("%s LIMIT %d, %d", $query_destaques, $startRow_destaques, $maxRows_destaques); $destaques = mysql_query($query_limit_destaques, $portalveic) or die(mysql_error()); $row_destaques = mysql_fetch_assoc($destaques); if (isset($_GET['totalRows_destaques'])) { $totalRows_destaques = $_GET['totalRows_destaques']; } else { $all_destaques = mysql_query($query_destaques); $totalRows_destaques = mysql_num_rows($all_destaques); } $totalPages_destaques = ceil($totalRows_destaques/$maxRows_destaques)-1; $maxRows_resultado_busca = 1; $pageNum_resultado_busca = 0; if (isset($_GET['pageNum_resultado_busca'])) { $pageNum_resultado_busca = $_GET['pageNum_resultado_busca']; } $startRow_resultado_busca = $pageNum_resultado_busca * $maxRows_resultado_busca; $colname_resultado_busca = "-1"; if (isset($_POST['marca'])) { $colname_resultado_busca = $_POST['marca']; } mysql_select_db($database_portalveic, $portalveic); $query_resultado_busca = sprintf("SELECT * FROM auto WHERE marca = %s", GetSQLValueString($colname_resultado_busca, "text")); $query_limit_resultado_busca = sprintf("%s LIMIT %d, %d", $query_resultado_busca, $startRow_resultado_busca, $maxRows_resultado_busca); $resultado_busca = mysql_query($query_limit_resultado_busca, $portalveic) or die(mysql_error()); $row_resultado_busca = mysql_fetch_assoc($resultado_busca); if (isset($_GET['totalRows_resultado_busca'])) { $totalRows_resultado_busca = $_GET['totalRows_resultado_busca']; } else { $all_resultado_busca = mysql_query($query_resultado_busca); $totalRows_resultado_busca = mysql_num_rows($all_resultado_busca); } $totalPages_resultado_busca = ceil($totalRows_resultado_busca/$maxRows_resultado_busca)-1; $queryString_resultado_busca = ""; if (!empty($_SERVER['QUERY_STRING'])) { $params = explode("&", $_SERVER['QUERY_STRING']); $newParams = array(); foreach ($params as $param) { if (stristr($param, "pageNum_resultado_busca") == false && stristr($param, "totalRows_resultado_busca") == false) { array_push($newParams, $param); } } if (count($newParams) != 0) { $queryString_resultado_busca = "&" . htmlentities(implode("&", $newParams)); } } $queryString_resultado_busca = sprintf("&totalRows_resultado_busca=%d%s", $totalRows_resultado_busca, $queryString_resultado_busca); ?> <!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 http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>.::<?php echo $row_empresa['empresa']; ?>::.</title> <link rel="stylesheet" type="text/css" href="../style-projects-jquery.css" /> <script type="text/javascript" src="js/jquery.js"></script> </style> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <link href="style.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .style3 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #999999; } #nome{ width:200px; height:25px; border: 1px solid #CCC; background:#FFF; color:#CCC; padding-top:4px; font-family:Verdana, Geneva, sans-serif; } #email{ width:200px; height:25px; border: 1px solid #CCC; background:#FFF; color:#CCC; padding-top:4px; font-family:Verdana, Geneva, sans-serif; } #telefone{ width:200px; height:25px; border: 1px solid #CCC; background:#FFF; color:#CCC; padding-top:4px; font-family:Verdana, Geneva, sans-serif; } #estado{ width:200px; height:25px; border: 1px solid #CCC; background:#FFF; color:#CCC; padding-top:4px; font-family:Verdana, Geneva, sans-serif; } #cidade{ width:200px; height:25px; border: 1px solid #CCC; background:#FFF; color:#CCC; padding-top:4px; font-family:Verdana, Geneva, sans-serif; } #assunto{ width:200px; height:25px; border: 1px solid #CCC; background:#FFF; color:#CCC; padding-top:4px; font-family:Verdana, Geneva, sans-serif; } #mensagem{ width:200px; height:200px; border: 1px solid #CCC; background:#FFF; color:#CCC; padding-top:4px; font-family:Verdana, Geneva, sans-serif; } </style> <!-- Arquivos utilizados pelo jQuery lightBox plugin --> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script> <link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" /> <!-- / fim dos arquivos utilizados pelo jQuery lightBox plugin --> <!-- Ativando o jQuery lightBox plugin --> <script type="text/javascript"> $(function() { $('#gallery a').lightBox(); }); </script> <style type="text/css"> /* jQuery lightBox plugin - Gallery style */ #gallery { width: 100%; } #gallery ul { list-style: none; } #gallery ul li { display: inline; } #gallery ul img { border: 5px solid #3e3e3e; border-width: 5px 5px 20px; } #gallery ul a:hover img { border: 5px solid #fff; border-width: 5px 5px 20px; color: #fff; } #gallery ul a:hover { color: #fff; } </style> </head> <body> <table width="820" height="1092" border="0" align="center" cellspacing="0"> <tr bgcolor="#CCCCCC"> <td colspan="3"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','850','height','240','src','flash/topo','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/topo' ); //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="850" height="240"> <param name="movie" value="flash/topo.swf" /> <param name="quality" value="high" /> <embed src="flash/topo.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="850" height="240"></embed> </object></noscript></td> </tr> <tr bgcolor="#CCCCCC"> <td width="212" valign="top" bgcolor="#FFFFFF"><table width="200" border="0" cellpadding="0" cellspacing="0" id="fundopesquisa"> <tr> <th width="213" scope="col"><form id="busca_veiculos" name="busca_veiculos" method="post" action="resultado.php"> <table width="90%" border="0" cellspacing="2" cellpadding="0"> <tr> <td height="41" align="center"> </td> <td align="center"> </td> </tr> <tr> <th width="20%" align="center" scope="col"> </th> <th width="80%" align="center" scope="col"><span class="dados_detalhes">Marca</span></th> </tr> <tr> <td align="center"> </td> <td align="center"><select name="marca" id="marca"> <?php do { ?> <option value="<?php echo $row_mascas_lista['marca']?>"><?php echo $row_mascas_lista['marca']?></option> <?php } while ($row_mascas_lista = mysql_fetch_assoc($mascas_lista)); $rows = mysql_num_rows($mascas_lista); if($rows > 0) { mysql_data_seek($mascas_lista, 0); $row_mascas_lista = mysql_fetch_assoc($mascas_lista); } ?> </select></td> </tr> <tr> <td align="center"> </td> <td align="center"><span class="dados_detalhes">Modelo <input type="text" name="modelo" id="modelo" /> </span></td> </tr> <tr> <td align="center"> </td> <td align="center"> </td> </tr> <tr> <td align="center"> </td> <td align="right"><input type="submit" name="enviar" id="enviar" value="Buscar" /></td> </tr> <tr> <td align="center"> </td> <td align="center"> </td> </tr> </table> </form></th> </tr> </table> <br /> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><a href="listar_carros.php"><img src="imagens/btnComprar.png" width="176" height="51" border="0" /><br /> </a></th> </tr> </table> <br /> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><a href="fale_conosco.php"><img src="imagens/btnVender.png" width="176" height="51" border="0" /></a></th> </tr> </table> <br /> <table width="200" border="0" cellpadding="0" cellspacing="0" id="espaco_ultimos_inseridos"> <tr> <th valign="top" scope="col"><table width="200" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC"> <tr valign="top"> <th scope="col"><span class="style1">ÚLTIMOS INSERIDOS</span></th> </tr> </table> <?php do { ?> <table width="95%" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <th scope="col"><hr /></th> </tr> <tr> <td align="left"><span class="ultimos_cadastros"><a href="detalhes_anuncio.php?id=<?php echo $row_ultimos_cadastrados['id']; ?>"><?php echo $row_ultimos_cadastrados['modelo']; ?></a></span></td> </tr> <tr> <td align="left" nowrap="nowrap"><span class="ultimos_cadastros">Ano: <?php echo $row_ultimos_cadastrados['ano']; ?></span></td> </tr> </table> <?php } while ($row_ultimos_cadastrados = mysql_fetch_assoc($ultimos_cadastrados)); ?> </th> </tr> </table> </td> <td width="616" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="2" cellpadding="0"> <tr> <th scope="col"><h2 class="ultimos_cadastros"><span class="titulos">RESULTADO</span></h2></th> </tr> <tr> <th scope="col"> </th> </tr> <tr> <th align="center" scope="col"> <table border="0"> <tr> <?php do { // horizontal looper version 3 ?> <td width="177"><table width="100" border="0" align="left" cellpadding="0" cellspacing="2"> <tr> <th scope="col"><a href="detalhes_anuncio.php?id=<?php echo $row_resultado_busca['id']; ?>"><img src="anuncios/<?php echo $row_resultado_busca['foto1']; ?>" width="155" height="109" border="0" /></a></th> </tr> <tr> <td align="center"><span class="ultimos_cadastros"><strong><a href="detalhes_anuncio.php?id=<?php echo $row_resultado_busca['id']; ?>"><?php echo $row_resultado_busca['modelo']; ?></a></strong></span></td> </tr> <tr> <td align="center"><span class="ultimos_cadastros"><?php echo $row_resultado_busca['marca']; ?> - <?php echo $row_resultado_busca['modelo']; ?></span></td> </tr> <tr> <td align="center"><span class="ultimos_cadastros"><?php echo $row_resultado_busca['valor']; ?></span></td> </tr> </table></td> <?php $row_empresa = mysql_fetch_assoc($empresa); if (!isset($nested_empresa)) { $nested_empresa= 1; } if (isset($row_empresa) && is_array($row_empresa) && $nested_empresa++ % 3==0) { echo "</tr><tr>"; } } while ($row_empresa); //end horizontal looper version 3 ?> </tr> </table> <table border="0"> <tr> <td><?php if ($pageNum_resultado_busca > 0) { // Show if not first page ?> <a href="<?php printf("%s?pageNum_resultado_busca=%d%s", $currentPage, 0, $queryString_resultado_busca); ?>"><img src="imagens/First.gif" /></a> <?php } // Show if not first page ?></td> <td><?php if ($pageNum_resultado_busca > 0) { // Show if not first page ?> <a href="<?php printf("%s?pageNum_resultado_busca=%d%s", $currentPage, max(0, $pageNum_resultado_busca - 1), $queryString_resultado_busca); ?>"><img src="imagens/Previous.gif" /></a> <?php } // Show if not first page ?></td> <td><?php if ($pageNum_resultado_busca < $totalPages_resultado_busca) { // Show if not last page ?> <a href="<?php printf("%s?pageNum_resultado_busca=%d%s", $currentPage, min($totalPages_resultado_busca, $pageNum_resultado_busca + 1), $queryString_resultado_busca); ?>"><img src="imagens/Next.gif" /></a> <?php } // Show if not last page ?></td> <td><?php if ($pageNum_resultado_busca < $totalPages_resultado_busca) { // Show if not last page ?> <a href="<?php printf("%s?pageNum_resultado_busca=%d%s", $currentPage, $totalPages_resultado_busca, $queryString_resultado_busca); ?>"><img src="imagens/Last.gif" /></a> <?php } // Show if not last page ?></td> </tr> </table> </p></th> </tr> </table> <p align="left" class="style1"><br /> </p></td> <td width="18" valign="top" bgcolor="#FFFFFF"> </td> </tr> </table> <table width="852" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC"> <tr> <th bgcolor="#EBEBEB" class="style3" scope="col"><br /> <?php echo $row_empresa['empresa']; ?> - Todos os Direitos Reservados - <a href="index.php">In&iacute;cio</a> | <a href="empresa.php">Empresa</a> | <a href="listar_carros.php">Carros</a> | <a href="listar_motos.php">Motos</a> | <a href="financiamento.php">Financiamento</a> | <a href="fale_conosco.php">Fale Conosco</a><br /> <br /></th> </tr> </table> <p> </p> </body> </html> <?php mysql_free_result($mascas_lista); mysql_free_result($resultado_busca); mysql_free_result($ultimos_cadastrados); mysql_free_result($destaques); mysql_free_result($resultado_busca); mysql_free_result($empresa); ?> Obrigado e espero que vocês possam me ajudar.
  7. Bom galera, atualmente estou mexendo em um script de um portal, já corri vários erros mas tem um que eu não estou conseguindo resolver. espero que você aqui possam me ajudar. O aque acontece o seguinte: Quando eu vou cadastrar algo no site, como por exemplo uma noticia, preenchos todos os campos direito, clico em cadastrar, seleciono a foto que eu quero e cadastro. Todos os campos que eu digitei caadastram normalmente, aparecendo no site, mas infelizmente a foto não. a foto não chega a ser enviada para o servidor e nem no db mostra a foto que eu cadastrei, tipo fica em branco, enquanto os texto são inseridos normalmente. sera que alguém pode me ajudar. Abaixo segue o código php: <? require "verifica.php";?> <? $variables=(strtolower($_SERVER['REQUEST_METHOD'])== 'GET') ? $_GET : $_POST; foreach ($variables as $k=> $v) $$k=$v; $palavra1 = "Charge"; $tabela1 = "charges"; $total_campos_fotos = 1; $file = "$tabela1"; $LarguraFoto = 400; $AlturaFoto = 300; $QualidadeFoto = 90; // iniçio da acao GRAVA NO BD if($acao == "gravar"){ $sql = "REPLACE INTO $tabela1 VALUES ('$id', '$nome','$fonte', '', '$visitas', '$status');"; //echo "$sql"; $sql2 = mysql_query($sql); if(!empty($id)){ $qualfoi = "Alterado"; $qualID = "$id"; } else { $qualfoi = "Inserido"; $qualID = mysql_insert_id(); } $dir = "../images/$tabela1"; // INICIO DA FUNCAO FOR $f_name = $_FILES['foto']['name']; $f_tmp = $_FILES['foto']['tmp_name']; $f_type = $_FILES['foto']['type']; for($i=0; $i<$total_campos_fotos; $i++){ $FotoNome = $f_name[$i]; $FotoTemp = $f_tmp[$i]; $FotoTipo = $f_type[$i]; $TrocarFoto = $nova_foto[$i]; $FotoAntiga = $antiga[$i]; $Extensao = strtolower(substr($FotoNome, -4)); //echo "TROCAR FOTO $i: <b>$TrocarFoto</b><br>"; //echo "FOTO ANTIGA $i: <b>$FotoAntiga</b><br>"; //if($TrocarFoto == "S"){ //echo "FOTO ENVIADA $i: <b>$FotoNome</b><br>"; //echo "FOTO TEMP $i: <b>$FotoTemp</b><br>"; //echo "TIPO FOTO $i: <b>$FotoTipo</b><br>"; //echo "EXTENSÃO FOTO $i: <b>$Extensao</b><br><br>"; //} if($TrocarFoto == "S"){ $urlupload = "$dir/"; // INICIO DO REDIMENSIONAMENTO DE FOTOS if(!empty($FotoNome)){ if($FotoTipo == "image/pjpeg") { $NomeNovo = $qualID."_".date("dmYHis").$i."$Extensao"; $im = imagecreatefromjpeg($FotoTemp); if(imagesx($im) > imagesy($im)){ $largura_padrao = $LarguraFoto; } else { $largura_padrao = $AlturaFoto; } $qualidade = $QualidadeFoto; $largura_original = imagesx($im); $altura_original = imagesy($im); $nova_altura = ($altura_original*$largura_padrao)/$largura_original; $nova_imagem = imagecreatetruecolor($largura_padrao,$nova_altura); imagecopyresampled($nova_imagem,$im,0,0,0,0,$largura_padrao,$nova_altura,$largura_original,$altura_original); imagejpeg($nova_imagem,"$urlupload"."$NomeNovo",$qualidade); } } // FIM DO REDIMENSIONAMENTO DAS FOTOS / $var = "UPDATE $tabela1 SET foto$i='$NomeNovo' WHERE id='$qualID'"; @unlink("$dir/$FotoAntiga"); //echo "TROCA ANTIGA $i<hr>"; } if($TrocarFoto == "A"){ $var = "UPDATE $tabela1 SET foto$i='' WHERE id='$qualID'"; @unlink("$dir/$FotoAntiga"); //echo "DELETA ANTIGA $i<hr>"; } if($TrocarFoto == "N"){ $var = "UPDATE $tabela1 SET foto$i='$FotoAntiga' WHERE id='$qualID'"; //echo "MANTEM ANTIGA $i<hr>"; } //echo $var."<hr>"; $sql = mysql_query($var); } // FIM DA FUNCAO FOR $mgs = "Registro <b>$qualfoi</b> com Sucesso!"; echo "<table border='0' align='center' cellpadding='0' cellspacing='0' style='border: 1px solid $corcelula1;'> <tr> <td width='400' bgcolor='$corcelula2' align='center' class='titulos'> $mgs</td> </tr> </table> <br> "; echo "<meta http-equiv='refresh' content='1;URL=?pg=$file'>"; } // fim da acao UPDATE NO BD // iniçio da acao STATUS NO BD if($acao == "status"){ $sql = "UPDATE $tabela1 SET status='$status' WHERE id='$id'"; $sql2 = mysql_query($sql); $mgs = "Status Alterado com Sucesso!"; echo "<table border='0' align='center' cellpadding='0' cellspacing='0' style='border: 1px solid $corcelula1;'> <tr> <td width='400' bgcolor='$corcelula2' align='center' class='titulos'> $mgs</td> </tr> </table> <br> "; echo "<meta http-equiv='refresh' content='1;URL=?pg=$file'>"; } // fim da acao STATUS NO BD // iniçio da acao EXCLUIR SELECIONADOS if($acao == "excluir_selecionados"){ $listas = implode("|", $listas); // echo "$planos<hr>"; $lista = explode("|", $listas); $total = count($lista); // echo $total; for($i=0; $i<$total; $i++){ $dados = mysql_fetch_array(mysql_query("SELECT * FROM $tabela1 WHERE id='$lista[$i]'")); $dir = "../images/$tabela1"; @unlink("$dir/$dados[foto0]"); $sql = "delete from $tabela1 WHERE id='$lista[$i]'"; $sql2 = mysql_query($sql); //echo "$sql<br>"; } $mgs = "<b>$palavra </b>Excluído com Sucesso!"; echo "<table border='0' align='center' cellpadding='0' cellspacing='0' style='border: 1px solid $corcelula1;'> <tr> <td width='400' bgcolor='$corcelula2' align='center' class='titulos'> $mgs</td> </tr> </table> <br> "; echo "<meta http-equiv='refresh' content='1;URL=?pg=$file'>"; } // fim da acao EXCLUIR SELECIONADOS // iniçio da acao FORM DE CADASTRO E ALTERAR //if($acao== "FORM"){ $form1 = "FORMULARIO"; $sql=mysql_query("SELECT * FROM $tabela1 WHERE id='$id'"); $dados=mysql_fetch_array($sql); ?> <form action="?pg=<?=$file?>" method="post" enctype="multipart/form-data" name="<?=$form1?>"> <fieldset style="width:100%;"> <input name="acao" type="hidden" value="gravar"> <input name="id" type="hidden" value="<?=$id?>"> <input name="status" type="hidden" value="<?=(empty($id))?"S":"$dados[status]"?>"> <input name="visitas" type="hidden" value="<?=(empty($id))?"1":"$dados[visitas]"?>"> <table width="99%" align="center" cellpadding="0" cellspacing="0"> <tr><td><font class="titulos"><?=(empty($id))?"Cadastrar":"Alterar";?> <?="$palavra1"; ?> </font> (<a href="<?="?pg=$file";?>">CADASTRAR NOVO</a>)</td> </tr> </table> <table width="99%" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <td valign="middle">Nome - Descri&ccedil;&atilde;o:<br /> <input name="nome" type="text" class="input" onblur="this.className='input';" onfocus="this.className='inputon';" value="<?=$dados[nome];?>" size="75"></td> </tr> <tr> <td valign="middle">Fonte:<br /> <input name="fonte" type="text" class="input" onblur="this.className='input';" onfocus="this.className='inputon';" value="<?=$dados[fonte];?>" size="35" /></td> </tr> <tr> <td valign="middle"> </td> </tr> <? for($i=0; $i<$total_campos_fotos; $i++){?> <tr> <td> <script> function HabilitarFoto<?=$i?>() { nForm = document.forms['<?=$form1?>']; if(nForm.elements['nova_foto[<?=$i?>]'].checked = true) { nForm.elements['foto[<?=$i?>]'].disabled = false; nForm.elements['foto[<?=$i?>]'].className= "input"; } } function DesabilitarFoto<?=$i?>() { nForm.elements['foto[<?=$i?>]'].disabled = true; nForm.elements['foto[<?=$i?>]'].className = "inputon"; } </script> <fieldset> <legend>Imagem <?=$i+1;?>: </legend> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="156"> <? if(empty($acao)){ echo "<img width='150' name='foto$i' src='../images/layout/sem_foto.jpg' border='0'>"; } else { if(!empty($dados['foto'.$i])){ echo "<img width='150' name='foto$i' src='thumbs.php?w=150&imagem=../images/$tabela1/".$dados['foto'.$i]."' border='0'>"; } else { echo "<img width='150' name='foto$i' src='../images/layout/sem_foto.jpg' border='0'>"; } } ?></td> <td valign="middle"><table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="middle"><? if(empty($id)){?> <input class="inputon" onchange="document.images.foto<?=$i?>.src=this.value" name='foto[<?=$i?>]' type='file' size="16" <? if($i==0){?>onclick="java script:alert('Todas as fotos devem ter o formato .jpg');"<? }?>> <input name="nova_foto[<?=$i?>]" type="hidden" value="S"> <? } else {?> Trocar Foto <?=$i+1;?>?: <input name="nova_foto[<?=$i?>]" type="radio" value="N" checked="checked" onclick="java script:DesabilitarFoto<?=$i?>()"> N&atilde;o <input name="nova_foto[<?=$i?>]" type="radio" value="S" onclick="java script: HabilitarFoto<?=$i?>();"> Sim <input name="nova_foto[<?=$i?>]" type="radio" value="A"> Apagar <br /> <input class="inputon" onchange="document.images.foto<?=$i?>.src=this.value" name='foto[<?=$i?>]' type='file' size="16" disabled="disabled" <? if($i==0){?>onclick="java script:alert('Todas as fotos devem ter o formato .jpg');"<? }?>><input name="antiga[<?=$i?>]" type="hidden" value="<?=$dados['foto'.$i]?>"> <? }?></td> </tr> </table></td> </tr> </table> </fieldset> </td> </tr> <? }?> <tr> <td valign="middle"><input style="width:110px;" type="submit" class="input" onblur="this.className='input';" onfocus="this.className='inputon';" name='btgravar' value="<?=(empty($id))?"Cadastrar":"Alterar";?>" /></td> </tr> </table> </fieldset> </form> <? //} // fim da acao FORM DE CADASTRO E ALTERAR ?> <? // inicio da acao LISTAR //if($acao == "listar"){ $form2 = "FORMLISTA"; $busca = "SELECT * FROM $tabela1 order by nome"; //echo $busca; $total_reg = "50"; if(!$page){ $page = "1"; } $inicio = $page-1; $inicio = $inicio*$total_reg; $limite = mysql_query("$busca LIMIT $inicio,$total_reg"); $todos = mysql_query("$busca"); $tr = mysql_num_rows($todos); //$tr = count($op); //echo $tr; $tp = ceil($tr / $total_reg); ?> <form action="?pg=<?=$file?>" method="POST" name="<?=$form2?>"> <fieldset style="width:100%;"> <input name="acao" type="hidden" value="excluir_selecionados"> <table width="99%" align="center" cellpadding="0" cellspacing="0"> <tr><td><font class="titulos">Lista de <b><?=$palavra1?></b> </font></td> <td align="right"><strong><? echo "<b><font color=$coronmouse>$tr</font></b>";?></strong> registros! </td> </tr> </table> <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1"> <tr bgcolor="#CCCCCC"> <td width="12%" align="center" bgcolor="#C0C0C0"><b>ID</b></td> <td width="59%" align="center"><b>NOME</b></td> <td width="12%" align="center"><b>VISITAS</b></td> <td width="17%" align="center" bgcolor="#C0C0C0"><b>A&Ccedil;&Otilde;ES</b></td> </tr> <? $i=0; while ($dados=mysql_fetch_array($limite)) { $op = explode("|",$dados[id_finalidade]); if (($i%2)==0) { $bgcolor="#FFFFFF"; } else { $bgcolor="#e5e5e5"; } ?> <tr> <td align="center" valign="middle" bgcolor="<? echo $bgcolor; ?>"><table width="90%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="20"><input id='check_sel' name='listas[]' type='checkbox' value='<?="$dados[id]";?>' /></td> <td><b><?=$dados[id];?></b></td> </tr> </table></td> <td valign="middle" bgcolor="<? echo $bgcolor?>"><?=$dados[nome]?></td> <td align="center" valign="middle" bgcolor="<? echo $bgcolor?>"><?=$dados[visitas]?></td> <td align="center" valign="middle" bgcolor="<? echo $bgcolor; ?>"><a href="?pg=<?=$file?>&acao=status&id=<?=$dados[id];?>&status=<?=($dados[status]=="S")?"N":"S";?>"><img src="<?=$usite?>images/admin/status_<?=($dados[status]=="S")?"on":"off";?>.png" alt='Alterar Status para <?=($dados[status]=="S")?"OFF":"ON";?>' border='0' /></a> <a href="?pg=<?=$file?>&acao=FORM&id=<?=$dados[id]?>"><img src="<?=$usite?>images/admin/botao_edit.png" alt="Alterar" border="0" /></a><!--<a href="java script:confirmaExclusao('?pg=<?=$file?>&amp;acao=excluirbd&amp;id=<?=$dados[id];?>')"><img src="<?=$usite?>images/admin/botao_drop.png" alt="Excluir" hspace="3" border="0" /></a>--></td> </tr> <tr><td colspan="5" bgcolor="#CCCCCC"></td></tr> <? $i++; }?> <tr> <td colspan="5"><table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="100" align="right" valign="top"><? if($page > 1){ $anterior = $page -1; $url = "?pg=$pg&acao=$acao&page=$anterior"; echo "<a href='$url'>&laquo; Anterior</a> | "; } else { echo "<font color='$corcelula2'>&laquo; Anterior</font> | "; } ?> </td> <td align="center"><? for($i=1; $i<$page; $i++) if($i>=$page-5) echo "<a href='?pg=$pg&acao=$acao&page=$i'>$i</a> | "; echo "<font color='$coronmouse'><b>$page</b></font> "; for($i=$page+1; $i<=$tp; $i++) if($i<=$page+5) echo " | <a href='?pg=$pg&acao=$acao&page=$i'>$i</a>"; ?></td> <td width="100" align="left" valign="top"><? if($tp > $page){ $proxima = $page +1; $url = "?pg=$pg&acao=$acao&page=$proxima"; echo " | <a href='$url'>Pr&oacute;xima &raquo;</a>"; } else { echo " | <font color='$corcelula2'>Pr&oacute;xima &raquo;</font>"; } ?></td> </tr> </table></td> </tr> <tr> <td colspan="5"><input style="width:110px;" class="input" onblur="this.className='input';" onfocus="this.className='inputon';" type="button" value="Selecionar Todos" onclick='SelectAll();' id="sel_todos"> <input style="width:110px;" name="Button" type="button" class="input" onblur="this.className='input';" onfocus="this.className='inputon';" value="Excluir Selecionados" onclick="checkdeletetion();"></td> </tr> </table> </fieldset> </form> <? //} ?> espero que vocês possam me ajudar.
  8. Bom galera, to com um problema para resolver e espero que vocês possam me ajudar. Eu encontrei na internet uma galeria em flash com admin + php, essa galeria na verdedade é um template que eu baixei e editei algumas coisas para que eu utilize apenas a galeria. Más o que esta acontecendo é o seguinte, eu tenho contrato com uma empresa de revenda de hospedagem aqui no Brasil e eu possuo um outro site com hospedado nesses sites de hospedagem grátis fora do Brasil. Mas o que esta acontecendo é o seguinte, eu gostaria de utulizar essa galeria no meu servidor de revenda, peguei todos os aquivos da galeria, coloquei em um dos meu sites hospedado mas o administrador da galeria não funciona, quando eu tento editar algo, como categoria, ou adicionar uma foto eu não consigo, aparece uma mensagem de erro com o nome: Object Object até ai beleza. Logo depois eu peguei essa mesma galeria e hospedai no meu servidor grátis fora do brasil e adivinha, a galeria funciono perfeitamente. então creio eu que o problema não seja nos aquivos e sim no servidor, mas eu estou sem saber o que precisa se feito no servidor para que essa galeria funcione aqui, esta que é a questão. Logo abaixo, irei passar o link do admin da geleria hospedado nos dois servidor, no grátis que é de fora e no meu da revenda: Site hospedado fora do brasil (hospedagem grátis): ----------- Site hospedado na minha revenda: ------------ Notem que na primeira galeria funciona normal, você pode inserir, editar, renomear as fotos que funciona normal. Agora vejam que na 2 galeria (os mesmo arquivos da primeira) não funciona direito, fica aprecendo uma mensagem de erro. Para facilitar mais ainda, estou disponibilizando o templete completo para que vocês deem uma olha e possam até testar no servidor que voces possuiem: ---------- Gostaria que vocês me ajudassem em descobrir o porque que essa galeria não funciona aqui no meu servidor. Obs.: Desculpem moderadores se eu postei no lugar errado. POdem fechar o tópico moderadores!!!
  9. Perfeito ESerra, todos os campos apareceram beleza! =D Só que a um pequeno problema =/ no formulário quando se preenchia o campo "E-mail" e a pessoa enviasse o formulário, automaticamente a pessoa recebia um e-mail de confirmação na sua caixa de entrada, só que nem agora e nem antes estou recebendo esses e-mails, e Toda vez que alguém me envia algo, todas as mensagem recebidas aparecem com o Título "Sem Assunto" só que deveria aparecer isso: falta algo?
  10. ESerra Eu tentei colocar esse $_POST mas mesmo assim não ta funcionando alterei as variáveis para: más assim não fuciono, quando eu coloco do jeito que esta acima nem mensagem recebe e da um erro na página alem disso ali ta faltando algo que faça funcionar corretamente, só que to sabendo o que é =/
  11. Bom Galera é o seguinte, com base em alguns tutoriais que encontrei pela internet em fiz um formulário de contato em PHP, fiz de acordo com que ensinava, hospedei no servidor, só que quando preenches o campos e envia o formulario eu recebo um e-mail com remetente desconhecido e todos os campos em branco, aparece apenas Nome, e-mail... más o que a pessoa digita não aparece nada. Pesquisando para saber se sobre esse problema vi que outras pessoas tinha o mesmo, muitos diziam que era apenas deixar os register_globals on, no meu caso o meu esta em off. Eu segui um tutorial na internet, salve no servidor um aquivos com o nome php.ini e dentro o texto register_globals = on, mas mesmo assim não resolveu meu problema, continuo não recebendo o que as pessoas digitam, tudo em branco. Quando eu hospedei meu site a empresa responsável me mandou um e-mail com as informações de minha hospedagem e com a seguinte mensagem: Então eu gostaria de saber o que eu faça para resolver esse meu problema, para que os e-mails recebidos não apareçam em branco?? Abaixo o form.php que usei. Obrigado e espero que me ajudem. Obs.: Sou novato, então me expliquem da maneira mais simples possível. ^^
  12. saulus

    Liberum Help Desk

    tentei mais não funcionou... =/
  13. saulus

    Liberum Help Desk

    só que ai que ta... eu não to acertando colocar o caminho correto: veja só Eu já tentei de várias maneira colocar o caminho, mas mesmo assim não ta dando certo =/ arldin, Eu tentei instalar o webcall mas to com alguns problemas nele também, um dele por exemplo é cadastras operador ou até mesmo editar o que já existe. =/ Helps!
  14. saulus

    Liberum Help Desk

    Bom Galera é o seguinte, eu estou precisando instalar um sistema de atendimento online no meu site, procurei a internet e achei esse, liberum Help Desk, criei um pasta com o nome "atendimento" e joguei todos os aquivos para dentro dessa pasta no servidor, só que quando vou acessar a página aparecer essa mensagem: Alguém poderia me ajudar a fazer esse help desk funcionar, configura-lo e tal? Obrigado!
  15. Bom Galera é o seguinte, com base em alguns tutoriais que eu encontrei pela internet eu fiz uma galeria de fotos Flash + XML só que essa galeria que eu fiz está bem simples e eu queria coloca algum efeito, tanto na foto maior quanto na miniatura, gostaria que vocês me ajudassem pois necessito disso para colocar em um site. Aguardo resposta. Para vocês verem a galeria coloquei aqui dois links, um que baixa os arquivos utilizados e outro que vocês veem a galeria online. Veja a Galeria aqui Arquivos Utilizados Obrigado!
×
×
  • Criar Novo...