Jump to content


kajalode

Member Since 20/01/2012
Offline Last Active 23/01/2013, 08:38
-----

Topics I've Started

Desativar Data Após A Mesma For Anterior A Atual

22/01/2013, 10:01

preciso do seguinte:

segue uma agenda

17/01/2013
Geovany Reis e Fabrício e Victor e Michel
Adega Original
Valores de entrada até as 24:00hs Mulher R$ 10,00 e Homen R$25,00 - após Mulher R$ 10,00 e Homem R$ 30,00.

18/01/2013
Rico e Ruan e Allan e Sérgio
Adega Original
Início da festa: 21h00m. Valores de entrada Mulher VIP e Homen R$ 25,00até as 24:00hs com nome na lista adegaoriginal@lapela.com.br após Mulher R$10,00 Homen R$30,00 endereço: Av. Luis Dumont Vilares, 794, Jardim São Paulo - SP


qdo o dia 17 de janeiro passar, automaticamente o evento do teria que sair e qdo não tiver nenhum evento na agenda teria que aparecer uma mensagem tipo:

"nenhum evento até o momento"

poderia me ajudar nessa questão?


fiz o seguinte script mas não apaga:

$agenda = date("row_data_agenda");
$query_RsAgenda =("DELETE $row_data_agenda SELECT * FROM agenda WHERE $row_data_agenda'] < '$agenda'");

Cms

21/08/2012, 09:42

Olá, tem esse site :
http://dribbble.com

e gostei do design e da funcionalidade dele,
seria por acaso um cms?

vcs poderiam me ajudar, estou com um projeto que seria basicamente isso, se for uma plataforma CMS seria uma mão na roda.

alguém poderia me dizer se realmente seria um cms?

Parametros Url

25/07/2012, 11:33

Estou com um problema com os parâmetro de url

a variavel vem daqui:

http://vinissimo.com..._web/produtores

$select = mysql_select_db("vinissimo1",$conexao);
$Nome_do_Vinho = $_GET['Produtor'];

$Sql = mysql_query('SELECT * FROM produtor_scgt WHERE sctg_nome = "'.$Nome_do_Vinho.'"');
$array = mysql_fetch_array($Sql);
$Codigo = $array['sctg_id'];

