Commit 33ecb891 authored by BenC's avatar BenC
Browse files

Ajout adresse jabber

parent 82812f80
......@@ -260,6 +260,11 @@ div.gallery div.galitem
top: 158px;
}
.userinfov2 a.mailperso
{
display:none;
}
.userinfov2 a.fiche
{
display:block;
......
......@@ -262,6 +262,14 @@ div.userfullinfo a.mailperso
top: 0px;
}
div.userfullinfo a.jabber
{
display:block;
position:absolute;
right:303px;
top: 0px;
}
div.userfullinfo a.edt
{
display:block;
......
......@@ -610,6 +610,9 @@ class userinfov2 extends stdcontents
if ( $user->email && $user->email != $user->email_utbm )
$this->buffer .= "<a class=\"mailperso\" href=\"mailto:".htmlentities($user->email,ENT_COMPAT,"UTF-8")."\"><img src=\"../images/email_perso.png\" alt=\"Email Perso\" title=\"Email Perso\"></a>";
if ( $user->jabber )
$this->buffer .= "<a class=\"jabber\" href=\"xmpp:".htmlentities($user->jabber,ENT_COMPAT,"UTF-8")."\"><img src=\"../images/jabber.png\" alt=\"Jabber\" title=\"Jabber\"></a>;
if ( $display != "full" )
$this->buffer .= "<a class=\"fiche\" href=\"".$topdir.$urldest."?id_utilisateur=".$user->id."\"><img src=\"../images/actions/view.png\" alt=\"Fiche\" title=\"Fiche\"></a>";
......
......@@ -119,6 +119,7 @@ class utilisateur extends stdentity
var $hab_elect;
var $afps;
var $sst;
var $jabber;
var $_grps;
......@@ -443,6 +444,7 @@ class utilisateur extends stdentity
$this->afps = $row["afps_utl"];
$this->sst = $row["sst_utl"];
$this->site_web = $row['site_web'];
$this->jabber = $row['jabber_utl'];
}
function _load_all ( $row )
......
......@@ -172,6 +172,16 @@ elseif ( $_REQUEST["action"] == "saveinfos" && $can_edit )
$user->afps = isset($_REQUEST['afps']);
$user->sst = isset($_REQUEST['sst']);
if ( !CheckEmail($_REQUEST["jabber"], 3) )
{
$ErreurMail="Adresse jabber invalide.";
$_REQUEST["page"] = "edit";
}
else
{
$user->jabber = isset($_REQUEST['jabber']);
}
$req = new requete($site->db,"SELECT mmt_instru_musique.id_instru_musique, ".
"utl_joue_instru.id_utilisateur ".
"FROM mmt_instru_musique ".
......@@ -569,6 +579,8 @@ if ( $_REQUEST["page"] == "edit" && $can_edit )
else // seul root a le droit de modifier l'alias s'il est déjà renseigné
$frm->add_text_field("alias","Alias",$user->alias,false,false,false,$can_edit_alias);
$frm->add_text_field("jabber","Adresse Jabber",$user->jabber);
if ( $user->utbm )
$frm->add_text_field("surnom","Surnom (utbm)",$user->surnom);
$frm->add_select_field("sexe","Sexe",array(1=>"Homme",2=>"Femme"),$user->sexe,false,false,($site->user->is_in_group("gestion_ae") || $site->user->is_asso_role(27,1)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment