create.php 1.46 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<!DOCTYPE html>
<html>
    <head>
        <title>Cadastro Usuário </title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <form method="POST" >
            <?php
            echo isset($this->data['success']) ?
                    $this->data['success'] ? 'Cadastrado com Sucesso' : "Erro ao cadastrar" : ""    
            ?>
            <fieldset>
                <legend> Cadastro Usuário </legend>
15 16 17
                <label for="nome">Nome:</label> <input type="text" name="nome" value="<?php echo $this->data['user']->getNome() ?>"/>
                <br> 
				<label for="carteirinha">Carteirinha:</label> <input type="text" name="carteirinha" value="<?php echo $this->data['user']->getCarteirinha() ?>"/>
18
                <br>
19 20 21 22 23 24 25 26 27 28
                <label for="tipoUsuario">Tipo Usuario:</label>
                <select name="tipoUsuario">
                    <?php foreach ($this->data['tiposUsuario'] as $tipo) :
                        ?>
                        <option value="<?php echo $tipo->getNome()?>"><?php echo $tipo->getNome()?></option>
                        <?php
                    endforeach;
                    ?>
                </select>
            <input type="submit" value="Enviar"/>
29 30 31 32 33
            </fieldset>
            <br>
            <br>
        </form>
        
Clarissa's avatar
Clarissa committed
34
	<input type="submit"  onclick="location.href='?module=usuario&controller=usuario&action=index'" value="Página Inicial"/>
35
    </body>
Clarissa's avatar
Clarissa committed
36
</html>