projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Can change the photo in validation form
[platal.git]
/
include
/
validations.inc.php
diff --git
a/include/validations.inc.php
b/include/validations.inc.php
index
514776e
..
4415ebc
100644
(file)
--- a/
include/validations.inc.php
+++ b/
include/validations.inc.php
@@
-67,6
+67,7
@@
class Validate
var $unique;
// enable the refuse button
var $refuse = true;
var $unique;
// enable the refuse button
var $refuse = true;
+
var $type;
var $comments = Array();
// the validations rules : comments for admins
var $type;
var $comments = Array();
// the validations rules : comments for admins
@@
-156,6
+157,16
@@
class Validate
return true;
}
return true;
}
+ // mise à jour des informations
+ if (Env::has('edit')) {
+ if ($this->handle_editor()) {
+ $this->update();
+ $this->trig('requête mise à jour');
+ return true;
+ }
+ return false;
+ }
+
// ajout d'un commentaire
if (Env::has('hold') && Env::has('comm')) {
$formid = Env::i('formid');
// ajout d'un commentaire
if (Env::has('hold') && Env::has('comm')) {
$formid = Env::i('formid');
@@
-172,12
+183,12
@@
class Validate
$mailer = new HermesMailer;
$mailer->setSubject("Commentaires de validation {$this->type}");
$mailer->setFrom("validation+{$this->type}@{$globals->mail->domain}");
$mailer = new HermesMailer;
$mailer->setSubject("Commentaires de validation {$this->type}");
$mailer->setFrom("validation+{$this->type}@{$globals->mail->domain}");
- $mailer->addTo("hotliners@
{$globals->mail->domain}
");
+ $mailer->addTo("hotliners@
staff.polytechnique.org
");
$body = "Validation {$this->type} pour {$this->prenom} {$this->nom}\n\n"
. S::v('bestalias')." a ajouté le commentaire :\n\n"
. Env::v('comm')."\n\n"
$body = "Validation {$this->type} pour {$this->prenom} {$this->nom}\n\n"
. S::v('bestalias')." a ajouté le commentaire :\n\n"
. Env::v('comm')."\n\n"
- . "cf la discussion sur : ".$globals->baseurl."/admin/valid
er.php
";
+ . "cf la discussion sur : ".$globals->baseurl."/admin/valid
ate
";
$mailer->setTxtBody(wordwrap($body));
$mailer->send();
$mailer->setTxtBody(wordwrap($body));
$mailer->send();
@@
-300,6
+311,13
@@
class Validate
{ return null; }
// }}}
{ return null; }
// }}}
+ // {{{ function editor()
+
+ /** nom du formulaire d'édition */
+ function editor()
+ { return null; }
+
+ // }}}
// {{{ function answers()
/** automatic answers table for this type of validation */
// {{{ function answers()
/** automatic answers table for this type of validation */