Advertisement
fcunha

template.php

Aug 28th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.12 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <meta charset="utf-8">
  4.         <title>Gerenciador de Tarefas</title>
  5.         <link rel="stylesheet" href="/static/css/tarefas.css" type="text/css" />
  6.     </head>
  7.     <body>
  8.         <h1>Gerenciador de Tarefas</h1>
  9.         <form method="GET">
  10.             <fieldset>
  11.                 <legend>Nova Tarefa</legend>
  12.                 <label>Tarefa <input type="text" name="nome"/></label>
  13.                 <label>
  14.                     Descrição (Opcional):
  15.                     <textarea name="descricao"></textarea>
  16.                 </label>
  17.                 <label>
  18.                     Prazo (Opcional)<input type="text" name="prazo"/>
  19.                 </label>
  20.                 <fieldset>
  21.                     <legend>Prioridade</legend>
  22.                     <label>
  23.                         <input type="radio" name="prioridade" value = "baixa" checked/>Baixa
  24.                         <input type="radio" name="prioridade" value= "media"/> Média
  25.                         <input type="radio" name="prioridade" value= "alta"/> Alta
  26.                     </label>
  27.                 </fieldset>
  28.                 <label>
  29.                     Tarefa Concluída:
  30.                     <input type="checkbox" name="concluida" value="sim"/>
  31.                 </label>
  32.                 <input type="submit" value="Cadastrar"/>
  33.             </fieldset>
  34.         </form>
  35.         <table>
  36.             <tr>
  37.                 <th>Tarefas</th>
  38.                 <th>Descrição</th>
  39.                 <th>Prazo</th>
  40.                 <th>Prioridade</th>
  41.                 <th>Concluída</th>
  42.             </tr>
  43.                 <?php foreach ($lista_tarefas as $tarefa) : ?>
  44.                     <tr>
  45.                         <td><?php echo $tarefa['nome']; ?></td>
  46.                         <td><?php echo $tarefa['descricao']; ?></td>
  47.                         <td><?php echo $tarefa['prazo']; ?></td>
  48.                         <td><?php echo $tarefa['prioridade']; ?></td>
  49.                         <td><?php echo $tarefa['concluida']; ?></td>
  50.                     </tr>
  51.                 <?php endforeach; ?>
  52.            
  53.         </table>
  54.     </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement