Ir para conteúdo
Fórum Script Brasil

yfoliveira

Membros
  • Total de itens

    4
  • Registro em

  • Última visita

Posts postados por yfoliveira

  1. Olá pessoal sou novato em programação Web, estou desenvolvendo um site para a empresa mas estou com um problema, não consigo fazer com index se encaixe perfeitamente na tela, de todos os monitores.

    Gostaria de uma ajuda se possível ou de alguma outra ideia que possa me ajudar, grato desde já !

    Segue site(estou testando numa hospedagem gratis): www.liderpro.besaba.com

  2. Olá,

    Estou com um problema no meu programa, quando vou rodar na m... do internet explorer ele da problema.

    Os buttons perdem a função, não fazem nada quando clico neles e uma parte do efeito que botei numa class td perde o efeito.

    Desculpe se tiver algum erro ou algo do tipo é que sou novato nessa área.

    segui os codigos:

    <!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=utf-8" />

    <title>Untitled Document</title>

    <link href="../arqs/style.css" rel="stylesheet" type="text/css" />

    </head>

    <body>

    <div id = "todoconteudo">

    <form method="post" action= "<?php echo $_SERVER['PHP_SELF']; ?>">

    <table cellspacing=0" cellpadding="0" border="1" align="center">

    <col width="29" />

    <col width="329" />

    <col width="166" />

    <col width="90" />

    <tr height="100px">

    <td scope="col" colspan="5" height="60px" align="center">

    <img src="../imagens/ideia.jpg" width="224" height="60" alt="Instituto IDEIA" title="http://www.ideiaeduc.com.br/" style="margin-bottom:12px;"/>

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

    <img src="../imagens/ua.jpg" width="130" height="83" alt="Universidad Americana" style="margin-top:5px;" />

    </td>

    </tr>

    <tr>

    <td colspan="4" align="center" class="td"><strong>PLANILHA DE NOTAS</strong></td>

    </tr>

    <tr>

    <td colspan="4">DOCTORADO EN ADMINISTRACIÓN: DA 1.1/12 – julho 2012</td>

    </tr>

    <tr>

    <td colspan="4">ASIGNATURA:

    Contabilidade Gerenciali</td>

    </tr>

    <tr>

    <td colspan="4">PROFESOR: Gustavo Adolfo Valenzuela Ferreira </td>

    </tr>

    <tr class="td">

    <td width="29"><div align="center"><strong>Nº</strong></div></td>

    <td width="330"><div align="center"><strong>APELLIDOS Y NOMBRES</strong></div></td>

    <td width="167"><div align="center"><strong>CEDULA IDENTIDAD</strong></div></td>

    <td width="107"><div align="center"><strong>NOTA FINAL</strong></div></td>

    </tr>

    <tr>

    <td width="29"><div align="center">1</div></td>

    <td>Ricardo de Bonis</td>

    <td>14087</td>

    <td><div align="center">

    <?php

    //conecta-se ao banco de dados

    $dbc = mysqli_connect('localhost','root','','planilha_de_notas') or die( mysqli_error());

    //Obtem os dados dos alunos

    $query = "SELECT * FROM da1112 order by id desc limit 1";

    $result = mysqli_query($dbc, $query) or die or die (mysqli_error());

    while ($row = mysqli_fetch_array($result)) {

    echo $row['nota1].'<br>';

    }

    mysqli_close($dbc);

    ?>

    </div></td>

    </tr>

    <tr>

    <td width="29"><div align="center">2</div></td>

    <td>Maria de Fátima B. Silva</td>

    <td>0856421421</td>

    <td><div align="center">

    <?php

    //conecta-se ao banco de dados

    $dbc = mysqli_connect('localhost','root','','planilha_de_notas') or die( mysqli_error());

    //Obtem os dados dos alunos

    $query = "SELECT * FROM da1112 order by id desc limit 1";

    $result = mysqli_query($dbc, $query) or die or die (mysqli_error());

    while ($row = mysqli_fetch_array($result)) {

    echo $row['nota2'].'<br>';

    }

    mysqli_close($dbc);

    ?>

    </div></td>

    </tr>

    <tr>

    <td width=29"><div align="center">3</div></td>

    <td>Anisia Darc do N. Brahim</td>

    <td>063849699</td>

    <td><div align="center">

    <?php

    //conecta-se ao banco de dados

    $dbc = mysqli_connect('localhost','root','','planilha_de_notas') or die( mysqli_error());

    //Obtem os dados dos alunos

    $query = "SELECT * FROM da1112 order by id desc limit 1";

    $result = mysqli_query($dbc, $query) or die or die (mysqli_error());

    while ($row = mysqli_fetch_array($result)) {

    echo $row['nota3];

    }

    mysqli_close($dbc);

    ?>

    </div></td>

    </tr>

    </table>

    <p align="center"><a href="da.1.1.12.php">

    <input type = "button" value = "CLIQUE AQUI PARA CADASTRAR A NOTA" name = "cadastrar" class = "botao" /></a>

    <br />

    <br />

    <a href="../escolha_turma.html">

    <input type = "button" value = "VOLTAR" name = "voltar" class = "botao"/>

    </a>

    </p>

    </body>

    </html>

    e a css:

    @charset "utf-8";

    /* CSS Document */

    #todoconteudo {

    width: 800px;

    padding-top: 40px;

    padding-bottom: 5px;

    margin-right: auto;

    margin-left: auto;

    }

    body {

    font-family: Georgia, "Times New Roman", Times, serif;

    font-size: small;

    margin: 0px;

    }

    .td {

    background-color: #90b9e8 !important;

    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#90b9e8), color-stop(100%, #c6dcf5 )) !important;

    background: -webkit-linear-gradient(top, #90b9e8,#c6dcf5) !important;

    background: -moz-linear-gradient(top, #90b9e8, #c6dcf5) !important;

    background: -ms-linear-gradient(top, #90b9e8, #c6dcf5) !important;

    background: -o-linear-gradient(top, #90b9e8, #c6dcf5) !important;

    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#90b9e8', endColorstr='#c6dcf5',GradientType=0 );

    /* Background gradient */

    background: #90b9e8;

    background: -moz-linear-gradient

    (top, #90b9e8 0%, #bdd3ed 100%);

    background: -webkit-gradient

    (linear, 0% 0%, 0% 100%,

    from(#90b9e8), to(#bdd3ed));

    font-weight: bold;

    color: #000;

    }

    .botao {

    /* determina que o conteúdo do span ficará com 4px de espaço acima e abaixo do conteúdo, e 11px em cada lateral. */

    padding: 4px 11px;

    /* border determinam, respectivamente: a borda do span deverá ter 1 pixel de espessura; será sólido */

    border: 1px solid #90b9e8;

    -moz-border-radius: 8px;

    -webkit-border-radius: 8px;

    border-radius: 8px;

    /*O border-radius é uma propriedade moderna, que determina o quanto arredondadas serão as arestas do elemento que recebe-a.*/

    background-color: #90b9e8 !important;

    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#90b9e8), color-stop(100%, #c6dcf5 )) !important;

    background: -webkit-linear-gradient(top, #90b9e8,#c6dcf5) !important;

    background: -moz-linear-gradient(top, #90b9e8, #c6dcf5) !important;

    background: -ms-linear-gradient(top, #90b9e8, #c6dcf5) !important;

    background: -o-linear-gradient(top, #90b9e8, #c6dcf5) !important;

    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#90b9e8', endColorstr='#c6dcf5',GradientType=0 );

    font-family:"Segoe UI";

    font-weight: bold;

    color: #000;

    text-shadow: 0 1px 0 #666;

    /*responsável por sombras no elemento */

    box-shadow: inset 0 1px 1px #fff, 0 2px 3px #666;

    cursor:pointer;

    position: relative;

    }

  3. Olá pessoal sou iniciante em PHP, e em meus estudos estava fazendo um sistema de cadastro, mas esta dando um erro que não consigo resolver, se possível gostaria de uma ajuda.

    Grato desde já.

    Notice: Undefined index: acao in C:\Program Files\EasyPHP-12.0\www\sistema de cadastro\cadastro\cadastro.php on line 4

    Notice: Undefined variable: error in C:\Program Files\EasyPHP-12.0\www\sistema de cadastro\cadastro\cadastro.php on line 63

    <?php

    include ('C:\Program Files\EasyPHP-12.0\www\sistema de cadastro\cadastro\configuração\conn.php');

    $acao = $_GET['acao'];

    if ($acao == "cadastro") {

    // recebendo os valores

    $nome = $_POST['nome'];

    $email = $_POST['email'];

    $nascimento = $_POST['nascimento'];

    $telefone = $_POST['telefone'];

    $info = $_POST['info'];

    //nome

    if ($nome == "") {

    $error[0] = "Preencha o campo nome";

    }

    //email

    if (!preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $email)) {

    $error[1] = "Preencha um email valido";

    }

    //data de nascimento

    if (nascimento == "") {

    $error[2] = "Preencha a data de nascimento";

    }

    else if

    (!preg_match('/^\d{1,2}\/\d{1,2}\/\d{4}$/', $nascimento)) {

    $error[2] = "Data em formato invalido";

    }

    //telefone

    if ($telefone == "") {

    $error[3] = "Preencha o campo telefone";

    }

    else if (!preg_match('/^(\(?[2-9]{1}[0-9]{2}\)?|[0-9]{3,3}[-. ]?)[ ][0-9]{3,3}[-. ]?[0-9]{4,4}$/', $telefone))

    {

    $error[3] = "Telefone em formato invalido";

    }

    //verifica os valores dentro do array !!!!!!!!!!!!!!!

    if (sizeof($error) == 0) {

    //comando para inserir os valores no banco de dados !!!!!!!!

    $sql = mysql_query("INSERT INTO clientes VALUES ('', '$nome', '$email', '$nascimento', '$telefone', '$info') ");

    // verifica todos os comandos acimea do cadastro !!!!!!!!!!!!!

    if ($sql) {

    echo "&lt;script language = 'javascript'> alert ('Cadastro efetuado com sucesso')</script>";

    } else {

    echo "&lt;script language = 'javascript'> alert ('Não foi possivel realizar o cadastro no momento')</script>";

    }

    }

    }

    ?>

    <?php

    if (sizeof($error) != 0) {

    // foreach exibe todos os erros de um array !!!!!!!!!!!!!!!!!

    // ($error as $err) esse codigo transforma os $error em $err

    foreach ($error as $err) {

    echo $err . "<br/>";

    }

    }

    ?>

    <h1>Cadastro de Clientes</h1>

    <HTML>

    <HEAD>

    <TITLE>Documento PHP</TITLE>

    </HEAD>

    <BODY>

    <form method="POST" action = "cadastro.php?acao=cadastro" >

    Nome:<br/>

    <input type="text" name = "nome" size="20"><p>

    Email:<br/>

    <input type="text" name = "email" size="20"><p>

    Data de Nascimento:<br/>

    <input type="text" name= "nascimento" size="20"><i>(Ex: dd/mm/aaaa)</i><p>

    Telefone:<br/>

    <input type="text" name = "telefone" size="20"><i>(Ex: 14 3210-1234)</i><p>

    Informações adicionais:<br/>

    <textarea cols = "30" rows = "3" name= "info"></textarea><p>

    </form>

    <input type="button" value="Enviar">

    </p>

    <?

    ?>

    </BODY>

    </HTML>

×
×
  • Criar Novo...