コード例 #1
0
ファイル: manage.php プロジェクト: claytongf/patr
                <div class="table-responsive col-lg-12 marginTop">
                    <table id="table-educando-inscricao" class="table table-hover table-striped table-condensed">
                        <thead>
                            <tr>
                                <th data-column-id="nome">Nome:</th>
                                <th data-column-id="matricula">Número de Matrícula:</th>
                                <th data-column-id="links" data-formatter="commands" data-order="asc">-</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php 
    $readEdu = new Read();
    $readEdu->ExeRead(DB_EDUCANDOS, "WHERE educando_status = 1 ORDER BY educando_nome ASC");
    foreach ($readEdu->getResult() as $edu) {
        extract($edu);
        $educando_inscrito = $inscricao->VerificaInscricao($educando_id, $turma['turma_alunos']) !== false ? 'Inscrever' : 'Trancar';
        if ($educando_inscrito == 'Inscrever') {
            ?>
                                <tr>
                                    <td><?php 
            echo $educando_nome;
            ?>
</td>
                                    <td><?php 
            echo $educando_numero_matricula;
            ?>
</td>
                                    <td><?php 
            echo $educando_inscrito . "," . $cursoId . "," . $turmaId . "," . $educando_id;
            ?>
</td>
コード例 #2
0
ファイル: groupmanage.php プロジェクト: claytongf/patr
                <div class="table-responsive col-lg-12 marginTop">
                    <table id="table-grupo-inscricao" class="table table-hover table-striped table-condensed">
                        <thead>
                            <tr>
                                <th data-column-id="nome">Nome:</th>
                                <th data-column-id="matricula">Número de Matrícula:</th>
                                <th data-column-id="links" data-formatter="commands" data-order="asc">-</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php 
    $readEdu = new Read();
    $readEdu->ExeRead(DB_EDUCANDOS, "WHERE educando_status = 1 ORDER BY educando_nome ASC");
    foreach ($readEdu->getResult() as $edu) {
        extract($edu);
        $educando_inscrito = $inscricao->VerificaInscricao($educando_id, $grupo['grupo_educandos']) !== false ? 'Inscrever' : 'Trancar';
        if ($educando_inscrito == 'Inscrever') {
            ?>
                                <tr>
                                    <td><?php 
            echo $educando_nome;
            ?>
</td>
                                    <td><?php 
            echo $educando_numero_matricula;
            ?>
</td>
                                    <td><?php 
            echo $educando_inscrito . "," . $grupoId . "," . $educando_id;
            ?>
</td>