echo isset($msg) && !is_null($msg) && $msg != '' ? $msg : '';
?>
    <?php 
echo $this->session->flashdata('msg');
?>
</div>
<div>
    <form action="<?php 
echo base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2);
?>
/editar_template" class="formulario validarForm" method="post" name="formCadTemplate">
        <p>
        <label for="template_nome">Título</label><br />
        <input type="text" class="required" maxlength="50" name="template_nome" id="template_nome" value="<?php 
echo $result[0]['template_nome'];
?>
"/>
        </p>
        <?php 
echo View::gerarFormAntInjection('formCadTemplate');
?>
        <input type="hidden" name="pk_template" value="<?php 
echo $result[0]['pk_template'];
?>
" />
        <?php 
echo View::gerarHashIdForm($result[0]['pk_template']);
?>
        <input type="submit" name="submitFormTemplate" value="Editar" class="submit esc"/>
    </form>
</div>
Example #2
0
<form action="<?php 
echo base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $alias;
?>
" class="formulario validarForm" method="post" name="<?php 
echo $alias;
?>
">
    <p>
        <textarea name="texto" class="textarea h100 w500 required"></textarea>
    </p>
    <p>
        <?php 
echo View::gerarFormAntInjection($alias);
?>
        <?php 
echo View::gerarHashIdForm($this->uri->segment(4));
?>
        <?php 
if (isset($_GET['pk_unidade']) && $_GET['pk_unidade'] != '') {
    echo '<input type="hidden" name="pk_unidade" value="' . $_GET['pk_unidade'] . '">';
}
if (isset($_GET['pk_serie']) && $_GET['pk_serie'] != '') {
    echo '<input type="hidden" name="pk_serie" value="' . $_GET['pk_serie'] . '">';
}
if (isset($_GET['pk_turma']) && $_GET['pk_turma'] != '') {
    echo '<input type="hidden" name="pk_turma" value="' . $_GET['pk_turma'] . '">';
}
?>
        <input type="hidden" name="fk_area_transferencia" value="<?php 
echo $this->uri->segment(4);
?>
Example #3
0
echo $acao['titulo_modulo'];
?>
"/>
    </p>
    <label for="privadoAcaoFalse">A ação é privada?</label>
    <input type="radio" name="privado" id="privadoAcaoTrue" class="required radio" <?php 
echo $acao['privado'] === 1 ? 'checked="checked"' : '';
?>
 value="1"/>Sim &nbsp;&nbsp;&nbsp;
    <input type="radio" name="privado" id="privadoAcaoFalse" value="0" class="radio" <?php 
echo $acao['privado'] === 0 ? 'checked="checked"' : '';
?>
/>Não<br/>
    <p><strong>Selecione o tipo de usuário e suas respectivas permissões:</strong></p>
    <?php 
echo $this->table->generate();
?>
    <?php 
echo View::gerarFormAntInjection('formCadAcao');
?>
    <input type="hidden" name="acao" value="<?php 
echo $acao['pk_acao'];
?>
" />
    <?php 
echo View::gerarHashIdForm($acao['pk_acao']);
?>
    <input type="submit" name="submitFormAcao" value="Editar" class="submit esc"/>
    <input type="reset" name="resetFormAcao" value="Apagar" class="submit esc"/>
</form>
<br class="clearfloat" />
Example #4
0
            <option value="3" <?php 
echo $tipo == 3 ? 'selected' : '';
?>
 >Formativo</option>
            <option value="4" <?php 
echo $tipo == 4 ? 'selected' : '';
?>
 >SOEP</option>
        </select>
    </p>
    <?php 
echo View::gerarFormAntInjection('formCadCoordenador');
?>
    <input type="hidden" name="pk_usuario" value="<?php 
echo $pk_usuario;
?>
" />
    <input type="hidden" name="pk_usuario_coordenador" value="<?php 
echo $pk_usuario_coordenador;
?>
" />
    <input type="hidden" name="pk_coordenacao" value="<?php 
echo $pk_coordenacao;
?>
" />
    <?php 
echo View::gerarHashIdForm($pk_usuario);
?>
    <input type="submit" name="submitFormCoordenador" value="Atualizar" class="submit"/>
</form>
<br class="clearfloat" />
Example #5
0
            <input name="senha" type="password" id="senha" class="required w200" minlength="6" maxlength="12" />
        </p>
        <p>
            <label>Confirme sua senha</label><br />
            <input name="confirm_senha" type="password" class="required w200" minlength="6" maxlength="12" equalTo="#senha" />
        </p>

        <p>
            <input type="checkbox" name="enviar_email" value="1" checked> Enviar email com dados editados.
        </p>


        <?php 
    echo View::gerarFormAntInjection('formEditLogin');
    ?>
        <input type="hidden" name="pk_usuario" value="<?php 
    echo $result['registros'][0]['pk_usuario'];
    ?>
" />
        <input type="hidden" name="nome" value="<?php 
    echo $result['registros'][0]['nome'];
    ?>
" />
        <?php 
    echo View::gerarHashIdForm($result['registros'][0]['pk_usuario']);
    ?>
        <input type="submit" name="submit" value="Editar" class="submit" />
    </form>
    <br class="clear" />
    <?php 
}