* * This program 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. * * This program 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 this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * or see http://www.gnu.org/ * * $Id$ * $Source$ * */ function print_liste_field_titre($name, $file, $field, $begin="") { global $conf; print $name." "; print ''; print ''; print ''; print ''; } function print_titre($titre) { global $conf; print ''; print ''; print '
'.$titre.'
'; } /* * * */ function print_barre_liste($titre,$page,$file) { global $conf; print ''; print ''; print '
'.$titre.'
'; if ($page > 0) { print 'Page précédente'; } print 'Page suivante'; print '

'; } /* * * */ function print_oui_non($value) { if ($value) { print '

$sql


"; return 1; } print ""; print ""; print ""; print ""; $num = $db->num_rows(); $i = 0; $tag = 1; while ( $i < $num) { $obj = $db->fetch_object( $i); $tag = !$tag; print "\n"; print "\n"; $i++; } print "
base $basenamelibelle
$obj->date$obj->libelle$obj->nb
"; $db->free(); $db->close(); } function tab_count($basename,$bc1,$bc2,$ftc) { $db = pg_Connect("","","","","$basename"); if (!$db) { echo "Pas de connexion a la base\n"; exit ; } $sql="SELECT count(*) AS nbcv from candidat WHERE active=1"; $result = $db->query($sql); if (!$result) { print "Erreur SELECT

$sql


"; return 1; } print "
"; print ""; print ""; print ""; print ""; $nbcv = $db->result( $i, "nbcv"); print "\n"; print "\n"; print "\n"; $db->free(); $sql="SELECT count(*) AS nbcv from offre WHERE active=1"; $result = $db->query($sql); if (!$result) { print "Erreur SELECT

$sql


"; } $nbcv = $db->result( $i, "nbcv"); print ""; print ""; print ""; $db->free(); $sql="SELECT count(*) AS nbcv from candidat WHERE active=0"; $result = $db->query($sql); if (!$result) { print "Erreur SELECT

$sql


"; } $nbcv = $db->result( $i, "nbcv"); print "\n"; print ""; print ""; $db->free(); $sql="SELECT count(*) AS nbcv from offre WHERE active=0"; $result = $db->query($sql); if (!$result) { print "Erreur SELECT

$sql


"; } $nbcv = $db->result( $i, "nbcv"); print "\n"; print "\n"; print "\n"; $db->free(); $sql="SELECT count(*) AS nbsoc from logsoc"; $result = $db->query($sql); if (!$result) { print "Erreur SELECT

$sql


"; } $nbsoc = $db->result( $i, "nbsoc"); print "\n"; print ""; print ""; print "
base $basenamelibelle
$ftc Nombre de CV$ftc $nbcv
$ftc Nombre d'offre$ftc $nbcv
$ftc Nombre de CV inactifs$ftc $nbcv
$ftc Nombre d'offres inactives$ftc $nbcv
$ftc Nombre de logins societes$ftc $nbsoc
"; $db->close(); } ?>