#!/usr/bin/perl
###################################################################
## Script ecrit par : Berger Christophe ##
## Modifier par : Sesko Yves le 24/04/2001 ##
## Copyright Berger Christophe ##
## Script soumis a la licence GNU ##
###################################################################
## Version: 2.2 - Derniere modification: 10 juin 2001 ##
###################################################################
require 'cgi-lib.cgi';
require "annonces.cfg";
&ReadParse;
&print_form if ($ENV{'QUERY_STRING'} eq 'ajout');
&print_form_modif if ($ENV{'QUERY_STRING'} eq 'modif');
&execmodif if ($in{action} eq 'modifier');
&modif if ($in{action} eq 'entrermodif');
&ajout if ($in{action} eq 'ajouter');
&annonces if ($in{rub});
&exec_search if ($in{execsearch});
&details if ($in{ann});
&rubriques;
sub rubriques {open(BASE,"$config{dossierlogs}/base.txt");
if ($config{flock}) {flock BASE, 2;}
@BASE=
| [ Retour ] | [ Ajouter une annonce ] | [ Modifier une annonce ] |
Catégories disponibles:Nombre d'annonces total: $nombre
|
| [ Retour ] | [ Ajouter une annonce ] | [ Modifier une annonce ] | ||
Il n'y a pas d'annonces dans cette catégorie | ||||
Affichage des annonces$nombre annonces dans '$activerub'visualisation de $debut à $fin | ||||
| Département (date) | Titre de l'annonce | |||
| $dep (le $date) | $titre | |||
~; if ($url) {print qq~Site web: $url~;} if ($photo) {print qq~
| ||||
| $lienprecedent $liensuite | ||||
| [ Index ] | [ Ajouter une annonce ] | [ Modifier une annonce ] |
Détails de cette annonce:De: $nom, le $date ~; if ($url) {print qq~Site web: $url~;} print qq~ Département/Pays: $dep ~; if ($photo) {print qq~
mail : $email~;} print qq~ |
| [ Retour ] | [ Ajouter une annonce ] | [ Modifier une annonce ] | ||
aucune annonce ne correspond à vos critères de recherche. | ||||
Affichage des annonces$nombre annonces correspondent à votre recherchevisualisation de $debut à $fin | ||||
| Département (date) | Titre de l'annonce | |||
| $dep (le $date) | $titre | |||
~; if ($url) {print qq~Site web: $url~;} if ($photo) {print qq~
| ||||
| $lienprecedent $liensuite | ||||
Votre annonce a été ajoutée avec succès! Vous pouvez maintenant aller la voir: rubrique "$in{rubrique}" $taillephoto. |