promo_sortie = $_sortie; $res = XDB::query("SELECT entry_year FROM profile_education WHERE uid = {?} AND FIND_IN_SET('primary', flags)", $_uid); $this->promo = $res->fetchOneCell(); } // }}} // {{{ function formu() public function formu() { return 'include/form.valid.orange.tpl'; } // }}} // {{{ function _mail_subj() protected function _mail_subj() { return "[Polytechnique.org/ORANGE] Changement de promo de sortie"; } // }}} // {{{ function _mail_body protected function _mail_body($isok) { if ($isok) { return " La demande de changement de promotion de sortie que tu as demandée vient d'être effectuée. " . "Si tu le souhaites, tu peux maintenant modifier l'affichage de ta promotion sur le site sur la page suivante : " . "https://www.polytechnique.org/profile/edit"; } else { return " La demande de changement de promotion de sortie tu avais faite a été refusée."; } } // }}} // {{{ function commit() public function commit() { XDB::execute("UPDATE profile_education SET grad_year = {?} WHERE uid = {?} AND FIND_IN_SET('primary', flags)", $this->promo_sortie, $this->uid); return true; } // }}} } // }}} // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>