");
/***** Button to view user's record card when:
- viewing public profile &&
@@ -2233,7 +2234,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
Act_LinkFormSubmit (Txt_View_record_card,NULL);
fprintf (Gbl.F.Out,"
"
"
"
+ " style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
"
"
"",
Gbl.Prefs.IconsURL,
@@ -2254,7 +2255,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
Act_LinkFormSubmit (Txt_Admin_user,NULL);
fprintf (Gbl.F.Out,"
"
"
"
+ " style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
"
"
"",
Gbl.Prefs.IconsURL,
@@ -2279,7 +2280,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
Act_LinkFormSubmit (Txt_View_works,ClassData);
fprintf (Gbl.F.Out,"
"
"
"
+ " style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
"
"
"",
Gbl.Prefs.IconsURL,
@@ -2298,7 +2299,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
Act_LinkFormSubmit (Txt_See_exams,ClassData);
fprintf (Gbl.F.Out,"
"
"
"
+ " style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
"
"
"",
Gbl.Prefs.IconsURL,
@@ -2315,7 +2316,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
Act_LinkFormSubmit (Txt_Attendance,ClassData);
fprintf (Gbl.F.Out,"
"
"
"
+ " style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
"
"
"",
Gbl.Prefs.IconsURL,
@@ -2335,13 +2336,47 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
Act_LinkFormSubmit (Gbl.Title,ClassData);
fprintf (Gbl.F.Out,"
"
"
"
+ " style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
"
"
"",
Gbl.Prefs.IconsURL,
Gbl.Title);
Act_FormEnd ();
+ /***** Button to follow / unfollow *****/
+ if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SYS_ADM)
+ if (!ItsMe)
+ {
+ if (Fol_CheckUsrIsFollowerOf (Gbl.Usrs.Me.UsrDat.UsrCod,UsrDat->UsrCod))
+ {
+ Act_FormStart (ActUnfUsr);
+ Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
+ Act_LinkFormSubmit ("Dejar de seguir",ClassData);
+ fprintf (Gbl.F.Out,"
"
+ "
"
+ "
"
+ "",
+ Gbl.Prefs.IconsURL,
+ "Dejar de seguir");
+ Act_FormEnd ();
+ }
+ else
+ {
+ Act_FormStart (ActFolUsr);
+ Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
+ Act_LinkFormSubmit ("Seguir",ClassData);
+ fprintf (Gbl.F.Out,"
"
+ "
"
+ "
"
+ "",
+ Gbl.Prefs.IconsURL,
+ "Seguir");
+ Act_FormEnd ();
+ }
+ }
+
fprintf (Gbl.F.Out,"