$eid);
$eid = $id;
}
- $evt = XDB::fetchOneAssoc('SELECT ge.uid, ge.intitule, ge.descriptif, ge.debut, ge.fin, ge.deadline_inscription, ge.accept_nonmembre, ge.paiement_id
+ $evt = XDB::fetchOneAssoc('SELECT ge.uid, ge.intitule, ge.descriptif, ge.debut, ge.fin, ge.deadline_inscription, ge.accept_nonmembre, ge.noinvite, ge.paiement_id
FROM group_events as ge
WHERE eid = {?}',
$eid);
// compares new and old subscription
if ($old_subs[$item_id]['nb'] != $subs[$item_id]) {
if ($subs[$item_id] != 0) {
- echo "je m'inscris ";
XDB::execute('INSERT INTO group_event_participants (eid, uid, item_id, nb, flags, paid)
VALUES ({?}, {?}, {?}, {?}, {?}, {?})
ON DUPLICATE KEY UPDATE nb = VALUES(nb), flags = VALUES(flags), paid = VALUES(paid)',
{assign var=nb value=$subs.$item_id.nb}
<label><input type="radio" name="moment[{$item_id}]" value="0"
{if !$nb}checked="checked"{/if}/>Je ne m'inscris pas</label><br />
- {if $event.accept_nonmembre}
+ {if $event.noinvite}
<label><input type="radio" name="moment[{$item_id}]" value="1"
{if $nb eq 1}checked="checked"{/if}/>Je m'inscris</label>
{else}