<?php
/***************************************************************************
- * Copyright (C) 2003-2006 Polytechnique.org *
+ * Copyright (C) 2003-2007 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
function OrangeReq($_uid, $_sortie)
{
- global $globals;
$this->Validate($_uid, true, 'orange');
$this->promo_sortie = $_sortie;
$res = XDB::query("SELECT promo FROM auth_user_md5 WHERE user_id = {?}", $_uid);
}
// }}}
- // {{{ function get_request()
-
- function get_request($uid)
- {
- return parent::get_request($uid,'orange');
- }
-
- // }}}
// {{{ function formu()
function formu()
function _mail_body($isok)
{
- global $globals;
if ($isok) {
$res = " La demande de changement de promo de sortie que tu as demandée vient d'être effectuée.";
return $res;
function commit()
{
- global $globals;
-
XDB::execute("UPDATE auth_user_md5 set promo_sortie={?} WHERE user_id={?}",$this->promo_sortie ,$this->uid);
return true;
}