$page->trigError("Tu dois choisir un nombre d'invités correct !");
return;
}
- $subs[$j] = 1 + $pers[$j];
+ $subs[$j] = $pers[$j];
}
}
$participants = get_event_participants($evt, $item_id, $tri);
$title = 'Nom;Prénom;Promotion';
+ if ($admin) {
+ $title .=';Société;Poste';
+ }
if ($all) {
foreach ($evt['moments'] as $moment) {
$title .= ';' . $moment['titre'];
$title .= 'Payé';
} else {
$title .= ';Nombre';
- }
+ }
echo utf8_decode($title) . "\n";
if ($participants) {
foreach ($participants as $participant) {
$user = $participant['user'];
$line = $user->lastName() . ';' . $user->firstName() . ';' . $user->promo();
+ if ($admin && $user->hasProfile()) {
+ $line .= ';' . $user->profile()->getMainJob()->company->name . ';' . $user->profile()->getMainJob()->description;
+ } else {
+ $line .= ';;';
+ }
if ($all) {
foreach ($evt['moments'] as $moment) {
$line .= ';' . $participant[$moment['item_id']];
// request for a new payment
if (Post::v('paiement_id') == -1 && $money_defaut >= 0) {
$p = new PayReq(S::user(),
- Post::v('intitule')." - ".$globals->asso('nom'),
+ $globals->asso('nom')." - ".Post::v('intitule'),
Post::v('site'), $money_defaut,
Post::v('confirmation'), 0, 999,
$globals->asso('id'), $eid, Post::v('payment_public') == 'yes');
<label><input type="radio" name="moment[{$m.item_id}]" value="1"
{if $m.nb eq 1}checked="checked"{/if}/>Je m'inscris</label>
{else}
- <label><input type="radio" name="moment[{$m.item_id}]" value="1"
- {if $m.nb eq 1}checked="checked"{/if}/>Je m'inscris seul</label><br />
<label><input type="radio" name="moment[{$m.item_id}]" value="2" id="avec"
- {if $m.nb > 1}checked="checked"{/if}/>Je m'inscris moi et</label>
- <input size="2" name="personnes[{$m.item_id}]"
- value="{if $m.nb > 1}{math equation='x - 1' x=$m.nb}{else}1{/if}"/><label for="avec"> invités</label>
+ {if $m.nb > 0}checked="checked"{/if}/>J'inscris</label>
+ <input size="2" name="personnes[{$m.item_id}]"
+ value="{if $m.nb > 1}{$m.nb}{else}1{/if}"/><label for="avec"> personnes</label>
{/if}
{else}
{if !$m.nb}
Je ne viendrai pas.
- {elseif $m.nb eq 1}
- Je viendrai{if !$event.noinvite} seul{/if}.
{else}
- Je viendrai moi et {$m.nb} invité{if $m.nb > 2}s{/if}.
+ J'ai inscrit {$m.nb} personne{if $m.nb > 1}s{/if}.
{/if}
{/if}
</td>