
mestre fyoda
Membros-
Total de itens
1.908 -
Registro em
-
Última visita
Tudo que mestre fyoda postou
-
Maskara Para Cartao De Credito
pergunta respondeu ao mestre fyoda de mestre fyoda em Ajax, JavaScript, XML, DOM
sim , eu tenho esse script , quando coloco tipo 9999 9999 9999 9999 no ultimo espaço em branco ele aumenta o ultimo espaço em branco . como que eu faço ? -
se existe alguém poderia me indicar um ?
-
já fiz de tudo , mas agora vou tenta fazer um esquema , usar servidor de smtp . alguém poderia me indicar um e me ajudar a configurar ?
-
Ferramenta Administrativa Php + Firebird
pergunta respondeu ao mestre fyoda de mestre fyoda em Demais Bancos
eu tenho certeza , erro de configuração , se você puder me ajudar ficaria hiper grato . mas eu fiz da sguinte maneira : fui na pasta inc -> arquivo configuration.inc.php substitui tudo que tem /var/lib/firebird/ por C:\Arquivos de programas\Firebird\Firebird_1_5 e substitui /opt/firebird/ por C:/Arquivos de programas/Firebird/Firebird_1_5/ segue o link da imagem abaixo : http://img88.imageshack.us/my.php?image=imagemrq7.jpg <?php // File inc/configuration.inc.php / ibWebAdmin // Purpose basic config, set global constants // this is the only file that is included in every script // Author Lutz Brueckner <irie@gmx.de> // Copyright (c) 2000-2006 by Lutz Brueckner, // published under the terms of the GNU General Public Licence v.2, // see file LICENCE for details // Created <00/09/11 21:20:58 lb> // // $Id: configuration.inc.php,v 1.31.2.8 2006/08/03 11:24:16 lbrueckner Exp $ // // For the defines of paths you have to use slashes, even in a windows environment! // i.e define('BINPATH', 'c:/interbase/bin/'); // define('VERSION', '1.0.2'); define('BINPATH', 'C:/Arquivos de programas/Firebird/Firebird_1_5/bin/'); // path to the interbase tools (isql, etc.) define('SECURITY_DB', 'C:/Arquivos de programas/Firebird/Firebird_1_5/security.fdb'); // where to look for the interbase security database. // Don't add the hostname, this is taken from the login-panel. // 'isc4.gdb', 'admin.ib', 'security.fdb', 'security2.fdb' // are the default names for the different server versions define('TMPPATH', '/tmp/'); // write temporary files here, // must be writeable for the webserver, must be an absolute path define('DEFAULT_USER', '*****'); // default settings for database login define('DEFAULT_DB', 'employee.fdb'); define('DEFAULT_PATH', 'C:/Arquivos de programas/Firebird/Firebird_1_5/'); define('DEFAULT_HOST', 'localhost'); define('DEFAULT_ROLE', ''); define('DEFAULT_CACHE', 75); define('DEFAULT_CHARSET', 'ISO8859_1'); define('DEFAULT_DIALECT', 3); define('DEFAULT_SERVER', 'FB_1.5'); // FB_1.0', 'FB_1.5', 'FB_2.0', IB_6.0','IB_6.5', 'IB_7.0', 'IB_7.1' and 'other' are the valid options define('PROTOCOL', 'http'); // change to 'https' to use ssl // if $ALLOWED_DIRS is not empty, only database in this directories are allowed to open; // the webserver process must have read access to this directories (pathnames _with_trailing slashes) // $ALLOWED_DIRS = array('/var/lib/interbase/', 'C:/Arquivos de programas/Firebird/Firebird_1_5/', '/tmp/'); //$ALLOWED_DIRS = array(); // if $ALLOWED_FILES is not empty, only the listed databases are allowed to open; // if this is set the $ALLOWED_DIRS are ignored // // $ALLOWED_FILES=array('C:/Arquivos de programas/Firebird/Firebird_1_5/ibwizard.gdb', // '/var/lib/interbase/test.gdb', // 'dbalias' // ); $ALLOWED_FILES=array(); $DATABASE_SUFFIXES = array('gdb', 'fdb', 'ib'); // login into databases, creating and dropping of databases // is restricted to database files with this file extensions define('BACKUP_DIR', 'C:/Arquivos de programas/Firebird/Firebird_1_5/backup/'); // define this to restrict the location for backup files define('LANGUAGE', 'english'); // set the language to use; 'english', 'brazilian_portuguese', 'czech', 'dutch', 'hungarian' // 'japanese', 'polish', 'russian-win1251', 'spanish' and 'german' are valid options // uncomment the corresponding line for every panel // you want to not appear in the application $HIDE_PANELS = array( // 'db_create', // Create Database // 'db_delete', // Delete Database // 'db_systable', // System Tables // 'db_meta', // Metadata // 'tb_show', // View Tables // 'tb_create', // Create New Table // 'tb_modify', // Modify Table // 'tb_delete', // Delete Table // 'acc_index', // Indexes // 'acc_gen', // Generators // 'acc_trigger', // Triggers // 'acc_proc', // Stored Procedures // 'acc_domain', // Domains // 'acc_views', // Views // 'acc_exc', // Exceptions // 'acc_udf', // User Defined Functions // 'sql_enter', // Enter Command or Script // 'sql_output', // Show Output // 'dt_enter', // Enter Data // 'dt_csv', // CSV Import/Export // 'tb_watch', // Watch Table // 'usr_user', // Users // 'usr_role', // Roles // 'usr_cust', // Customizing // 'adm_server', // Server Statistics // 'adm_dbstat', // Database Statistics // 'adm_gfix', // Database Maintenance // 'adm_backup', // Backup // 'adm_restore' // Restore ); // use this array to disable the execution of commands or command groups // from the sql-enter panel $SQL_DISABLE = array('CREATE DATABASE', // disables creation of databases/schemas; there is no need to 'CREATE SCHEMA', // add entries for [ALTER|DROP] DATABASE because they did not work anyhow. // 'DROP' // uncommenting this disables all DROP statements // 'DROP TABLE' // uncommenting this disables the DROP TABLE statement ); define('SYSDBA_GET_ALL', TRUE); // if TRUE the $HIDE_PANELS and the $SQL_DISABLE settings have // no effect for the SYSDBA user define('CONFIRM_DELETE', TRUE); // ask for confirmation when deleting data rows or any database objects define('TABMENU_STYLE', 'HTML'); // set the method for the tabfolder menu: // 'HTML' a css formated html table // 'IMAGE' use the images from the data/menu folders as an imagemap // 'BUILD' use the TabMenu class to generate the images for every request on the fly, // this requires that your php-installation supports the gd library (with ttf and png) define('MENU_WIDTH', 900); // width of the menu bar, used if TABMENU_STYLE is set to IMAGE; // must be one of 600, 900, 1100 define('DATAPATH','./data/'); // the place where ibWebAdmin searches the graphics for the menu, icons, etc define('TTF_FONT', realpath('./data/Summersby.ttf')); // ttf font file for the menu (used by TabMenu class when TABMENU_STYLE == BUILD) define('TTF_SIZE', 12); define('ICON_SIZE', 'small'); // size of the icons and navigation elements; // 'big' and 'small' are valid settings define('COLOR_BACKGROUND', '#F6F7C0'); // color settings define('COLOR_PANEL', '#CAEA62'); define('COLOR_AREA', '#FEFFE0'); define('COLOR_HEADLINE', '#F0E68C'); define('COLOR_MENUBORDER', '#008000'); define('COLOR_LINK', '#0000CD'); define('COLOR_LINKHOVER', '#1E90FF'); define('COLOR_SELECTEDROW', '#008000'); define('COLOR_SELECTEDINPUT','#F2F2F2'); define('COLOR_FIRSTROW', '#DFDFDF'); define('COLOR_SECONDROW', '#EFEFEF'); define('BG_TRANSPARENT', TRUE); // set TRUE to use png images with a transparent background; // this is not supported by NS4, but is looking much better with changed color settings define('SQL_AREA_COLS', 80); // use this for the textarea on the SQL page (also used on the triggers, define('SQL_AREA_ROWS', 6); // the stored procedures and the views panels) define('SQL_MAXSAVE', 100); // defines the maximal line count to save in the session; // if '0' the whole content will be saved; if the content of the // textarea is bigger, nothing will be saved define('SQL_HISTORY_SIZE', 25); // number of entries in the the sql history buffer define('SHOW_OUTPUT_ROWS', 100); // number of rows to display on the sql_output-panel, // unless the 'Display All' button was hit define('DATA_MAXWIDTH', 80); // maximal width for the input fields on the dt_enter-panel define('MAX_CSV_LINE', 50000); // maximal length for a line read from the csv import file define('DEFAULT_ROWS', 25); // number of rows to dispay in the watch-panel by default define('BLOB_WINDOW_WIDTH', 600); // default dimensions for the blob displaying windows define('BLOB_WINDOW_HEIGHT', 800); define('USE_DHTML', TRUE); // set FALSE if you have troubles with the dhtml in the datatype definition form // or if you want to turn off the JavaScript remote scripting features define('CACHE_STYLESHEET', TRUE); // set FALSE to force relaoding of the stylesheet with every request # four methods are selectable for use on the watchtable-panel # for skiping to the first row to display define('WT_SKIP_ROWS', 0x01); // skip rows by looping (slowest, but works under all circumstances); define('WT_STORED_PROCEDURE', 0x02); // use a stored procedure (faster, but will cause trouble if more than // one user is browsing tables in a database by time); define('WT_FIREBIRD_SKIP', 0x04); // use the Firebird 'SELECT FIRST x SKIP x' syntax (fastest, but available // only with the firebird server); define('WT_IB65_ROWS', 0x08); // use the Interbase6.5 'ROWS x TO y' syntax (untestet, because I don't have // access to an ib65 server *** please report any errors or success with this ***) define('WT_BEST_GUESS', 0x10); // ibWebAdmin is checking the login Server setting // and will use the best/fastest choice from the methods defined above # set the watchtable method of your choice define('WATCHTABLE_METHOD', WT_BEST_GUESS); define('IBWA_PREFIX', 'IBWA_'); // prefix for the names of ibWebAdmins own stored procedures define('SP_LIMIT_NAME', IBWA_PREFIX.'LIMIT'); // name for the stored procedure used by the Watch Table panel define('SESSION_NAME', 'ibwa'); // session name to use define('PERSISTANT_CONNECTIONS', FALSE); // whether to use ibase_pconnect() or ibase_connect(); // although using persistant connections is significant faster, they cause // several tasks to fail (i.e. 'ALTER TABLE ADD CONSTRAINT ...', database maintenance) # transaction parameters used for the calls of ibase_trans() define('TRANS_READ', IBASE_COMMITTED | IBASE_NOWAIT | IBASE_READ); define('TRANS_WRITE', IBASE_COMMITTED | IBASE_NOWAIT | IBASE_WRITE); define('META_REDIRECT', FALSE); // use server (FALSE) or client (TRUE) side redirection define('DEBUG', FALSE); // if TRUE print the $debug[] to the info-panel define('DEBUG_HTML', FALSE); // if TRUE write the output_buffer to TMPPATH/{scriptname}.html before // sending it to the client define('DEBUG_COMMANDS', FALSE); // if TRUE all calls of external commands are diplayed on the info-panel define('DEBUG_FILES', FALSE); // if TRUE the temporary files created in TMPATH for processing by isql // are not deleted when isql is finished if ('' != SESSION_NAME) session_name(SESSION_NAME); if (DEBUG === TRUE) error_reporting(E_ALL | E_STRICT); ?> não deu para mandar em anexo o arquivo , ai postei aqui . -
Ferramenta Administrativa Php + Firebird
pergunta respondeu ao mestre fyoda de mestre fyoda em Demais Bancos
heheh eu tentei configura mas não deu certo , acho que é pra linux , to usando em windows :( . -
alguém teria uma ferramenta administrativa , do tipo phpmyadmin sendo para firebird ?
-
resolvido !!!!!! no ali no visible , não pode conter espaços entre o : e o visible .
-
<fieldset class="row3"> <legend><b>Usuário:</b></legend><div class='input-warn-content' style="display: none" id='box_email' ><div id='erro_email'></div></div> <table class='ipbtable' cellspacing="0"> <tr> <td>Digite um <strong>Email</strong> desejado <span>(<a href="#" style="cursor: help; color: #555;" title="Preencha corretamente o email porque enviaremos para o seu email uma confirmação do cadastro.">?</a>)</span></td> </tr> <tr> <td> <input type="text" onblur="ajaxForm('erro_email','cadastrar');" size="50" value="" id='email' name="email" /> <img id='img_email' style="visibility: hidden" src="../img/erro.gif" alt="" width='12' height='12'/> </td> </tr> </table> </fieldset><br /> ai a função ajaxLink chama o codigo abaixo <script> function erro(campo,id_campo,id,img,erro) { document.getElementById(id).style.display = 'block'; document.getElementById(img).style.visibility = 'visible'; document.getElementById(id_campo).innerHTML = erro; document.getElementById(campo).style.borderColor = '#FF0000'; } function ok(campo,id_campo,id,img) { document.getElementById(id).style.display = 'none'; document.getElementById(img).style.visibility = 'visible'; document.getElementById(id_campo).innerHTML = ""; document.getElementById(campo).style.borderColor = '#008800'; } </script> <? $nome = $_POST["nome"]; $email = $_POST["email"]; $senha = $_POST["senha"]; $confirma_senha = $_POST["confirma_senha"]; $cpf = $_POST["cpf"]; $data_nasc = $_POST["data_nasc"]; if( empty($email) ) { $erro = "Campo Email não foi preenchido."; ?> <script> erro('email','erro_email','box_email','img_email','<?=$erro?>'); </script> <? } else { ?> <script> ok('email','erro_email','box_email','img_email'); </script> <? } ?>
-
Style="display: None" está Fazedo Img Pular Linha
pergunta respondeu ao mestre fyoda de mestre fyoda em Ajax, JavaScript, XML, DOM
sim , tanto que se eu mudar a visibilty pra display funciona certinho . -
seria isso mesmo , mas aqui não deu certo . não imprimiu na tela a imagem .
-
Style="display: None" está Fazedo Img Pular Linha
pergunta respondeu ao mestre fyoda de mestre fyoda em Ajax, JavaScript, XML, DOM
esse codigo faz a img voltar . document.getElementById(img).style.visibility = 'visible'; ese codigo mantem invisivel . <img id='img_email' style="visibility: hidden" src="../img/erro.gif" alt="" width='12' height='12'/> mas a imagem não está ficando visivel . -
document.getElementById(campo).innerHTML = ""; <img id="img_nome" style="display: none" src="../img/erro.gif" alt="" width='12' height='12'/> como eu faço para colocar o codigo do img no innerHTML ?
-
Style="display: None" está Fazedo Img Pular Linha
pergunta respondeu ao mestre fyoda de mestre fyoda em Ajax, JavaScript, XML, DOM
não trocou a cor , mas não deu certo , não trocou pra verde . vlw galera faltou um style ! -
Style="display: None" está Fazedo Img Pular Linha
pergunta respondeu ao mestre fyoda de mestre fyoda em Ajax, JavaScript, XML, DOM
deu certo , mas o provblema é que no codigo baixo ele deveria colocar a borda de verde mas está deixando branco . o que está de errado ? document.getElementById(campo).style.border = '#008000'; o campo vem de parametro de função . -
então o codigo acima , não sei o qele faz mas ele coloca a imagem na proxima linha <img id='img_email' src="../img/erro.gif" alt="" width='12' height='12'/> já o codigo acima esta do jeito que euquero mas eu presizo colocar style="display: none" , mas esse codigo está colocando na proxima linha . porque ? qal o comando para pegar a borda da id="email" ? fiz assim ma snao deu certo!. document.getElementById(borda).border = '#FFFF99';
-
Não Está Aparecendo Na Div Id O Texto
pergunta respondeu ao mestre fyoda de mestre fyoda em Ajax, JavaScript, XML, DOM
já descobri o erro , mas to com um probleminha de css , como faço para deixar o texto alinhado , estranho porque não especifiquei o tamanho da width e ele jogauma parte do texto na proxima linha . -
o id : a pagina abaixo chama o segundo codigo : <td> Nome </td> <td> <input type="text" name="nome"> </td> <td> <div id="erro_nome"> <td><img src='../img/erro.gif' style="display: none"></td> <td> </div> </td> os 2 parametros estao sendo passados corretamente .
-
<script> alert("<?=$dir_subcategoria.$name?>"); opener.document.getElementById("subcategoria").src = "<?=$dir_subcategoria.$name?>"; </script> aqui vem a imagem que deveria ser alterada quando executado o codigo acima , ali no alert está certinho , passa aonde esta a figura e passa também o nome da figura . <img id="subcategoria" src="../subcategoria/<?=$dados["imagem"];?>" >
-
como eu faço para enviar um parametro como string para uma função e nessa função imprimir na tela a string ?
-
<html> <head> </head> <body> <form action="teste.php" method="post"> <input type="text" name="servico" value="1"> <input type="submit" value="Teste"> </form> </body> </html> <html> <head> <script type="text/javascript" language="javascript"> function teste() { // var comparacao = <? echo $servico; ?>; alert(<? echo $servico; ?>); } </script> </head> <body> <? $servico = $_POST["servico"]; ?> <script> teste(); </script> </body> </html> na hora de dar o alert não sai nada do alert , imprime vazio , o que está de errado ?
-
Remover Espaço Em Branco
pergunta respondeu ao mestre fyoda de mestre fyoda em Ajax, JavaScript, XML, DOM
frenetico , não entendi o que é pra fazer -
Remover Espaço Em Branco
pergunta respondeu ao mestre fyoda de mestre fyoda em Ajax, JavaScript, XML, DOM
<html> <head> <link href="../css/estilo.css" rel="stylesheet" type="text/css"> <script language="javascript" type="text/javascript" src="../js/validar_cpf.js"></script> <script language="javascript" type="text/javascript" src="../js/maskara.js"></script> </head> <body> <form name="cadastrar_cliente_fisico" id="cadastrar_cliente_fisico" action="cadastrar_cliente.php" method="POST"> <br><br><br> <table class="texto" align="center"> <tr> <td> Nome </td> <td> <input type="text" name="nome"> </td> </tr> <tr> <td> Email </td> <td> <input type="text" name="email"> </td> </tr> <tr> <td> Senha </td> <td> <input type="password" name="senha" maxlength="10" onKeyUp="return autoTab(this, 10, event);"> </td> </tr> <tr> <td> Confirma Senha </td> <td> <input type="password" name="confirma_senha" maxlength="10" onKeyUp="return autoTab(this, 10, event);"> </td> </tr> <tr> <td> CPF </td> <td> <input type="text" name="cpf" maxlength="14" onkeypress="return txtBoxFormat(document.cadastrar_cliente_fisico, 'cpf', '999.999.999-99', event);" onchange="return valida_form(document.cadastrar_cliente_fisico)"> </td> </tr> <tr> <td> Data Nascimento </td> <td> <input type="text" name="dia" size="3" onKeyUp="return autoTab(this, 2, event);"> <input type="text" name="mês" size="3" onKeyUp="return autoTab(this, 2, event);"> <input type="text" size="4" onKeyUp="return autoTab(this, 4, event);"> </td> <td> Formato: dia/mês/ano </td> </tr> <tr> <td> </td> </tr> <tr> <td> <input type="submit" value="Cadastrar"> </td> </tr> </table> </form> </body> </html> validar.js function valida_form(form) { // ::: Validando o campo CPF ::: var invalid, s; invalid = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/; var s; if (form.cpf.value == "") { alert("Informe o CPF !!!") form.cpf.focus(); return false; } if (form.cpf.value == "000.000.000-00" || form.cpf.value == "111.111.111-11" || form.cpf.value == "222.222.222-22" || form.cpf.value == "333.333.333-33" || form.cpf.value == "444444444-44" || form.cpf.value == "555.555.555-55" || form.cpf.value == "666.666.666-66" || form.cpf.value == "777.777.777-77" || form.cpf.value == "888.888.888-88" || form.cpf.value == "999.999.999-99") { alert("CPF Inválido"); form.cpf.focus(); form.cpf.value = ""; return false; } s = limpa_string(form.cpf.value); // ::: checa se é cpf ::: if (s.length == 11) { if (valida_CPF(form.cpf.value) == false ) { alert("O CPF não é válido !"); form.cpf.focus(); form.cpf.value = ""; return false; } } else { alert("O CPF não é válido !"); form.cpf.value = ""; form.cpf.focus(); return false; } // ::: Deixa so' os digitos no numero ::: function limpa_string(S) { var Digitos = "0123456789"; var temp = ""; var digito = ""; for (var i=0; i<S.length; i++) { digito = S.charAt(i); if (Digitos.indexOf(digito)>=0) { temp=temp+digito } } //for return temp } // fim da funcao function valida_CPF(s) { var i; s = limpa_string(s); var c = s.substr(0,9); var dv = s.substr(9,2); var d1 = 0; for (i = 0; i < 9; i++) { d1 += c.charAt(i)*(10-i); } if (d1 == 0) return false; d1 = 11 - (d1 % 11); if (d1 > 9) d1 = 0; if (dv.charAt(0) != d1) { return false; } d1 *= 2; for (i = 0; i < 9; i++) { d1 += c.charAt(i)*(11-i); } d1 = 11 - (d1 % 11); if (d1 > 9) d1 = 0; if (dv.charAt(1) != d1) { return false; } return true; } function valida_CGC(s) { var i; s = limpa_string(s); var c = s.substr(0,12); var dv = s.substr(12,2); var d1 = 0; for (i = 0; i < 12; i++) { d1 += c.charAt(11-i)*(2+(i % 8)); } if (d1 == 0) return false; d1 = 11 - (d1 % 11); if (d1 > 9) d1 = 0; if (dv.charAt(0) != d1) { return false; } d1 *= 2; for (i = 0; i < 12; i++) { d1 += c.charAt(11-i)*(2+((i+1) % 8)); } d1 = 11 - (d1 % 11); if (d1 > 9) d1 = 0; if (dv.charAt(1) != d1) { return false; } return true; } } tenta ai galera no campo cpf segurar algum numero e deixar ultrapassar os 14 digitos e depois que você fizer isso apaga e coloca o mesmo numero so que não exeda os numeros , quando você chegar no ultimo numero não digita mais nada e testa ai pra vocês verem . grato pela atenção . -
como colocar window.parent.document.getElementById('nome_input_preco').value ali aoande etsa em vermelho ?
-
Campo Text Com Borda Colorida
pergunta respondeu ao mestre fyoda de mestre fyoda em Ajax, JavaScript, XML, DOM
vlw galera -
Campo Text Com Borda Colorida
pergunta respondeu ao mestre fyoda de mestre fyoda em Ajax, JavaScript, XML, DOM
bacana Tenko , mas como eu faço para mudar o campo text , tirando esse jeito de afundado .