Subversion Repositories Applications.projet

Compare Revisions

Ignore whitespace Rev 401 → Rev 402

/trunk/classes/projetControleur.class.php
901,7 → 901,11
'mail' => PROJET_CHAMPS_MAIL, 'table' => PROJET_ANNUAIRE,
'nom'=> PROJET_CHAMPS_NOM, 'prenom' => PROJET_CHAMPS_PRENOM)) ;
$utilisateur->setId($this->_auth->getAuthData(PROJET_CHAMPS_ID)) ;
$this->notifierCoordinateurs(PROJET_NOTIFICATION_NOUVEAU_DOC, $utilisateur);
$this->notifierCoordinateurs(PROJET_NOTIFICATION_NOUVEAU_DOC,
$utilisateur,
 
'http://'.$this->_url->host.'/projets/'.$this->_id_projet.'/telechargement/'.$id_document.
' (' . $formulaire_document->getSubmitValue("document_nom") . ')');
} else {
return $formulaire_document->toHTML() ;
}
1663,7 → 1667,7
*
*/
 
function notifierCoordinateurs ($notification, $utilisateur) {
function notifierCoordinateurs ($notification, $utilisateur, $lien = false) {
 
include_once PROJET_CHEMIN_CLASSES.'projetTemplate.class.php';
 
1709,7 → 1713,12
$corps_mail = str_replace ('{nom}', $utilisateur->getInfo( 'nom'), $corps_mail);
$corps_mail = str_replace ('{prenom}', $utilisateur->getInfo( 'prenom'), $corps_mail);
$corps_mail = str_replace ('{nom_projet}', $projet->getTitre(), $corps_mail);
$corps_mail = str_replace ('{lien}', str_replace ('&', '&', $this->_url->getURL()), $corps_mail);
if($notification == PROJET_NOTIFICATION_NOUVEAU_DOC && $lien) {
$corps_mail = str_replace ('{lien}', $lien, $corps_mail);
}
else {
$corps_mail = str_replace ('{lien}', str_replace ('&', '&', $this->_url->getURL()), $corps_mail);
}
 
$entetes['From'] = PROJET_MAIL_ADMINISTRATEUR;
$entetes['To'] = '';