diff --git a/css/swad18.3.css b/css/swad18.4.css
similarity index 99%
rename from css/swad18.3.css
rename to css/swad18.4.css
index 79fc6d35..fa3bee1f 100644
--- a/css/swad18.3.css
+++ b/css/swad18.4.css
@@ -76,10 +76,6 @@ address
{
font-style: normal;
}
-hr.WHITE_SEPARA {height:0; border-top:0; border-bottom:#707070 dotted 1px;}
-hr.GREY_SEPARA {height:0; border-top:0; border-bottom:#707070 dotted 1px;}
-hr.BLUE_SEPARA {height:0; border-top:0; border-bottom:#4D88A1 dotted 1px;}
-hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;}
/*********************** Text decoration of links ****************************/
a
@@ -3275,14 +3271,6 @@ a.PAG:hover, .PAG_CUR
max-width:500px;
}
-/********************* Used to align buttons in account forms ****************/
-.FORM_ACCOUNT
- {
- display:inline-block;
- box-sizing:border-box;
- min-width:312px;
- }
-
/************* Forms to edit institution, centre, degree, course *************/
.CODE
{
diff --git a/swad_ID.c b/swad_ID.c
index ca0701df..305232cc 100644
--- a/swad_ID.c
+++ b/swad_ID.c
@@ -52,6 +52,8 @@ extern struct Globals Gbl;
#define ID_MAX_IDS_PER_USER 3 // Maximum number of IDs per user
+#define ID_ID_SECTION_ID "id_section"
+
/*****************************************************************************/
/******************************* Private types *******************************/
/*****************************************************************************/
@@ -69,6 +71,9 @@ static bool ID_CheckIfUsrIDIsValidUsingMinDigits (const char *UsrID,unsigned Min
static void ID_PutLinkToConfirmID (struct UsrData *UsrDat,unsigned NumID,
const char *Anchor);
+static void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,
+ bool ItsMe,bool IShouldFillID);
+
static void ID_RemoveUsrID (const struct UsrData *UsrDat,bool ItsMe);
static bool ID_CheckIfConfirmed (long UsrCod,const char *UsrID);
static void ID_RemoveUsrIDFromDB (long UsrCod,const char *UsrID);
@@ -467,7 +472,7 @@ static void ID_PutLinkToConfirmID (struct UsrData *UsrDat,unsigned NumID,
NextAction = ActCnfID_Oth;
break;
}
- Act_FormStartAnchor (NextAction,Anchor);
+ Act_StartFormAnchor (NextAction,Anchor);
if (Gbl.Action.Original != ActUnk)
{
Par_PutHiddenParamLong ("OriginalActCod",
@@ -494,7 +499,7 @@ static void ID_PutLinkToConfirmID (struct UsrData *UsrDat,unsigned NumID,
The_ClassFormBold[Gbl.Prefs.Theme],NULL);
/***** End form *****/
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
@@ -544,7 +549,6 @@ void ID_ShowFormOthIDs (void)
{
extern const char *Txt_ID;
extern const char *Txt_User_not_found_or_you_do_not_have_permission_;
- bool ItsMe;
/***** Get user whose password must be changed *****/
if (Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ())
@@ -560,37 +564,106 @@ void ID_ShowFormOthIDs (void)
&Gbl.Usrs.Other.UsrDat,NULL);
/***** Form with the user's ID *****/
- Tbl_StartTableWide (2);
- ItsMe = Usr_ItsMe (Gbl.Usrs.Other.UsrDat.UsrCod);
- ID_ShowFormChangeUsrID (&Gbl.Usrs.Other.UsrDat,ItsMe);
- Tbl_EndTable ();
+ ID_ShowFormChangeOtherUsrID ();
/***** End box *****/
Box_EndBox ();
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
+ {
+ Gbl.Alert.Type = Ale_WARNING;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
+ sprintf (Gbl.Alert.Txt,"%s",
+ Txt_User_not_found_or_you_do_not_have_permission_);
+ }
}
else // User not found
- Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
+ {
+ Gbl.Alert.Type = Ale_WARNING;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
+ sprintf (Gbl.Alert.Txt,"%s",
+ Txt_User_not_found_or_you_do_not_have_permission_);
+ }
}
/*****************************************************************************/
/*********************** Show form to change my user's ID ********************/
/*****************************************************************************/
-void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
+void ID_ShowFormChangeMyID (bool IShouldFillID)
{
- extern const char *The_ClassForm[The_NUM_THEMES];
+ extern const char *Hlp_PROFILE_Account;
extern const char *Txt_ID;
+ char StrRecordWidth[10 + 1];
+
+ /***** Start section *****/
+ Lay_StartSection (ID_ID_SECTION_ID);
+
+ /***** Start box *****/
+ sprintf (StrRecordWidth,"%upx",Rec_RECORD_WIDTH);
+ Box_StartBox (StrRecordWidth,Txt_ID,Acc_PutLinkToRemoveMyAccount,
+ Hlp_PROFILE_Account,Box_NOT_CLOSABLE);
+
+ /***** Show form to change ID *****/
+ ID_ShowFormChangeUsrID (&Gbl.Usrs.Me.UsrDat,
+ true, // ItsMe
+ IShouldFillID);
+
+ /***** End box *****/
+ Box_EndBox ();
+
+ /***** End section *****/
+ Lay_EndSection ();
+ }
+
+/*****************************************************************************/
+/*********************** Show form to change my user's ID ********************/
+/*****************************************************************************/
+
+void ID_ShowFormChangeOtherUsrID (void)
+ {
+ /***** Start section *****/
+ Lay_StartSection (ID_ID_SECTION_ID);
+
+ /***** Show form to change ID *****/
+ ID_ShowFormChangeUsrID (&Gbl.Usrs.Other.UsrDat,
+ false, // ItsMe
+ false); // IShouldFillID
+
+ /***** End section *****/
+ Lay_EndSection ();
+ }
+
+/*****************************************************************************/
+/*********************** Show form to change my user's ID ********************/
+/*****************************************************************************/
+
+static void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,
+ bool ItsMe,bool IShouldFillID)
+ {
+ extern const char *Hlp_PROFILE_Account;
+ extern const char *The_ClassForm[The_NUM_THEMES];
+ extern const char *Txt_Please_fill_in_your_ID;
extern const char *Txt_ID_X_confirmed;
extern const char *Txt_ID_X_not_confirmed;
+ extern const char *Txt_ID;
extern const char *Txt_Another_ID;
extern const char *Txt_Add_this_ID;
extern const char *Txt_The_ID_is_used_in_order_to_facilitate_;
unsigned NumID;
Act_Action_t NextAction;
+ /***** Show possible alert *****/
+ if (Gbl.Alert.Section == (const char *) ID_ID_SECTION_ID)
+ Ale_ShowAlert (Gbl.Alert.Type,Gbl.Alert.Txt);
+
+ /***** Help message *****/
+ if (IShouldFillID)
+ Ale_ShowAlert (Ale_WARNING,Txt_Please_fill_in_your_ID);
+
+ /***** Start table *****/
+ Tbl_StartTableWide (2);
+
/***** List existing user's IDs *****/
for (NumID = 0;
NumID < UsrDat->IDs.Num;
@@ -598,10 +671,12 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
{
if (NumID == 0)
fprintf (Gbl.F.Out,"
"
- ""
+ " | "
+ ""
" | "
- "",
+ " | ",
The_ClassForm[Gbl.Prefs.Theme],Txt_ID);
else // NumID >= 1
fprintf (Gbl.F.Out," ");
@@ -615,7 +690,7 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
{
/* Form to remove user's ID */
if (ItsMe)
- Act_FormStart (ActRemID_Me);
+ Act_StartFormAnchor (ActRemID_Me,ID_ID_SECTION_ID);
else
{
switch (UsrDat->Roles.InCurrentCrs.Role)
@@ -631,13 +706,14 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
NextAction = ActRemID_Oth;
break;
}
- Act_FormStart (NextAction);
+ Act_StartFormAnchor (NextAction,ID_ID_SECTION_ID);
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
}
- fprintf (Gbl.F.Out,"",
+ fprintf (Gbl.F.Out,"",
UsrDat->IDs.List[NumID].ID);
Ico_PutIconRemove ();
- Act_FormEnd ();
+ Act_EndForm ();
}
}
@@ -646,7 +722,7 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
UsrDat->IDs.List[NumID].Confirmed ? Txt_ID_X_confirmed :
Txt_ID_X_not_confirmed,
UsrDat->IDs.List[NumID].ID);
- fprintf (Gbl.F.Out,"%s",
+ fprintf (Gbl.F.Out,"%s",
UsrDat->IDs.List[NumID].Confirmed ? "USR_ID_C" :
"USR_ID_NC",
Gbl.Title,
@@ -679,15 +755,15 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
/***** Form to enter new user's ID *****/
fprintf (Gbl.F.Out," |
"
- ""
+ " | "
""
" | "
- "",
+ " | ",
The_ClassForm[Gbl.Prefs.Theme],
UsrDat->IDs.Num ? Txt_Another_ID : // A new user's ID
Txt_ID); // The first user's ID
if (ItsMe)
- Act_FormStart (ActNewIDMe);
+ Act_StartFormAnchor (ActNewIDMe,ID_ID_SECTION_ID);
else
{
switch (UsrDat->Roles.InCurrentCrs.Role)
@@ -703,21 +779,23 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
NextAction = ActNewID_Oth;
break;
}
- Act_FormStart (NextAction);
+ Act_StartFormAnchor (NextAction,ID_ID_SECTION_ID);
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
}
- fprintf (Gbl.F.Out," "
- ""
- " ",
+ " ",
ID_MAX_BYTES_USR_ID,
UsrDat->IDs.Num ? UsrDat->IDs.List[UsrDat->IDs.Num - 1].ID :
""); // Show the most recent ID
Btn_PutCreateButtonInline (Txt_Add_this_ID);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out," | "
"
");
}
+
+ /***** End table *****/
+ Tbl_EndTable ();
}
/*****************************************************************************/
@@ -734,7 +812,7 @@ void ID_RemoveMyUsrID (void)
ID_GetListIDsFromUsrCod (&Gbl.Usrs.Me.UsrDat);
/***** Show my account again *****/
- Acc_ShowFormChgMyAccountAndPwd ();
+ Acc_ShowFormChgMyAccount ();
}
/*****************************************************************************/
@@ -756,12 +834,16 @@ void ID_RemoveOtherUsrID (void)
/***** Update list of IDs *****/
ID_GetListIDsFromUsrCod (&Gbl.Usrs.Other.UsrDat);
- /***** Show user's record *****/
- Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,
- &Gbl.Usrs.Other.UsrDat,NULL);
+ /***** Show form again *****/
+ ID_ShowFormOthIDs ();
}
else // User not found
- Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
+ {
+ Gbl.Alert.Type = Ale_WARNING;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
+ sprintf (Gbl.Alert.Txt,"%s",
+ Txt_User_not_found_or_you_do_not_have_permission_);
+ }
}
/*****************************************************************************/
@@ -798,14 +880,24 @@ static void ID_RemoveUsrID (const struct UsrData *UsrDat,bool ItsMe)
ID_RemoveUsrIDFromDB (UsrDat->UsrCod,UsrID);
/***** Show message *****/
+ Gbl.Alert.Type = Ale_SUCCESS;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
sprintf (Gbl.Alert.Txt,Txt_ID_X_removed,UsrID);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_You_can_not_delete_this_ID);
+ {
+ Gbl.Alert.Type = Ale_WARNING;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
+ sprintf (Gbl.Alert.Txt,"%s",Txt_You_can_not_delete_this_ID);
+ }
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
+ {
+ Gbl.Alert.Type = Ale_WARNING;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
+ sprintf (Gbl.Alert.Txt,"%s",
+ Txt_User_not_found_or_you_do_not_have_permission_);
+ }
}
/*****************************************************************************/
@@ -852,7 +944,7 @@ void ID_NewMyUsrID (void)
ID_GetListIDsFromUsrCod (&Gbl.Usrs.Me.UsrDat);
/***** Show my account again *****/
- Acc_ShowFormChgMyAccountAndPwd ();
+ Acc_ShowFormChgMyAccount ();
}
/*****************************************************************************/
@@ -874,12 +966,16 @@ void ID_NewOtherUsrID (void)
/***** Update list of IDs *****/
ID_GetListIDsFromUsrCod (&Gbl.Usrs.Other.UsrDat);
- /***** Show user's record *****/
- Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,
- &Gbl.Usrs.Other.UsrDat,NULL);
+ /***** Show form again *****/
+ ID_ShowFormOthIDs ();
}
else // User not found
- Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
+ {
+ Gbl.Alert.Type = Ale_WARNING;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
+ sprintf (Gbl.Alert.Txt,"%s",
+ Txt_User_not_found_or_you_do_not_have_permission_);
+ }
}
/*****************************************************************************/
@@ -898,7 +994,6 @@ static void ID_NewUsrID (const struct UsrData *UsrDat,bool ItsMe)
unsigned NumID;
bool AlreadyExists;
unsigned NumIDFound = 0; // Initialized to avoid warning
- bool Error = false;
if (Usr_ICanEditOtherUsr (UsrDat))
{
@@ -924,7 +1019,8 @@ static void ID_NewUsrID (const struct UsrData *UsrDat,bool ItsMe)
{
if (ItsMe || UsrDat->IDs.List[NumIDFound].Confirmed)
{
- Error = true;
+ Gbl.Alert.Type = Ale_WARNING;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
sprintf (Gbl.Alert.Txt,Txt_The_ID_X_matches_one_of_the_existing,
NewID);
}
@@ -932,13 +1028,17 @@ static void ID_NewUsrID (const struct UsrData *UsrDat,bool ItsMe)
{
/***** Mark this ID as confirmed *****/
ID_ConfirmUsrID (UsrDat,NewID);
+
+ Gbl.Alert.Type = Ale_SUCCESS;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
sprintf (Gbl.Alert.Txt,Txt_The_ID_X_has_been_confirmed,
NewID);
}
}
else if (UsrDat->IDs.Num >= ID_MAX_IDS_PER_USER)
{
- Error = true;
+ Gbl.Alert.Type = Ale_WARNING;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
sprintf (Gbl.Alert.Txt,Txt_A_user_can_not_have_more_than_X_IDs,
ID_MAX_IDS_PER_USER);
}
@@ -949,23 +1049,26 @@ static void ID_NewUsrID (const struct UsrData *UsrDat,bool ItsMe)
// Not me ==> ID confirmed
ID_InsertANewUsrIDInDB (UsrDat->UsrCod,NewID,!ItsMe);
+ Gbl.Alert.Type = Ale_SUCCESS;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
sprintf (Gbl.Alert.Txt,Txt_The_ID_X_has_been_registered_successfully,
NewID);
}
}
else // New ID is not valid
{
- Error = true;
+ Gbl.Alert.Type = Ale_WARNING;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
sprintf (Gbl.Alert.Txt,Txt_The_ID_X_is_not_valid,NewID);
}
-
- /***** Show message *****/
- Ale_ShowAlert (Error ? Ale_WARNING :
- Ale_SUCCESS,
- Gbl.Alert.Txt);
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
+ {
+ Gbl.Alert.Type = Ale_WARNING;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
+ sprintf (Gbl.Alert.Txt,"%s",
+ Txt_User_not_found_or_you_do_not_have_permission_);
+ }
}
/*****************************************************************************/
@@ -1004,9 +1107,6 @@ void ID_ConfirmOtherUsrID (void)
unsigned NumID;
unsigned NumIDFound = 0; // Initialized to avoid warning
- /***** Initialize alert type and message *****/
- Gbl.Alert.Type = Ale_NONE; // Do not show alert
-
/***** Get where we came from *****/
OriginalActCod = Par_GetParToLong ("OriginalActCod");
Gbl.Action.Original = Act_GetActionFromActCod (OriginalActCod);
@@ -1044,6 +1144,7 @@ void ID_ConfirmOtherUsrID (void)
{
/***** ID found and already confirmed *****/
Gbl.Alert.Type = Ale_INFO;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
sprintf (Gbl.Alert.Txt,Txt_ID_X_had_already_been_confirmed,
Gbl.Usrs.Other.UsrDat.IDs.List[NumIDFound].ID);
}
@@ -1056,6 +1157,7 @@ void ID_ConfirmOtherUsrID (void)
/***** Write success message *****/
Gbl.Alert.Type = Ale_SUCCESS;
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
sprintf (Gbl.Alert.Txt,Txt_The_ID_X_has_been_confirmed,
Gbl.Usrs.Other.UsrDat.IDs.List[NumIDFound].ID);
}
@@ -1063,13 +1165,17 @@ void ID_ConfirmOtherUsrID (void)
else // User's ID not found
{
Gbl.Alert.Type = Ale_WARNING;
- sprintf (Gbl.Alert.Txt,"%s",Txt_User_not_found_or_you_do_not_have_permission_);
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
+ sprintf (Gbl.Alert.Txt,"%s",
+ Txt_User_not_found_or_you_do_not_have_permission_);
}
}
else // I can not confirm
{
Gbl.Alert.Type = Ale_WARNING;
- sprintf (Gbl.Alert.Txt,"%s",Txt_User_not_found_or_you_do_not_have_permission_);
+ Gbl.Alert.Section = ID_ID_SECTION_ID;
+ sprintf (Gbl.Alert.Txt,"%s",
+ Txt_User_not_found_or_you_do_not_have_permission_);
}
/***** Show one or multiple records *****/
diff --git a/swad_ID.h b/swad_ID.h
index 9bdc89ae..d1803a25 100644
--- a/swad_ID.h
+++ b/swad_ID.h
@@ -74,7 +74,9 @@ bool ID_ICanSeeOtherUsrIDs (const struct UsrData *UsrDat);
void ID_PutLinkToChangeUsrIDs (void);
void ID_ShowFormOthIDs (void);
-void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe);
+void ID_ShowFormChangeMyID (bool IShouldFillID);
+void ID_ShowFormChangeOtherUsrID (void);
+
void ID_RemoveMyUsrID (void);
void ID_RemoveOtherUsrID (void);
void ID_NewMyUsrID (void);
diff --git a/swad_MFU.c b/swad_MFU.c
index afe9ed63..b3479d0d 100644
--- a/swad_MFU.c
+++ b/swad_MFU.c
@@ -239,14 +239,14 @@ void MFU_WriteBigMFUActions (struct MFU_ListMFUActions *ListMFUActions)
/* Icon and text */
fprintf (Gbl.F.Out,"");
- Act_FormStart (Action);
+ Act_StartForm (Action);
Act_LinkFormSubmit (TabMenuStr,The_ClassFormNoWrap[Gbl.Prefs.Theme],NULL);
fprintf (Gbl.F.Out,"",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
Act_GetIcon (Action),
MenuStr);
fprintf (Gbl.F.Out," %s",TabMenuStr);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,"");
}
}
@@ -274,12 +274,12 @@ void MFU_WriteSmallMFUActions (struct MFU_ListMFUActions *ListMFUActions)
/***** Start div and link *****/
fprintf (Gbl.F.Out,"");
- Act_FormStart (ActMFUAct);
+ Act_StartForm (ActMFUAct);
Act_LinkFormSubmit (Txt_My_frequent_actions,NULL,NULL);
fprintf (Gbl.F.Out," %s"
"",
Txt_Frequent_ACTIONS);
- Act_FormEnd ();
+ Act_EndForm ();
/***** Write list of frequently used actions *****/
fprintf (Gbl.F.Out,"
");
@@ -300,14 +300,14 @@ void MFU_WriteSmallMFUActions (struct MFU_ListMFUActions *ListMFUActions)
/* Icon and text */
fprintf (Gbl.F.Out,"- ");
- Act_FormStart (Action);
+ Act_StartForm (Action);
Act_LinkFormSubmit (TabMenuStr,NULL,NULL);
fprintf (Gbl.F.Out,"",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
Act_GetIcon (Action),
MenuStr);
fprintf (Gbl.F.Out," %s",MenuStr);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,"
");
}
}
diff --git a/swad_account.c b/swad_account.c
index af87b0ee..4591940b 100644
--- a/swad_account.c
+++ b/swad_account.c
@@ -74,17 +74,13 @@ static void Acc_ShowFormCheckIfIHaveAccount (const char *Title);
static void Acc_WriteRowEmptyAccount (unsigned NumUsr,const char *ID,struct UsrData *UsrDat);
static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWithoutArroba,
const char *NewEmail);
-static void Acc_ShowFormChgMyAccount (void);
static bool Acc_GetParamsNewAccount (char NewNicknameWithoutArroba[Nck_MAX_BYTES_NICKNAME_FROM_FORM + 1],
char *NewEmail,
char *NewEncryptedPassword);
static void Acc_CreateNewEncryptedUsrCod (struct UsrData *UsrDat);
-static void Acc_PutLinkToRemoveMyAccount (void);
static void Acc_PutParamsToRemoveMyAccount (void);
-static void Acc_PrintAccountSeparator (void);
-
static void Acc_AskIfRemoveUsrAccount (bool ItsMe);
static void Acc_AskIfRemoveOtherUsrAccount (void);
@@ -114,7 +110,7 @@ void Acc_ShowFormMyAccount (void)
extern const char *Txt_Before_creating_a_new_account_check_if_you_have_been_already_registered;
if (Gbl.Usrs.Me.Logged)
- Acc_ShowFormChgMyAccountAndPwd ();
+ Acc_ShowFormChgMyAccount ();
else // Not logged
{
/***** Links to other actions *****/
@@ -152,7 +148,7 @@ static void Acc_ShowFormCheckIfIHaveAccount (const char *Title)
Ale_ShowAlert (Ale_INFO,Txt_If_you_think_you_may_have_been_registered_);
/***** Form to request user's ID for possible account already created *****/
- Act_FormStart (ActChkUsrAcc);
+ Act_StartForm (ActChkUsrAcc);
fprintf (Gbl.F.Out,"
");
@@ -230,7 +230,7 @@ static void Agd_ShowFormToSelPrivatPublicEvents (void)
fprintf (Gbl.F.Out,"",
(Gbl.Agenda.PrivatPublicEvents & (1 << PrvPub)) ? "PREF_ON" :
"PREF_OFF");
- Act_FormStart (ActSeeMyAgd);
+ Act_StartForm (ActSeeMyAgd);
Agd_PutParamsMyAgenda (Gbl.Agenda.Past__FutureEvents,
Gbl.Agenda.PrivatPublicEvents ^ (1 << PrvPub), // Toggle
Gbl.Agenda.HiddenVisiblEvents,
@@ -244,7 +244,7 @@ static void Agd_ShowFormToSelPrivatPublicEvents (void)
Image[PrvPub],
Txt_AGENDA_PRIVAT_PUBLIC_EVENTS[PrvPub],
Txt_AGENDA_PRIVAT_PUBLIC_EVENTS[PrvPub]);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,"
");
}
fprintf (Gbl.F.Out,"");
@@ -272,7 +272,7 @@ static void Agd_ShowFormToSelHiddenVisiblEvents (void)
fprintf (Gbl.F.Out,"",
(Gbl.Agenda.HiddenVisiblEvents & (1 << HidVis)) ? "PREF_ON" :
"PREF_OFF");
- Act_FormStart (ActSeeMyAgd);
+ Act_StartForm (ActSeeMyAgd);
Agd_PutParamsMyAgenda (Gbl.Agenda.Past__FutureEvents,
Gbl.Agenda.PrivatPublicEvents,
Gbl.Agenda.HiddenVisiblEvents ^ (1 << HidVis), // Toggle
@@ -286,7 +286,7 @@ static void Agd_ShowFormToSelHiddenVisiblEvents (void)
Image[HidVis],
Txt_AGENDA_HIDDEN_VISIBL_EVENTS[HidVis],
Txt_AGENDA_HIDDEN_VISIBL_EVENTS[HidVis]);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,"
");
}
fprintf (Gbl.F.Out,"");
@@ -584,12 +584,12 @@ static void Agd_WriteHeaderListEvents (Agd_AgendaType_t AgendaType)
{
case Agd_MY_AGENDA_TODAY:
case Agd_MY_AGENDA:
- Act_FormStart (ActSeeMyAgd);
+ Act_StartForm (ActSeeMyAgd);
Pag_PutHiddenParamPagNum (Pag_MY_AGENDA,Gbl.Agenda.CurrentPage);
break;
case Agd_ANOTHER_AGENDA_TODAY:
case Agd_ANOTHER_AGENDA:
- Act_FormStart (ActSeeUsrAgd);
+ Act_StartForm (ActSeeUsrAgd);
Usr_PutParamOtherUsrCodEncrypted ();
Pag_PutHiddenParamPagNum (Pag_ANOTHER_AGENDA,Gbl.Agenda.CurrentPage);
break;
@@ -602,7 +602,7 @@ static void Agd_WriteHeaderListEvents (Agd_AgendaType_t AgendaType)
if (Order == Gbl.Agenda.SelectedOrder)
fprintf (Gbl.F.Out,"");
fprintf (Gbl.F.Out,"");
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,"");
}
fprintf (Gbl.F.Out,""
@@ -707,14 +707,14 @@ static void Agd_PutButtonToCreateNewEvent (void)
{
extern const char *Txt_New_event;
- Act_FormStart (ActFrmNewEvtMyAgd);
+ Act_StartForm (ActFrmNewEvtMyAgd);
Agd_PutParamsMyAgenda (Gbl.Agenda.Past__FutureEvents,
Gbl.Agenda.PrivatPublicEvents,
Gbl.Agenda.HiddenVisiblEvents,
Gbl.Agenda.CurrentPage,
-1L);
Btn_PutConfirmButton (Txt_New_event);
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
@@ -1522,12 +1522,12 @@ void Agd_RequestCreatOrEditEvent (void)
/***** Start form *****/
if (ItsANewEvent)
{
- Act_FormStart (ActNewEvtMyAgd);
+ Act_StartForm (ActNewEvtMyAgd);
Gbl.Agenda.AgdCodToEdit = -1L;
}
else
{
- Act_FormStart (ActChgEvtMyAgd);
+ Act_StartForm (ActChgEvtMyAgd);
Gbl.Agenda.AgdCodToEdit = AgdEvent.AgdCod;
}
Agd_PutCurrentParamsMyAgenda ();
@@ -1597,7 +1597,7 @@ void Agd_RequestCreatOrEditEvent (void)
Box_EndBoxTableWithButton (Btn_CONFIRM_BUTTON,Txt_Save);
/***** End form *****/
- Act_FormEnd ();
+ Act_EndForm ();
/***** Show current events, if any *****/
Agd_ShowMyAgenda ();
diff --git a/swad_alert.c b/swad_alert.c
index 7319d2e2..e5cba2aa 100644
--- a/swad_alert.c
+++ b/swad_alert.c
@@ -167,8 +167,8 @@ void Ale_ShowAlertAndButton2 (Act_Action_t NextAction,const char *Anchor,const c
if (TxtButton[0])
{
/* Start form */
- Act_FormStartAnchor (NextAction,Anchor);
- Act_FormStartAnchorOnSubmit (NextAction,Anchor,OnSubmit);
+ Act_StartFormAnchor (NextAction,Anchor);
+ Act_StartFormAnchorOnSubmit (NextAction,Anchor,OnSubmit);
if (FuncParams)
FuncParams ();
@@ -176,7 +176,7 @@ void Ale_ShowAlertAndButton2 (Act_Action_t NextAction,const char *Anchor,const c
Btn_PutButton (Button,TxtButton);
/* End form */
- Act_FormEnd ();
+ Act_EndForm ();
}
/***** End box *****/
diff --git a/swad_announcement.c b/swad_announcement.c
index 47dcde11..13fa51aa 100644
--- a/swad_announcement.c
+++ b/swad_announcement.c
@@ -195,9 +195,9 @@ static void Ann_PutButtonToAddNewAnnouncement (void)
{
extern const char *Txt_New_announcement;
- Act_FormStart (ActWriAnn);
+ Act_StartForm (ActWriAnn);
Btn_PutConfirmButton (Txt_New_announcement);
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
@@ -407,7 +407,7 @@ void Ann_ShowFormAnnouncement (void)
extern const char *Txt_Create_announcement;
/***** Start form *****/
- Act_FormStart (ActRcvAnn);
+ Act_StartForm (ActRcvAnn);
/***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_New_announcement,NULL,
@@ -443,7 +443,7 @@ void Ann_ShowFormAnnouncement (void)
Box_EndBoxTableWithButton (Btn_CREATE_BUTTON,Txt_Create_announcement);
/***** End form *****/
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
diff --git a/swad_assignment.c b/swad_assignment.c
index d4c34990..60758b68 100644
--- a/swad_assignment.c
+++ b/swad_assignment.c
@@ -203,7 +203,7 @@ static void Asg_PutHeadForSeeing (bool PrintView)
if (!PrintView)
{
- Act_FormStart (ActSeeAsg);
+ Act_StartForm (ActSeeAsg);
Grp_PutParamWhichGrps ();
Pag_PutHiddenParamPagNum (Pag_ASSIGNMENTS,Gbl.Asgs.CurrentPage);
Par_PutHiddenParamUnsigned ("Order",(unsigned) Order);
@@ -217,7 +217,7 @@ static void Asg_PutHeadForSeeing (bool PrintView)
if (Order == Gbl.Asgs.SelectedOrder)
fprintf (Gbl.F.Out,"");
fprintf (Gbl.F.Out,"");
- Act_FormEnd ();
+ Act_EndForm ();
}
fprintf (Gbl.F.Out," | ");
@@ -287,10 +287,10 @@ static void Asg_PutButtonToCreateNewAsg (void)
extern const char *Txt_New_assignment;
Gbl.Asgs.AsgCodToEdit = -1L;
- Act_FormStart (ActFrmNewAsg);
+ Act_StartForm (ActFrmNewAsg);
Asg_PutParams ();
Btn_PutConfirmButton (Txt_New_assignment);
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
@@ -515,7 +515,7 @@ static void Asg_WriteAssignmentFolder (struct Assignment *Asg,bool PrintView)
ICanSendFiles) // I can send files to this assignment folder
{
/* Form to create a new file or folder */
- Act_FormStart (ActFrmCreAsgUsr);
+ Act_StartForm (ActFrmCreAsgUsr);
Brw_PutParamsFileBrowser (ActUnk,
Brw_INTERNAL_NAME_ROOT_FOLDER_ASSIGNMENTS,
Asg->Folder,
@@ -528,7 +528,7 @@ static void Asg_WriteAssignmentFolder (struct Assignment *Asg,bool PrintView)
Gbl.Prefs.IconsURL,
Gbl.Title,
Gbl.Title);
- Act_FormEnd ();
+ Act_EndForm ();
}
else // I can't send files to this assignment folder
fprintf (Gbl.F.Out,"");
- Act_FormStart (ActSeeAtt);
+ Act_StartForm (ActSeeAtt);
Grp_PutParamWhichGrps ();
Pag_PutHiddenParamPagNum (Pag_ATT_EVENTS,Gbl.AttEvents.CurrentPage);
Par_PutHiddenParamUnsigned ("Order",(unsigned) Order);
@@ -254,7 +254,7 @@ static void Att_ShowAllAttEvents (void)
if (Order == Gbl.AttEvents.SelectedOrder)
fprintf (Gbl.F.Out,"");
fprintf (Gbl.F.Out,"");
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,"");
}
fprintf (Gbl.F.Out,""
@@ -336,10 +336,10 @@ static void Att_PutButtonToCreateNewAttEvent (void)
{
extern const char *Txt_New_event;
- Act_FormStart (ActFrmNewAtt);
+ Act_StartForm (ActFrmNewAtt);
Att_PutParamsToCreateNewAttEvent ();
Btn_PutConfirmButton (Txt_New_event);
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
@@ -431,13 +431,13 @@ static void Att_ShowOneAttEvent (struct AttendanceEvent *Att,bool ShowOnlyThisAt
fprintf (Gbl.F.Out,"\">");
/* Put form to view attendance event */
- Act_FormStart (ActSeeOneAtt);
+ Act_StartForm (ActSeeOneAtt);
Att_PutParamAttCod (Att->AttCod);
Att_PutParamsCodGrps (Att->AttCod);
Act_LinkFormSubmit (Txt_View_event,Att->Hidden ? "ASG_TITLE_LIGHT" :
"ASG_TITLE",NULL);
fprintf (Gbl.F.Out,"%s",Att->Title);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,"");
/* Number of students in this event */
@@ -880,7 +880,7 @@ void Att_AskRemAttEvent (void)
Att_GetDataOfAttEventByCodAndCheckCrs (&Att);
/***** Button of confirmation of removing *****/
- Act_FormStart (ActRemAtt);
+ Act_StartForm (ActRemAtt);
Att_PutParamAttCod (Att.AttCod);
Att_PutHiddenParamAttOrder ();
Grp_PutParamWhichGrps ();
@@ -891,7 +891,7 @@ void Att_AskRemAttEvent (void)
Att.Title);
Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
Btn_PutRemoveButton (Txt_Remove_event);
- Act_FormEnd ();
+ Act_EndForm ();
/***** Show attendance events again *****/
Att_SeeAttEvents ();
@@ -1076,10 +1076,10 @@ void Att_RequestCreatOrEditAttEvent (void)
/***** Start form *****/
if (ItsANewAttEvent)
- Act_FormStart (ActNewAtt);
+ Act_StartForm (ActNewAtt);
else
{
- Act_FormStart (ActChgAtt);
+ Act_StartForm (ActChgAtt);
Att_PutParamAttCod (Att.AttCod);
}
Att_PutHiddenParamAttOrder ();
@@ -1164,7 +1164,7 @@ void Att_RequestCreatOrEditAttEvent (void)
Box_EndBoxTableWithButton (Btn_CONFIRM_BUTTON,Txt_Save);
/***** End form *****/
- Act_FormEnd ();
+ Act_EndForm ();
/***** Show current attendance events *****/
Att_GetListAttEvents (Att_NEWEST_FIRST);
@@ -1870,7 +1870,7 @@ static void Att_ListAttOnlyMeAsStudent (struct AttendanceEvent *Att)
/***** Start form *****/
if (Att->Open)
{
- Act_FormStart (ActRecAttMe);
+ Act_StartForm (ActRecAttMe);
Att_PutParamAttCod (Att->AttCod);
}
@@ -1908,7 +1908,7 @@ static void Att_ListAttOnlyMeAsStudent (struct AttendanceEvent *Att)
{
/***** Send button *****/
Btn_PutConfirmButton (Txt_Save);
- Act_FormEnd ();
+ Act_EndForm ();
}
}
@@ -1953,7 +1953,7 @@ static void Att_ListAttStudents (struct AttendanceEvent *Att)
Usr_UsrDataConstructor (&UsrDat);
/***** Start form *****/
- Act_FormStart (ActRecAttStd);
+ Act_StartForm (ActRecAttStd);
Att_PutParamAttCod (Att->AttCod);
Grp_PutParamsCodGrps ();
@@ -2000,7 +2000,7 @@ static void Att_ListAttStudents (struct AttendanceEvent *Att)
Btn_PutConfirmButton (Txt_Save);
/***** End form *****/
- Act_FormEnd ();
+ Act_EndForm ();
/***** Free memory used for user's data *****/
Usr_UsrDataDestructor (&UsrDat);
@@ -2696,7 +2696,7 @@ void Usr_ReqListStdsAttendanceCrs (void)
Usr_ShowFormsToSelectUsrListType (ActReqLstStdAtt);
/* Start form */
- Act_FormStart (ActSeeLstStdAtt);
+ Act_StartForm (ActSeeLstStdAtt);
Grp_PutParamsCodGrps ();
/* Write list of students to select some of them */
@@ -2708,7 +2708,7 @@ void Usr_ReqListStdsAttendanceCrs (void)
Btn_PutConfirmButton (Txt_Show_list);
/* End form */
- Act_FormEnd ();
+ Act_EndForm ();
/***** Free memory used by list of selected users' codes *****/
Usr_FreeListsSelectedUsrsCods ();
@@ -3067,14 +3067,14 @@ static void Att_PutButtonToShowDetails (void)
extern const char *Txt_Show_more_details;
/***** Button to show more details *****/
- Act_FormStart (Gbl.Action.Act);
+ Act_StartForm (Gbl.Action.Act);
Par_PutHiddenParamChar ("ShowDetails",'Y');
Grp_PutParamsCodGrps ();
Usr_PutHiddenParUsrCodAll (Gbl.Action.Act,Gbl.Usrs.Select[Rol_UNK]);
if (Gbl.AttEvents.StrAttCodsSelected[0])
Par_PutHiddenParamString ("AttCods",Gbl.AttEvents.StrAttCodsSelected);
Btn_PutConfirmButton (Txt_Show_more_details);
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
@@ -3099,7 +3099,7 @@ static void Att_ListEventsToSelect (Att_TypeOfView_t TypeOfView)
if (TypeOfView == Att_NORMAL_VIEW_ONLY_ME ||
TypeOfView == Att_NORMAL_VIEW_STUDENTS)
{
- Act_FormStart (Gbl.Action.Act);
+ Act_StartForm (Gbl.Action.Act);
Grp_PutParamsCodGrps ();
Usr_PutHiddenParUsrCodAll (Gbl.Action.Act,Gbl.Usrs.Select[Rol_UNK]);
}
@@ -3190,7 +3190,7 @@ static void Att_ListEventsToSelect (Att_TypeOfView_t TypeOfView)
/***** End form *****/
if (TypeOfView == Att_NORMAL_VIEW_ONLY_ME ||
TypeOfView == Att_NORMAL_VIEW_STUDENTS)
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
diff --git a/swad_banner.c b/swad_banner.c
index 4f1ddb2f..c0bc8da3 100644
--- a/swad_banner.c
+++ b/swad_banner.c
@@ -129,9 +129,9 @@ void Ban_SeeBanners (void)
/***** Button to create banner *****/
if (Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM)
{
- Act_FormStart (ActEdiBan);
+ Act_StartForm (ActEdiBan);
Btn_PutConfirmButton (Txt_New_banner);
- Act_FormEnd ();
+ Act_EndForm ();
}
/***** End box *****/
@@ -396,15 +396,15 @@ static void Ban_ListBannersForEdition (void)
/* Put icon to remove banner */
fprintf (Gbl.F.Out," | "
"");
- Act_FormStart (ActRemBan);
+ Act_StartForm (ActRemBan);
Ban_PutParamBanCod (Ban->BanCod);
Ico_PutIconRemove ();
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out," | ");
/* Put icon to hide/show banner */
fprintf (Gbl.F.Out,"");
- Act_FormStart (Ban->Hidden ? ActShoBan :
+ Act_StartForm (Ban->Hidden ? ActShoBan :
ActHidBan);
Ban_PutParamBanCod (Ban->BanCod);
fprintf (Gbl.F.Out,"Hidden ? Txt_Show :
Txt_Hide);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out," | ");
/* Banner code */
@@ -429,49 +429,49 @@ static void Ban_ListBannersForEdition (void)
/* Banner short name */
fprintf (Gbl.F.Out,"");
- Act_FormStart (ActRenBanSho);
+ Act_StartForm (ActRenBanSho);
Ban_PutParamBanCod (Ban->BanCod);
fprintf (Gbl.F.Out,"",
Ban_MAX_CHARS_SHRT_NAME,Ban->ShrtName,Gbl.Form.Id);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out," | ");
/* Banner full name */
fprintf (Gbl.F.Out,"");
- Act_FormStart (ActRenBanFul);
+ Act_StartForm (ActRenBanFul);
Ban_PutParamBanCod (Ban->BanCod);
fprintf (Gbl.F.Out,"",
Ban_MAX_CHARS_FULL_NAME,Ban->FullName,Gbl.Form.Id);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out," | ");
/* Banner image */
fprintf (Gbl.F.Out,"");
- Act_FormStart (ActChgBanImg);
+ Act_StartForm (ActChgBanImg);
Ban_PutParamBanCod (Ban->BanCod);
fprintf (Gbl.F.Out,"",
Ban_MAX_CHARS_IMAGE,Ban->Img,Gbl.Form.Id);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out," | ");
/* Banner WWW */
fprintf (Gbl.F.Out,"");
- Act_FormStart (ActChgBanWWW);
+ Act_StartForm (ActChgBanWWW);
Ban_PutParamBanCod (Ban->BanCod);
fprintf (Gbl.F.Out,"",
Cns_MAX_CHARS_WWW,Ban->WWW,Gbl.Form.Id);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out," | "
"
");
}
@@ -828,7 +828,7 @@ static void Ban_PutFormToCreateBanner (void)
Ban = &Gbl.Banners.EditingBan;
/***** Start form *****/
- Act_FormStart (ActNewBan);
+ Act_StartForm (ActNewBan);
/***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_New_banner,NULL,
@@ -883,7 +883,7 @@ static void Ban_PutFormToCreateBanner (void)
Box_EndBoxTableWithButton (Btn_CREATE_BUTTON,Txt_Create_banner);
/***** End form *****/
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
@@ -1018,7 +1018,7 @@ void Ban_WriteMenuWithBanners (void)
{
/* Write data of this banner */
fprintf (Gbl.F.Out,"");
- Act_FormStart (ActClkBan);
+ Act_StartForm (ActClkBan);
Ban_PutParamBanCod (Gbl.Banners.Lst[NumBan].BanCod);
Par_PutHiddenParamString ("URL",Gbl.Banners.Lst[NumBan].WWW);
Act_LinkFormSubmit (Gbl.Banners.Lst[NumBan].FullName,"BANNER",NULL);
@@ -1030,7 +1030,7 @@ void Ban_WriteMenuWithBanners (void)
Gbl.Banners.Lst[NumBan].Img,
Gbl.Banners.Lst[NumBan].ShrtName,
Gbl.Banners.Lst[NumBan].FullName);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,"
");
}
diff --git a/swad_calendar.c b/swad_calendar.c
index 6bef4b53..e5e612d7 100644
--- a/swad_calendar.c
+++ b/swad_calendar.c
@@ -121,7 +121,7 @@ void Cal_ShowFormToSelFirstDayOfWeek (Act_Action_t Action,void (*FuncParams) (),
fprintf (Gbl.F.Out,"",
FirstDayOfWeek == Gbl.Prefs.FirstDayOfWeek ? "PREF_ON" :
"PREF_OFF");
- Act_FormStart (Action);
+ Act_StartForm (Action);
Par_PutHiddenParamUnsigned ("FirstDayOfWeek",FirstDayOfWeek);
if (FuncParams) // Extra parameters depending on the action
FuncParams ();
@@ -132,7 +132,7 @@ void Cal_ShowFormToSelFirstDayOfWeek (Act_Action_t Action,void (*FuncParams) (),
Txt_DAYS_SMALL[FirstDayOfWeek],
Txt_First_day_of_the_week,Txt_DAYS_SMALL[FirstDayOfWeek],
ClassIcon);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,"
");
}
fprintf (Gbl.F.Out,"");
diff --git a/swad_centre.c b/swad_centre.c
index 16acf476..e228e81d 100644
--- a/swad_centre.c
+++ b/swad_centre.c
@@ -237,7 +237,7 @@ void Ctr_DrawCentreLogoAndNameWithLink (struct Centre *Ctr,Act_Action_t Action,
extern const char *Txt_Go_to_X;
/***** Start form *****/
- Act_FormGoToStart (Action);
+ Act_StartFormGoTo (Action);
Ctr_PutParamCtrCod (Ctr->CtrCod);
/***** Link to action *****/
@@ -251,7 +251,7 @@ void Ctr_DrawCentreLogoAndNameWithLink (struct Centre *Ctr,Act_Action_t Action,
fprintf (Gbl.F.Out," %s",Ctr->FullName);
/***** End form *****/
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
@@ -369,7 +369,7 @@ static void Ctr_Configuration (bool PrintView)
// have permission to edit photo attribution
{
fprintf (Gbl.F.Out,"");
- Act_FormStart (ActChgCtrPhoAtt);
+ Act_StartForm (ActChgCtrPhoAtt);
fprintf (Gbl.F.Out,"");
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,"
");
}
else if (PhotoAttribution)
@@ -410,7 +410,7 @@ static void Ctr_Configuration (bool PrintView)
Ins_GetListInstitutions (Gbl.CurrentCty.Cty.CtyCod,Ins_GET_BASIC_DATA);
/* Put form to select institution */
- Act_FormStart (ActChgCtrInsCfg);
+ Act_StartForm (ActChgCtrInsCfg);
fprintf (Gbl.F.Out,"");
- Act_FormEnd ();
+ Act_EndForm ();
/* Free list of institutions */
Ins_FreeListInstitutions ();
@@ -448,7 +448,7 @@ static void Ctr_Configuration (bool PrintView)
// Only institution admins and system admins can edit centre full name
{
/* Form to change centre full name */
- Act_FormStart (ActRenCtrFulCfg);
+ Act_StartForm (ActRenCtrFulCfg);
fprintf (Gbl.F.Out,"",
Gbl.Form.Id);
@@ -530,7 +530,7 @@ static void Ctr_Configuration (bool PrintView)
"",
Gbl.Plcs.Lst[NumPlc].ShrtName);
fprintf (Gbl.F.Out,"");
- Act_FormEnd ();
+ Act_EndForm ();
/* Free list of places */
Plc_FreeListPlaces ();
@@ -554,7 +554,7 @@ static void Ctr_Configuration (bool PrintView)
// can change centre WWW
{
/* Form to change centre WWW */
- Act_FormStart (ActChgCtrWWWCfg);
+ Act_StartForm (ActChgCtrWWWCfg);
fprintf (Gbl.F.Out,""
@@ -634,14 +634,14 @@ static void Ctr_Configuration (bool PrintView)
Txt_Degrees);
/* Form to go to see degrees of this centre */
- Act_FormGoToStart (ActSeeDeg);
+ Act_StartFormGoTo (ActSeeDeg);
Ctr_PutParamCtrCod (Gbl.CurrentCtr.Ctr.CtrCod);
sprintf (Gbl.Title,Txt_Degrees_of_CENTRE_X,
Gbl.CurrentCtr.Ctr.ShrtName);
Act_LinkFormSubmit (Gbl.Title,"DAT",NULL);
fprintf (Gbl.F.Out,"%u",
Deg_GetNumDegsInCtr (Gbl.CurrentCtr.Ctr.CtrCod));
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out,""
"");
@@ -808,10 +808,10 @@ static void Ctr_ListCentres (void)
/***** Button to create centre *****/
if (Ctr_CheckIfICanCreateCentres ())
{
- Act_FormStart (ActEdiCtr);
+ Act_StartForm (ActEdiCtr);
Btn_PutConfirmButton (Gbl.Ctrs.Num ? Txt_Create_another_centre :
Txt_Create_centre);
- Act_FormEnd ();
+ Act_EndForm ();
}
/***** End box *****/
@@ -1375,7 +1375,7 @@ void Ctr_WriteSelectorOfCentre (void)
long CtrCod;
/***** Start form *****/
- Act_FormGoToStart (ActSeeDeg);
+ Act_StartFormGoTo (ActSeeDeg);
fprintf (Gbl.F.Out,"");
- Act_FormEnd ();
+ Act_EndForm ();
}
/*****************************************************************************/
@@ -1469,10 +1469,10 @@ static void Ctr_ListCentresForEdition (void)
Ico_PutIconRemovalNotAllowed ();
else
{
- Act_FormStart (ActRemCtr);
+ Act_StartForm (ActRemCtr);
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
Ico_PutIconRemove ();
- Act_FormEnd ();
+ Act_EndForm ();
}
fprintf (Gbl.F.Out,"");
@@ -1493,7 +1493,7 @@ static void Ctr_ListCentresForEdition (void)
fprintf (Gbl.F.Out,"");
if (ICanEdit)
{
- Act_FormStart (ActChgCtrPlc);
+ Act_StartForm (ActChgCtrPlc);
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
fprintf (Gbl.F.Out,"");
- Act_FormEnd ();
+ Act_EndForm ();
}
else
for (NumPlc = 0;
@@ -1525,14 +1525,14 @@ static void Ctr_ListCentresForEdition (void)
fprintf (Gbl.F.Out," | ");
if (ICanEdit)
{
- Act_FormStart (ActRenCtrSho);
+ Act_StartForm (ActRenCtrSho);
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
fprintf (Gbl.F.Out,"",
Hie_MAX_CHARS_SHRT_NAME,Ctr->ShrtName,Gbl.Form.Id);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out," | ");
}
else
@@ -1543,14 +1543,14 @@ static void Ctr_ListCentresForEdition (void)
fprintf (Gbl.F.Out,"");
if (ICanEdit)
{
- Act_FormStart (ActRenCtrFul);
+ Act_StartForm (ActRenCtrFul);
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
fprintf (Gbl.F.Out,"",
Hie_MAX_CHARS_FULL_NAME,Ctr->FullName,Gbl.Form.Id);
- Act_FormEnd ();
+ Act_EndForm ();
fprintf (Gbl.F.Out," | ");
}
else
@@ -1561,14 +1561,14 @@ static void Ctr_ListCentresForEdition (void)
fprintf (Gbl.F.Out,"");
if (ICanEdit)
{
- Act_FormStart (ActChgCtrWWW);
+ Act_StartForm (ActChgCtrWWW);
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
fprintf (Gbl.F.Out,"",
Cns_MAX_CHARS_WWW,Ctr->WWW,Gbl.Form.Id);
- Act_FormEnd ();
+ Act_EndForm ();
}
else
{
@@ -1615,7 +1615,7 @@ static void Ctr_ListCentresForEdition (void)
if (Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM &&
StatusTxt == Ctr_STATUS_PENDING)
{
- Act_FormStart (ActChgCtrSta);
+ Act_StartForm (ActChgCtrSta);
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
fprintf (Gbl.F.Out," |