<?php
#G
#=
/****************************************************************************
Copyright 2002, Daniel Deycard, Jacques Messines, Stéphanie Roussel, Jean-Marie Treins
(CATICE Académie de Bordeaux)

This file is part of GiBii/Melia.

GiBii/Melia is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

GiBii/Melia is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GiBii/Melia; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

****************************************************************************/

include("../include/vars_adm.php");
include("../include/util.inc.php");
include("../include/utiljs.php");
include("../include/eleves_liste.inc.php");

opensession("Admin");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>

<HEAD>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<TITLE>nom1</TITLE>
<BASE TARGET="form">
<link rel="stylesheet" href="<?php echo "../themes/".$etab_theme."/b2i.css" ?>">
</HEAD>

<BODY class="arialadmin">

<p class="titre_petit">Gérer les élèves</p>


<form name="nouvel_eleve" method="post" target="form" action="eleves_ajout1.php?id=0">
    <p align="center"><input type="submit" class="coul" name="nouveau" value="Ajouter un élève"></p>
</form>


<?php



print "<p class=\"arial_petit\">\n";

$sql="select eleves.*,divcod, divgro
             from eleves,lien_eleves_classes, classes
             where eleves.eleve_id=lien_eleves_classes.eleve_id
             and lien_eleves_classes.classe_id=classes.classe_id
             and eleves.annee=$sess_ascol
             and eleves.etab_id=$etab_id
             and eleves.tag<=0
             ";            //pas de order by ni de ; : c'est fait dans liste_eleves_tries
                           //pas d'incertains
$cible='eleves_form.php?id=0';

if (!isset($tripar)) $tripar="";
liste_eleves_triee($tripar,$sql,$cible, "");

?>
</p>
</BODY>
</HTML>