Ir para conteúdo
Fórum Script Brasil

melanie

Membros
  • Total de itens

    29
  • Registro em

  • Última visita

Posts postados por melanie

  1. Tenho um controle de DOC. Onde a planilha possuim:

    Data do Recebimento / Número do Doc. ( numeração gerada pelo cliente ) / Valor / Número do Nosso Doc. ( numeração feita por nós ) e o vencimento.

    O Problema é que este documento, vai e volta diversas vezes então, precisaria de alguma forma amarrar este documento, ou seja, toda vez que dou entrada no documento ele volta com uma numeração diferente mais com a mesma numeração do nosso doc. logo fazer com que a celular onde está o (Número do nosso Doc.) dá um alerta, jogando em um novo campo mostrando quantas vezes este documento está voltando para nós.

  2. Olá Pessoal,

    Como faz um controle, toda vez que um cliente pagar uma parcela o valor total diminui

    (Vl. da Prestação / Nº de Parcelas / Quando Falta ) ex: O Produto custa 700 parcelado em três vezes ( 1º 250 , 2º 250 e 3º 250 ) a primeira foi paga então mostra faltam 500.

  3. Não deu certo, tentei colocar outro cod. mas foi em vão não consigo o resuldado.

    <tr>

    <?

    $extra = "Extra: " . $row["extra"];

    if($extra != "") { // Se estiver preenchido, exibe-a

    ?>

    <tr>

    <td><strong>Extra</strong></td>

    <td><?=$row["extra"]?></td>

    </tr>

    <?}?>

    </table>

  4. Vou colocar o trecho do código, pois nada aconteceu.

    <table width="96%" height="336">

    <tr>

    <?

    include "../includes/Conexao.php";

    $sql="select * from filmes where id=$id";

    $sql_result = mysql_query($sql,$connection)

    or die ("Não foi possível executar o comando SQL!");

    $row = mysql_fetch_array($sql_result);

    ?>

    <td width="35%"><div align="center"><strong><font color="#000000"><?=$row["titulo"]?></font></strong></div></td>

    <td width=65%"><div align="center"><strong><font color="#000000">SINOPSE</font></strong></div></td>

    </tr>

    <tr>

    <td colspan="2"></td>

    </tr>

    <tr>

    <td valign="top"><div align="center"><img src="../produtos/<?=$row["foto]?>" width="192" height="280"></div></td>

    <td valign="top"><div align="justify"><?=$row["sinopse"]?></div></td>

    </tr>

    <tr>

    <td></td>

    <td>&nbsp;</td>

    </tr>

    <tr>

    <td><strong><font color=#000000">Registro:</font></strong></td>

    <td><div align="left"><?=$row["codigo]?><br>

    </div></td>

    </tr>

    <tr>

    <td valign="top"></td>

    <td></td>

    </tr>

    <tr>

    <td valign="top"><strong><font color="#000000">Elenco:</font></strong></td>

    <td><?=$row["elenco"]?></td>

    </tr>

    <tr>

    <td>&nbsp;</td>

    <td>&nbsp;</td>

    </tr>

    <tr>

    <td><strong><font color=#000000">Categoria:</font></strong></td>

    <td><div align="left"><?=$row["genero]?><br>

    </div></td>

    </tr>

    <tr>

    <td></td>

    <td></td>

    </tr>

    <tr>

    <td><strong><font color="#000000">Ano:</font></strong></td>

    <td><div align="left"><?=$row["ano"]?></div></td>

    </tr>

    <tr>

    <td></td>

    <td></td>

    </tr>

    <tr>

    <td><strong><font color=#000000">Formato:</font></strong></td>

    <td><font color="#FF0000"><?=$row["midia]?></font></td>

    </tr>

    <tr>

    <td valign="top"></td>

    <td></td>

    </tr>

    <tr>

    <td valign="top"><font color="#000000"><strong>Extra</strong></font></td>

    <td>

    <?

    $campo = $row["extra"];

    if($campo == "" OR is_null($campo) OR $campo == "extra"){// echo "valor não preenchido";

    } else {

    echo $campo;

    }

    ?>

    </td>

    </tr>

    </table>

  5. DIV (Corpo) a informação é vinda do banco, ou seja, quando maior é o conteúdo a tendência e que o tamanho dela cresça e desça que é o certo. Mas o problema, em baixo dela tem a DIV (rodapé) que não acompanha, ficando perdido no meio da pagina.

    O que fiz de errado?

    A folha de estilo:

    #corpo {
        clear:both;
        position:absolute;
        left:313px;
        top:265px;
        width:658px;
        height:671px;
        z-index:6;
        background-color: #FFFFFF;
    }
    
    #rodape {
        clear:both;
        position:absolute;
        left:0px;
        top:938px;
        width:100%;
        height:20px;
        z-index:7;
        background-image:url(../images/rodape.gif);
    }

  6. FIXA TABELA

    O conteúdo que fica no centro

    <TD width="504" rowspan="18" valign="top" bgcolor="#FFFFFF">

    As informações são fornecidas do banco; o que acontece, toda vez que é adicionado mais informações, a linha tende a aumentar e com isso,

    <TD COLSPAN=2 ROWSPAN=4> onde está o logo e os demais: acervo, cadastro, lista completa, emprestar, devolver, login e filmes novos ficam com UMA MAL FORMATAÇÃO, pois acompanham o conteúdo.

    Segue a code:

    <BODY>
    <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 class="dim">
    <TR>
    <TD height="20"COLSPAN=4><img src="../images/top.gif" width="100%" height="20"></TD>
    <TD width="2" height="20"></TD>
    </TR>
    <TR>
    <TD COLSPAN=2 ROWSPAN=4><IMG SRC="../images/logo.gif" WIDTH=246 HEIGHT=175></TD>
    <TD height="20"COLSPAN=2 align="right"><form action="" method="post" name="busca" class="style1" id="busca">
    <strong>Busca </strong>
    <label>
    <input name="textfield" type="text" maxlength="50">
    </label>
    <label>
    <input name="submit" type="submit" value="Ok">
    </label>
    <br>
    <input name="Titulo" type="radio" value="radiobutton">
    Tìtulo
    <label>
    <input name="genero" type="radio" value="radiobutton">
    </label>
    Gênero
    <label>
    <input name="elenco" type="radio" value="radiobutton">
    </label>
    Ator
    </form></TD>
    <TD width="2" height="45"></TD>
    </TR>
    <TR>
    <TD><IMG SRC="../images/acervo.gif" WIDTH=100% HEIGHT=68></TD>
    <TD width="5" height="68"></TD>
    </TR>
    <TR>
    <TD width="504" rowspan="18" valign="top" bgcolor="#FFFFFF">
    <?
    $sql="select * from filmes order by id";
    $cont=0; 
    include "../includes/Conexao.php";
    $sql_result = mysql_query($sql,$connection)
    or die ("Não foi possível executar o comando SQL!");?>
    <br>
    </br>
    <table width="153" height="229" align="center" bgcolor="#FFFFFF">
    <tr>
    <? while($row = mysql_fetch_array($sql_result)) {?>
    <td width="137"><div align="center"><a href="descricao.php?id=<?=$row["id"]?>"><img src="../produtos/<?=$row["foto"]?>"" width=100 height=153 border="0"></a></div>
    <div align="center"><?=$row["titulo"]?></div>
    <td width="4"colspan="16"></td>
    <? $cont=$cont+1;
    if ($cont==4) {?>
    </tr>
    <tr>
    <td colspan="15"></td>
    </tr>
    <tr>
    <?$cont=0;}
    }?> 
    </tr>
    </table></TD>
    <TD width="5"height="13"></TD>
    </TR>
    <TR>
    <TD width="5" height="55"></TD>
    </TR>
    <TR>
    <TD height="13"COLSPAN=2></TD>
    <TD width="5" height="13"></TD>
    </TR>
    <TR>
    <TD width="92" height="192"ROWSPAN=14><br></TD>
    <TD width="163" height="1"></TD>
    <TD width="5" height="1"></TD>
    </TR>
    <TR>
    <TD><a href="acervo.php"><IMG SRC="../images/acervo-12.gif" WIDTH=163 HEIGHT=23 border="0"></a></TD>
    <TD width="5" height="23"></TD>
    </TR>
    <TR>
    <TD width="163" height="5"></TD>
    <TD width="5" height="5"></TD>
    </TR>
    <TR>
    <TD><a href="#"><IMG SRC="../images/cadastro.gif" WIDTH=163 HEIGHT=23 border="0"></a></TD>
    <TD width="5" height="23"></TD>
    </TR>
    <TR>
    <TD width="163" height="5"></TD>
    <TD width="5" height="5"></TD>
    </TR>
    <TR>
    <TD><a href="#"><IMG SRC="../images/lista.gif" WIDTH=163 HEIGHT=23 border="0"></a></TD>
    <TD width="5" height="23"></TD>
    </TR>
    <TR>
    <TD width="163" height="5"></TD>
    <TD width="5" height="5"></TD>
    </TR>
    <TR>
    <TD><a href="#"><IMG SRC="../images/emprestar.gif" WIDTH=163 HEIGHT=23 border="0"></a></TD>
    <TD width="5" height="23"></TD>
    </TR>
    <TR>
    <TD width="163" height="5"></TD>
    <TD width="5" height="5"></TD>
    </TR>
    <TR>
    <TD><a href="#"><IMG SRC="../images/devolver.gif" WIDTH=163 HEIGHT=23 border="0"></a></TD>
    <TD width="5" height="23"></TD>
    </TR>
    <TR>
    <TD width="163" height="5"></TD>
    <TD width="5" height="5"></TD>
    </TR>
    <TR>
    <TD><a href="#"><IMG SRC="../images/login.gif" WIDTH=163 HEIGHT=23 border="0"></a></TD>
    <TD width="5" height="23"></TD>
    </TR>
    <TR>
    <TD width="163" height="5"></TD>
    <TD width="5" height="5"></TD>
    </TR>
    <TR>
    <TD><a href="#"><img src="../images/novos.gif" width=163 height=23 border="0"></a></TD>
    <TD width="5" height="23"></TD>
    </TR>
    <TR>
    <TD height="245%" COLSPAN=2 ROWSPAN=2></TD>
    <TD width="5" height="251"></TD>
    </TR>
    <TR>
    <TD><IMG SRC="../images/index_25.gif" WIDTH=100% HEIGHT=3></TD>
    <TD width="5" height="3"></TD>
    </TR>
    <TR>
    <TD COLSPAN=4><img src="../images/rodape.gif" width="100%" height="20"></TD>
    <TD width="2" height="20"></TD>
    </TR>
    </TABLE>
    </BODY>

  7. Segue o código correto, feito por:hargon

    <%

    set rs= server.createobject("ADODB.Recordset")

    sql = "select * from Acervo where titulo like '%"&titulo&"%'"

    rs.open sql, Controle, 1, 3

    if not rs.eof then

    %>

    <table width="150" height="150">

    <tr>

    <%

    while not rs.eof

    %>

    <td><%=rs("titulo")%></td>

    <%

    rs.movenext

    if not rs.eof then

    %>

    <td><%=rs("titulo")%></td>

    </tr><tr>

    <%

    rs.movenext

    end if

    wend

    %>

    </tr>

    </table>

    <%

    end if

    rs.close

    set rs = nothing

    %>

  8. PROBLEMA COM TABELAS LADO A LADO

    Tenho uma pagina EMPESTAR: possui um formulário de busca de titulo, ao clicar e redirecionado a página RESP_EMPRESTAR.

    O problema desta é quando há nomes iguais

    Ex.: A era do gelo I

    A era do gelo II

    Ao invés de colocar as informações obtidas lado a lado, o resultado final é uma debaixo da outra.

    Segue abaixo o código para fica mais claro.

    <div id="busca" style="position:absolute; left:248px; top:245px; width:526px; height:315px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;">

    <!--#include file="../includes/conexao.inc"-->

    <table width="150" height="150">

    <% titulo=request.form("titulo")

    set rs= server.createobject("ADODB.Recordset")

    sql="select * from Acervo where titulo like"&"'%"&titulo&"%'"

    rs.open sql, Controle, 1, 3

    while not rs.eof%>

    <tr>

    <td>

    <table width="100">

    <tr>

    <td><%=rs("titulo")%></td>

    <td> </td>

    </tr>

    <tr>

    <td rowspan="2"><img src="../produtos/<%=rs("foto")%>" width="133" height="192"></td>

    <td> </td>

    </tr>

    <tr>

    <td> </td>

    </tr>

    <tr>

    <td> </td>

    <td> </td>

    </tr>

    </table></td>

    <td>

    <table width="100">

    <tr>

    <td></td>

    <td></td>

    </tr>

    <tr>

    <td rowspan="2"></td>

    <td></td>

    </tr>

    <tr>

    <td></td>

    </tr>

    <tr>

    <td></td>

    <td></td>

    </tr>

    </table></td>

    </tr>

    <% rs.movenext

    wend

    rs.close

    Controle.close%>

    </table>

    </div>

  9. Como configurar ODBC

    Quando tenho uma pagina que as informações são fornecidas do banco, as informações me mostrar sem problema, mais quando preciso inserir dado a ele como, por exemplo, cadastro nada é inserido ao banco.

    Ocorre também em relação: alterar e excluir.

  10. Não é possível exibir a página (HTTP 500.100 - Servidor interno Erro)

    Tipo de erro:

    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)

    [Microsoft][Driver ODBC para Microsoft Access] A operação deve usar uma consulta atualizável.

    /catalogo/cadastro_XP/login_exe.asp, line 42

    Página:

    POST 58 bytes to /catalogo/cadastro_XP/login_exe.asp

    POST Data:

    login=teste&senha=1234&imageField2.x=27&imageField2.y=11

    O problema é que não havia habilitado o Banco no IIS

  11. Agora surgue mais um novo probleminha. Bem onde tem o ELENCO aparece em texto como uma linha reta, mais na verdade preciso colocar o elenco um debaixo do outo. Mais como posso fazer isto, se o elenco vai do Banco ???

×
×
  • Criar Novo...