================================================================================
+VERSION 1.1.8 XX XX XXXX
+
+================================================================================
VERSION 1.1.7 18 02 2013
* Payments:
-Subproject commit 1256fe0522a97b7a8ed8a1e12a22378cb6503fbc
+Subproject commit a315ff7281b69e71aca8670df8c8b6063dddee9d
protected function buildCondition(Watch $watch)
{
+ $not_dead = new PFC_Not(new UFC_Dead());
$select_date = new PFC_OR(new UFC_Birthday('=', time()),
new PFC_And(new UFC_Birthday('<=', time() + self::WATCH_LIMIT),
new UFC_Birthday('>', $watch->date() + self::WATCH_LIMIT)));
new UFC_Promo('<=', $profile->mainGrade(), $profile->yearpromo() + 1)),
$watch->groupCondition());
}
- return new PFC_And($select_date, $cond);
+ return new PFC_And($not_dead, $select_date, $cond);
}
public function getOrder()
$table_editor->add_sort_field('id', true);
$table_editor->describe('ts_initiated', 'ts_initiated', true, false);
$table_editor->describe('commission', 'commission', true, false);
- $table_editor->describe('pkey', 'pkey', true, false);
- $table_editor->describe('comment', 'comment', true, false);
+ $table_editor->describe('pkey', 'pkey', true, true);
+ $table_editor->describe('comment', 'comment', true, true);
$table_editor->describe('recon_id', 'recon_id', true, false);
- $table_editor->describe('display', 'display', true, false);
+ $table_editor->describe('display', 'display', true, true);
$table_editor->apply($page, $action, $id);
$page->assign('addonly', 'addonly'); // don't show modification features, only add feature
}
if (!S::user()->checkPerms(PERMS_USER)) {
$where .= XDB::format(' AND mode = {?}', self::MODE_ALL);
}
- $sql = 'SELECT id, title, end, mode
+ $sql = 'SELECT id, title, uid, end, mode
FROM surveys
WHERE '.$where.'
ORDER BY end DESC;';
var form = document.forms.form_mail;
var toc = "";
var ccc = "";
- for (var i = 0 ; i < form['to_contacts[]'].length ; ++i) {
- toc += form['to_contacts[]'].options[i].value + ";";
- }
- for (var i = 0 ; i < form['cc_contacts[]'].length ; ++i) {
- ccc += form['cc_contacts[]'].options[i].value + ";";
+ if (form['to_contacts[]'] != undefined) {
+ for (var i = 0 ; i < form['to_contacts[]'].length ; ++i) {
+ toc += form['to_contacts[]'].options[i].value + ";";
+ }
+ for (var i = 0 ; i < form['cc_contacts[]'].length ; ++i) {
+ ccc += form['cc_contacts[]'].options[i].value + ";";
+ }
}
$.xpost("emails/send",
{ save: true,
</p>
<ul>
<li><code>1990</code> : signifie appartient à la promotion 1990 ;</li>
- <li><code>1990-2000</code> : signifie sur la promotion 1990 à 2000 ;</li>
- <li><code><1990</code> : signifie promotions inférieures ou égales à 1990 ;</li>
- <li><code>>1990</code> : signifie promotions supérieures ou égales à 1990.</li>
+ <li><code>1990-2000</code> : signifie sur les promotions 1990 à 2000 ;</li>
+ <li><code><1990</code> : signifie promotions antérieures ou égales à 1990 ;</li>
+ <li><code>>1990</code> : signifie promotions postérieures ou égales à 1990.</li>
</ul>
<p>
Ainsi, rechercher tous les "Dupont" sur les promotions 1980 à 1990 et sur la promotion 2000 se fait avec la recherche :
{else}
Camarades correspondants :
<select name="userid" onchange="updateSuggestions('{$platal->ns}', this.value)">
- <option value="0" {if $users|@count neq 1}selected="selected"{/if}> </option>
+ <option value="0" {if $users|@count neq 1}selected="selected"{/if}>Sélectionne le camarade correspondant</option>
{foreach item=user from=$users}
<option value="{$user->id()}" {if $users|@count == 1}selected="selected"{/if}>{profile user=$user link=false promo=true}</option>
{/foreach}