Commit ee68916c authored by Feu's avatar Feu
Browse files

nettoyage jetons

parent ef52cd16
......@@ -33,8 +33,15 @@ class pgcategory extends stdentity
var $id_pgcategory_parent;
var $nom;
var $description;
var $ordre;
var $couleur_bordure_web;
var $couleur_titre_web;
var $couleur_contraste_web;
var $couleur_bordure_print;
var $couleur_titre_print;
var $couleur_contraste_print;
}
......@@ -52,6 +59,8 @@ class pgfiche extends geopoint
var $numrue;
var $adressepostal;
var $placesurcarte;
var $date_maj;
var $date_validite;
......@@ -60,12 +69,17 @@ class pgfiche extends geopoint
}
function add_tarif ( $id_typetarif, $min_tarif, $max_tarif, $date_maj=null, $date_validite=null )
function add_tarif ( $id_typetarif, $min_tarif, $max_tarif, $commentaire, $date_maj=null, $date_validite=null )
{
}
function add_reduction ( $id_typereduction, $valeur, $unite, $commentaire, $date_maj=null, $date_validite=null )
{
}
function add_reduction ( $id_typereduction, $valeur, $unite, $date_maj=null, $date_validite=null )
function add_service ( $id_service, $commentaire, $date_maj=null, $date_validite=null )
{
}
......
......@@ -37,7 +37,7 @@ class typereduction extends stdentity
class typetarif extends stdentity
{
var $nom;
var $description;
}
......
<?php
$topdir="../";
require_once($topdir."include/mysql.inc.php");
require_once($topdir."include/mysqlae.inc.php");
$dbrw = new mysqlae("rw");
$req = new requete($dbrw, "SELECT *
FROM `mc_jeton`
LEFT JOIN mc_jeton_utilisateur ON ( mc_jeton.id_jeton = mc_jeton_utilisateur.id_jeton
AND retour_jeton IS NULL )
ORDER BY id_salle, type_jeton, nom_jeton, id_utilisateur");
while ( $row = $req->get_row() )
{
if ( isset($done[$row['id_salle']][$row['type_jeton']][$row['nom_jeton']]))
{
echo "Doublons !<br/>\n";
if ( !$row['id_utilisateur'] )
new delete($dbrw,"mc_jeton",array("id_jeton"=>$row['id_jeton']));
}
else
$done[$row['id_salle']][$row['type_jeton']][$row['nom_jeton']]=1;
}
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment