",Grp_SECTION_GROUPS);
}
-static void Grp_ReqEditGroupsInternal2 (Lay_AlertType_t AlertTypeGroups,const char *MessageGroups)
+static void Grp_ReqEditGroupsInternal2 (Ale_AlertType_t AlertTypeGroups,const char *MessageGroups)
{
/***** Show optional alert *****/
if (MessageGroups)
if (MessageGroups[0])
- Lay_ShowAlert (AlertTypeGroups,MessageGroups);
+ Ale_ShowAlert (AlertTypeGroups,MessageGroups);
/***** Put form to edit groups *****/
if (Gbl.CurrentCrs.Grps.GrpTypes.Num) // If there are group types...
@@ -262,7 +262,7 @@ static void Grp_EditGroupTypes (void)
{
sprintf (Gbl.Alert.Txt,Txt_There_are_no_types_of_group_in_the_course_X,
Gbl.CurrentCrs.Crs.ShrtName);
- Lay_ShowAlert (Lay_INFO,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
}
/***** End frame *****/
@@ -293,7 +293,7 @@ static void Grp_EditGroups (void)
{
sprintf (Gbl.Alert.Txt,Txt_No_groups_have_been_created_in_the_course_X,
Gbl.CurrentCrs.Crs.ShrtName);
- Lay_ShowAlert (Lay_INFO,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
}
/***** End frame *****/
@@ -607,12 +607,12 @@ void Grp_ChangeMyGrps (void)
if (MySelectionIsValid)
{
if (Grp_ChangeMyGrpsAtomically (&LstGrpsIWant))
- Lay_ShowAlert (Lay_SUCCESS,Txt_The_requested_group_changes_were_successful);
+ Ale_ShowAlert (Ale_SUCCESS,Txt_The_requested_group_changes_were_successful);
else
- Lay_ShowAlert (Lay_WARNING,Txt_There_has_been_no_change_in_groups);
+ Ale_ShowAlert (Ale_WARNING,Txt_There_has_been_no_change_in_groups);
}
else
- Lay_ShowAlert (Lay_WARNING,Txt_In_a_type_of_group_with_single_enrolment_students_can_not_be_registered_in_more_than_one_group);
+ Ale_ShowAlert (Ale_WARNING,Txt_In_a_type_of_group_with_single_enrolment_students_can_not_be_registered_in_more_than_one_group);
/***** Free memory with the list of groups which I want to belong to *****/
Grp_FreeListCodGrp (&LstGrpsIWant);
@@ -653,12 +653,12 @@ void Grp_ChangeOtherUsrGrps (void)
if (SelectionIsValid)
{
if (Grp_ChangeGrpsOtherUsrAtomically (&LstGrpsUsrWants))
- Lay_ShowAlert (Lay_SUCCESS,Txt_The_requested_group_changes_were_successful);
+ Ale_ShowAlert (Ale_SUCCESS,Txt_The_requested_group_changes_were_successful);
else
- Lay_ShowAlert (Lay_WARNING,Txt_There_has_been_no_change_in_groups);
+ Ale_ShowAlert (Ale_WARNING,Txt_There_has_been_no_change_in_groups);
}
else
- Lay_ShowAlert (Lay_WARNING,Txt_In_a_type_of_group_with_single_enrolment_students_can_not_be_registered_in_more_than_one_group);
+ Ale_ShowAlert (Ale_WARNING,Txt_In_a_type_of_group_with_single_enrolment_students_can_not_be_registered_in_more_than_one_group);
/***** Free memory with the list of groups to/from which register/remove users *****/
Grp_FreeListCodGrp (&LstGrpsUsrWants);
@@ -1025,7 +1025,7 @@ void Grp_RegisterUsrIntoGroups (struct UsrData *UsrDat,struct ListCodGrps *LstGr
Grp_RemoveUsrFromGroup (UsrDat->UsrCod,LstGrpsHeBelongs.GrpCods[NumGrpHeBelongs]);
sprintf (Gbl.Alert.Txt,Txt_THE_USER_X_has_been_removed_from_the_group_of_type_Y_to_which_it_belonged,
UsrDat->FullName,Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypName);
- Lay_ShowAlert (Lay_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
}
if (!AlreadyRegisteredInGrp) // If the user does not belong to the selected group
@@ -1034,7 +1034,7 @@ void Grp_RegisterUsrIntoGroups (struct UsrData *UsrDat,struct ListCodGrps *LstGr
sprintf (Gbl.Alert.Txt,Txt_THE_USER_X_has_been_enroled_in_the_group_of_type_Y_Z,
UsrDat->FullName,Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypName,
Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].LstGrps[NumGrpThisType].GrpName);
- Lay_ShowAlert (Lay_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
}
break; // Once we know the type of a selected group, it's not necessary to check the rest of types
@@ -1088,7 +1088,7 @@ unsigned Grp_RemoveUsrFromGroups (struct UsrData *UsrDat,struct ListCodGrps *Lst
else // NumGrpsHeIsRemoved > 1
sprintf (Gbl.Alert.Txt,Txt_THE_USER_X_has_been_removed_from_Y_groups,
UsrDat->FullName,NumGrpsHeIsRemoved);
- Lay_ShowAlert (Lay_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Free the list of groups of this type to which the user belonged *****/
Grp_FreeListCodGrp (&LstGrpsHeBelongs);
@@ -1119,7 +1119,7 @@ void Grp_RemUsrFromAllGrpsInCrs (struct UsrData *UsrDat,struct Course *Crs,Cns_Q
{
sprintf (Gbl.Alert.Txt,Txt_THE_USER_X_has_been_removed_from_all_groups_of_the_course_Y,
UsrDat->FullName,Crs->FullName);
- Lay_ShowAlert (Lay_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
}
}
@@ -1142,7 +1142,7 @@ void Grp_RemUsrFromAllGrps (struct UsrData *UsrDat,Cns_QuietOrVerbose_t QuietOrV
{
sprintf (Gbl.Alert.Txt,Txt_THE_USER_X_has_been_removed_from_all_groups_in_all_courses,
UsrDat->FullName);
- Lay_ShowAlert (Lay_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
}
}
@@ -1701,7 +1701,7 @@ void Grp_ShowLstGrpsToChgMyGrps (bool ShowWarningsToStudents)
{
sprintf (Gbl.Alert.Txt,Txt_No_groups_have_been_created_in_the_course_X,
Gbl.CurrentCrs.Crs.FullName);
- Lay_ShowAlert (Lay_INFO,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
/***** Button to create group *****/
if (ICanEdit)
@@ -1757,7 +1757,7 @@ static void Grp_ShowWarningToStdsToChangeGrps (void)
GrpTyp->MultipleEnrolment ? Txt_You_have_to_register_compulsorily_at_least_in_one_group_of_type_X :
Txt_You_have_to_register_compulsorily_in_one_group_of_type_X,
GrpTyp->GrpTypName);
- Lay_ShowAlert (Lay_WARNING,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
}
else
{
@@ -1765,7 +1765,7 @@ static void Grp_ShowWarningToStdsToChangeGrps (void)
GrpTyp->MultipleEnrolment ? Txt_You_can_register_voluntarily_in_one_or_more_groups_of_type_X :
Txt_You_can_register_voluntarily_in_one_group_of_type_X,
GrpTyp->GrpTypName);
- Lay_ShowAlert (Lay_INFO,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
}
}
}
@@ -3257,7 +3257,7 @@ void Grp_RecFormNewGrpTyp (void)
extern const char *Txt_The_type_of_group_X_already_exists;
extern const char *Txt_Created_new_type_of_group_X;
extern const char *Txt_You_must_specify_the_name_of_the_new_type_of_group;
- Lay_AlertType_t AlertType;
+ Ale_AlertType_t AlertType;
/***** Get parameters from form *****/
/* Get the name of group type */
@@ -3279,7 +3279,7 @@ void Grp_RecFormNewGrpTyp (void)
/***** If name of group type was in database... *****/
if (Grp_CheckIfGroupTypeNameExists (Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName,-1L))
{
- AlertType = Lay_WARNING;
+ AlertType = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_The_type_of_group_X_already_exists,
Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName);
}
@@ -3287,20 +3287,20 @@ void Grp_RecFormNewGrpTyp (void)
{
Grp_CreateGroupType ();
- AlertType = Lay_SUCCESS;
+ AlertType = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_Created_new_type_of_group_X,
Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName);
}
}
else // If there is not a group type name
{
- AlertType = Lay_WARNING;
+ AlertType = Ale_WARNING;
sprintf (Gbl.Alert.Txt,"%s",Txt_You_must_specify_the_name_of_the_new_type_of_group);
}
/***** Show the form again *****/
Grp_ReqEditGroupsInternal (AlertType,Gbl.Alert.Txt,
- Lay_INFO,NULL);
+ Ale_INFO,NULL);
}
/*****************************************************************************/
@@ -3326,7 +3326,7 @@ void Grp_RecFormNewGrp (void)
extern const char *Txt_The_group_X_already_exists;
extern const char *Txt_Created_new_group_X;
extern const char *Txt_You_must_specify_the_name_of_the_new_group;
- Lay_AlertType_t AlertType;
+ Ale_AlertType_t AlertType;
/***** Get parameters from form *****/
if ((Gbl.CurrentCrs.Grps.GrpTyp.GrpTypCod = Grp_GetParamGrpTypCod ()) > 0) // Group type valid
@@ -3347,7 +3347,7 @@ void Grp_RecFormNewGrp (void)
/***** If name of group was in database... *****/
if (Grp_CheckIfGroupNameExists (Gbl.CurrentCrs.Grps.GrpTyp.GrpTypCod,Gbl.CurrentCrs.Grps.GrpName,-1L))
{
- AlertType = Lay_WARNING;
+ AlertType = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_The_group_X_already_exists,
Gbl.CurrentCrs.Grps.GrpName);
}
@@ -3356,25 +3356,25 @@ void Grp_RecFormNewGrp (void)
Grp_CreateGroup ();
/* Write success message */
- AlertType = Lay_SUCCESS;
+ AlertType = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_Created_new_group_X,
Gbl.CurrentCrs.Grps.GrpName);
}
}
else // If there is not a group name
{
- AlertType = Lay_ERROR;
+ AlertType = Ale_ERROR;
sprintf (Gbl.Alert.Txt,"%s",Txt_You_must_specify_the_name_of_the_new_group);
}
}
else // Invalid group type
{
- AlertType = Lay_ERROR;
+ AlertType = Ale_ERROR;
sprintf (Gbl.Alert.Txt,"%s","Wrong type of group.");
}
/***** Show the form again *****/
- Grp_ReqEditGroupsInternal (Lay_INFO,NULL,
+ Grp_ReqEditGroupsInternal (Ale_INFO,NULL,
AlertType,Gbl.Alert.Txt);
}
@@ -3508,14 +3508,14 @@ static void Grp_AskConfirmRemGrpTypWithGrps (unsigned NumGrps)
else
sprintf (Gbl.Alert.Txt,Txt_Do_you_really_want_to_remove_the_type_of_group_X_Y_groups_,
Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName,NumGrps);
- Lay_ShowAlertAndButton (Lay_QUESTION,Gbl.Alert.Txt,
+ Ale_ShowAlertAndButton (Ale_QUESTION,Gbl.Alert.Txt,
ActRemGrpTyp,Grp_SECTION_GROUP_TYPES,
Grp_PutParamRemGrpTyp,
Lay_REMOVE_BUTTON,Txt_Remove_type_of_group);
/***** Show the form to edit group types and groups again *****/
- Grp_ReqEditGroupsInternal1 (Lay_INFO,NULL);
- Grp_ReqEditGroupsInternal2 (Lay_INFO,NULL);
+ Grp_ReqEditGroupsInternal1 (Ale_INFO,NULL);
+ Grp_ReqEditGroupsInternal2 (Ale_INFO,NULL);
}
/*****************************************************************************/
@@ -3549,7 +3549,7 @@ static void Grp_AskConfirmRemGrp (void)
/***** Show the form to edit group types again *****/
Grp_ReqEditGroupsInternal0 ();
- Grp_ReqEditGroupsInternal1 (Lay_INFO,NULL);
+ Grp_ReqEditGroupsInternal1 (Ale_INFO,NULL);
/***** Show question and button to remove group *****/
if (NumStds == 0)
@@ -3561,12 +3561,12 @@ static void Grp_AskConfirmRemGrp (void)
else
sprintf (Gbl.Alert.Txt,Txt_Do_you_really_want_to_remove_the_group_X_Y_students_,
GrpDat.GrpName,NumStds);
- Lay_ShowAlertAndButton (Lay_QUESTION,Gbl.Alert.Txt,
+ Ale_ShowAlertAndButton (Ale_QUESTION,Gbl.Alert.Txt,
ActRemGrp,Grp_SECTION_GROUPS,Grp_PutParamRemGrp,
Lay_REMOVE_BUTTON,Txt_Remove_group);
/***** Show the form to edit groups again *****/
- Grp_ReqEditGroupsInternal2 (Lay_INFO,NULL);
+ Grp_ReqEditGroupsInternal2 (Ale_INFO,NULL);
}
/*****************************************************************************/
@@ -3658,8 +3658,8 @@ static void Grp_RemoveGroupTypeCompletely (void)
Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName);
/***** Show the form again *****/
- Grp_ReqEditGroupsInternal (Lay_SUCCESS,Gbl.Alert.Txt,
- Lay_INFO,NULL);
+ Grp_ReqEditGroupsInternal (Ale_SUCCESS,Gbl.Alert.Txt,
+ Ale_INFO,NULL);
}
/*****************************************************************************/
@@ -3707,8 +3707,8 @@ static void Grp_RemoveGroupCompletely (void)
sprintf (Gbl.Alert.Txt,Txt_Group_X_removed,GrpDat.GrpName);
/***** Show the form again *****/
- Grp_ReqEditGroupsInternal (Lay_INFO,NULL,
- Lay_SUCCESS,Gbl.Alert.Txt);
+ Grp_ReqEditGroupsInternal (Ale_INFO,NULL,
+ Ale_SUCCESS,Gbl.Alert.Txt);
}
/*****************************************************************************/
@@ -3739,8 +3739,8 @@ void Grp_OpenGroup (void)
/***** Show the form again *****/
Gbl.CurrentCrs.Grps.Open = true;
- Grp_ReqEditGroupsInternal (Lay_INFO,NULL,
- Lay_SUCCESS,Gbl.Alert.Txt);
+ Grp_ReqEditGroupsInternal (Ale_INFO,NULL,
+ Ale_SUCCESS,Gbl.Alert.Txt);
}
/*****************************************************************************/
@@ -3771,8 +3771,8 @@ void Grp_CloseGroup (void)
/***** Show the form again *****/
Gbl.CurrentCrs.Grps.Open = false;
- Grp_ReqEditGroupsInternal (Lay_INFO,NULL,
- Lay_SUCCESS,Gbl.Alert.Txt);
+ Grp_ReqEditGroupsInternal (Ale_INFO,NULL,
+ Ale_SUCCESS,Gbl.Alert.Txt);
}
/*****************************************************************************/
@@ -3804,8 +3804,8 @@ void Grp_EnableFileZonesGrp (void)
/***** Show the form again *****/
Gbl.CurrentCrs.Grps.FileZones = true;
- Grp_ReqEditGroupsInternal (Lay_INFO,NULL,
- Lay_SUCCESS,Gbl.Alert.Txt);
+ Grp_ReqEditGroupsInternal (Ale_INFO,NULL,
+ Ale_SUCCESS,Gbl.Alert.Txt);
}
/*****************************************************************************/
@@ -3837,8 +3837,8 @@ void Grp_DisableFileZonesGrp (void)
/***** Show the form again *****/
Gbl.CurrentCrs.Grps.FileZones = false;
- Grp_ReqEditGroupsInternal (Lay_INFO,NULL,
- Lay_SUCCESS,Gbl.Alert.Txt);
+ Grp_ReqEditGroupsInternal (Ale_INFO,NULL,
+ Ale_SUCCESS,Gbl.Alert.Txt);
}
/*****************************************************************************/
@@ -3852,7 +3852,7 @@ void Grp_ChangeGroupType (void)
long NewGrpTypCod;
struct GroupData GrpDat;
char Query[512];
- Lay_AlertType_t AlertType;
+ Ale_AlertType_t AlertType;
/***** Get parameters from form *****/
/* Get group code */
@@ -3869,7 +3869,7 @@ void Grp_ChangeGroupType (void)
/***** If group was in database... *****/
if (Grp_CheckIfGroupNameExists (NewGrpTypCod,GrpDat.GrpName,-1L))
{
- AlertType = Lay_WARNING;
+ AlertType = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_The_group_X_already_exists,GrpDat.GrpName);
}
else
@@ -3880,14 +3880,14 @@ void Grp_ChangeGroupType (void)
DB_QueryUPDATE (Query,"can not update the type of a group");
/***** Write message to show the change made *****/
- AlertType = Lay_SUCCESS;
+ AlertType = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_The_type_of_group_of_the_group_X_has_changed,
GrpDat.GrpName);
}
/***** Show the form again *****/
Gbl.CurrentCrs.Grps.GrpTyp.GrpTypCod = NewGrpTypCod;
- Grp_ReqEditGroupsInternal (Lay_INFO,NULL,
+ Grp_ReqEditGroupsInternal (Ale_INFO,NULL,
AlertType,Gbl.Alert.Txt);
}
@@ -3902,7 +3902,7 @@ void Grp_ChangeMandatGrpTyp (void)
extern const char *Txt_The_enrolment_of_students_into_groups_of_type_X_is_now_voluntary;
char Query[1024];
bool NewMandatoryEnrolment;
- Lay_AlertType_t AlertType;
+ Ale_AlertType_t AlertType;
/***** Get parameters of the form *****/
/* Get the código of type of group */
@@ -3919,7 +3919,7 @@ void Grp_ChangeMandatGrpTyp (void)
(this happens when return is pressed without changes in the form) *****/
if (Gbl.CurrentCrs.Grps.GrpTyp.MandatoryEnrolment == NewMandatoryEnrolment)
{
- AlertType = Lay_INFO;
+ AlertType = Ale_INFO;
sprintf (Gbl.Alert.Txt,Txt_The_type_of_enrolment_of_the_type_of_group_X_has_not_changed,
Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName);
}
@@ -3933,7 +3933,7 @@ void Grp_ChangeMandatGrpTyp (void)
DB_QueryUPDATE (Query,"can not update enrolment type of a type of group");
/***** Write message to show the change made *****/
- AlertType = Lay_SUCCESS;
+ AlertType = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,
NewMandatoryEnrolment ? Txt_The_enrolment_of_students_into_groups_of_type_X_is_now_mandatory :
Txt_The_enrolment_of_students_into_groups_of_type_X_is_now_voluntary,
@@ -3943,7 +3943,7 @@ void Grp_ChangeMandatGrpTyp (void)
/***** Show the form again *****/
Gbl.CurrentCrs.Grps.GrpTyp.MandatoryEnrolment = NewMandatoryEnrolment;
Grp_ReqEditGroupsInternal (AlertType,Gbl.Alert.Txt,
- Lay_INFO,NULL);
+ Ale_INFO,NULL);
}
/*****************************************************************************/
@@ -3957,7 +3957,7 @@ void Grp_ChangeMultiGrpTyp (void)
extern const char *Txt_Now_each_student_can_only_belong_to_a_group_of_type_X;
char Query[1024];
bool NewMultipleEnrolment;
- Lay_AlertType_t AlertType;
+ Ale_AlertType_t AlertType;
/***** Get parameters from the form *****/
/* Get the code of type of group */
@@ -3974,7 +3974,7 @@ void Grp_ChangeMultiGrpTyp (void)
(this happends when return is pressed without changes) *****/
if (Gbl.CurrentCrs.Grps.GrpTyp.MultipleEnrolment == NewMultipleEnrolment)
{
- AlertType = Lay_INFO;
+ AlertType = Ale_INFO;
sprintf (Gbl.Alert.Txt,Txt_The_type_of_enrolment_of_the_type_of_group_X_has_not_changed,
Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName);
}
@@ -3989,7 +3989,7 @@ void Grp_ChangeMultiGrpTyp (void)
DB_QueryUPDATE (Query,"can not update enrolment type of a type of group");
/***** Write message to show the change made *****/
- AlertType = Lay_SUCCESS;
+ AlertType = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,
NewMultipleEnrolment ? Txt_Now_each_student_can_belong_to_multiple_groups_of_type_X :
Txt_Now_each_student_can_only_belong_to_a_group_of_type_X,
@@ -3999,7 +3999,7 @@ void Grp_ChangeMultiGrpTyp (void)
/***** Show the form again *****/
Gbl.CurrentCrs.Grps.GrpTyp.MultipleEnrolment = NewMultipleEnrolment;
Grp_ReqEditGroupsInternal (AlertType,Gbl.Alert.Txt,
- Lay_INFO,NULL);
+ Ale_INFO,NULL);
}
/*****************************************************************************/
@@ -4037,8 +4037,8 @@ void Grp_ChangeOpenTimeGrpTyp (void)
sprintf (Gbl.Alert.Txt,"%s",Txt_The_date_time_of_opening_of_groups_has_changed);
/***** Show the form again *****/
- Grp_ReqEditGroupsInternal (Lay_SUCCESS,Gbl.Alert.Txt,
- Lay_INFO,NULL);
+ Grp_ReqEditGroupsInternal (Ale_SUCCESS,Gbl.Alert.Txt,
+ Ale_INFO,NULL);
}
/*****************************************************************************/
@@ -4053,7 +4053,7 @@ void Grp_ChangeMaxStdsGrp (void)
struct GroupData GrpDat;
char Query[1024];
unsigned NewMaxStds;
- Lay_AlertType_t AlertType;
+ Ale_AlertType_t AlertType;
/***** Get parameters of the form *****/
/* Get group code */
@@ -4074,7 +4074,7 @@ void Grp_ChangeMaxStdsGrp (void)
/***** Check if the old maximum of students equals the new one (this happens when user press return without change the form) *****/
if (GrpDat.MaxStudents == NewMaxStds)
{
- AlertType = Lay_INFO;
+ AlertType = Ale_INFO;
sprintf (Gbl.Alert.Txt,Txt_The_maximum_number_of_students_in_the_group_X_has_not_changed,
GrpDat.GrpName);
}
@@ -4086,7 +4086,7 @@ void Grp_ChangeMaxStdsGrp (void)
DB_QueryUPDATE (Query,"can not update the maximum number of students in a group");
/***** Write message to show the change made *****/
- AlertType = Lay_SUCCESS;
+ AlertType = Ale_SUCCESS;
if (NewMaxStds > Grp_MAX_STUDENTS_IN_A_GROUP)
sprintf (Gbl.Alert.Txt,Txt_The_group_X_now_has_no_limit_of_students,
GrpDat.GrpName);
@@ -4097,7 +4097,7 @@ void Grp_ChangeMaxStdsGrp (void)
/***** Show the form again *****/
Gbl.CurrentCrs.Grps.MaxStudents = NewMaxStds;
- Grp_ReqEditGroupsInternal (Lay_INFO,NULL,
+ Grp_ReqEditGroupsInternal (Ale_INFO,NULL,
AlertType,Gbl.Alert.Txt);
}
@@ -4140,7 +4140,7 @@ void Grp_RenameGroupType (void)
extern const char *Txt_The_name_of_the_type_of_group_X_has_not_changed;
char Query[128 + Grp_MAX_BYTES_GROUP_TYPE_NAME];
char NewNameGrpTyp[Grp_MAX_BYTES_GROUP_TYPE_NAME + 1];
- Lay_AlertType_t AlertType;
+ Ale_AlertType_t AlertType;
/***** Get parameters from form *****/
/* Get the code of the group type */
@@ -4156,7 +4156,7 @@ void Grp_RenameGroupType (void)
/***** Check if new name is empty *****/
if (!NewNameGrpTyp[0])
{
- AlertType = Lay_WARNING;
+ AlertType = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_You_can_not_leave_the_name_of_the_type_of_group_X_empty,
Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName);
}
@@ -4168,7 +4168,7 @@ void Grp_RenameGroupType (void)
/***** If group type was in database... *****/
if (Grp_CheckIfGroupTypeNameExists (NewNameGrpTyp,Gbl.CurrentCrs.Grps.GrpTyp.GrpTypCod))
{
- AlertType = Lay_WARNING;
+ AlertType = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_The_type_of_group_X_already_exists,
NewNameGrpTyp);
}
@@ -4182,14 +4182,14 @@ void Grp_RenameGroupType (void)
DB_QueryUPDATE (Query,"can not update the type of a group");
/***** Write message to show the change made *****/
- AlertType = Lay_SUCCESS;
+ AlertType = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_The_type_of_group_X_has_been_renamed_as_Y,
Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName,NewNameGrpTyp);
}
}
else // The same name
{
- AlertType = Lay_INFO;
+ AlertType = Ale_INFO;
sprintf (Gbl.Alert.Txt,Txt_The_name_of_the_type_of_group_X_has_not_changed,
NewNameGrpTyp);
}
@@ -4199,7 +4199,7 @@ void Grp_RenameGroupType (void)
Str_Copy (Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName,NewNameGrpTyp,
Grp_MAX_BYTES_GROUP_TYPE_NAME);
Grp_ReqEditGroupsInternal (AlertType,Gbl.Alert.Txt,
- Lay_INFO,NULL);
+ Ale_INFO,NULL);
}
/*****************************************************************************/
@@ -4215,7 +4215,7 @@ void Grp_RenameGroup (void)
struct GroupData GrpDat;
char Query[128 + Grp_MAX_BYTES_GROUP_NAME];
char NewNameGrp[Grp_MAX_BYTES_GROUP_NAME + 1];
- Lay_AlertType_t AlertType;
+ Ale_AlertType_t AlertType;
/***** Get parameters from form *****/
/* Get the code of the group */
@@ -4232,7 +4232,7 @@ void Grp_RenameGroup (void)
/***** Check if new name is empty *****/
if (!NewNameGrp[0])
{
- AlertType = Lay_WARNING;
+ AlertType = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_You_can_not_leave_the_name_of_the_group_X_empty,
GrpDat.GrpName);
}
@@ -4244,7 +4244,7 @@ void Grp_RenameGroup (void)
/***** If group was in database... *****/
if (Grp_CheckIfGroupNameExists (GrpDat.GrpTypCod,NewNameGrp,Gbl.CurrentCrs.Grps.GrpCod))
{
- AlertType = Lay_WARNING;
+ AlertType = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_The_group_X_already_exists,NewNameGrp);
}
else
@@ -4255,14 +4255,14 @@ void Grp_RenameGroup (void)
DB_QueryUPDATE (Query,"can not update the name of a group");
/***** Write message to show the change made *****/
- AlertType = Lay_SUCCESS;
+ AlertType = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_The_group_X_has_been_renamed_as_Y,
GrpDat.GrpName,NewNameGrp);
}
}
else // The same name
{
- AlertType = Lay_INFO;
+ AlertType = Ale_INFO;
sprintf (Gbl.Alert.Txt,Txt_The_name_of_the_group_X_has_not_changed,
NewNameGrp);
}
@@ -4271,7 +4271,7 @@ void Grp_RenameGroup (void)
/***** Show the form again *****/
Str_Copy (Gbl.CurrentCrs.Grps.GrpName,NewNameGrp,
Grp_MAX_BYTES_GROUP_NAME);
- Grp_ReqEditGroupsInternal (Lay_INFO,NULL,
+ Grp_ReqEditGroupsInternal (Ale_INFO,NULL,
AlertType,Gbl.Alert.Txt);
}
diff --git a/swad_help.c b/swad_help.c
index 61d9ce4e..b4d13c79 100644
--- a/swad_help.c
+++ b/swad_help.c
@@ -111,7 +111,7 @@ void Hlp_ShowHelpWhatWouldYouLikeToDo (void)
Txt_You_are_not_enroled_in_any_course[Gbl.Usrs.Me.UsrDat.Sex],
Txt_You_can_search_for_courses_select_them_and_request_your_enrolment_in_them,
Txt_If_you_can_not_find_your_institution_your_centre_your_degree_or_your_courses_you_can_create_them);
- Lay_ShowAlert (Lay_INFO,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
}
/***** Contextual buttons *****/
diff --git a/swad_holiday.c b/swad_holiday.c
index 7b2b1ef6..553addb8 100644
--- a/swad_holiday.c
+++ b/swad_holiday.c
@@ -172,7 +172,7 @@ void Hld_SeeHolidays (void)
Lay_EndTable ();
}
else // No holidays created in the current institution
- Lay_ShowAlert (Lay_INFO,Txt_No_holidays);
+ Ale_ShowAlert (Ale_INFO,Txt_No_holidays);
/***** Button to create centre *****/
if (Gbl.Usrs.Me.LoggedRole >= Rol_INS_ADM) // Institution admin or system admin
@@ -651,7 +651,7 @@ void Hld_RemoveHoliday1 (void)
DB_QueryDELETE (Query,"can not remove a holiday");
/***** Write message to show the change made *****/
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_Holiday_X_removed,Hld.Name);
}
@@ -659,7 +659,7 @@ void Hld_RemoveHoliday1 (void)
void Hld_RemoveHoliday2 (void)
{
/***** Show success message *****/
- Lay_ShowPendingAlert ();
+ Ale_ShowPendingAlert ();
/***** Show the form again *****/
Hld_EditHolidays ();
@@ -701,7 +701,7 @@ void Hld_ChangeHolidayPlace1 (void)
Plc_MAX_BYTES_PLACE_FULL_NAME);
/***** Write message to show the change made *****/
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_The_place_of_the_holiday_X_has_changed_to_Y,
Hld->Name,NewPlace.FullName);
}
@@ -709,7 +709,7 @@ void Hld_ChangeHolidayPlace1 (void)
void Hld_ChangeHolidayPlace2 (void)
{
/***** Show success message *****/
- Lay_ShowPendingAlert ();
+ Ale_ShowPendingAlert ();
/***** Show the form again *****/
Hld_EditHolidays ();
@@ -745,7 +745,7 @@ void Hld_ChangeHolidayType1 (void)
DB_QueryUPDATE (Query,"can not update the type of a holiday");
/***** Write message to show the change made *****/
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_The_type_of_the_holiday_X_has_changed,
Hld->Name);
}
@@ -753,7 +753,7 @@ void Hld_ChangeHolidayType1 (void)
void Hld_ChangeHolidayType2 (void)
{
/***** Show success message *****/
- Lay_ShowPendingAlert ();
+ Ale_ShowPendingAlert ();
/***** Show the form again *****/
Hld_EditHolidays ();
@@ -844,7 +844,7 @@ static void Hld_ChangeDate (Hld_StartOrEndDate_t StartOrEndDate)
Dat_AssignDate (PtrDate,&NewDate);
/***** Write message to show the change made *****/
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
Dat_ConvDateToDateStr (&NewDate,StrDate);
sprintf (Gbl.Alert.Txt,Txt_The_date_of_the_holiday_X_has_changed_to_Y,
Hld->Name,StrDate);
@@ -857,7 +857,7 @@ static void Hld_ChangeDate (Hld_StartOrEndDate_t StartOrEndDate)
void Hld_ChangeDate2 (void)
{
/***** Show success message *****/
- Lay_ShowPendingAlert ();
+ Ale_ShowPendingAlert ();
/***** Show the form again *****/
Hld_EditHolidays ();
@@ -892,7 +892,7 @@ void Hld_RenameHoliday1 (void)
/***** Check if new name is empty *****/
if (!NewHldName[0])
{
- Gbl.Alert.Type = Lay_WARNING;
+ Gbl.Alert.Type = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_You_can_not_leave_the_name_of_the_holiday_X_empty,
Hld->Name);
}
@@ -910,13 +910,13 @@ void Hld_RenameHoliday1 (void)
Hld_MAX_BYTES_HOLIDAY_NAME);
/***** Write message to show the change made *****/
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_The_name_of_the_holiday_X_has_changed_to_Y,
Hld->Name,NewHldName);
}
else // The same name
{
- Gbl.Alert.Type = Lay_INFO;
+ Gbl.Alert.Type = Ale_INFO;
sprintf (Gbl.Alert.Txt,Txt_The_name_of_the_holiday_X_has_not_changed,
Hld->Name);
}
@@ -926,7 +926,7 @@ void Hld_RenameHoliday1 (void)
void Hld_RenameHoliday2 (void)
{
/***** Write error/success message *****/
- Lay_ShowPendingAlert ();
+ Ale_ShowPendingAlert ();
/***** Show the form again *****/
Hld_EditHolidays ();
@@ -1147,13 +1147,13 @@ void Hld_RecFormNewHoliday1 (void)
Hld_CreateHoliday (Hld);
/* Success message */
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_Created_new_holiday_X,Hld->Name);
}
else // If there is not a holiday name
{
/* Error message */
- Gbl.Alert.Type = Lay_WARNING;
+ Gbl.Alert.Type = Ale_WARNING;
sprintf (Gbl.Alert.Txt,"%s",Txt_You_must_specify_the_name_of_the_new_holiday);
}
}
@@ -1161,7 +1161,7 @@ void Hld_RecFormNewHoliday1 (void)
void Hld_RecFormNewHoliday2 (void)
{
/***** Write error/success message *****/
- Lay_ShowPendingAlert ();
+ Ale_ShowPendingAlert ();
/***** Show the form again *****/
Hld_EditHolidays ();
diff --git a/swad_image.c b/swad_image.c
index 2e80e9d7..e80c2122 100644
--- a/swad_image.c
+++ b/swad_image.c
@@ -527,7 +527,7 @@ void Img_MoveImageToDefinitiveDirectory (struct Image *Image)
/***** Move file *****/
if (rename (FileNameImgTmp,FileNameImg)) // Fail
- Lay_ShowAlert (Lay_ERROR,"Can not move file.");
+ Ale_ShowAlert (Ale_ERROR,"Can not move file.");
else // Success
Image->Status = Img_FILE_MOVED;
}
@@ -606,7 +606,7 @@ void Img_ShowImage (struct Image *Image,
fprintf (Gbl.F.Out,"");
}
else
- Lay_ShowAlert (Lay_WARNING,Txt_Image_not_found);
+ Ale_ShowAlert (Ale_WARNING,Txt_Image_not_found);
}
/*****************************************************************************/
diff --git a/swad_indicator.c b/swad_indicator.c
index e894bc82..6d878b2b 100644
--- a/swad_indicator.c
+++ b/swad_indicator.c
@@ -521,7 +521,7 @@ static void Ind_PutButtonToConfirmIWantToSeeBigList (unsigned NumCrss)
/***** Show warning *****/
sprintf (Gbl.Alert.Txt,Txt_The_list_of_X_courses_is_too_large_to_be_displayed,
NumCrss);
- Lay_ShowAlert (Lay_WARNING,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
/***** Put form to confirm that I want to see the big list *****/
Act_FormStart (Gbl.Action.Act);
diff --git a/swad_info.c b/swad_info.c
index d7610d8b..398f7888 100644
--- a/swad_info.c
+++ b/swad_info.c
@@ -442,7 +442,7 @@ void Inf_ShowInfo (void)
ICanEdit ? Inf_PutIconToEditInfo :
NULL,
Help[Gbl.CurrentCrs.Info.Type]);
- Lay_ShowAlert (Lay_INFO,Txt_No_information);
+ Ale_ShowAlert (Ale_INFO,Txt_No_information);
if (ICanEdit)
Inf_PutButtonToEditInfo ();
Lay_EndRoundFrame ();
@@ -586,7 +586,7 @@ void Inf_WriteMsgYouMustReadInfo (void)
Lay_StartRoundFrame (NULL,Txt_Required_reading,NULL,NULL);
/***** Write message *****/
- Lay_ShowAlert (Lay_WARNING,Txt_You_should_read_the_following_information);
+ Ale_ShowAlert (Ale_WARNING,Txt_You_should_read_the_following_information);
/***** Write every information I must read *****/
fprintf (Gbl.F.Out,""
@@ -631,7 +631,7 @@ void Inf_ChangeForceReadInfo (void)
Inf_SetForceReadIntoDB (MustBeRead);
/***** Write message of success *****/
- Lay_ShowAlert (Lay_SUCCESS,
+ Ale_ShowAlert (Ale_SUCCESS,
MustBeRead ? Txt_Students_now_are_required_to_read_this_information :
Txt_Students_are_no_longer_obliged_to_read_this_information);
@@ -656,7 +656,7 @@ void Inf_ChangeIHaveReadInfo (void)
Inf_SetIHaveReadIntoDB (IHaveRead);
/***** Write message of success *****/
- Lay_ShowAlert (Lay_SUCCESS,
+ Ale_ShowAlert (Ale_SUCCESS,
IHaveRead ? Txt_You_have_confirmed_that_you_have_read_this_information :
Txt_You_have_eliminated_the_confirmation_that_you_have_read_this_information);
@@ -2230,11 +2230,11 @@ void Inf_ReceiveURLInfo (void)
/***** Write message *****/
sprintf (Gbl.Alert.Txt,Txt_The_URL_X_has_been_updated,
Gbl.CurrentCrs.Info.URL);
- Lay_ShowAlert (Lay_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
URLIsOK = true;
}
else
- Lay_ShowAlert (Lay_ERROR,"Error when saving URL to file.");
+ Ale_ShowAlert (Ale_ERROR,"Error when saving URL to file.");
if (URLIsOK)
{
@@ -2299,7 +2299,7 @@ void Inf_ReceivePagInfo (void)
{
sprintf (Gbl.Alert.Txt,Txt_The_file_type_is_X_and_should_be_HTML_or_ZIP,
MIMEType);
- Lay_ShowAlert (Lay_INFO,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
}
else
{
@@ -2315,11 +2315,11 @@ void Inf_ReceivePagInfo (void)
sprintf (PathRelFileHTML,"%s/index.html",PathRelDirHTML);
if (Fil_EndReceptionOfFile (PathRelFileHTML,Param))
{
- Lay_ShowAlert (Lay_SUCCESS,Txt_The_HTML_file_has_been_received_successfully);
+ Ale_ShowAlert (Ale_SUCCESS,Txt_The_HTML_file_has_been_received_successfully);
FileIsOK = true;
}
else
- Lay_ShowAlert (Lay_WARNING,"Error uploading file.");
+ Ale_ShowAlert (Ale_WARNING,"Error uploading file.");
}
else if (Str_FileIs (SourceFileName,"zip")) // .zip file
{
@@ -2331,7 +2331,7 @@ void Inf_ReceivePagInfo (void)
if (Fil_EndReceptionOfFile (PathRelFileZIP,Param))
{
- Lay_ShowAlert (Lay_SUCCESS,Txt_The_ZIP_file_has_been_received_successfully);
+ Ale_ShowAlert (Ale_SUCCESS,Txt_The_ZIP_file_has_been_received_successfully);
/* Uncompress ZIP */
sprintf (StrUnzip,"unzip -qq -o %s -d %s",
@@ -2342,8 +2342,8 @@ void Inf_ReceivePagInfo (void)
sprintf (PathRelFileHTML,"%s/index.html",PathRelDirHTML);
if (Fil_CheckIfPathExists (PathRelFileHTML))
{
- Lay_ShowAlert (Lay_SUCCESS,Txt_The_ZIP_file_has_been_unzipped_successfully);
- Lay_ShowAlert (Lay_SUCCESS,Txt_Found_an_index_html_file);
+ Ale_ShowAlert (Ale_SUCCESS,Txt_The_ZIP_file_has_been_unzipped_successfully);
+ Ale_ShowAlert (Ale_SUCCESS,Txt_Found_an_index_html_file);
FileIsOK = true;
}
else
@@ -2351,22 +2351,22 @@ void Inf_ReceivePagInfo (void)
sprintf (PathRelFileHTML,"%s/index.htm",PathRelDirHTML);
if (Fil_CheckIfPathExists (PathRelFileHTML))
{
- Lay_ShowAlert (Lay_SUCCESS,Txt_The_ZIP_file_has_been_unzipped_successfully);
- Lay_ShowAlert (Lay_SUCCESS,Txt_Found_an_index_htm_file);
+ Ale_ShowAlert (Ale_SUCCESS,Txt_The_ZIP_file_has_been_unzipped_successfully);
+ Ale_ShowAlert (Ale_SUCCESS,Txt_Found_an_index_htm_file);
FileIsOK = true;
}
else
- Lay_ShowAlert (Lay_WARNING,Txt_No_file_index_html_index_htm_found_within_the_ZIP_file);
+ Ale_ShowAlert (Ale_WARNING,Txt_No_file_index_html_index_htm_found_within_the_ZIP_file);
}
}
else
Lay_ShowErrorAndExit ("Can not unzip file.");
}
else
- Lay_ShowAlert (Lay_WARNING,"Error uploading file.");
+ Ale_ShowAlert (Ale_WARNING,"Error uploading file.");
}
else
- Lay_ShowAlert (Lay_WARNING,Txt_The_file_type_should_be_HTML_or_ZIP);
+ Ale_ShowAlert (Ale_WARNING,Txt_The_file_type_should_be_HTML_or_ZIP);
}
if (FileIsOK)
@@ -2395,7 +2395,7 @@ void Inf_EditorCourseInfo (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Lay_ShowAlert (Lay_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
@@ -2409,7 +2409,7 @@ void Inf_EditorTeachingGuide (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Lay_ShowAlert (Lay_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
@@ -2423,7 +2423,7 @@ void Inf_EditorBibliography (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Lay_ShowAlert (Lay_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
@@ -2437,7 +2437,7 @@ void Inf_EditorFAQ (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Lay_ShowAlert (Lay_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
@@ -2451,7 +2451,7 @@ void Inf_EditorLinks (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Lay_ShowAlert (Lay_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
@@ -2465,7 +2465,7 @@ void Inf_EditorAssessment (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Lay_ShowAlert (Lay_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
diff --git a/swad_institution.c b/swad_institution.c
index df2206f0..b3ada627 100644
--- a/swad_institution.c
+++ b/swad_institution.c
@@ -200,7 +200,7 @@ void Ins_SeeInsWithPendingCtrs (void)
Lay_EndRoundFrameTable ();
}
else
- Lay_ShowAlert (Lay_INFO,Txt_There_are_no_institutions_with_requests_for_centres_to_be_confirmed);
+ Ale_ShowAlert (Ale_INFO,Txt_There_are_no_institutions_with_requests_for_centres_to_be_confirmed);
/***** Free structure that stores the query result *****/
DB_FreeMySQLResult (&mysql_res);
@@ -695,7 +695,7 @@ static void Ins_ListInstitutions (void)
Lay_EndTable ();
}
else // No insrtitutions created in the current country
- Lay_ShowAlert (Lay_INFO,Txt_No_institutions);
+ Ale_ShowAlert (Ale_INFO,Txt_No_institutions);
/***** Button to create institution *****/
if (Ins_CheckIfICanCreateInstitutions ())
@@ -1692,7 +1692,7 @@ void Ins_RemoveInstitution (void)
else if (Ins.NumCtrs ||
Ins.NumUsrsWhoClaimToBelongToIns ||
Ins.NumUsrs) // Institution has centres or users ==> don't remove
- Lay_ShowAlert (Lay_WARNING,Txt_To_remove_an_institution_you_must_first_remove_all_centres_and_users_in_the_institution);
+ Ale_ShowAlert (Ale_WARNING,Txt_To_remove_an_institution_you_must_first_remove_all_centres_and_users_in_the_institution);
else // Institution has no users ==> remove it
{
/***** Remove all the threads and posts in forums of the institution *****/
@@ -1719,7 +1719,7 @@ void Ins_RemoveInstitution (void)
/***** Write message to show the change made *****/
sprintf (Gbl.Alert.Txt,Txt_Institution_X_removed,
Ins.FullName);
- Lay_ShowAlert (Lay_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
}
/***** Show the form again *****/
@@ -1797,7 +1797,7 @@ static void Ins_RenameInstitution (struct Instit *Ins,Cns_ShrtOrFullName_t ShrtO
/***** Check if new name is empty *****/
if (!NewInsName[0])
{
- Gbl.Alert.Type = Lay_WARNING;
+ Gbl.Alert.Type = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_You_can_not_leave_the_name_of_the_institution_X_empty,
CurrentInsName);
}
@@ -1809,7 +1809,7 @@ static void Ins_RenameInstitution (struct Instit *Ins,Cns_ShrtOrFullName_t ShrtO
/***** If institution was in database... *****/
if (Ins_CheckIfInsNameExistsInCty (ParamName,NewInsName,Ins->InsCod,Gbl.CurrentCty.Cty.CtyCod))
{
- Gbl.Alert.Type = Lay_WARNING;
+ Gbl.Alert.Type = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_The_institution_X_already_exists,
NewInsName);
}
@@ -1819,7 +1819,7 @@ static void Ins_RenameInstitution (struct Instit *Ins,Cns_ShrtOrFullName_t ShrtO
Ins_UpdateInsNameDB (Ins->InsCod,FieldName,NewInsName);
/* Create message to show the change made */
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_The_institution_X_has_been_renamed_as_Y,
CurrentInsName,NewInsName);
@@ -1830,7 +1830,7 @@ static void Ins_RenameInstitution (struct Instit *Ins,Cns_ShrtOrFullName_t ShrtO
}
else // The same name
{
- Gbl.Alert.Type = Lay_INFO;
+ Gbl.Alert.Type = Ale_INFO;
sprintf (Gbl.Alert.Txt,Txt_The_name_of_the_institution_X_has_not_changed,
CurrentInsName);
}
@@ -1888,13 +1888,13 @@ void Ins_ChangeInsCtyInConfig (void)
/***** Check if it already exists an institution with the same name in the new country *****/
if (Ins_CheckIfInsNameExistsInCty ("ShortName",Gbl.CurrentIns.Ins.ShrtName,-1L,NewCty.CtyCod))
{
- Gbl.Alert.Type = Lay_WARNING;
+ Gbl.Alert.Type = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_The_institution_X_already_exists,
Gbl.CurrentIns.Ins.ShrtName);
}
else if (Ins_CheckIfInsNameExistsInCty ("FullName",Gbl.CurrentIns.Ins.FullName,-1L,NewCty.CtyCod))
{
- Gbl.Alert.Type = Lay_WARNING;
+ Gbl.Alert.Type = Ale_WARNING;
sprintf (Gbl.Alert.Txt,Txt_The_institution_X_already_exists,
Gbl.CurrentIns.Ins.FullName);
}
@@ -1909,7 +1909,7 @@ void Ins_ChangeInsCtyInConfig (void)
Hie_InitHierarchy ();
/***** Write message to show the change made *****/
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_The_country_of_the_institution_X_has_changed_to_Y,
Gbl.CurrentIns.Ins.FullName,NewCty.Name[Gbl.Prefs.Language]);
}
@@ -1923,7 +1923,7 @@ void Ins_ChangeInsCtyInConfig (void)
void Ins_ContEditAfterChgInsInConfig (void)
{
/***** Write success / warning message *****/
- Lay_ShowPendingAlert ();
+ Ale_ShowPendingAlert ();
/***** Show the form again *****/
Ins_ShowConfiguration ();
@@ -1973,12 +1973,12 @@ void Ins_ChangeInsWWW (void)
/***** Write message to show the change made
and put button to go to institution changed *****/
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_The_new_web_address_is_X,NewWWW);
Ins_ShowAlertAndButtonToGoToIns ();
}
else
- Lay_ShowAlert (Lay_WARNING,Txt_You_can_not_leave_the_web_address_empty);
+ Ale_ShowAlert (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty);
/***** Show the form again *****/
Ins_EditInstitutions ();
@@ -2004,10 +2004,10 @@ void Ins_ChangeInsWWWInConfig (void)
/***** Write message to show the change made *****/
sprintf (Gbl.Alert.Txt,Txt_The_new_web_address_is_X,NewWWW);
- Lay_ShowAlert (Lay_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
}
else
- Lay_ShowAlert (Lay_WARNING,Txt_You_can_not_leave_the_web_address_empty);
+ Ale_ShowAlert (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty);
/***** Show the form again *****/
Ins_ShowConfiguration ();
@@ -2064,7 +2064,7 @@ void Ins_ChangeInsStatus (void)
/***** Write message to show the change made
and put button to go to institution changed *****/
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_The_status_of_the_institution_X_has_changed,
Gbl.Inss.EditingIns.ShrtName);
Ins_ShowAlertAndButtonToGoToIns ();
@@ -2103,13 +2103,13 @@ static void Ins_ShowAlertAndButtonToGoToIns (void)
{
/***** Alert with button to go to degree *****/
sprintf (Gbl.Title,Txt_Go_to_X,Gbl.Inss.EditingIns.ShrtName);
- Lay_ShowAlertAndButton (Gbl.Alert.Type,Gbl.Alert.Txt,
+ Ale_ShowAlertAndButton (Gbl.Alert.Type,Gbl.Alert.Txt,
ActSeeCtr,NULL,Ins_PutParamGoToIns,
Lay_CONFIRM_BUTTON,Gbl.Title);
}
else
/***** Alert *****/
- Lay_ShowAlert (Gbl.Alert.Type,Gbl.Alert.Txt);
+ Ale_ShowAlert (Gbl.Alert.Type,Gbl.Alert.Txt);
}
static void Ins_PutParamGoToIns (void)
@@ -2345,22 +2345,22 @@ static void Ins_RecFormRequestOrCreateIns (unsigned Status)
{
sprintf (Gbl.Alert.Txt,Txt_The_institution_X_already_exists,
Gbl.Inss.EditingIns.ShrtName);
- Lay_ShowAlert (Lay_WARNING,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
}
else if (Ins_CheckIfInsNameExistsInCty ("FullName",Gbl.Inss.EditingIns.FullName,-1L,Gbl.CurrentCty.Cty.CtyCod))
{
sprintf (Gbl.Alert.Txt,Txt_The_institution_X_already_exists,
Gbl.Inss.EditingIns.FullName);
- Lay_ShowAlert (Lay_WARNING,Gbl.Alert.Txt);
+ Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
}
else // Add new institution to database
Ins_CreateInstitution (Status);
}
else // If there is not a web
- Lay_ShowAlert (Lay_WARNING,Txt_You_must_specify_the_web_address_of_the_new_institution);
+ Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_web_address_of_the_new_institution);
}
else // If there is not a institution name
- Lay_ShowAlert (Lay_WARNING,Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_institution);
+ Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_institution);
/***** Show the form again *****/
Ins_EditInstitutions ();
@@ -2394,7 +2394,7 @@ static void Ins_CreateInstitution (unsigned Status)
/***** Write message to show the change made
and put button to go to institution created *****/
- Gbl.Alert.Type = Lay_SUCCESS;
+ Gbl.Alert.Type = Ale_SUCCESS;
sprintf (Gbl.Alert.Txt,Txt_Created_new_institution_X,
Gbl.Inss.EditingIns.FullName);
Ins_ShowAlertAndButtonToGoToIns ();
diff --git a/swad_layout.c b/swad_layout.c
index e8ea6542..3212229e 100644
--- a/swad_layout.c
+++ b/swad_layout.c
@@ -66,17 +66,6 @@ extern struct Globals Gbl;
/***************************** Private constants *****************************/
/*****************************************************************************/
-static const char *Lay_AlertIcons[Lay_NUM_ALERT_TYPES] =
- {
- NULL, // Lay_NONE
- "info64x64.png", // Lay_INFO
- "success64x64.png", // Lay_SUCCESS
- "question64x64.gif", // Lay_QUESTION animated gif
- "warning64x64.gif", // Lay_WARNING animated gif
- "error64x64.gif", // Lay_ERROR animated gif
- "copy_on16x16.gif", // Lay_CLIPBOARD
- };
-
/*****************************************************************************/
/******************************* Private types *******************************/
/*****************************************************************************/
@@ -106,8 +95,6 @@ static void Lay_WriteTitleAction (void);
static void Lay_ShowLeftColumn (void);
static void Lay_ShowRightColumn (void);
-static void Lay_PutButton (Lay_Button_t Button,const char *TxtButton);
-
static void Lay_StartRoundFrameInternal (const char *Width,const char *Title,
void (*FunctionToDrawContextualIcons) (void),
const char *HelpLink,
@@ -1351,7 +1338,7 @@ void Lay_PutIconRemove (void)
/********************** Put a button to submit a form ************************/
/*****************************************************************************/
-static void Lay_PutButton (Lay_Button_t Button,const char *TxtButton)
+void Lay_PutButton (Lay_Button_t Button,const char *TxtButton)
{
if (TxtButton)
if (TxtButton[0])
@@ -1600,7 +1587,7 @@ void Lay_ShowErrorAndExit (const char *Txt)
/***** Write possible error message *****/
if (Txt)
- Lay_ShowAlert (Lay_ERROR,Txt);
+ Ale_ShowAlert (Ale_ERROR,Txt);
/***** Finish the page, except