Ir para conteúdo
Fórum Script Brasil

Miqui

Membros
  • Total de itens

    188
  • Registro em

  • Última visita

Posts postados por Miqui

  1. Alexandre, o problema esta aqui.

    $recipient = "suporte@vzan.com.br"; "contato@vzan.com.br"; "orlando@vzan.com.br"; "cesar@vzan.com.br"; "celso@vzan.com.br"; "junior@vzan.com.br"; "esli@vzan.com.br"; "watanabe@vzan.com.br"; //email recipiente

    altere para

    $recipient = "suporte@vzan.com.br;contato@vzan.com.br;orlando@vzan.com.br;cesar@vzan.com.br; celso@vzan.com.br;junior@vzan.com.br;esli@vzan.com.br;watanabe@vzan.com.br"; //email recipiente

    abraço

    Miqui

  2. VACA, da uma olhada nessas linhas do seu código.

    <? //Montagem do Menu

    $menu ="<script type=\"text/javascript\" language=\"JavaScript1.2\">

    <!--

    stm_bm([\"menu5f0d\",700,\"\",\"blank.gif\",0,\"\",\"\",0,0,250,0,1000,1,0,0,\"\",\"\",0,0,1,2,\"default\",\"hand\",\"js/\"],this);";

    $con = mysql_connect("localhost", "copimaq", "telles") or die (mysql_error);

    mysql_select_db("copimaq",$con) or die (mysql_error);

    monta_menu ("Select * from menu where iop=0 order by cod_menu",0,0);

    function monta_menu($sql, $cont, $nivel){ //Montagem de Menu Dinamica

    //**********************************

    $rc = mysql_query($sql, $con); //linha 41

    while ($row = mysql_fetch_assoc($rc)) Linha 42{

    //***********************************

    $rs1 = mysql_query("Select ".$rc["name"]." from usuario where id_user=1" ,$con);

    if ($rs1[$rs['name']] || $nivel==0){ //Montar Menu

    $menu.=stm_bp(\"p".$nivel."\",[0,4,0,0,3,4,7,0,100,\"\",-2,\"\",-2,90,0,0,\"#000000\",\"#CCCCCC\",\"\",3,0,0,\"#000000\]);

    stm_ai(\"p".$nivel."i".$cont."\",[0,\"".$rs["texto"]."\",\"\",\"\",-1,-1,0,\"\",\"_self\",\"\",\"\",\"".$rc["local_imagem"]."\",\"".$rc["local_imagem"]."\",7,13,0,\"\",\"\",0,0,0,0,1,\"#CBE1FF\",0,\"#225EC3\",0,\"\",\"\",3,3,0,0,\"#FFFFF7\",\"#000000\",\"#000000\",\"#FFFFFF\",\"bold 8pt 'Tahoma','Arial'\",\"bold 8pt 'Tahoma','Arial'\",0,0],99,0);";

    }

    $aux = mysql_query("Select * from menu where iop=.$rc["cod_menu]." order by cod_menu", $con);

    if (mysql_affected_rows($aux)>0){

    $menu.="stm_bpx(\"p".($nivel+1)."\",\"p1\",[]);";

    montar_menu("Select * from menu where iop=.$rc["cod_menu]." order by cod_menu",0,($nivel+1));

    $menu.="stm_ep()";

    }

    else

    montar_menu(rc,$cont,$nivel);

    };

    $menu.="stm_ep()";

    };

    echo($menu."stm_em();

    //-->

    </script>");

    ?>

    abraço,

    Miqui

  3. Tchello, na hora de armazenar a data no banco você precisa salvar nesse formato ai 0000-00-00. Tenta um insert na sua tabela pelo mysql mesmo colocando uma data nesse formato que você vai ver que insere.

    Você pode fazer essa transformação de várias maneiras ai... quando você recebe do POST a sua data, da um explode nela por "/" e arruma no formato correto pro banco.

    Bom.. tem várias maneiras de fazer isso.

    abraço,

    Miqui

  4. Um exemplo Maikel.

    <html>
    <head>
    	<title>Documento sem t&iacute;tulo</title>
    	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    	<script type="text/javascript">
    	<!--
    	function esconde_botao()
    	{
      btn2.style.display = "none";
    	}
    	//-->
    	</script>
    </head>
    
    <body>
    
    <button id="btn1" onClick="esconde_botao()">BOTAO 1</button>
    <button id="btn2">BOTAO 2</button>
    
    </body>
    </html>
    

  5. Não sei se alguém teve, tem ou terá problemas com isso mas fica ai a dica.

    Server settings

    Make sure the IIS web server is not restricting the size of ASP uploads. IIS 6 (Windows Server 2003) has a limit of 200 KB for ASP requests in general and file uploads in particular. To remove this limitation in IIS 6 you need to edit the Metabase file, which can be found at c:\Windows\System32\Inetsrv\MetaBase.xml.

    Follow these steps: go to IIS and right click the server, select properties, and check the box "Allow changes to MetaBase configuration while IIS is running"; if after this step the metabase file is still locked, try turning off IIS or even restarting the machine in safe mode; open the file in an editor; the variable AspMaxRequestEntityAllowed limits the number of bytes in the page request (by default 200KB); change the value to 1073741824 (unlimited) or to a limit of your choice; check whether the same variable shows up in other places in the file.

    abraço

    Miqui

  6. Fala ae bareta, beleza ?

    Então, eu tive problemas com arquivos grandes e resolvi aumentando o tempo limite para rodar o script no servidor de 90s (default) para 3600s por exemplo.

    A merda aqui no meu ambiente é que não posso instalar componentes. Sabe como é... tem nego que vive só pra ferra a vida dos outros e esse erro de Operation not Allowed começou a aparecer depois que migraram o site de servidor, ai to tentando correr atrás do prejuízo afinal de contas é fácil para um administrador dizer que o problema esta na aplicação.

    Num sei, mas to achando que á algum tipo de configuração pois no ambiente de testes esta rodando normalmente.

    abraço

    Miqui

  7. Pessoal, alguém tem alguma dica ?

    Estou usando aquele código para fazer upload de arquivos sem componentes e estou recebendo o erro ASP 0104 80004005 - Operation not Allowed nas seguintes linhas.

    byteCount     = Request.TotalBytes
    RequestBin    = Request.BinaryRead(byteCount)
    

    Obrigado

    abraço

    Miqui

  8. byfreak, serve gambiarra ?? hehehe

    <input type="text" value="Mensagem:" size="10" style="border-right:0px"><input type="text" value="" style="border-left:0px">
    

    é claro que só visualmente vai ficar bunito, se você precisa de toda informação vai ter que unir os valores depois !

    abraço

    Miqui

  9. Rafa! é só olhar os arquivos .js

    esse principalmente.

    <script language="javascript" src="cengine.js"></script>

    var months = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
    var monthlen = new Array(31,checkLeapYear(year),31,30,31,30,31,31,30,31,30,31);
    var days = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
    

    abraço

    Miqui

×
×
  • Criar Novo...