$mysql_sql = mysql_query("SELECT
regiao_ctg.ctg_nome,
pais_dpt.dpt_nome,
pais_dpt.dpt_id,
produtor_scgt.sctg_id,
produtor_scgt.sctg_nome,
produtor_scgt.sctg_ctg_id,
produtor_scgt.sctg_status,
produtor_scgt.sctg_informacoes,
produtor_fotos.ft_id,
produtor_fotos.ft_nome,
produtor_fotos.ft_produtor_id,
rotulo_pdt.pdt_nome,
rotulo_pdt.pdt_imagem,
rotulo_pdt.pdt_safra,
rotulo_pdt.pdt_uva,
rotulo_pdt.pdt_tipo,
rotulo_pdt.pdt_vinificacao,
rotulo_pdt.pdt_avaliacoes,
rotulo_pdt.pdt_grade_alcoolica,
rotulo_pdt.pdt_temperatura_servico,
rotulo_pdt.pdt_harmonizacao,
rotulo_pdt.pdt_pdf,
rotulo_pdt.pdt_comentarios
FROM
produtor_scgt, rotulo_pdt, regiao_ctg, pais_dpt, produtor_fotos
WHERE
rotulo_pdt.pdt_sctg_id = produtor_scgt.sctg_id AND
produtor_fotos.ft_produtor_id = produtor_sctg.sctg_id AND
produtor_scgt.sctg_ctg_id = regiao_ctg.ctg_id AND
regiao_ctg.ctg_dpt_id = pais_dpt.dpt_id AND
rotulo_pdt.pdt_dpt = pais_dpt.dpt_id AND
rotulo_pdt.pdt_ctg_id = regiao_ctg.ctg_id AND
rotulo_pdt.pdt_sctg_id = produtor_sctg.sctg_id AND
produtor_scgt.sctg_id = '".$_GET['Produtor']."'");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="imagens/favico.ico" type="image/x-icon" />
<link href="css/home.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="biblioteca.js"></script>
<script type="text/javascript" src="acoes.js"></script>
<title><?php echo $Produtor; ?></title>
</head>
<style type="text/css">
body{background-image:url(imagens/bg_site.jpg); background-repeat:repeat-x; margin:0;}

#master_topo_faixa_sup{width:100%; height:4px; text-align:center; margin:0 auto; background-color:#000;}
#master_topo{width:100%; height:137px; margin:0 auto; text-align:center; background-image:url(imagens/bg_fundo_topo_black.jpg);}
#master_menu{ width:100%; height:40px; margin:0 auto; text-align:center; background-image:url(imagens/bg_menu_topo.jpg);}
#master_filtro{ width:100%; height:49px; margin:0 auto; text-align:center; background-image:url(imagens/bg_filtro.jpg);}
#master_filtro_old{width:980px; height:49px; margin:0 auto; text-align:center;}
#master_corpo{ width:100%; margin:0 auto; text-align:center;}

#master_rodape{clear:left;width:100%;color:#FFFFFF; line-height:18px;font-size:11px;text-align: center;
background-image:url('../images/rodape.jpg');background-repeat:repeat-x;height:320px;}
.rodape{width:980px; height:328px; margin:0 auto; text-align:center;}
.faixa_inferior{ width:100%; height:8px; margin:0 auto; text-align:center; background-color:#91005f;}
#container
{
width:980px;
margin:0 auto;
text-align:center;
background-color: transparent !important;
}
#cols
{
float:left;
margin:18px 0 0 0;
width:980px
}

.coluna_01
{
float:left;
margin:0 auto;
width:214px;

}

.coluna_02
{
float:left;
margin:0 auto;
width:746px;

}

#geral_filtro{width:100%; height:49px; margin:0 auto; text-align:center; background-image:url(imagens/bg_filtro.jpg); background-repeat:repeat-x; }
#filtro{ width:980px; height:49px; margin:0 auto; text-align:center;}
.titulo_filtro{ font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#FFF;}

#Item {
float:left;
margin-top: -14px;
color:#FFF;
}
.select_filtro{ font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#303030;}
select {

width: 110px;
padding: 2px;
border: 1px solid #ccc;
height: 28px;
font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#303030;
}
</style>

<body>
<div id="master_topo_faixa_sup"></div>

<div id="master_topo">
<?php
mxi_includes_start("topo.php");
require(basename("topo.php"));
mxi_includes_end();
?>
</div>
<div id="master_menu">
<?php
mxi_includes_start("menu_topo.php");
require(basename("menu_topo.php"));
mxi_includes_end();
?>
</div>
<div id="master_filtro">
<div id="master_filtro_old">
<?php
mxi_includes_start("filtro_topo.php");
require(basename("filtro_topo.php"));
mxi_includes_end();
?>
</div>
</div>



<table class="table_master" width="980" align="center">
<tr>
<td width="222" align="left" valign="top">
<?php
mxi_includes_start("custom-vertical-mega-menu-1/jquery-vertical-mega-menu-1/menu.php");
require(basename("custom-vertical-mega-menu-1/jquery-vertical-mega-menu-1/menu.php"));
mxi_includes_end();
?></td>
<td width="746" align="left" valign="top">
<?php
while ($row = mysql_fetch_assoc($mysql_sql)){
?>
<table width="746" class="titulo_rotulo">
<tr>
<td><span class="titulo_home"> PRODUTORES</span><br />
<span class="subtitulo_home">Os vinhos mais comentados</span>
<div class="fita_ttulo"></div></td>
</tr>
</table>
<div style="width:746px; height:auto; margin-top:18px; float:left; position:relative; border:0px solid #666;">
<div style="width:720px; height:auto; float:left; margin-left:15px; margin-top:15px; position:relative; border:0px solid #666;">
<h1 class="modulos_produtor_nome"><?php echo $row['pdt_nome']; ?></h1>
<br />
<h1 class="modulos_rotulos_regiao_pais"><?php echo $row['ctg_nome']; ?>&nbsp;/&nbsp;<?php echo $row['dpt_nome']; ?></h1>
<span class="modulos_rotulos_produtor"><?php echo $row['sctg_nome']; ?></span><br />
<?php if($row['sctg_informacoes'] != ''){ ?>
<strong class="modulos_rotulos">Informações:</strong> <span class="modulos_rotulos_texto"> <?php echo $row['sctg_informacoes']; ?></span> <br />
<?php } ?>
<br />
<br />
<table width="200" align="right">
<tr>
<td align="left"><p class="result_produtor_texto">Veja Tamb&eacute;m </p>
<br />
<p><a href="busca-produtos.php?Produtor=<?php echo $row['sctg_nome']; ?>" class="result_produtor_texto">Mais r&oacute;tulos desse Produtor</a></p>
</tr>
</table>
<div class="pdf">
<div class="fb-like" data-href="http://www.facebook....46684072026061" data-send="false" data-layout="button_count" data-width="90" data-show-faces="false" data-font="arial" style="float: left;"></div>
<div class="addthis_toolbox addthis_default_style"> &nbsp; <a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone"><?php echo $row_Recordset1['dpt_nome']; ?></a></div>
<script src="http://s7.addthis.co...aafef123844a86" type="text/javascript"></script>
<script type="text/javascript">// <![CDATA[
jQuery('.addthis_button_google_plusone').attr('g:plusone:size','medium');
//
//
//
//
// ]]></script>
<br />
<br />
</div>
</div>
</div>
<br />
<br />

<!--galeria-->
<?php if($row_RsListaGaleria['sctg_status'] == 1) { ?>
<div class="demo">
<ul class="gallery_demo_unstyled">
<?php
$Produtor = $_GET['Produtor'];
if(isset($_GET['Produtor'])) {
$diretorio = ("../vini_adm/mu/uploads/Produtor/");
$dirabrir = opendir("$diretorio");

while ($fotos = readdir($dirabrir)) {
if($fotos != "." && $fotos != ".." && $fotos != "thumbnails") {
?>
<li class="active"><img src="../vini_adm/mu/uploads/<?php echo $Produtor."/".$fotos; ?>" alt="<?php echo $fotos; ?>" title="<?php echo $fotos; ?>"></li>
<?php
}
} // fecha while
} // fecha if $_GET['produtor'];
?>
</ul>
<p class="nav">&nbsp;</p>
</div>
<p>
<?php } else { ?>
<br />
<br />
<br />
<br />
Atualmente esse produtor não tem imagens para visualização! <br />
<?php } ?>
</p>
<p>&nbsp;</p>
<p>&nbsp;

</p>
<!--fim da galeria-->
</td>
</tr>
</table>
<div id="master_rodape">
<?php
mxi_includes_start("rodape.html");
require(basename("rodape.html"));
mxi_includes_end();
?>
<!--<iframe src="rodape_1.html" width="100%" height="100%" scrolling="no" frameborder="0" name="vinissimo"></iframe>-->
</div>
<!--<div class="faixa_inferior"></div>-->
</body>
</html>$select = mysql_select_db("vinissimo1",$conexao);
$Nome_do_Vinho = $_GET['Produtor'];

$Sql = mysql_query('SELECT * FROM produtor_scgt WHERE sctg_nome = "'.$Nome_do_Vinho.'"');
$array = mysql_fetch_array($Sql);
$Codigo = $array['sctg_id'];

$mysql_sql = mysql_query("SELECT
regiao_ctg.ctg_nome,
pais_dpt.dpt_nome,
pais_dpt.dpt_id,
produtor_scgt.sctg_id,
produtor_scgt.sctg_nome,
produtor_scgt.sctg_ctg_id,
produtor_scgt.sctg_status,
produtor_scgt.sctg_informacoes,
produtor_fotos.ft_id,
produtor_fotos.ft_nome,
produtor_fotos.ft_produtor_id,
rotulo_pdt.pdt_nome,
rotulo_pdt.pdt_imagem,
rotulo_pdt.pdt_safra,
rotulo_pdt.pdt_uva,
rotulo_pdt.pdt_tipo,
rotulo_pdt.pdt_vinificacao,
rotulo_pdt.pdt_avaliacoes,
rotulo_pdt.pdt_grade_alcoolica,
rotulo_pdt.pdt_temperatura_servico,
rotulo_pdt.pdt_harmonizacao,
rotulo_pdt.pdt_pdf,
rotulo_pdt.pdt_comentarios
FROM
produtor_scgt, rotulo_pdt, regiao_ctg, pais_dpt, produtor_fotos
WHERE
rotulo_pdt.pdt_sctg_id = produtor_scgt.sctg_id AND
produtor_fotos.ft_produtor_id = produtor_sctg.sctg_id AND
produtor_scgt.sctg_ctg_id = regiao_ctg.ctg_id AND
regiao_ctg.ctg_dpt_id = pais_dpt.dpt_id AND
rotulo_pdt.pdt_dpt = pais_dpt.dpt_id AND
rotulo_pdt.pdt_ctg_id = regiao_ctg.ctg_id AND
rotulo_pdt.pdt_sctg_id = produtor_sctg.sctg_id AND
produtor_scgt.sctg_id = '".$_GET['Produtor']."'");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="imagens/favico.ico" type="image/x-icon" />
<link href="css/home.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="biblioteca.js"></script>
<script type="text/javascript" src="acoes.js"></script>
<title><?php echo $Produtor; ?></title>
</head>
<style type="text/css">
body{background-image:url(imagens/bg_site.jpg); background-repeat:repeat-x; margin:0;}

#master_topo_faixa_sup{width:100%; height:4px; text-align:center; margin:0 auto; background-color:#000;}
#master_topo{width:100%; height:137px; margin:0 auto; text-align:center; background-image:url(imagens/bg_fundo_topo_black.jpg);}
#master_menu{ width:100%; height:40px; margin:0 auto; text-align:center; background-image:url(imagens/bg_menu_topo.jpg);}
#master_filtro{ width:100%; height:49px; margin:0 auto; text-align:center; background-image:url(imagens/bg_filtro.jpg);}
#master_filtro_old{width:980px; height:49px; margin:0 auto; text-align:center;}
#master_corpo{ width:100%; margin:0 auto; text-align:center;}

#master_rodape{clear:left;width:100%;color:#FFFFFF; line-height:18px;font-size:11px;text-align: center;
background-image:url('../images/rodape.jpg');background-repeat:repeat-x;height:320px;}
.rodape{width:980px; height:328px; margin:0 auto; text-align:center;}
.faixa_inferior{ width:100%; height:8px; margin:0 auto; text-align:center; background-color:#91005f;}
#container
{
width:980px;
margin:0 auto;
text-align:center;
background-color: transparent !important;
}
#cols
{
float:left;
margin:18px 0 0 0;
width:980px
}

.coluna_01
{
float:left;
margin:0 auto;
width:214px;

}

.coluna_02
{
float:left;
margin:0 auto;
width:746px;

}

#geral_filtro{width:100%; height:49px; margin:0 auto; text-align:center; background-image:url(imagens/bg_filtro.jpg); background-repeat:repeat-x; }
#filtro{ width:980px; height:49px; margin:0 auto; text-align:center;}
.titulo_filtro{ font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#FFF;}

#Item {
float:left;
margin-top: -14px;
color:#FFF;
}
.select_filtro{ font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#303030;}
select {

width: 110px;
padding: 2px;
border: 1px solid #ccc;
height: 28px;
font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#303030;
}
</style>

<body>
<div id="master_topo_faixa_sup"></div>

<div id="master_topo">
<?php
mxi_includes_start("topo.php");
require(basename("topo.php"));
mxi_includes_end();
?>
</div>
<div id="master_menu">
<?php
mxi_includes_start("menu_topo.php");
require(basename("menu_topo.php"));
mxi_includes_end();
?>
</div>
<div id="master_filtro">
<div id="master_filtro_old">
<?php
mxi_includes_start("filtro_topo.php");
require(basename("filtro_topo.php"));
mxi_includes_end();
?>
</div>
</div>



<table class="table_master" width="980" align="center">
<tr>
<td width="222" align="left" valign="top">
<?php
mxi_includes_start("custom-vertical-mega-menu-1/jquery-vertical-mega-menu-1/menu.php");
require(basename("custom-vertical-mega-menu-1/jquery-vertical-mega-menu-1/menu.php"));
mxi_includes_end();
?></td>
<td width="746" align="left" valign="top">
<?php
while ($row = mysql_fetch_assoc($mysql_sql)){
?>
<table width="746" class="titulo_rotulo">
<tr>
<td><span class="titulo_home"> PRODUTORES</span><br />
<span class="subtitulo_home">Os vinhos mais comentados</span>
<div class="fita_ttulo"></div></td>
</tr>
</table>
<div style="width:746px; height:auto; margin-top:18px; float:left; position:relative; border:0px solid #666;">
<div style="width:720px; height:auto; float:left; margin-left:15px; margin-top:15px; position:relative; border:0px solid #666;">
<h1 class="modulos_produtor_nome"><?php echo $row['pdt_nome']; ?></h1>
<br />
<h1 class="modulos_rotulos_regiao_pais"><?php echo $row['ctg_nome']; ?>&nbsp;/&nbsp;<?php echo $row['dpt_nome']; ?></h1>
<span class="modulos_rotulos_produtor"><?php echo $row['sctg_nome']; ?></span><br />
<?php if($row['sctg_informacoes'] != ''){ ?>
<strong class="modulos_rotulos">Informações:</strong> <span class="modulos_rotulos_texto"> <?php echo $row['sctg_informacoes']; ?></span> <br />
<?php } ?>
<br />
<br />
<table width="200" align="right">
<tr>
<td align="left"><p class="result_produtor_texto">Veja Tamb&eacute;m </p>
<br />
<p><a href="busca-produtos.php?Produtor=<?php echo $row['sctg_nome']; ?>" class="result_produtor_texto">Mais r&oacute;tulos desse Produtor</a></p>
</tr>
</table>
<div class="pdf">
<div class="fb-like" data-href="http://www.facebook....46684072026061" data-send="false" data-layout="button_count" data-width="90" data-show-faces="false" data-font="arial" style="float: left;"></div>
<div class="addthis_toolbox addthis_default_style"> &nbsp; <a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone"><?php echo $row_Recordset1['dpt_nome']; ?></a></div>
<script src="http://s7.addthis.co...aafef123844a86" type="text/javascript"></script>
<script type="text/javascript">// <![CDATA[
jQuery('.addthis_button_google_plusone').attr('g:plusone:size','medium');
//
//
//
//
// ]]></script>
<br />
<br />
</div>
</div>
</div>
<br />
<br />

<!--galeria-->
<?php if($row_RsListaGaleria['sctg_status'] == 1) { ?>
<div class="demo">
<ul class="gallery_demo_unstyled">
<?php
$Produtor = $_GET['Produtor'];
if(isset($_GET['Produtor'])) {
$diretorio = ("../vini_adm/mu/uploads/Produtor/");
$dirabrir = opendir("$diretorio");

while ($fotos = readdir($dirabrir)) {
if($fotos != "." && $fotos != ".." && $fotos != "thumbnails") {
?>
<li class="active"><img src="../vini_adm/mu/uploads/<?php echo $Produtor."/".$fotos; ?>" alt="<?php echo $fotos; ?>" title="<?php echo $fotos; ?>"></li>
<?php
}
} // fecha while
} // fecha if $_GET['produtor'];
?>
</ul>
<p class="nav">&nbsp;</p>
</div>
<p>
<?php } else { ?>
<br />
<br />
<br />
<br />
Atualmente esse produtor não tem imagens para visualização! <br />
<?php } ?>
</p>
<p>&nbsp;</p>
<p>&nbsp;

</p>
<!--fim da galeria-->
</td>
</tr>
</table>
<div id="master_rodape">
<?php
mxi_includes_start("rodape.html");
require(basename("rodape.html"));
mxi_includes_end();
?>
<!--<iframe src="rodape_1.html" width="100%" height="100%" scrolling="no" frameborder="0" name="vinissimo"></iframe>-->
</div>
<!--<div class="faixa_inferior"></div>-->
</body>
</html>


o erro tá dando no while:
alguém pode me ajudar!!!!!!!!!!!

Destaque Php

17/07/2012, 14:23

Preciso de uma ajuda,
estou com uma pagina onde haverá somente um destaque semanal na home, isso será ativado na administração.
só que não estou conseguindo listar isso na pagina.

Se alguém puder me ajudar: segue o código:


$mysql_sql = mysql_query("SELECT
regiao_ctg.ctg_nome,
pais_dpt.dpt_nome,
pais_dpt.dpt_id,
produtor_scgt.sctg_id,
produtor_scgt.sctg_nome,
produtor_scgt.sctg_informacoes,
rotulo_pdt.pdt_nome,
rotulo_pdt.pdt_imagem,
rotulo_pdt.pdt_preco,
rotulo_pdt.pdt_preco_parcela,
rotulo_pdt.pdt_link_loja,
rotulo_pdt.pdt_safra,
rotulo_pdt.pdt_uva,
rotulo_pdt.pdt_tipo,
rotulo_pdt.pdt_vinificacao,
rotulo_pdt.pdt_avaliacoes,
rotulo_pdt.pdt_grade_alcoolica,
rotulo_pdt.pdt_temperatura_servico,
rotulo_pdt.pdt_harmonizacao,
rotulo_pdt.pdt_pdf,
rotulo_pdt.pdt_pdt_destacar_site
rotulo_pdt.pdt_comentarios
FROM
produtor_scgt, rotulo_pdt, regiao_ctg, pais_dpt
WHERE
rotulo_pdt.pdt_sctg_id = produtor_scgt.sctg_id AND
produtor_scgt.sctg_id = regiao_ctg.ctg_id AND
regiao_ctg.ctg_dpt_id = pais_dpt.dpt_id AND
rotulo_pdt.pdt_id = AND
rotulo_pdt.pdt_destacar_site <> 0");

?>

na administração existe um formulário cujo para destacar 1 dos produtos no site é referente ao campo "destacar_site"

Gerar Doc Do Bd

04/05/2012, 10:18

Podem me ajudar? preciso fazer download de uma tabela com todas as informações dos campos.
isso ficaria na parte administrativa ou seja colocaria um link para download para o administrador baixar essa expecífica listagem em excel

IPB Skin By Virteq