Ir para conteúdo
Fórum Script Brasil

Pesquisar na Comunidade

Mostrando resultados para as tags ''painel''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • Programação & Desenvolvimento
    • ASP
    • PHP
    • .NET
    • Java
    • C, C++
    • Delphi, Kylix
    • Lógica de Programação
    • Mobile
    • Visual Basic
    • Outras Linguagens de Programação
  • WEB
    • HTML, XHTML, CSS
    • Ajax, JavaScript, XML, DOM
    • Editores
  • Arte & Design
    • Corel Draw
    • Fireworks
    • Flash & ActionScript
    • Photoshop
    • Outros Programas de Arte e Design
  • Sistemas Operacionais
    • Microsoft Windows
    • GNU/Linux
    • Outros Sistemas Operacionais
  • Softwares, Hardwares e Redes
    • Microsoft Office
    • Softwares Livres
    • Outros Softwares
    • Hardware
    • Redes
  • Banco de Dados
    • Access
    • MySQL
    • PostgreSQL
    • SQL Server
    • Demais Bancos
  • Segurança e Malwares
    • Segurança
    • Remoção De Malwares
  • Empregos
    • Vagas Efetivas
    • Vagas para Estágios
    • Oportunidades para Freelances
  • Negócios & Oportunidades
    • Classificados & Serviços
    • Eventos
  • Geral
    • Avaliações de Trabalhos
    • Links
    • Outros Assuntos
    • Entretenimento
  • Script Brasil
    • Novidades e Anúncios Script Brasil
    • Mercado Livre / Mercado Sócios
    • Sugestões e Críticas
    • Apresentações

Encontrar resultados em...

