Example #1
0
function montar_email()
{
    $tem_anexos = '';
    if (count($anexos) > 0) {
        $tem_anexos = "<p><strong>Atenção!</strong> Esta tarefa contém anexos!</p>";
    }
    $corpo = "\n        <html>\n            <head>\n                <meta charset=\"utf-8\" />\n                <title>Gerenciador de Tarefas</title>\n                <link rel=\"stylesheet\" href=\"tarefas.css\" type=\"text/css\" />\n            </head>\n            <body>\n                <h1>Tarefa: {$tarefa['nome']}</h1>\n\n                <p><strong>Concluída:</strong> " . traduz_concluida($tarefa['concluida']) . "</p>\n                <p><strong>Descrição:</strong> " . nl2br($tarefa['descricao']) . "</p>\n                <p><strong>Prazo:</strong> " . traduz_data_para_exibir($tarefa['prazo']) . "</p>\n                <p><strong>Prioridade:</strong> " . traduz_prioridade($tarefa['prioridade']) . "</p>\n\n                {$tem_anexos}\n\n            </body>\n        </html>\n    ";
}
Example #2
0
            <input type="text" name="nome" value="<?php 
echo $tarefa['nome'];
?>
" />
        </label>
        <label>
            Descrição (Opcional):
            <textarea name="descricao"><?php 
echo $tarefa['descricao'];
?>
</textarea>
        </label>
        <label>
            Prazo (Opcional):
            <input type="text" name="prazo" value="<?php 
echo traduz_data_para_exibir($tarefa['prazo']);
?>
" />
        </label>
        <fieldset>
            <legend>Prioridade:</legend>
            <input type="radio" name="prioridade" value="1" <?php 
echo $tarefa['prioridade'] == 1 ? 'checked' : '';
?>
 /> Baixa
            <input type="radio" name="prioridade" value="2" <?php 
echo $tarefa['prioridade'] == 2 ? 'checked' : '';
?>
 /> Média
            <input type="radio" name="prioridade" value="3" <?php 
echo $tarefa['prioridade'] == 3 ? 'checked' : '';