rafasw Postado Outubro 7, 2010 Denunciar Share Postado Outubro 7, 2010 (editado) http://www.twbteam.com.br/AgendacfProblema/ Modelo da agenda é esse http://www.twbteam.com.br/AgendacfProblema/adm - Administração login: adm senha:123456 Clique em alterar lá em baixo tem desativar clique em desativar http://www.twbteam.com.br/AgendacfProblema/ agora volta e procura pra ver se desativou ??? não desativa de forma alguma CODIGO INDEX.PHP <? require 'adm/conexao.php'; require 'adm/funcoes.php'; ?> <!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"/> <meta name="robots" content="index, follow"> <meta name="Googlebot" content="All"> <meta name="revisit-after" content="2 Days"> <meta name="author" content=""> <meta name="google-site-verification" content="Vu6RV4sYgmDjbANODpTNjAh4djfArUaBoaMMo8IQqo0" /> <meta name="expires" content="never" /> <META name="title" content="Agenda de Cf Twb - Team" /> <META NAME="Description" CONTENT="Agenda de Cf,Cf twb team, Agenda Cf TwB" /> <meta name="keywords" content="Agenda de Cf,Cf twb team, Agenda Cf TwB" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Agenda de Cf Twb - Team</title> <script language="JavaScript" type="text/javascript" src="../../animatexto.js"></script> <script language="javascript" type="text/javascript" src="js/js.js"></script> <style type="text/css"> .divpadrao{ font-family:arial; font-size:11px; width:400px; } .divcorpo{ width:80%; color:#0066FF; font-family:arial; font-size:11px; } </style> <style type="text/css"> A:link {text-decoration:none} A:visited {text-decoration:none} A:active {text-decoration:none} A:hover {text-decoration:none} a img { border-width:0; } </style> </head> <body> <?php include "logopt_adm.php"; ?> <br> <?php include "Busca-Letras/ChamaLetras.php"; ?> <br> <?php include "codigo_botao_cf.php"; ?> <br> <?php include "meio.php"; ?> <br> <?php include "voltar.php"; ?> <br> <?php include "creditos-agenda.php"; ?> </body> </html> CODIGO DA PAGINA MODIFICACAO.PHP <? session_start(); if ($_SESSION['DADOS']==""){ header("Location:login.php",true); exit; } //*************************************************// $acao = $_POST['Acao']; if ($acao=="Inserir"){ require 'conexao.php'; require 'funcoes.php'; modificar('in',$_POST['evdata'],$_POST['evhora'],$_POST['evtag'],$_POST['evendereco'],$_POST['evcidade'], $_POST['evuf'],$_POST['evtexto'],$_POST['evstatus'],$_POST['evcfstatus'],$_POST['evvpstatus'],$_POST['evmapa'],$_POST['evxiter'],$_POST['evtitulo']); header("Location:index.php",true); exit; } if ($acao=="Alterar"){ require 'conexao.php'; require 'funcoes.php'; modificar('al',$_POST['evdata'], $_POST['evhora'],$_POST['evtag'],$_POST['evendereco'],$_POST['evcidade'], $_POST['evuf'],$_POST['evtexto'],$_POST['evstatus'],$_POST['evcfstatus'],$_POST['evvpstatus'],$_POST['evmapa'],$_POST['evxiter'],$_POST['evid'],$_POST['evtitulo']); header("Location:index.php",true); exit; } //*************************************************// $varcarregar = 1; require 'pag_ini.php'; require 'conexao.php'; require 'funcoes.php'; //*************************************************// $codigoalterar = $_GET['codigoalterar']; if ($codigoalterar==""){ $botao = "Inserir"; } else { $botao = "Alterar"; unset($hh,$en,$tag,$ci,$uf,$tx,$st,$cf,$vp,$mp,$xt,$id,$dt,$dr,$ti); if (is_numeric($codigoalterar)==true) { $query_alterar = mysql_query("select * from eventos where eve_id=$codigoalterar") or die (mysql_errno()); $query_num = mysql_num_rows($query_alterar); if ($query_num>0){ $dr = explode("-",mysql_result($query_alterar,0,"eve_data")); $dt = $dr[2]."/".$dr[1]."/".$dr[0]; $hh = substr(mysql_result($query_alterar,0,"eve_hora"),0,5); $en = mysql_result($query_alterar,0,"eve_endereco"); $tag = mysql_result($query_alterar,0,"eve_tag"); $ci = mysql_result($query_alterar,0,"eve_cidade"); $uf = mysql_result($query_alterar,0,"eve_uf"); $tx = mysql_result($query_alterar,0,"eve_texto"); $st = mysql_result($query_alterar,0,"eve_status"); $cf = mysql_result($query_alterar,0,"eve_cfstatus"); $vp = mysql_result($query_alterar,0,"eve_vpstatus"); $mp = mysql_result($query_alterar,0,"eve_mapa"); $xt = mysql_result($query_alterar,0,"eve_xiter"); $id = mysql_result($query_alterar,0,"eve_id"); $ti = mysql_result($query_alterar,0,"eve_titulo"); } mysql_free_result($query_alterar); } } //*************************************************// ?> <center> <table width="523" border="0" align="center" cellpadding="0" style="border:solid 1px #CCCCCC;width:525px;"> <tr> <td width="523" align="center" valign="middle"><img src="http://www.twbteam.com.br/imagens/agendacf/logo.png" width="523" height="173" /></td> </tr> </table> <form action="<?=$_SERVER['PHP_SELF'];?>" method="post"> <input type="hidden" name="evid" value="<?=$id;?>"> <table width="516px" border="0" cellpadding="0" style="border:solid 1px #CCCCCC;width:525px;"> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/clan.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <span id="sprytextfield20"> <input name="evtitulo" class="forms" type="text" value="<?=$ti;?>" size="40" maxlength="100"> <span class="textfieldRequiredMsg">*</span> </span> </td> </tr> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/tag.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <span id="sprytextfield11"> <input name="evtag" class="forms" type="text" value="<?=$tag;?>" size="40" maxlength="100"> <span class="textfieldRequiredMsg">*</span> </span> </td> </tr> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/evento.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <select name="evcfstatus" size="1" class="forms"> <option value="CF" <?=$cf==CF?" selected":"";?>>CF</option> <option value="Treino" <?=$cf==Treino?" selected":"";?>>Treino</option> <option value="Fake" <?=$cf==Fake?" selected":"";?>>Fake</option> </select> </td> </tr> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/mapa.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <select name="evmapa" size="1" class="forms"> <option value="dust2" selected="selected" <?=$mp==dust2?" selected":"";?>>dust2</option> <option value="inferno" <?=$mp==inferno?" selected":"";?>>inferno</option> <option value="nuke" <?=$mp==nuke?" selected":"";?>>nuke</option> <option value="train" <?=$mp==train?" selected":"";?>>train</option> <option value="cable" <?=$mp==clabe?" selected":"";?>>cable</option> <option value="cplmil" <?=$mp==cplmil?" selected":"";?>>cplmil</option> </select> </td> </tr> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/data.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <span id="sprytextfield2"> <input name="evdata" class="forms" type="text" value="<?=$dt;?>" size="10" maxlength="10"> <span class="textfieldRequiredMsg">*</span> </span> </td> </tr> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/hora.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <span id="sprytextfield9"> <input name="evhora" class="forms" type="text" value="<?=$hh;?>" size="5" maxlength="5"> <span class="textfieldRequiredMsg">*</span> </span> </td> </tr> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/servidor.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <span id="sprytextfield1"> <input name="evendereco" class="forms" type="text" value="<?=$en;?>" size="30" maxlength="50"> <span class="textfieldRequiredMsg">*</span> </span> </td> </tr> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/cidade.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <span id="sprytextfield10"> <input name="evcidade" class="forms" type="text" value="<?=$ci;?>" size="30" maxlength="50"> <span class="textfieldRequiredMsg">*</span> </span> </td> </tr> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/estado.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <?=carregar_uf($uf);?> </td> </tr> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/observacao.png" width="150" height="163" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <span id="sprytextarea1"> <textarea name="evtexto" class="forms" cols="35" rows="10"><?=$tx;?></textarea> <span class="textareaRequiredMsg">*</span> </span> </td> </tr> <tr> <td width="150" height="20" align="right" bgcolor="#CCCCCC"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/status.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <select name="evstatus" size="1" class="forms"> <option value="1" selected="selected" <?=$st==1?" selected":"";?>>Ativo</option> <option value="2" <?=$st==2?" selected":"";?>>Desativado</option> </select> </td> </tr> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/resultado.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <select name="evvpstatus" class="forms" > <option value="Vencemos" <?=$vp==Vencemos?" selected":"";?>>Vencemos</option> <option value="Perdemos" <?=$vp==Perdemos?" selected":"";?>>Perdemos</option> <option value="EmAndamento" <?=$vp==EmAndamento?" selected":"";?>>EmAndamento</option> </select> </td> <tr> <td width="150" height="20" align="right"><img src="http://www.twbteam.com.br/imagens/agendacf/adicionar_cf/xiter.png" width="150" height="20" /></td> <td width="366" height="20" align="left" bgcolor="#CCCCCC"> <select name="evxiter" class="forms"> <option value="Sim" <?=$xt==Sim?" selected":"";?>>Sim</option> <option value="Não" <?=$xt==Não?" selected":"";?>>Não</option> <option value="Suspeito" <?=$xt==Suspeito?" selected":"";?>>Suspeito</option> <option value="SemResposta" <?=$xt==SemResposta?" selected":"";?>>SemResposta</option> </select> </td ><tr> <td width="516" height="20" colspan="2" align="center" bgcolor="#CCCCCC"> <input name="Acao" type="submit" value="<?=$botao;?>" class="textopadraomouse"> </td> </tr> </table> </form> </center> <br><br><table width="527" border="0" align="center" cellpadding="0" cellspacing="0" style="border:solid 1px #000000"> <tr> <td width="527" bgcolor="#FFFFFF" style="text-align: center; font-family: 'zero Twos'; font-size: 16px;"><span style="color: #F00">Regras</span> - Preechimento</td> </tr> </table> <br> <table width="527" border="0" align="center" cellpadding="0" cellspacing="0" style="border:solid 1px #FF0000"> <tr> <td align="left" bgcolor="#FFFFFF" style="text-align: left; font-family: 'zero Twos';font-size: 16px;"><span style="color: #F00">1</span> - <span style="font-family: Candara; font-weight: bold;">Eventos so Serão Concluídos com tudo preenchido corretamente</span></td> </tr> </table> <br> <table width="527" border="0" align="center" cellpadding="0" cellspacing="0" style="border:solid 1px #FF0000"> <tr> <td align="left" bgcolor="#FFFFFF" style="text-align: left; font-family: 'zero Twos';font-size: 16px;"><span style="color: #F00">2</span> - <span style="font-family: Candara; font-weight: bold;">Eventos Adicionados de forma Incorreta Serão Excluidos na hora</span></td> </tr> </table> <br> <table width="527" border="0" align="center" cellpadding="0" cellspacing="0" style="border:solid 1px #FF0000"> <tr> <td align="left" bgcolor="#FFFFFF" style="text-align: left; font-family: 'zero Twos';font-size: 16px;"><span style="color: #F00">3</span> - <span style="font-family: Candara; font-weight: bold;"><span style="color: #F00">Observação:</span> Esse Campo é para Preencher Informações Nesseçarias</span></td> </tr> </table> <table width="527" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" bgcolor="#FFFFFF" style="text-align: left; font-family: 'zero Twos';font-size: 16px;border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px; font-family: Candara; font-weight: bold; border-right-style:solid; border-bottom-style:solid; border-left-style: solid; border-right-color: #FF0000; border-bottom-color: #FF0000; border-left-color: #FF0000;">sem xingamento ou coisas sem nessecidade....</td> </tr> </table> <br> <table width="527" border="0" align="center" cellpadding="0" cellspacing="0" style="border:solid 1px #FF0000"> <tr> <td align="left" bgcolor="#FFFFFF" style="text-align: left; font-family: 'zero Twos';font-size: 16px;"><span style="color: #F00">4</span> - <span style="font-family: Candara; font-weight: bold;">Qualquer que não seguir as regras será excluido!</span></td> </tr> </table> <br> <table width="527" border="0" align="center" cellpadding="0" cellspacing="0" style="border:solid 1px #FF0000"> <tr> <td align="left" bgcolor="#FFFFFF" style="text-align: left; font-family: 'zero Twos';font-size: 16px;"><span style="color: #F00">5</span> - <span style="font-family: Candara; font-weight: bold;">Obrigado... a Todos que Adicionarem Eventos Aqui!</span></td> </tr> </table> <br><br> <table width="527" border="0" align="center" cellpadding="0" cellspacing="0" style="border:solid 1px #CCCCCC"> <tr> <td width="527" bgcolor="#FFFFFF" style="text-align: center; font-family: 'zero Twos';"><span style="color: #900; font-size: 16px; font:bolder;">Obrigado Por Entrar no Site</span><span style="color: #F00;font-size: 16px;font:bolder;"> <span style="color: #000;font:bolder;">-</span> Team Warrior Brasil</span></td> </tr> </table> <br> <div align="center"> <a href="index.php"><img src="/imagens/voltar.png" width="100" height="20" border="0" /></a> </div> <script language="javascript" type="text/javascript"> var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1","none", {minChars:3, maxChars:50}); var sprytextfield20 = new Spry.Widget.ValidationTextField("sprytextfield20","none", {minChars:3, maxChars:100}); var sprytextfield10 = new Spry.Widget.ValidationTextField("sprytextfield10","none", {minChars:3, maxChars:50}); var sprytextfield11 = new Spry.Widget.ValidationTextField("sprytextfield11","none", {minChars:3, maxChars:50}); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2","date",{format:"dd/mm/yyyy",useCharacterMasking:true}); var sprytextfield9 = new Spry.Widget.ValidationTextField("sprytextfield9","time",{format:"HH:mm",useCharacterMasking:true}); var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1",{minChars:5}); </script> <? require 'pag_fin.php'; ?> Obrigado a todos que me ajudarem Editado Outubro 25, 2018 por rafasw Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 Denis Courcy Postado Outubro 7, 2010 Denunciar Share Postado Outubro 7, 2010 Movendo MySQL -->> PHP Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
rafasw
http://www.twbteam.com.br/AgendacfProblema/
Modelo da agenda é esse
http://www.twbteam.com.br/AgendacfProblema/adm - Administração
login: adm
senha:123456
Clique em alterar
lá em baixo tem desativar
clique em desativar
http://www.twbteam.com.br/AgendacfProblema/
agora volta e procura pra ver se desativou ???
não desativa de forma alguma
CODIGO INDEX.PHP
CODIGO DA PAGINA MODIFICACAO.PHP
Obrigado a todos que me ajudarem
Editado por rafaswLink para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.