Encontrar resultados que...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Encontrado 4 registros

  1. Olá, No último mês estive desenvolvendo um painel de gerenciamento PHP Orientado a Objetos. Desenvolvido em bootstrap, ele é uma mistura simples que une o prático ao agradável. Estou disponibilizando-o para download, assim qualquer ser interessado em testá-lo e aprimorá-lo é bem-vindo! Peço apenas que mantenham os créditos. Download: https://mega.nz/#!ZcQwXBqI!qhQraQMGFw-c3_ABn5rMR_7CYlqSiynaWt_nclWwrVc Obs: O arquivo de SQL do painel não está incluso por questões de avaliações. Quem for baixar o painel envie um email para: azielsilas@gmail.com e receberá o arquivo de mysql + senha para descompactação do sistema. Abraços, Dúvidas - twitter: @Azielsilas
  2. ola Pessoal Estou com um problema em um script php, a pagina carrega normalmente, mas quando tento entrar no painel administrativo simplesmente não sai da tela de login para a tela do painel de administracao. posto aqui os scripts INDEX ADMIN <? $requiredUserLevel = array(0,1,2); $cfgProgDir = 'phpSecurePages/'; include($cfgProgDir . "secure.php"); setcookie("login", $_POST[entered_login]); setcookie("pass", $_POST[entered_password]); //include("path.php"); include("../config.php"); $cidade = 1;?> <table width="800" border="0" align="center" cellpadding="0" cellspacing="0" class="text"> <tr> <td width="776" height="92" background="../images/layout/topo-bg.jpg"><table width="800" height="90" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="300" background="../images/layout/logo_admin.png">&nbsp;</td> <td width="237" align="right">&nbsp;</td> <td width="263" align="right">&nbsp;</td> </tr> </table></td> </tr> </table> <table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#262626"> <tr> <td height="16"><p><font color="#FFFFFF">&nbsp; <? $sql = mysql_query("SELECT * FROM phpsp_users where user='$login'"); $dados = mysql_fetch_array($sql); $usernivel = "$dados[userlevel]"; $idfranquia = "$dados[id_franquia]"; $idusuarios = "$dados[primary_key]"; //echo $idfranquia; ?> Olá <b><? echo $dados[nome];?></b> (<? $sql2=mysql_query("SELECT * FROM franquias WHERE id='$dados[id_franquia]'"); $dados2=mysql_fetch_array($sql2); echo $dados2[cidade]; ?>), seja bem vindo! <td align="right"><a href="logout.php"><font color="#FFFFFF">Sair</font>&nbsp;</a> </td> </tr> </table> <table width="800" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/layout/tb_admin_fundo.gif"> <tr> <td><table width="800" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="200" align="left" valign="top" bgcolor="#FFFFFF"><? include("menu.php");?></td> <td align="center" valign="top" bgcolor="#666666"><? include("query_string.php");?> </td> </tr> </table></td> </tr> </table> <table width="800" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="789" height="24" align="center" bgcolor="#262626" class="branco"><font color="#CCCCCC">FSOL WEB &reg; 2012 - Todos os Direitos Reservados</font></td> </tr> </table> PAGINA secure.php <? $cfgIndexpage = 'index.php'; // page to go to, if login is cancelled // Example: if your main page is http://www.mydomain.com/index.php // the value would be $cfgIndexpage = '/index.php' $admEmail = 'cbourbon@hotmail.com'; // E-mail adres of the site administrator // (This is being showed to the users on an error, so you can be notified by the users) $noDetailedMessages = true; // Show detailed error messages (false) or give one single message for all errors (true). // If set to 'false', the error messages shown to the user describe what went wrong. // This is more user-friendly, but less secure, because it could allow someone to probe // the system for existing users. $passwordEncryptedWithMD5 = false; // Set this to true if the passwords are encrypted // with the MD5 algorithm // (not yet implanted, expect this in a next release) $languageFile = 'brazil.php'; // Choose the language file $bgImage = 'bg_lock.gif'; // Choose the background image $bgRotate = false; // Rotate the background image from list // (This overrides the $bgImage setting) /****** Lists ******/ // List of backgrounds to rotate through $backgrounds[] = 'bg_lock.gif'; $backgrounds[] = 'bg_lock2.gif'; $backgrounds[] = 'bg_gun.gif'; /****** Database ******/ $useDatabase = true; // choose between using a database or data as input /* this data is necessary if a database is used */ if ($HTTP_SERVER_VARS["REMOTE_ADDR"] != "127.0.0.1"){ $cfgServerHost = 'localhost'; // MySQL hostname $cfgServerPort = ''; // MySQL port - leave blank for default port $cfgServerUser = 'MEU USER'; // MySQL user $cfgServerPassword = 'MINHA SENHA'; // MySQL password $cfgDbDatabase = 'MEU BANCO'; // MySQL database name containing phpSecurePages table } else { $cfgServerHost = 'localhost'; // MySQL hostname $cfgServerPort = ''; // MySQL port - leave blank for default port $cfgServerUser = 'MEU USER'; // MySQL user $cfgServerPassword = 'MINHA SENHA'; // MySQL password $cfgDbDatabase = '*****MEU BANCO'; // MySQL database name containing phpSecurePages table } $cfgDbTableUsers = 'phpsp_users'; // MySQL table name containing phpSecurePages user fields $cfgDbLoginfield = 'user'; // MySQL field name containing login word $cfgDbPasswordfield = 'password'; // MySQL field name containing password $cfgDbUserLevelfield = 'userlevel'; // MySQL field name containing user level // Choose a number which represents the category of this users authorization level. // Leave empty if authorization levels are not used. // See readme.txt for more info. $cfgDbUserIDfield = 'primary_key'; // MySQL field name containing user identification // enter a distinct ID if you want to be able to identify the current user // Leave empty if no ID is necessary. // See readme.txt for more info. /****** Database - PHP3 ******/ /* information below is only necessary for servers with PHP3 */ $cfgDbTableSessions = 'phpsp_sessions'; // MySQL table name containing phpSecurePages sessions fields $cfgDbTableSessionVars = 'phpsp_sessionvars'; // MySQL table name containing phpSecurePages session variables fields /****** Data ******/ $useData = false; // choose between using a database or data as input /* this data is necessary if no database is used */ $cfgLogin[1] = 'root'; // login word $cfgPassword[1] = 'root'; // password $cfgUserLevel[1] = '1'; // user level // Choose a number which represents the category of this users authorization level. // Leave empty if authorization levels are not used. // See readme.txt for more info. $cfgUserID[1] = ''; // user identification // enter a distinct ID if you want to be able to identify the current user // Leave empty if no ID is necessary. // See readme.txt for more info. $cfgLogin[2] = ''; $cfgPassword[2] = ''; $cfgUserLevel[2] = ''; $cfgUserID[2] = ''; $cfgLogin[3] = ''; $cfgPassword[3] = ''; $cfgUserLevel[3] = ''; $cfgUserID[3] = ''; /**************************************************************/ /* End of phpSecurePages Configuration */ /**************************************************************/ // https support if (getenv("HTTPS") == 'on') { $cfgUrl = 'https://'; } else { $cfgUrl = 'http://'; } // getting other login variables $cfgHtmlDir = $cfgProgDir; if ($message) $messageOld = $message; $message = false; // Create a constant that can be checked inside the files to be included. // This gives an indication if secure.php has been loaded correctly. define("LOADED_PROPERLY", true); // include functions and variables function admEmail() { // create administrators email link global $admEmail; return("<A HREF='mailto:$admEmail'>$admEmail</A>"); } include($cfgProgDir . "lng/" . $languageFile); include($cfgProgDir . "session.php"); // choose between login or logout if ($logout && !($HTTP_GET_VARS["logout"] || $HTTP_POST_VARS["logout"])) { // logout include($cfgProgDir . "logout.php"); } else { // loading login check include($cfgProgDir . "checklogin.php"); } echo $HTTP_GET_VARS["logout"]; ?> ARQUIVO CONFIG.PHP <? // conexão com o banco $server = "localhost"; $user = "MEU USER"; $senha = "MINHA SENHA"; $banco = "MEU BANCO"; $conexao = mysql_connect("$server", "$user", "$senha"); $db = mysql_select_db("$banco"); // termina conexão com o banco $pasta = "galeria"; $sql = mysql_query("SELECT * FROM config WHERE id='1'"); while ($linha = mysql_fetch_array($sql)) { $tsite = $linha[tsite]; // nome do site $usite = $linha[usite]; // url do site, ex: http://www.seusite.com.br/galeria/ $fonte = $linha[fonte]; // fonte do site $tfonte = $linha[tfonte]; // tamanho da fonte usada $tfonte2 = $linha[tfonte2]; // tamanho da fonte usada $ttitulo = $linha[ttitulo]; // tamanho dos titulos do site $ttitulo2 = $linha[ttitulo2]; // tamanho dos titulos do site $coronmouse = $linha[coronmouse]; // cor quando passar o mouse em cima dos links #999999 $cortexto = $linha[cortexto]; // cor do texto $corcelula1 = $linha[corcelula1]; // cor dacelula 1 $corcelula2 = $linha[corcelula2]; // cor da celula 2 $corfundosite = $linha[corfundosite]; // cor de fundo do site $qts_thumbs = $linha[qts_thumbs]; // Total de fotos q será exibido do lado esquerdo $qts_colunas = $linha[qts_colunas]; // total de colunas q será exibido $qts_ultimos = $linha[qts_ultimos]; // total de eventos q ficarão nas ultimas coberturas $img_fundo = $linha[img_fundo]; $loginho = $linha[loginho]; $telefone = "11 - 2233-4455"; $meuemail = "cbourbon@hotmail.com"; $corporyth = "© 2012 - www.weberadiososite"; } ?> <head> <SCRIPT language="JavaScript1.2"> var URLSite = window.location.href; var TituloSite = document.title; function addfav(){ if (document.all) window.external.AddFavorite(URLSite,TituloSite); } </SCRIPT> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title><? echo $tsite?></title> <style type="text/css"> body { background-image: url(images/bg.jpg); background-position: top; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; font-family: <?=$fonte?>; font-size: <?=$tfonte?>; color: <?=$cortexto?>; } body,td,th { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; font-family: <?=$fonte?>; font-size: <?=$tfonte?>; color: <?=$cortexto?>; } .branco {color: #FFFFFF} .pequeno { font-size: 8px; color: #999999; } .titulos { font-size: <?=$tfonte?>; color: <?=$coronmouse?>; } a:link, a:active, a:visited { color: <?=$cortexto?>; text-decoration: none; } a:hover { color: <?=$coronmouse?>; text-decoration: underline; } .input { height: 20; width: 145; border: 1px solid #333333; font-family: <?=$fonte?>; font-size: <?=$tfonte?>; color: #000000; } </style> </HEAD> <body> <script src="<? echo $usite?>janelas_popup.js" language="JavaScript"></script>
  3. Quero criar um sistema bem simples para fazer publicações. Vai ter um painel com login e tudo mais... Isso tudo achei no youtube, mas eu não achei como fazer esse sistema. Vai ter um painel somente com uma caixa de texto e um botão de publicar, tudo que eu digitar nesse painel e publicar ira aparecer em uma div na pagina inicial do site, e quando eu fizer modificações no painel ele automaticamente modifica na pagina inicial. Não é um blog é só um texto editável se assim posso chama-lo. Como posso fazer isso? Estou aprendendo ainda, ignorem a minha noobeza!
  4. cocas42

    Erro no id

    Bom dia, estou tendo problemas com a criação de um painel que gere um armazém! ora bem qual é o problema? eu coloco todos os itens na db e ele já aceita e já esta a funcionar mas depois se quiser excluir noutra parte do site ele nunca me vai buscar o id correcto, esta sempre a ir buscar o id "374" tanto para excluir como para editar! eu não encontro o erro, vou passar o código da pagina e se for preciso mais algum podem pedir!(já agora ele faz query!) <?php include ('AutorizaUser.php');?> <?php session_start("login_user"); if(!(session_is_registered("login_user") AND session_is_registered("senha_user"))) { echo "<div align=center>Seu vagabundo,vai procurar o que fazer.</div>"; exit;} ?> <style type="text/css"> <!-- .style1 {font-size: 13px} --> </style> <div align="left"> <blockquote> <h3><span class="style1">&nbsp;&nbsp;&raquo;&nbsp;</span>Todo o Invent&aacute;rio</h3> </blockquote> </div> <p style="margin-left:0px;margin-top:0px;width:fffpx;border-bottom:1px dotted #fff;"></p><br /> <?php $query = "SELECT * FROM noticias"; $result = mysql_query($query); $play = mysql_num_rows($result); if($play <= "0"){ echo "<div class='atencion'>Nenhum iten cadastrado, adicione um iten novo [ + ]</div>";} ?> <table> <form action="" method="post"> <thead> <tr> <th width="20"><input class="check-all" type="checkbox"/></th> <th width="85">Designação</th> <th width="85">Marca</th> <th width="50">Ref.</th> <th width="50">Unid.</th> <th width="63">Quant.</th> <th width="87">Estado Conservação</th> <th width="80">Localização</th> <th width="50">Obs</th> <th width="50"></th> </tr> </thead> <tfoot> <tr> <td colspan="10"> <input type="submit" name="deleta" class="button" value="Deletar"> <?php if($_POST['deleta']) { $opcoes = $_POST['id']; $opcoes_text = implode(", ", $opcoes); if ($opcoes==NULL){echo "<script>location.href='index.php?abrir=pagTodoInventario&msg=seleciona'</script>";} $query = "DELETE FROM noticias WHERE id in (" . $opcoes_text . ")"; mysql_query($query) or die(mysql_error()); echo "<script>location.href='index.php?abrir=pagTodoInventario&msg=sucesso' OnClick=\"return confirm('Voc&ecirc; tem certeza que vai excluir esse iten?')\"</script>"; } ?> </td> </tr> </tfoot> <tbody> <?php $query = "SELECT * FROM noticias ORDER BY id DESC"; $result = mysql_query($query); while ($play = mysql_fetch_array($result)){ $designação = $play['designação']; $marca= $play['marca']; $ref = $play['ref']; $unid = $play['unid']; $quant = $play['quant']; $estado = $play['estado']; $localização = $play['localização']; $obs = $play['obs']; echo " <tr><td><input type='checkbox' name='id[]' value='$id' /></td><td align='center'>$designação</td><td align='center'>$marca</td><td align='center'>$ref</td><td align='center'>$unid</td><td align='center'>$quant</td><td align='center'>$estado</td><td align='center'>$localização</td><td align='center'>$obs</td><td>"; if($cargo == "Administrador"){ echo"<a href='index.php?abrir=pagEditNoticia&id=$id' title='Editar'>Editar</a><a href='index.php?abrir=pagExcluir&acao=Noticia&id=$id' OnClick=\"return confirm('Voc&ecirc; tem certeza que vai excluir esse iten?')\">Excluir</a></td></tr>";} else echo"<a href='index.php?abrir=pagExcluir&acao=Noticia&id=$id' OnClick=\"return confirm('Voc&ecirc; tem certeza que vai excluir esse iten?')\">Excluir</a></td></tr>";} ?> </tbody> </form> </table> </table> <?php $msg = $_GET['msg']; if($msg=="seleciona"){echo "<div class='warning'>Selecione pelo menos 1 checkbox para excluir um iten !</div>";}?> <?php $msg = $_GET['msg']; if($msg=="sucesso"){echo "<div class='sucess'>Iten excluido com sucesso !</div>";}?> ainda tinha mas uma questão mas não sei se deveria fazer( uma caixa de procura no inicio!)
×
×
  • Criar Novo...