Beispiel #1
0
                            	<option value="MANHÃ">MANHA</option>
                            	<option value="TARDE">TARDE</option>
                            	<option value="NOITE">NOITE</option>
				<option value="INTEGRAL">INTEGRAL</option>
                            </select>
                        </div>
                        <div class="col-md-3">
                            <span class="label label-default">Série:</span>
                            <input name="usu_serie" type="text" class="form-control " size="10" maxlength="10" placeholder="EX: 1 ANO" autocomplete="off" required />
                    </div>
                        <div class="col-md-5">
                            <span class="label label-default">Escola:</span>
                            <select name="usu_ent_id" size="1" class="form-control dropdown" class="">
<?php 
$entidades = new sql('ent');
$sql = $entidades->selectTable(ALL, "", "{$entidades->data('nome')} ASC");
while ($campo = mysql_fetch_array($sql)) {
    ?>
                            	<option value="<?php 
    echo $campo["{$entidades->data('cod')}"];
    ?>
"><?php 
    echo $campo["{$entidades->data('nome')}"];
    ?>
</option>
<?php 
}
?>
                            </select>
                        </div>
                    </div>
Beispiel #2
0
<?php

/**
 * @author pedro
 * @copyright 2014
 */
include "topo.php";
$exportar = new exportarunico($_GET['id']);
$sql = new sql('usu');
$nome = mysql_fetch_assoc($sql->selectTable(ALL, $sql->data('id') . "=" . $_GET['id']));
$files = new files("c:/", $nome[$sql->data('nome')]);
$files->writeFile($exportar->conteudo[0]);
Beispiel #3
0
<?php

include "../system/defines.php";
function __autoload($class)
{
    $file = "../system/" . $class . ".php";
    if (file_exists($file)) {
        include $file;
    } else {
        include "../functions/" . $class . ".php";
    }
}
include "exportarDados.php";
$nome = $_GET['nome'];
$user = new sql('usu');
$sql = $user->selectTable(ALL, "{$user->data('nome')}='{$nome}'");
while ($alunoCampo = mysql_fetch_array($sql)) {
    $folder3x4 = "3x4/";
    $imagem = new carteirinha();
    $imagem->codForm($alunoCampo['usu_cod_form']);
    $imagem->endereco($alunoCampo['usu_endereco'] . " - " . $alunoCampo['usu_end_num']);
    $sqlescolaid = mysql_query("SELECT * FROM ent where ent_cod=" . $alunoCampo["usu_ent_id"] . "");
    $alunoCampoescolaid = mysql_fetch_assoc($sqlescolaid);
    $folderDados = "dados/" . $alunoCampoescolaid["ent_nome"];
    $imagem->escola($alunoCampoescolaid["ent_nome"]);
    $imagem->nascimento($alunoCampo['usu_dt_nascto']);
    if (strlen($alunoCampo['usu_nome']) > 37) {
        $imagem->nome($alunoCampo['usu_abreviatura_carteira']);
    } else {
        $imagem->nome($alunoCampo['usu_nome']);
    }
Beispiel #4
0
<?php

include 'topo.php';
$repetidos = new sql('usu');
$firthSQL = $repetidos->selectTable(ALL, '', "{$repetidos->data('nome')} ASC");
?>
<div id="list" class="container">

                      <table class="table table-bordered table-condensed">
                    <tr>
                        <td>Nome</td>
                        <td class="text-center">Editar</td>
                        <td class="text-center">Excluir</td>
                    </tr>
<?php 
while ($firth = mysql_fetch_array($firthSQL)) {
    $array[] = $firth['usu_cod_form'];
}
for ($i = 0; $i <= count($array); $i++) {
    $secoundSQL = $repetidos->selectTable(ALL, "usu_cod_form = '{$array[$i]}'");
    while ($secound = mysql_fetch_array($secoundSQL)) {
        ?>
                    
                    
                    <tr class="list">
                        <td><?php 
        echo $secound["usu_nome"];
        ?>
</td>
                        <td class="text-center"><a href="FormEditar.php?id=<?php 
        echo $secound["usu_id"];