Fez aquele sistema legal e quer disponibilizar para outros usuários Essa é a seção correta para isso.
Moderador: web
por radiomeadd Offline » Sáb Jun 20, 2009 1:37 pm
|
|
Vamos la...
conexao.php
- Código: Selecionar todos
<? /* ************************************************************ # Agenda de Eventos Funk da Baixada # # --- www.funkdabaixada.com.br --- # # # # Desenvolvido por: KR Soluções Web # # # # Projeto Original: Renildo Marcio Oliveira Ferreira # ************************************************************ */ ?> <?php
$host= "localhost"; $dbname = "NOME DO BD"; $usuario ="USUÁRIO BD"; $password ="SENHA BD";
$conexao = mysql_connect ($host,$usuario,$password); mysql_select_db ($dbname);
?>
admin.php
- Código: Selecionar todos
<? /* ************************************************************ # Agenda de Eventos Funk da Baixada # # --- www.funkdabaixada.com.br --- # # # # Desenvolvido por: KR Soluções Web # # # # Projeto Original: Renildo Marcio Oliveira Ferreira # ************************************************************ */ ?> <?php
$username = "admin"; // username p/ entrar na página $password = "123456"; // password p/ entrar na página if ($PHP_AUTH_USER != $username || $PHP_AUTH_PW != $password) { header("WWW-Authenticate: basic realm='admin'"); header("HTTP/1.0 401 Unauthorized"); echo "Authorization Required.<br /><a href='index.php'>tente novamente</a>"; //login inválido exit; } else { ?>
<?php
$operacao = $_POST["operacao"]; include "conexao.php"; // Pega os dados do formulário e os envia para o banco de dados.
if ($operacao=="incluir") { $codigo = $_POST["codigo"]; // $dia = $_POST["dia"]; // as alterecaoes estao aqui $data=$_POST["dia"];
$sqldata = "$data"; // Data no formato MySQL $aux = explode("/",$sqldata); // Faz a separação da data em itens // de uma array // Agora faz a junção invertendo a ordem do itens da data // para a forma normal. $data = $aux[2]."-".$aux[1]."-".$aux[0];
// fim das alteracoes $hora = $_POST["hora"]; $local = $_POST["local"]; $evento = $_POST["evento"]; $detalhe = $_POST["detalhe"]; $info = $_POST["info"]; $detalhe = nl2br($detalhe);//faz a quebra de linha <br> $sql = "INSERT INTO agenda VALUES"; $sql .= "('$codigo','$data','$hora','$local','$evento','$detalhe','$info')"; $resultado = mysql_query ($sql); echo "<table width='700' border='0' align='center' cellpadding='2' cellspacing='2' bgcolor='#FFFFCC'> <tr> <td><img src='img/ico_positivo.jpg' width='20' height='20' /></td> <td width='100%'>Evento incluido com sucesso!</td> </tr> </table>";
} // Exclui os dados da tabela elseif ($operacao=="excluir") { $codigo = $_POST["codigo"]; $sql = "DELETE FROM agenda WHERE codigo_evento=$codigo"; $resultado = mysql_query ($sql); $linhas = mysql_affected_rows(); if($linhas==1) { echo "<table width='700' border='0' align='center' cellpadding='2' cellspacing='2' bgcolor='#FFFFCC'> <tr> <td><img src='img/ico_exclusao.jpg' width='20' height='20' /></td> <td width='100%'>Evento excluído com sucesso!</td> </tr> </table>"; } else { echo "<table width='700' border='0' align='center' cellpadding='2' cellspacing='2' bgcolor='#FFFFCC'> <tr> <td><img src='img/ico_exclamacao.jpg' width='20' height='20' /></td> <td width='100%'>Evento não encontrado!</td> </tr> </table>"; } }
mysql_close($conexao); ?>
<html> <title>Administração da Agenda de Eventos</title> <style type="text/css"> <!-- body{background:#333; font-family:Arial, Helvetica, sans-serif;} table{font-size:11px} h1{margin:0; color:#FFCC00;padding:10px;} --> </style>
<body> <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr bgcolor="#FF6600"> <td width="33%" bgcolor="#DD0B1E"><h1>Administração da Agenda de Eventos</h1></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td width="60%"><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#0099CC"> <form method="POST" action="admin.php"> <input type="hidden" name="operacao" value="incluir"> <tr> <td colspan="2"><font color="#ffffff">INCLUIR NA AGENDA</font></td> </tr> <tr> <td width="30%" bgcolor="#f1f1f1"><strong>DIA</strong></td> <td bgcolor="#FFFFFF"><input name="dia" type="text" size="20" maxlength="10"> (dd/mm/aaaa)</td> </tr> <tr> <td width="30%" bgcolor="#f1f1f1"><strong>HORA</strong></td> <td bgcolor="#FFFFFF"><input name="hora" type="text" size="20" maxlength="8"></td> </tr> <tr> <td width="30%" bgcolor="#f1f1f1"><strong>LOCAL</strong></td> <td bgcolor="#FFFFFF"><input name="local" type="text" size="40" maxlength="40"></td> </tr> <tr> <td width="30%" bgcolor="#f1f1f1"><strong>EVENTO</strong></td> <td bgcolor="#FFFFFF"><input name="evento" type="text" size="40" maxlength="40"></td> </tr> <tr> <td valign="top" bgcolor="#f1f1f1"><strong>DETALHE</strong></td> <td bgcolor="#FFFFFF"><textarea rows="4" name="detalhe" cols="30" style="width:100%"></textarea></td> </tr> <tr> <td width="30%" bgcolor="#f1f1f1"><strong>INFO</strong></td> <td bgcolor="#FFFFFF"><input name="info" type="text" size="40" maxlength="100"></td> </tr> <tr> <td bgcolor="#f1f1f1"> </td> <td bgcolor="#FFFFFF"><input type="submit" value="Cadastrar" name="enviar"></td> </tr> </form> </table></td> </tr> <tr> <td> <?php include "conexao.php"; //conexão com o banco de dados
// Pega os dados na tabela do banco de dados $resultado = mysql_query ("SELECT * FROM agenda order by dia"); $linhas = mysql_num_rows ($resultado); // Exibe os dados for ($i=0 ; $i<$linhas ; $i++) { $registro = mysql_fetch_row($resultado); // as alterecaoes estao aqui $data=$registro[1];
$sqldata = "$data"; // Data no formato MySQL $aux = explode("-",$sqldata); // Faz a separação da data em itens // de uma array // Agora faz a junção invertendo a ordem do itens da data // para a forma normal. $data = $aux[2]."/".$aux[1]."/".$aux[0]; $registro[1]=$data;
// fim das alteracoes echo " <table border='1' width='90%' cellspacing='0' cellpadding='0' height='3' bordercolor='#E6E6E6'> <tr> <td width='23%' bgcolor='#DF3800' height='14'> <p align='center'><font size='1' face='Verdana' color='#FFFFFF'><b>$registro[4]</td></font></b> <td width='87%' bgcolor='#000000' height='14'> <p align='center'><font size='1' face='Verdana' color='yellow'><b>$registro[1]</b> - $registro[2] - <b>$registro[3]</b></td></font> </tr> <tr> <td width='13%' height='40' valign='middle'> <p align='center'><b><font size='1' face='Verdana' color='#C0C0C0'> O que rola....</font></b></td> <td width='87%' bgcolor='#FFFFFF' height='40' style='text-align: justify'> $registro[5]</tr> <tr> <td width='13%' height='1' valign='middle' bgcolor='#111111'> <p align='center'><b><font size='1' face='Verdana' color='#FFFFFF'>Informações:</font></b></td> <td width='87%' bgcolor='#93B6FF' height='1'> <p align='center'>$registro[6]</p></tr> <tr> <td width='100%' height='1' colspan='2' bgcolor='#FFFFFF'> <font color='#FFFFFF' size='1'>.</font></td> </tr> <form method='POST' action='admin.php'> <input type='hidden' name='operacao' value='excluir'> <input type='hidden' name='codigo' value='$registro[0]'> <td bgcolor='#FFFFFF' align='center'> <input type='image' name='imageField' src='img/ico_exclusao.jpg'></td> </form> </tr> "; }
mysql_close($conexao); //fecha a conexão com o banco de dados
echo " </table>";
?></td> </tr>
</table></td> </tr> <tr> <td bgcolor="#DD0B1E" style="padding:5px; color:#FFFFFF">© Agenda de Eventos </td> </tr> </table> </body> </html> <? } ?>
index.php
- Código: Selecionar todos
ticker.php
- Código: Selecionar todos
<body bgcolor="#160E0C"> <STYLE type="text/css"> <!-- BODY { scrollbar-face-color: FFCC33; scrollbar-highlight-color: 000000; scrollbar-3dlight-color: 000000; scrollbar-darkshadow-color: 000000; scrollbar-shadow-color: 000000; scrollbar-arrow-color: 000000; scrollbar-track-color: 330033 ; } --> </STYLE> <? /* ************************************************************ # Agenda de Eventos Funk da Baixada # # --- www.funkdabaixada.com.br --- # # # # Desenvolvido por: KR Soluções Web # # # # Projeto Original: Renildo Marcio Oliveira Ferreira # ************************************************************ */ ?> <?php
include "conexao.php";
// Pega os dados na tabela do banco de dados
$hoje = date("Y-m-d");
$buscadados = "SELECT * FROM agenda WHERE dia >= '$hoje' order by dia";
$resultado = mysql_query ($buscadados); $linhas = mysql_num_rows ($resultado);
// Exibe os dados
for ($i=0 ; $i<$linhas ; $i++) { $registro = mysql_fetch_row($resultado);
$data=$registro[1]; $evento=$registro[4];
if ($hoje == $data) { echo " <div align='center'> <center> <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='555' id='AutoNumber1'> <tr> <td width='100%'> <TABLE CELLPADDING='0' CELLSPACING='0' BORDER='0' style='border-collapse: collapse' width='444'> <TR> <TD COLSPAN='3'> </TD> <TD><IMG WIDTH='8' HEIGHT='19' SRC='images/agenda_2.jpg' BORDER='0'></TD> <TD width='73' height='19' background='images/agenda_3.jpg'> <center><b><font face='Verdana' color='#000080'>HOJE</font></center></b></TD> <TD><IMG WIDTH='7' HEIGHT='19' SRC='images/agenda_4.jpg' BORDER='0'></TD> <TD COLSPAN='3'><IMG WIDTH='37' HEIGHT='19' SRC='images/agenda_5.jpg' BORDER='0'></TD> <TD><IMG WIDTH='19' HEIGHT='19' SRC='images/agenda_6.jpg' BORDER='0'></TD> <TD COLSPAN='4'> <p align='center'><font color='#808080'> ---------------------------------------------------------</font></TD> </TR> <TR> <TD COLSPAN='14'><IMG WIDTH='551' HEIGHT='4' SRC='images/agenda_8.jpg' BORDER='0'></TD> </TR> <TR> <TD COLSPAN='2'><IMG WIDTH='35' HEIGHT='27' SRC='images/agenda_9.jpg' BORDER='0'></TD> <TD COLSPAN='9' width='204' height='27' background='images/agenda_10.jpg'> <p align='center'> <b> <font face='Verdana'>$registro[4]</font></b></TD> <TD><IMG WIDTH='39' HEIGHT='27' SRC='images/agenda_11.jpg' BORDER='0'></TD> <TD COLSPAN='2' width='273' height='27' background='images/agenda_12.jpg'> <p align='center'> <b><font face='Verdana' size='1'>$registro[3]<br> $registro[2]</font></b></TD> </TR> <TR> <TD ROWSPAN='2'> </TD> <TD COLSPAN='6' valign='top'><IMG WIDTH='132' HEIGHT='73' SRC='images/agenda_14.jpg' BORDER='0'></TD> <TD COLSPAN='7' bgcolor='#454241' valign='top' style='margin-left: 5; margin-top: 2; margin-bottom: 2'> <p align='justify'><font face='Verdana' size='1' color='#FFFFFF'><b>$registro[5]</b><br></font></TD> </TR> <TR> <TD COLSPAN='6' background='images/agenda_16.jpg' width='132' height='18'> <p align='center'><b><font face='Verdana' size='1' color='#FFFFFF'> Informações:</font></b></TD> <TD><IMG WIDTH='15' HEIGHT='18' SRC='images/agenda_17.jpg' BORDER='0'></TD> <TD COLSPAN='5' width='371' height='18' background='images/agenda_18.jpg'> <p align='center'><b> <font face='Verdana' size='1' color='#FFFF00'>$registro[6]</font></b></TD> <TD><IMG WIDTH='18' HEIGHT='18' SRC='images/agenda_19.jpg' BORDER='0'></TD> </TR> <TR> <TD><IMG WIDTH='15' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='20' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='13' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='8' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='73' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='7' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='11' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='15' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='11' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='19' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='47' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='39' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='255' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='18' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> </TR> </TABLE></td> </tr>"; echo "<br>";}
else {
$sqldata = "$data"; // Data no formato MySQL $aux = explode("-",$sqldata); // Faz a separação da data em itens // de uma array // Agora faz a junção invertendo a ordem do itens da data // para a forma normal. $data = $aux[2]."/".$aux[1]; $registro[1]=$data;
echo " <div align='center'> <center> <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='555' id='AutoNumber1'> <tr> <td width='100%'> <TABLE CELLPADDING='0' CELLSPACING='0' BORDER='0' style='border-collapse: collapse' width='444'> <TR> <TD COLSPAN='3'> </TD> <TD><IMG WIDTH='8' HEIGHT='19' SRC='images/agenda_2.jpg' BORDER='0'></TD> <TD width='73' height='19' background='images/agenda_3.jpg'> <center><b><font face='Verdana' color='#000080'>$data</font></center></b></TD> <TD><IMG WIDTH='7' HEIGHT='19' SRC='images/agenda_4.jpg' BORDER='0'></TD> <TD COLSPAN='3'><IMG WIDTH='37' HEIGHT='19' SRC='images/agenda_5.jpg' BORDER='0'></TD> <TD><IMG WIDTH='19' HEIGHT='19' SRC='images/agenda_6.jpg' BORDER='0'></TD> <TD COLSPAN='4'> <p align='center'><font color='#808080'> ---------------------------------------------------------</font></TD> </TR> <TR> <TD COLSPAN='14'><IMG WIDTH='551' HEIGHT='4' SRC='images/agenda_8.jpg' BORDER='0'></TD> </TR> <TR> <TD COLSPAN='2'><IMG WIDTH='35' HEIGHT='27' SRC='images/agenda_9.jpg' BORDER='0'></TD> <TD COLSPAN='9' width='204' height='27' background='images/agenda_10.jpg'> <p align='center'> <b> <font face='Verdana'>$registro[4]</font></b></TD> <TD><IMG WIDTH='39' HEIGHT='27' SRC='images/agenda_11.jpg' BORDER='0'></TD> <TD COLSPAN='2' width='273' height='27' background='images/agenda_12.jpg'> <p align='center'> <b><font face='Verdana' size='1'>$registro[3]<br> $registro[2]</font></b></TD> </TR> <TR> <TD ROWSPAN='2'> </TD> <TD COLSPAN='6' valign='top'><IMG WIDTH='132' HEIGHT='73' SRC='images/agenda_14.jpg' BORDER='0'></TD> <TD COLSPAN='7' bgcolor='#454241' valign='top' style='margin-left: 5; margin-top: 2; margin-bottom: 2'> <p align='justify'><font face='Verdana' size='1' color='#FFFFFF'><b>$registro[5]</b><br></font></TD> </TR> <TR> <TD COLSPAN='6' background='images/agenda_16.jpg' width='132' height='18'> <p align='center'><b><font face='Verdana' size='1' color='#FFFFFF'> Informações:</font></b></TD> <TD><IMG WIDTH='15' HEIGHT='18' SRC='images/agenda_17.jpg' BORDER='0'></TD> <TD COLSPAN='5' width='371' height='18' background='images/agenda_18.jpg'> <p align='center'><b> <font face='Verdana' size='1' color='#FFFF00'>$registro[6]</font></b></TD> <TD><IMG WIDTH='18' HEIGHT='18' SRC='images/agenda_19.jpg' BORDER='0'></TD> </TR> <TR> <TD><IMG WIDTH='15' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='20' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='13' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='8' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='73' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='7' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='11' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='15' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='11' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='19' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='47' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='39' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='255' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='18' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> </TR> </TABLE></td> </tr>"; echo "<br>";}
//encerrar a página e o pedido do FOR
}
mysql_close($conexao); //fecha a conexão com o banco de dados
?> <TABLE><TR><TD><FONT FACE='VERDANA' SIZE='1' COLOR='WHITE'>Agenda de Eventos - <a href='http://www.localhostbr.com.br/' target='_blank'>Hospedagens Local Host BR</a> - Desenvolvido por <a href='mailto:krsolucoesweb@gmail.com'>Renildo Marcio</a>
tabelas
- Código: Selecionar todos
CREATE TABLE IF NOT EXISTS `agenda` ( `codigo_evento` int(4) NOT NULL auto_increment, `dia` date NOT NULL default '0000-00-00', `hora` varchar(8) NOT NULL default '', `local` varchar(40) NOT NULL default '', `evento` varchar(40) NOT NULL default '', `detalhe` text NOT NULL, `info` text NOT NULL, PRIMARY KEY (`codigo_evento`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=195 ;
Link para ver o script como ex.
http://www.funkdabaixada.com.br
Espero que vocês gostem! Qualquer duvida ou melhoria nele manda para mim. email: krsolucoesweb@gmail.com Hospedagens Pro: http://www.localhostbr.com.br

Web site: www.webradiogratis.com
Cadastro: http://auth.webradiogratis.com/index.php
Comunidade Codigos na Web http://www.orkut.com.br/Main#Community?cmm=94905489
Acessem a comunidade do codigos na web no orkut...
radiomeadd
MEMBRO
Mensagens: 49
Registrado em: Qui Ago 28, 2008 10:56 am
Localização: goias / goiania / brasil
|
por web Offline » Sáb Jun 20, 2009 8:29 pm
Acho que veio faltando, porque não tem o código da index, e também tá pedindo a tabela: nomes quando carrega o admin.

Gostou do que encontrou? Divulgue, indique, participe, agradeça pelas respostas.
Faço scripts personalizados ou reparos em scripts. Orçamento MSN codigosnaweb [@] hotmail [.] com
web
ADMIN
Mensagens: 11904
Registrado em: Sáb Jan 20, 2007 6:08 pm
Localização: RJ / RJ / Brasil
|
por radiomeadd Offline » Dom Jun 21, 2009 10:56 am
Olá amigo Admin..
Veja isto esta no admin.php
- Código: Selecionar todos
<?php
$username = "admin"; // username p/ entrar na página $password = "123456"; // password p/ entrar na página if ($PHP_AUTH_USER != $username || $PHP_AUTH_PW != $password) { header("WWW-Authenticate: basic realm='admin'"); header("HTTP/1.0 401 Unauthorized"); echo "Authorization Required.<br /><a href='index.php'>tente novamente</a>"; //login inválido exit; } else { ?>
Usuario: admin Senha:123456
Ja testei ele. E ele esta funcionando..

Web site: www.webradiogratis.com
Cadastro: http://auth.webradiogratis.com/index.php
Comunidade Codigos na Web http://www.orkut.com.br/Main#Community?cmm=94905489
Acessem a comunidade do codigos na web no orkut...
radiomeadd
MEMBRO
Mensagens: 49
Registrado em: Qui Ago 28, 2008 10:56 am
Localização: goias / goiania / brasil
|
por radiomeadd Offline » Dom Jun 21, 2009 10:59 am
Eu postei ele ai mais acho q deu bug no Forum quando postei.
mais esta aqui o index.php
- Código: Selecionar todos
<body bgcolor="#160E0C"> <STYLE type="text/css"> <!-- BODY { scrollbar-face-color: FFCC33; scrollbar-highlight-color: 000000; scrollbar-3dlight-color: 000000; scrollbar-darkshadow-color: 000000; scrollbar-shadow-color: 000000; scrollbar-arrow-color: 000000; scrollbar-track-color: 330033 ; } --> </STYLE> <? /* ************************************************************ # Agenda de Eventos Funk da Baixada # # --- www.funkdabaixada.com.br --- # # # # Desenvolvido por: KR Soluções Web # # # # Projeto Original: Renildo Marcio Oliveira Ferreira # ************************************************************ */ ?> <?php
include "conexao.php";
// Pega os dados na tabela do banco de dados
$hoje = date("Y-m-d");
$buscadados = "SELECT * FROM agenda WHERE dia >= '$hoje' order by dia";
$resultado = mysql_query ($buscadados); $linhas = mysql_num_rows ($resultado);
// Exibe os dados
for ($i=0 ; $i<$linhas ; $i++) { $registro = mysql_fetch_row($resultado);
$data=$registro[1]; $evento=$registro[4];
if ($hoje == $data) { echo " <div align='center'> <center> <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='555' id='AutoNumber1'> <tr> <td width='100%'> <TABLE CELLPADDING='0' CELLSPACING='0' BORDER='0' style='border-collapse: collapse' width='444'> <TR> <TD COLSPAN='3'> </TD> <TD><IMG WIDTH='8' HEIGHT='19' SRC='images/agenda_2.jpg' BORDER='0'></TD> <TD width='73' height='19' background='images/agenda_3.jpg'> <center><b><font face='Verdana' color='#000080'>HOJE</font></center></b></TD> <TD><IMG WIDTH='7' HEIGHT='19' SRC='images/agenda_4.jpg' BORDER='0'></TD> <TD COLSPAN='3'><IMG WIDTH='37' HEIGHT='19' SRC='images/agenda_5.jpg' BORDER='0'></TD> <TD><IMG WIDTH='19' HEIGHT='19' SRC='images/agenda_6.jpg' BORDER='0'></TD> <TD COLSPAN='4'> <p align='center'><font color='#808080'> ---------------------------------------------------------</font></TD> </TR> <TR> <TD COLSPAN='14'><IMG WIDTH='551' HEIGHT='4' SRC='images/agenda_8.jpg' BORDER='0'></TD> </TR> <TR> <TD COLSPAN='2'><IMG WIDTH='35' HEIGHT='27' SRC='images/agenda_9.jpg' BORDER='0'></TD> <TD COLSPAN='9' width='204' height='27' background='images/agenda_10.jpg'> <p align='center'> <b> <font face='Verdana'>$registro[4]</font></b></TD> <TD><IMG WIDTH='39' HEIGHT='27' SRC='images/agenda_11.jpg' BORDER='0'></TD> <TD COLSPAN='2' width='273' height='27' background='images/agenda_12.jpg'> <p align='center'> <b><font face='Verdana' size='1'>$registro[3]<br> $registro[2]</font></b></TD> </TR> <TR> <TD ROWSPAN='2'> </TD> <TD COLSPAN='6' valign='top'><IMG WIDTH='132' HEIGHT='73' SRC='images/agenda_14.jpg' BORDER='0'></TD> <TD COLSPAN='7' bgcolor='#454241' valign='top' style='margin-left: 5; margin-top: 2; margin-bottom: 2'> <p align='justify'><font face='Verdana' size='1' color='#FFFFFF'><b>$registro[5]</b><br></font></TD> </TR> <TR> <TD COLSPAN='6' background='images/agenda_16.jpg' width='132' height='18'> <p align='center'><b><font face='Verdana' size='1' color='#FFFFFF'> Informações:</font></b></TD> <TD><IMG WIDTH='15' HEIGHT='18' SRC='images/agenda_17.jpg' BORDER='0'></TD> <TD COLSPAN='5' width='371' height='18' background='images/agenda_18.jpg'> <p align='center'><b> <font face='Verdana' size='1' color='#FFFF00'>$registro[6]</font></b></TD> <TD><IMG WIDTH='18' HEIGHT='18' SRC='images/agenda_19.jpg' BORDER='0'></TD> </TR> <TR> <TD><IMG WIDTH='15' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='20' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='13' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='8' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='73' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='7' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='11' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='15' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='11' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='19' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='47' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='39' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='255' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='18' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> </TR> </TABLE></td> </tr>"; echo "<br>";}
else {
$sqldata = "$data"; // Data no formato MySQL $aux = explode("-",$sqldata); // Faz a separação da data em itens // de uma array // Agora faz a junção invertendo a ordem do itens da data // para a forma normal. $data = $aux[2]."/".$aux[1]; $registro[1]=$data;
echo " <div align='center'> <center> <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' width='555' id='AutoNumber1'> <tr> <td width='100%'> <TABLE CELLPADDING='0' CELLSPACING='0' BORDER='0' style='border-collapse: collapse' width='444'> <TR> <TD COLSPAN='3'> </TD> <TD><IMG WIDTH='8' HEIGHT='19' SRC='images/agenda_2.jpg' BORDER='0'></TD> <TD width='73' height='19' background='images/agenda_3.jpg'> <center><b><font face='Verdana' color='#000080'>$data</font></center></b></TD> <TD><IMG WIDTH='7' HEIGHT='19' SRC='images/agenda_4.jpg' BORDER='0'></TD> <TD COLSPAN='3'><IMG WIDTH='37' HEIGHT='19' SRC='images/agenda_5.jpg' BORDER='0'></TD> <TD><IMG WIDTH='19' HEIGHT='19' SRC='images/agenda_6.jpg' BORDER='0'></TD> <TD COLSPAN='4'> <p align='center'><font color='#808080'> ---------------------------------------------------------</font></TD> </TR> <TR> <TD COLSPAN='14'><IMG WIDTH='551' HEIGHT='4' SRC='images/agenda_8.jpg' BORDER='0'></TD> </TR> <TR> <TD COLSPAN='2'><IMG WIDTH='35' HEIGHT='27' SRC='images/agenda_9.jpg' BORDER='0'></TD> <TD COLSPAN='9' width='204' height='27' background='images/agenda_10.jpg'> <p align='center'> <b> <font face='Verdana'>$registro[4]</font></b></TD> <TD><IMG WIDTH='39' HEIGHT='27' SRC='images/agenda_11.jpg' BORDER='0'></TD> <TD COLSPAN='2' width='273' height='27' background='images/agenda_12.jpg'> <p align='center'> <b><font face='Verdana' size='1'>$registro[3]<br> $registro[2]</font></b></TD> </TR> <TR> <TD ROWSPAN='2'> </TD> <TD COLSPAN='6' valign='top'><IMG WIDTH='132' HEIGHT='73' SRC='images/agenda_14.jpg' BORDER='0'></TD> <TD COLSPAN='7' bgcolor='#454241' valign='top' style='margin-left: 5; margin-top: 2; margin-bottom: 2'> <p align='justify'><font face='Verdana' size='1' color='#FFFFFF'><b>$registro[5]</b><br></font></TD> </TR> <TR> <TD COLSPAN='6' background='images/agenda_16.jpg' width='132' height='18'> <p align='center'><b><font face='Verdana' size='1' color='#FFFFFF'> Informações:</font></b></TD> <TD><IMG WIDTH='15' HEIGHT='18' SRC='images/agenda_17.jpg' BORDER='0'></TD> <TD COLSPAN='5' width='371' height='18' background='images/agenda_18.jpg'> <p align='center'><b> <font face='Verdana' size='1' color='#FFFF00'>$registro[6]</font></b></TD> <TD><IMG WIDTH='18' HEIGHT='18' SRC='images/agenda_19.jpg' BORDER='0'></TD> </TR> <TR> <TD><IMG WIDTH='15' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='20' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='13' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='8' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='73' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='7' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='11' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='15' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='11' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='19' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='47' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='39' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='255' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> <TD><IMG WIDTH='18' HEIGHT='1' SRC='images/space.gif' BORDER='0'></TD> </TR> </TABLE></td> </tr>"; echo "<br>";}
//encerrar a página e o pedido do FOR
}
mysql_close($conexao); //fecha a conexão com o banco de dados
?> <TABLE><TR><TD><FONT FACE='VERDANA' SIZE='1' COLOR='WHITE'>Agenda de Eventos - <a href='http://www.localhostbr.com.br/' target='_blank'>Hospedagens Local Host BR</a> - Desenvolvido por <a href='mailto:krsolucoesweb@gmail.com'>Renildo Marcio</a>

Web site: www.webradiogratis.com
Cadastro: http://auth.webradiogratis.com/index.php
Comunidade Codigos na Web http://www.orkut.com.br/Main#Community?cmm=94905489
Acessem a comunidade do codigos na web no orkut...
radiomeadd
MEMBRO
Mensagens: 49
Registrado em: Qui Ago 28, 2008 10:56 am
Localização: goias / goiania / brasil
|
por web Offline » Dom Jun 21, 2009 11:17 am
Tá blz, vou testar

Gostou do que encontrou? Divulgue, indique, participe, agradeça pelas respostas.
Faço scripts personalizados ou reparos em scripts. Orçamento MSN codigosnaweb [@] hotmail [.] com
web
ADMIN
Mensagens: 11904
Registrado em: Sáb Jan 20, 2007 6:08 pm
Localização: RJ / RJ / Brasil
|
por web Offline » Dom Jun 21, 2009 11:39 am
É, não tem erro não, tá certinho o sistema.

Gostou do que encontrou? Divulgue, indique, participe, agradeça pelas respostas.
Faço scripts personalizados ou reparos em scripts. Orçamento MSN codigosnaweb [@] hotmail [.] com
web
ADMIN
Mensagens: 11904
Registrado em: Sáb Jan 20, 2007 6:08 pm
Localização: RJ / RJ / Brasil
|
por killjoy Offline » Dom Dez 27, 2009 9:54 pm
Eu tentei instalar aki, os codigos entro blz, mas quando eu tento logar, coloco login e senha, naum entra e nem da nada, so volta a mesma pagina pra digita login e senha d novo, ta parecendo q a senha ta incorreta, mas confiri e naum ta, alguem pode ajuda ?

killjoy
NOVO MEMBRO
Mensagens: 5
Registrado em: Dom Ago 16, 2009 12:35 pm
|
por killjoy Offline » Qua Dez 30, 2009 7:45 pm
alguem pode me ajudaa ?? presciso dessa agenda hehe...

killjoy
NOVO MEMBRO
Mensagens: 5
Registrado em: Dom Ago 16, 2009 12:35 pm
|
por web Offline » Qua Dez 30, 2009 7:51 pm
Tá rodando o script em PHP 4? Porque aparentemente esse script foi montado nessa versão.

Gostou do que encontrou? Divulgue, indique, participe, agradeça pelas respostas.
Faço scripts personalizados ou reparos em scripts. Orçamento MSN codigosnaweb [@] hotmail [.] com
web
ADMIN
Mensagens: 11904
Registrado em: Sáb Jan 20, 2007 6:08 pm
Localização: RJ / RJ / Brasil
|
por killjoy Offline » Qua Dez 30, 2009 9:02 pm
a minha é 5.2.8, não funciona naum ? se me recomenda alguma agenda boa para site de baladas ?

killjoy
NOVO MEMBRO
Mensagens: 5
Registrado em: Dom Ago 16, 2009 12:35 pm
|
por web Offline » Qua Dez 30, 2009 9:04 pm
A partir do 5 scripts feito em PHP4 não funcionam. Você teria que fazer as alterações manualmente nesse ai. Não conheço nada pronto.

Gostou do que encontrou? Divulgue, indique, participe, agradeça pelas respostas.
Faço scripts personalizados ou reparos em scripts. Orçamento MSN codigosnaweb [@] hotmail [.] com
web
ADMIN
Mensagens: 11904
Registrado em: Sáb Jan 20, 2007 6:08 pm
Localização: RJ / RJ / Brasil
|
por killjoy Offline » Qui Dez 31, 2009 12:50 pm
isso é dificil ? Se alguem der conta e nun for dificil pode fazer ae pra mim por favor ?

killjoy
NOVO MEMBRO
Mensagens: 5
Registrado em: Dom Ago 16, 2009 12:35 pm
|
por web Offline » Qui Dez 31, 2009 4:34 pm
Dá uma olhada nesse post, explica algumas coisas sobre essa mudança.
Mudancas-do-PHP4-para-PHP5-e-agora-para-o-PHP6_1_963.html
Ai você estuda e altera no script.

Gostou do que encontrou? Divulgue, indique, participe, agradeça pelas respostas.
Faço scripts personalizados ou reparos em scripts. Orçamento MSN codigosnaweb [@] hotmail [.] com
web
ADMIN
Mensagens: 11904
Registrado em: Sáb Jan 20, 2007 6:08 pm
Localização: RJ / RJ / Brasil
|
por killjoy Offline » Sex Jan 01, 2010 2:04 pm
vlw ja concegui  mas essa galeria é feia hehe... qria uma com foto sei la uma mais bonitinha

killjoy
NOVO MEMBRO
Mensagens: 5
Registrado em: Dom Ago 16, 2009 12:35 pm
|
por web Offline » Sex Jan 01, 2010 2:31 pm
Boa, mas de graça tambem não dá para esperar muito

Gostou do que encontrou? Divulgue, indique, participe, agradeça pelas respostas.
Faço scripts personalizados ou reparos em scripts. Orçamento MSN codigosnaweb [@] hotmail [.] com
web
ADMIN
Mensagens: 11904
Registrado em: Sáb Jan 20, 2007 6:08 pm
Localização: RJ / RJ / Brasil
|
Voltar para Laboratório de scripts PHP / MySQL
Quem está online
Usuários navegando neste fórum: Nenhum usuário registrado e 1 visitante
|
|
|