Version 18.46.4

This commit is contained in:
Antonio Cañas Vargas 2019-02-16 01:20:54 +01:00
parent 0af8aea203
commit ff5db0e23c
7 changed files with 249 additions and 432 deletions

View File

@ -402,10 +402,11 @@ En OpenSWAD:
ps2pdf source.ps destination.pdf ps2pdf source.ps destination.pdf
*/ */
#define Log_PLATFORM_VERSION "SWAD 18.46.3 (2019-02-16)" #define Log_PLATFORM_VERSION "SWAD 18.46.4 (2019-02-16)"
#define CSS_FILE "swad18.41.1.css" #define CSS_FILE "swad18.41.1.css"
#define JS_FILE "swad18.32.1.js" #define JS_FILE "swad18.32.1.js"
/* /*
Version 18.46.4: Feb 16, 2019 Refactoring code related to alerts. (238061 lines)
Version 18.46.3: Feb 16, 2019 Refactoring code related to alerts. (238243 lines) Version 18.46.3: Feb 16, 2019 Refactoring code related to alerts. (238243 lines)
Version 18.46.2: Feb 16, 2019 Refactoring code related to alerts. (238298 lines) Version 18.46.2: Feb 16, 2019 Refactoring code related to alerts. (238298 lines)
Version 18.46.1: Feb 15, 2019 Refactoring code related to alerts. (238355 lines) Version 18.46.1: Feb 15, 2019 Refactoring code related to alerts. (238355 lines)

View File

@ -228,7 +228,7 @@ void Deg_SeeDegWithPendingCrss (void)
Box_EndBoxTable (); Box_EndBoxTable ();
} }
else else
Ale_ShowA_old (Ale_INFO,Txt_There_are_no_degrees_with_requests_for_courses_to_be_confirmed); Ale_ShowA_fmt (Ale_INFO,Txt_There_are_no_degrees_with_requests_for_courses_to_be_confirmed);
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/
DB_FreeMySQLResult (&mysql_res); DB_FreeMySQLResult (&mysql_res);
@ -1202,7 +1202,7 @@ static void Deg_ListDegrees (void)
Tbl_EndTable (); Tbl_EndTable ();
} }
else // No degrees created in the current centre else // No degrees created in the current centre
Ale_ShowA_old (Ale_INFO,Txt_No_degrees); Ale_ShowA_fmt (Ale_INFO,Txt_No_degrees);
/***** Button to create degree *****/ /***** Button to create degree *****/
if (Deg_CheckIfICanCreateDegrees ()) if (Deg_CheckIfICanCreateDegrees ())
@ -1376,7 +1376,7 @@ void Deg_EditDegrees (void)
else // No degree types else // No degree types
{ {
/***** Warning message *****/ /***** Warning message *****/
Ale_ShowA_old (Ale_WARNING,Txt_No_types_of_degree); Ale_ShowA_fmt (Ale_WARNING,Txt_No_types_of_degree);
/***** Form to create the first degree type *****/ /***** Form to create the first degree type *****/
if (DT_CheckIfICanCreateDegreeTypes ()) if (DT_CheckIfICanCreateDegreeTypes ())
@ -1579,27 +1579,19 @@ static void Deg_RecFormRequestOrCreateDeg (unsigned Status)
{ {
/***** If name of degree was in database... *****/ /***** If name of degree was in database... *****/
if (Deg_CheckIfDegNameExistsInCtr ("ShortName",Gbl.Degs.EditingDeg.ShrtName,-1L,Gbl.Degs.EditingDeg.CtrCod)) if (Deg_CheckIfDegNameExistsInCtr ("ShortName",Gbl.Degs.EditingDeg.ShrtName,-1L,Gbl.Degs.EditingDeg.CtrCod))
{ Ale_ShowA_fmt (Ale_WARNING,Txt_The_degree_X_already_exists,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Gbl.Degs.EditingDeg.ShrtName);
Txt_The_degree_X_already_exists,
Gbl.Degs.EditingDeg.ShrtName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else if (Deg_CheckIfDegNameExistsInCtr ("FullName",Gbl.Degs.EditingDeg.FullName,-1L,Gbl.Degs.EditingDeg.CtrCod)) else if (Deg_CheckIfDegNameExistsInCtr ("FullName",Gbl.Degs.EditingDeg.FullName,-1L,Gbl.Degs.EditingDeg.CtrCod))
{ Ale_ShowA_fmt (Ale_WARNING,Txt_The_degree_X_already_exists,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Gbl.Degs.EditingDeg.FullName);
Txt_The_degree_X_already_exists,
Gbl.Degs.EditingDeg.FullName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else // Add new degree to database else // Add new degree to database
Deg_CreateDegree (Status); Deg_CreateDegree (Status);
} }
else // If there is not a degree logo or web else // If there is not a degree logo or web
Ale_ShowA_old (Ale_WARNING,Txt_You_must_specify_the_web_address_of_the_new_degree); Ale_ShowA_fmt (Ale_WARNING,Txt_You_must_specify_the_web_address_of_the_new_degree);
} }
else // If there is not a degree name else // If there is not a degree name
Ale_ShowA_old (Ale_WARNING,Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_degree); Ale_ShowA_fmt (Ale_WARNING,Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_degree);
/***** Show the form again *****/ /***** Show the form again *****/
Deg_EditDegrees (); Deg_EditDegrees ();
@ -1623,17 +1615,15 @@ void Deg_RemoveDegree (void)
/***** Check if this degree has courses *****/ /***** Check if this degree has courses *****/
if (Crs_GetNumCrssInDeg (Deg.DegCod)) // Degree has courses ==> don't remove if (Crs_GetNumCrssInDeg (Deg.DegCod)) // Degree has courses ==> don't remove
Ale_ShowA_old (Ale_WARNING,Txt_To_remove_a_degree_you_must_first_remove_all_courses_in_the_degree); Ale_ShowA_fmt (Ale_WARNING,Txt_To_remove_a_degree_you_must_first_remove_all_courses_in_the_degree);
else // Degree has no courses ==> remove it else // Degree has no courses ==> remove it
{ {
/***** Remove degree *****/ /***** Remove degree *****/
Deg_RemoveDegreeCompletely (Deg.DegCod); Deg_RemoveDegreeCompletely (Deg.DegCod);
/***** Write message to show the change made *****/ /***** Write message to show the change made *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_Degree_X_removed,
Txt_Degree_X_removed, Deg.FullName);
Deg.FullName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
/***** Show the form again *****/ /***** Show the form again *****/
@ -2173,7 +2163,7 @@ void Deg_ChangeDegWWW (void)
Deg_ShowAlertAndButtonToGoToDeg (); Deg_ShowAlertAndButtonToGoToDeg ();
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty); Ale_ShowA_fmt (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty);
/***** Show the form again *****/ /***** Show the form again *****/
Deg_EditDegrees (); Deg_EditDegrees ();
@ -2198,13 +2188,11 @@ void Deg_ChangeDegWWWInConfig (void)
Cns_MAX_BYTES_WWW); Cns_MAX_BYTES_WWW);
/***** Write message to show the change made *****/ /***** Write message to show the change made *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_new_web_address_is_X,
Txt_The_new_web_address_is_X, NewWWW);
NewWWW);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty); Ale_ShowA_fmt (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty);
/***** Show the form again *****/ /***** Show the form again *****/
Deg_ShowConfiguration (); Deg_ShowConfiguration ();
@ -2307,7 +2295,7 @@ void Deg_ShowAlertAndButtonToGoToDeg (void)
} }
else else
/***** Alert *****/ /***** Alert *****/
Ale_ShowA_old (Gbl.Alert.Type,Gbl.Alert.Txt); Ale_ShowA_new (Gbl.AlertToShowLater.Type,Gbl.AlertToShowLater.Txt);
} }
static void Deg_PutParamGoToDeg (void) static void Deg_PutParamGoToDeg (void)

View File

@ -613,7 +613,7 @@ void Dpt_RemoveDepartment (void)
/***** Check if this department has teachers *****/ /***** Check if this department has teachers *****/
if (Dpt.NumTchs) // Department has teachers ==> don't remove if (Dpt.NumTchs) // Department has teachers ==> don't remove
Ale_ShowA_old (Ale_WARNING,Txt_To_remove_a_department_you_must_first_remove_all_teachers_in_the_department); Ale_ShowA_fmt (Ale_WARNING,Txt_To_remove_a_department_you_must_first_remove_all_teachers_in_the_department);
else // Department has no teachers ==> remove it else // Department has no teachers ==> remove it
{ {
/***** Remove department *****/ /***** Remove department *****/
@ -622,10 +622,8 @@ void Dpt_RemoveDepartment (void)
Dpt.DptCod); Dpt.DptCod);
/***** Write message to show the change made *****/ /***** Write message to show the change made *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_Department_X_removed,
Txt_Department_X_removed, Dpt.FullName);
Dpt.FullName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
/***** Show the form again *****/ /***** Show the form again *****/
@ -656,7 +654,7 @@ void Dpt_ChangeDepartIns (void)
Dpt->InsCod,Dpt->DptCod); Dpt->InsCod,Dpt->DptCod);
/***** Write message to show the change made *****/ /***** Write message to show the change made *****/
Ale_ShowA_old (Ale_SUCCESS,Txt_The_institution_of_the_department_has_changed); Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_institution_of_the_department_has_changed);
/***** Show the form again *****/ /***** Show the form again *****/
Dpt_EditDepartments (); Dpt_EditDepartments ();
@ -726,12 +724,8 @@ static void Dpt_RenameDepartment (Cns_ShrtOrFullName_t ShrtOrFullName)
/***** Check if new name is empty *****/ /***** Check if new name is empty *****/
if (!NewDptName[0]) if (!NewDptName[0])
{ Ale_ShowA_fmt (Ale_WARNING,Txt_You_can_not_leave_the_name_of_the_department_X_empty,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), CurrentDptName);
Txt_You_can_not_leave_the_name_of_the_department_X_empty,
CurrentDptName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else else
{ {
/***** Check if old and new names are the same /***** Check if old and new names are the same
@ -740,31 +734,21 @@ static void Dpt_RenameDepartment (Cns_ShrtOrFullName_t ShrtOrFullName)
{ {
/***** If degree was in database... *****/ /***** If degree was in database... *****/
if (Dpt_CheckIfDepartmentNameExists (ParamName,NewDptName,Dpt->DptCod)) if (Dpt_CheckIfDepartmentNameExists (ParamName,NewDptName,Dpt->DptCod))
{ Ale_ShowA_fmt (Ale_WARNING,Txt_The_department_X_already_exists,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), NewDptName);
Txt_The_department_X_already_exists,
NewDptName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else else
{ {
/* Update the table changing old name by new name */ /* Update the table changing old name by new name */
Dpt_UpdateDegNameDB (Dpt->DptCod,FieldName,NewDptName); Dpt_UpdateDegNameDB (Dpt->DptCod,FieldName,NewDptName);
/* Write message to show the change made */ /* Write message to show the change made */
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_department_X_has_been_renamed_as_Y,
Txt_The_department_X_has_been_renamed_as_Y, CurrentDptName,NewDptName);
CurrentDptName,NewDptName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
} }
else // The same name else // The same name
{ Ale_ShowA_fmt (Ale_INFO,Txt_The_name_of_the_department_X_has_not_changed,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), CurrentDptName);
Txt_The_name_of_the_department_X_has_not_changed,
CurrentDptName);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
} }
/***** Show the form again *****/ /***** Show the form again *****/
@ -828,13 +812,11 @@ void Dpt_ChangeDptWWW (void)
NewWWW,Dpt->DptCod); NewWWW,Dpt->DptCod);
/***** Write message to show the change made *****/ /***** Write message to show the change made *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_new_web_address_is_X,
Txt_The_new_web_address_is_X, NewWWW);
NewWWW);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty); Ale_ShowA_fmt (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty);
/***** Show the form again *****/ /***** Show the form again *****/
Str_Copy (Dpt->WWW,NewWWW, Str_Copy (Dpt->WWW,NewWWW,
@ -1017,27 +999,19 @@ void Dpt_RecFormNewDpt (void)
{ {
/***** If name of department was in database... *****/ /***** If name of department was in database... *****/
if (Dpt_CheckIfDepartmentNameExists ("ShortName",Dpt->ShrtName,-1L)) if (Dpt_CheckIfDepartmentNameExists ("ShortName",Dpt->ShrtName,-1L))
{ Ale_ShowA_fmt (Ale_WARNING,Txt_The_department_X_already_exists,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Dpt->ShrtName);
Txt_The_department_X_already_exists,
Dpt->ShrtName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else if (Dpt_CheckIfDepartmentNameExists ("FullName",Dpt->FullName,-1L)) else if (Dpt_CheckIfDepartmentNameExists ("FullName",Dpt->FullName,-1L))
{ Ale_ShowA_fmt (Ale_WARNING,Txt_The_department_X_already_exists,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Dpt->FullName);
Txt_The_department_X_already_exists,
Dpt->FullName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else // Add new department to database else // Add new department to database
Dpt_CreateDepartment (Dpt); Dpt_CreateDepartment (Dpt);
} }
else // If there is not a web else // If there is not a web
Ale_ShowA_old (Ale_WARNING,Txt_You_must_specify_the_web_address_of_the_new_department); Ale_ShowA_fmt (Ale_WARNING,Txt_You_must_specify_the_web_address_of_the_new_department);
} }
else // If there is not a department name else // If there is not a department name
Ale_ShowA_old (Ale_WARNING,Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_department); Ale_ShowA_fmt (Ale_WARNING,Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_department);
/***** Show the form again *****/ /***** Show the form again *****/
Dpt_EditDepartments (); Dpt_EditDepartments ();
@ -1060,10 +1034,8 @@ static void Dpt_CreateDepartment (struct Department *Dpt)
Dpt->InsCod,Dpt->ShrtName,Dpt->FullName,Dpt->WWW); Dpt->InsCod,Dpt->ShrtName,Dpt->FullName,Dpt->WWW);
/***** Write success message *****/ /***** Write success message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_Created_new_department_X,
Txt_Created_new_department_X, Dpt->FullName);
Dpt->FullName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
/*****************************************************************************/ /*****************************************************************************/

View File

@ -102,13 +102,13 @@ void Dup_ReportUsrAsPossibleDuplicate (void)
Gbl.Usrs.Me.UsrDat.UsrCod); Gbl.Usrs.Me.UsrDat.UsrCod);
/***** Show feedback message *****/ /***** Show feedback message *****/
Ale_ShowA_old (Ale_SUCCESS,Txt_Thank_you_for_reporting_a_possible_duplicate_user); Ale_ShowA_fmt (Ale_SUCCESS,Txt_Thank_you_for_reporting_a_possible_duplicate_user);
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -250,7 +250,7 @@ void Dup_GetUsrCodAndListSimilarUsrs (void)
if (Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ()) if (Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ())
Dup_ListSimilarUsrs (); Dup_ListSimilarUsrs ();
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
static void Dup_ListSimilarUsrs (void) static void Dup_ListSimilarUsrs (void)
@ -459,7 +459,7 @@ void Dup_RemoveUsrFromListDupUsrs (void)
Dup_ListDuplicateUsrs (); Dup_ListDuplicateUsrs ();
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
/*****************************************************************************/ /*****************************************************************************/

View File

@ -394,11 +394,9 @@ void Enr_ReqAcceptRegisterInCrs (void)
Hlp_USERS_SignUp_confirm_enrolment,Box_NOT_CLOSABLE); Hlp_USERS_SignUp_confirm_enrolment,Box_NOT_CLOSABLE);
/***** Show message *****/ /***** Show message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_A_teacher_or_administrator_has_enroled_you_as_X_into_the_course_Y,
Txt_A_teacher_or_administrator_has_enroled_you_as_X_into_the_course_Y, Txt_ROLES_SINGUL_abc[Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role][Gbl.Usrs.Me.UsrDat.Sex],
Txt_ROLES_SINGUL_abc[Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role][Gbl.Usrs.Me.UsrDat.Sex], Gbl.CurrentCrs.Crs.FullName);
Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
/***** Send button to accept register in the current course *****/ /***** Send button to accept register in the current course *****/
switch (Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role) switch (Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role)
@ -627,7 +625,7 @@ static void Enr_ReqAdminUsrs (Rol_Role_t Role)
Enr_ReqAnotherUsrIDToRegisterRemove (Role); Enr_ReqAnotherUsrIDToRegisterRemove (Role);
break; break;
default: default:
Ale_ShowA_old (Ale_ERROR,Txt_You_dont_have_permission_to_perform_this_action); Ale_ShowA_fmt (Ale_ERROR,Txt_You_dont_have_permission_to_perform_this_action);
break; break;
} }
} }
@ -721,7 +719,7 @@ static void Enr_ShowFormRegRemSeveralUsrs (Rol_Role_t Role)
The_ClassTitle[Gbl.Prefs.Theme], The_ClassTitle[Gbl.Prefs.Theme],
Txt_Step_1_Provide_a_list_of_users); Txt_Step_1_Provide_a_list_of_users);
Ale_ShowA_old (Ale_INFO,Txt_Type_or_paste_a_list_of_IDs_nicks_or_emails_); Ale_ShowA_fmt (Ale_INFO,Txt_Type_or_paste_a_list_of_IDs_nicks_or_emails_);
Enr_PutAreaToEnterUsrsIDs (); Enr_PutAreaToEnterUsrsIDs ();
/***** Step 2: Put different actions to register/remove users to/from current course *****/ /***** Step 2: Put different actions to register/remove users to/from current course *****/
@ -742,17 +740,13 @@ static void Enr_ShowFormRegRemSeveralUsrs (Rol_Role_t Role)
{ {
if (Gbl.CurrentCrs.Grps.NumGrps) // This course has groups? if (Gbl.CurrentCrs.Grps.NumGrps) // This course has groups?
{ {
Ale_ShowA_old (Ale_INFO,Txt_Select_the_groups_in_from_which_you_want_to_register_remove_users_); Ale_ShowA_fmt (Ale_INFO,Txt_Select_the_groups_in_from_which_you_want_to_register_remove_users_);
Grp_ShowLstGrpsToChgOtherUsrsGrps (-1L); Grp_ShowLstGrpsToChgOtherUsrsGrps (-1L);
} }
else else
{
/* Write help message */ /* Write help message */
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_No_groups_have_been_created_in_the_course_X_Therefore_,
Txt_No_groups_have_been_created_in_the_course_X_Therefore_, Gbl.CurrentCrs.Crs.FullName);
Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
} }
/***** Step 4: Confirm register / remove students *****/ /***** Step 4: Confirm register / remove students *****/
@ -871,12 +865,10 @@ void Enr_RemoveOldUsrs (void)
(unsigned long) SecondsWithoutAccess); (unsigned long) SecondsWithoutAccess);
if (NumUsrs) if (NumUsrs)
{ {
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_Eliminating_X_users_who_were_not_enroled_in_any_course_and_with_more_than_Y_months_without_access_to_Z,
Txt_Eliminating_X_users_who_were_not_enroled_in_any_course_and_with_more_than_Y_months_without_access_to_Z, NumUsrs,
NumUsrs, MonthsWithoutAccess,
MonthsWithoutAccess, Cfg_PLATFORM_SHORT_NAME);
Cfg_PLATFORM_SHORT_NAME);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
/***** Initialize structure with user's data *****/ /***** Initialize structure with user's data *****/
Usr_UsrDataConstructor (&UsrDat); Usr_UsrDataConstructor (&UsrDat);
@ -906,10 +898,8 @@ void Enr_RemoveOldUsrs (void)
} }
/***** Write end message *****/ /***** Write end message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_X_users_have_been_eliminated,
Txt_X_users_have_been_eliminated, NumUsrsEliminated);
NumUsrsEliminated);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -1509,7 +1499,7 @@ static void Enr_ReceiveFormUsrsCrs (Rol_Role_t Role)
if (!Grp_CheckIfSelectionGrpsSingleEnrolmentIsValid (Role,&LstGrps)) if (!Grp_CheckIfSelectionGrpsSingleEnrolmentIsValid (Role,&LstGrps))
{ {
/* Show warning message and exit */ /* Show warning message and exit */
Ale_ShowA_old (Ale_WARNING,Txt_In_a_type_of_group_with_single_enrolment_students_can_not_be_registered_in_more_than_one_group); Ale_ShowA_fmt (Ale_WARNING,Txt_In_a_type_of_group_with_single_enrolment_students_can_not_be_registered_in_more_than_one_group);
/* Free memory used by lists of groups and abort */ /* Free memory used by lists of groups and abort */
Grp_FreeListCodGrp (&LstGrps); Grp_FreeListCodGrp (&LstGrps);
@ -1746,32 +1736,28 @@ static void Enr_ReceiveFormUsrsCrs (Rol_Role_t Role)
switch (NumUsrsEliminated) switch (NumUsrsEliminated)
{ {
case 0: case 0:
Ale_ShowA_old (Ale_INFO,Txt_No_user_has_been_eliminated); Ale_ShowA_fmt (Ale_INFO,Txt_No_user_has_been_eliminated);
break; break;
case 1: case 1:
Ale_ShowA_old (Ale_SUCCESS,Txt_One_user_has_been_eliminated); Ale_ShowA_fmt (Ale_SUCCESS,Txt_One_user_has_been_eliminated);
break; break;
default: default:
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_X_users_have_been_eliminated,
Txt_X_users_have_been_eliminated, NumUsrsEliminated);
NumUsrsEliminated);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
break; break;
} }
else // Only remove from course / groups else // Only remove from course / groups
switch (NumUsrsRemoved) switch (NumUsrsRemoved)
{ {
case 0: case 0:
Ale_ShowA_old (Ale_INFO,Txt_No_user_has_been_removed); Ale_ShowA_fmt (Ale_INFO,Txt_No_user_has_been_removed);
break; break;
case 1: case 1:
Ale_ShowA_old (Ale_SUCCESS,Txt_One_user_has_been_removed); Ale_ShowA_fmt (Ale_SUCCESS,Txt_One_user_has_been_removed);
break; break;
default: default:
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_X_users_have_been_removed,
Txt_X_users_have_been_removed, NumUsrsRemoved);
NumUsrsRemoved);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
break; break;
} }
} }
@ -1779,16 +1765,14 @@ static void Enr_ReceiveFormUsrsCrs (Rol_Role_t Role)
switch (NumUsrsRegistered) switch (NumUsrsRegistered)
{ {
case 0: case 0:
Ale_ShowA_old (Ale_INFO,Txt_No_user_has_been_enroled); Ale_ShowA_fmt (Ale_INFO,Txt_No_user_has_been_enroled);
break; break;
case 1: case 1:
Ale_ShowA_old (Ale_SUCCESS,Txt_One_user_has_been_enroled); Ale_ShowA_fmt (Ale_SUCCESS,Txt_One_user_has_been_enroled);
break; break;
default: default:
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_X_users_have_been_enroled_including_possible_repetitions,
Txt_X_users_have_been_enroled_including_possible_repetitions, NumUsrsRegistered);
NumUsrsRegistered);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
break; break;
} }
@ -1919,12 +1903,8 @@ void Enr_RemAllStdsThisCrs (void)
if (Pwd_GetConfirmationOnDangerousAction ()) if (Pwd_GetConfirmationOnDangerousAction ())
{ {
if ((NumStdsInCrs = Enr_RemAllStdsInCrs (&Gbl.CurrentCrs.Crs))) if ((NumStdsInCrs = Enr_RemAllStdsInCrs (&Gbl.CurrentCrs.Crs)))
{ Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_X_students_who_belonged_to_the_course_Y_have_been_removed_from_it,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), NumStdsInCrs,Gbl.CurrentCrs.Crs.FullName);
Txt_The_X_students_who_belonged_to_the_course_Y_have_been_removed_from_it,
NumStdsInCrs,Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
}
else // NumStdsInCrs == 0 else // NumStdsInCrs == 0
/***** Show warning indicating no students found *****/ /***** Show warning indicating no students found *****/
Usr_ShowWarningNoUsersFound (Rol_STD); Usr_ShowWarningNoUsersFound (Rol_STD);
@ -1973,13 +1953,9 @@ void Enr_ReqSignUpInCrs (void)
/***** Check if I already belong to course *****/ /***** Check if I already belong to course *****/
if (Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role >= Rol_STD) if (Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role >= Rol_STD)
{ Ale_ShowA_fmt (Ale_WARNING,Txt_You_were_already_enroled_as_X_in_the_course_Y,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Txt_ROLES_SINGUL_abc[Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role][Gbl.Usrs.Me.UsrDat.Sex],
Txt_You_were_already_enroled_as_X_in_the_course_Y, Gbl.CurrentCrs.Crs.FullName);
Txt_ROLES_SINGUL_abc[Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role][Gbl.Usrs.Me.UsrDat.Sex],
Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else if (Gbl.Usrs.Me.Role.Logged == Rol_GST || else if (Gbl.Usrs.Me.Role.Logged == Rol_GST ||
Gbl.Usrs.Me.Role.Logged == Rol_USR) Gbl.Usrs.Me.Role.Logged == Rol_USR)
/***** Show form to modify only the user's role or the user's data *****/ /***** Show form to modify only the user's role or the user's data *****/
@ -2004,13 +1980,9 @@ void Enr_SignUpInCrs (void)
/***** Check if I already belong to course *****/ /***** Check if I already belong to course *****/
if (Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role >= Rol_STD) if (Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role >= Rol_STD)
{ Ale_ShowA_fmt (Ale_WARNING,Txt_You_were_already_enroled_as_X_in_the_course_Y,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Txt_ROLES_SINGUL_abc[Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role][Gbl.Usrs.Me.UsrDat.Sex],
Txt_You_were_already_enroled_as_X_in_the_course_Y, Gbl.CurrentCrs.Crs.FullName);
Txt_ROLES_SINGUL_abc[Gbl.Usrs.Me.UsrDat.Roles.InCurrentCrs.Role][Gbl.Usrs.Me.UsrDat.Sex],
Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else else
{ {
/***** Get new role from record form *****/ /***** Get new role from record form *****/
@ -2061,11 +2033,9 @@ void Enr_SignUpInCrs (void)
(unsigned) RoleFromForm); (unsigned) RoleFromForm);
/***** Show confirmation message *****/ /***** Show confirmation message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_Your_request_for_enrolment_as_X_in_the_course_Y_has_been_accepted_for_processing,
Txt_Your_request_for_enrolment_as_X_in_the_course_Y_has_been_accepted_for_processing, Txt_ROLES_SINGUL_abc[RoleFromForm][Gbl.Usrs.Me.UsrDat.Sex],
Txt_ROLES_SINGUL_abc[RoleFromForm][Gbl.Usrs.Me.UsrDat.Sex], Gbl.CurrentCrs.Crs.FullName);
Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Notify teachers or admins by email about the new enrolment request *****/ /***** Notify teachers or admins by email about the new enrolment request *****/
// If this course has teachers ==> send notification to teachers // If this course has teachers ==> send notification to teachers
@ -2152,10 +2122,8 @@ void Enr_AskIfRejectSignUp (void)
if (Usr_CheckIfUsrBelongsToCurrentCrs (&Gbl.Usrs.Other.UsrDat)) if (Usr_CheckIfUsrBelongsToCurrentCrs (&Gbl.Usrs.Other.UsrDat))
{ {
/* User already belongs to this course */ /* User already belongs to this course */
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_THE_USER_X_is_already_enroled_in_the_course_Y,
Txt_THE_USER_X_is_already_enroled_in_the_course_Y, Gbl.Usrs.Other.UsrDat.FullName,Gbl.CurrentCrs.Crs.FullName);
Gbl.Usrs.Other.UsrDat.FullName,Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
Rec_ShowSharedRecordUnmodifiable (&Gbl.Usrs.Other.UsrDat); Rec_ShowSharedRecordUnmodifiable (&Gbl.Usrs.Other.UsrDat);
/* Remove inscription request because it has not sense */ /* Remove inscription request because it has not sense */
@ -2190,7 +2158,7 @@ void Enr_AskIfRejectSignUp (void)
} }
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -2211,10 +2179,8 @@ void Enr_RejectSignUp (void)
if (Usr_CheckIfUsrBelongsToCurrentCrs (&Gbl.Usrs.Other.UsrDat)) if (Usr_CheckIfUsrBelongsToCurrentCrs (&Gbl.Usrs.Other.UsrDat))
{ {
/* User already belongs to this course */ /* User already belongs to this course */
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_THE_USER_X_is_already_enroled_in_the_course_Y,
Txt_THE_USER_X_is_already_enroled_in_the_course_Y, Gbl.Usrs.Other.UsrDat.FullName,Gbl.CurrentCrs.Crs.FullName);
Gbl.Usrs.Other.UsrDat.FullName,Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
Rec_ShowSharedRecordUnmodifiable (&Gbl.Usrs.Other.UsrDat); Rec_ShowSharedRecordUnmodifiable (&Gbl.Usrs.Other.UsrDat);
} }
@ -2222,13 +2188,11 @@ void Enr_RejectSignUp (void)
Enr_RemoveEnrolmentRequest (Gbl.CurrentCrs.Crs.CrsCod,Gbl.Usrs.Other.UsrDat.UsrCod); Enr_RemoveEnrolmentRequest (Gbl.CurrentCrs.Crs.CrsCod,Gbl.Usrs.Other.UsrDat.UsrCod);
/* Confirmation message */ /* Confirmation message */
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_Enrolment_of_X_rejected,
Txt_Enrolment_of_X_rejected, Gbl.Usrs.Other.UsrDat.FullName);
Gbl.Usrs.Other.UsrDat.FullName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
/* Show again the rest of registrarion requests */ /* Show again the rest of registrarion requests */
Enr_ShowEnrolmentRequests (); Enr_ShowEnrolmentRequests ();
@ -3008,7 +2972,7 @@ static void Enr_ShowEnrolmentRequestsGivenRoles (unsigned RolesSelected)
Usr_UsrDataDestructor (&UsrDat); Usr_UsrDataDestructor (&UsrDat);
} }
else // There are no requests else // There are no requests
Ale_ShowA_old (Ale_INFO,Txt_No_enrolment_requests); Ale_ShowA_fmt (Ale_INFO,Txt_No_enrolment_requests);
/***** End box *****/ /***** End box *****/
Box_EndBox (); Box_EndBox ();
@ -3287,12 +3251,8 @@ static void Enr_AskIfRegRemUsr (struct ListUsrCods *ListUsrCods,Rol_Role_t Role)
{ {
/***** Warning if more than one user found *****/ /***** Warning if more than one user found *****/
if (ListUsrCods->NumUsrs > 1) if (ListUsrCods->NumUsrs > 1)
{ Ale_ShowA_fmt (Ale_INFO,Txt_There_are_X_users_with_the_ID_Y,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), ListUsrCods->NumUsrs,Gbl.Usrs.Other.UsrDat.UsrIDNickOrEmail);
Txt_There_are_X_users_with_the_ID_Y,
ListUsrCods->NumUsrs,Gbl.Usrs.Other.UsrDat.UsrIDNickOrEmail);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
/***** For each user found... *****/ /***** For each user found... *****/
for (NumUsr = 0; for (NumUsr = 0;
@ -3310,34 +3270,27 @@ static void Enr_AskIfRegRemUsr (struct ListUsrCods *ListUsrCods,Rol_Role_t Role)
{ {
Gbl.Usrs.Other.UsrDat.Accepted = Usr_CheckIfUsrHasAcceptedInCurrentCrs (&Gbl.Usrs.Other.UsrDat); Gbl.Usrs.Other.UsrDat.Accepted = Usr_CheckIfUsrHasAcceptedInCurrentCrs (&Gbl.Usrs.Other.UsrDat);
if (Gbl.Usrs.Other.UsrDat.Accepted) if (Gbl.Usrs.Other.UsrDat.Accepted)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_THE_USER_X_is_already_enroled_in_the_course_Y,
Txt_THE_USER_X_is_already_enroled_in_the_course_Y, Gbl.Usrs.Other.UsrDat.FullName,Gbl.CurrentCrs.Crs.FullName);
Gbl.Usrs.Other.UsrDat.FullName,Gbl.CurrentCrs.Crs.FullName);
else // Enrolment not yet accepted else // Enrolment not yet accepted
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_THE_USER_X_is_already_in_the_course_Y_but_has_not_yet_accepted_the_enrolment,
Txt_THE_USER_X_is_already_in_the_course_Y_but_has_not_yet_accepted_the_enrolment, Gbl.Usrs.Other.UsrDat.FullName,Gbl.CurrentCrs.Crs.FullName);
Gbl.Usrs.Other.UsrDat.FullName,Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
Enr_ShowFormToEditOtherUsr (); Enr_ShowFormToEditOtherUsr ();
} }
else // User does not belong to the current course else // User does not belong to the current course
{ {
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_THE_USER_X_already_exists_in_Y_but_is_not_yet_enroled_in_the_course_Z,
Txt_THE_USER_X_already_exists_in_Y_but_is_not_yet_enroled_in_the_course_Z, Gbl.Usrs.Other.UsrDat.FullName,
Gbl.Usrs.Other.UsrDat.FullName, Cfg_PLATFORM_SHORT_NAME,Gbl.CurrentCrs.Crs.FullName);
Cfg_PLATFORM_SHORT_NAME,Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
Enr_ShowFormToEditOtherUsr (); Enr_ShowFormToEditOtherUsr ();
} }
} }
else // No course selected else // No course selected
{ {
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_THE_USER_X_already_exists_in_Y,
Txt_THE_USER_X_already_exists_in_Y, Gbl.Usrs.Other.UsrDat.FullName,Cfg_PLATFORM_SHORT_NAME);
Gbl.Usrs.Other.UsrDat.FullName,Cfg_PLATFORM_SHORT_NAME);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
Enr_ShowFormToEditOtherUsr (); Enr_ShowFormToEditOtherUsr ();
} }
@ -3358,19 +3311,15 @@ static void Enr_AskIfRegRemUsr (struct ListUsrCods *ListUsrCods,Rol_Role_t Role)
if (NewUsrIDValid) if (NewUsrIDValid)
{ {
/***** Show form to enter the data of a new user *****/ /***** Show form to enter the data of a new user *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_The_user_is_new_not_yet_in_X,
Txt_The_user_is_new_not_yet_in_X, Cfg_PLATFORM_SHORT_NAME);
Cfg_PLATFORM_SHORT_NAME);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
Rec_ShowFormOtherNewSharedRecord (&Gbl.Usrs.Other.UsrDat,Role); Rec_ShowFormOtherNewSharedRecord (&Gbl.Usrs.Other.UsrDat,Role);
} }
else // User's ID is not valid else // User's ID is not valid
{ {
/* Write message and request a new user's ID */ /* Write message and request a new user's ID */
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_If_this_is_a_new_user_in_X_you_should_indicate_her_his_ID,
Txt_If_this_is_a_new_user_in_X_you_should_indicate_her_his_ID, Cfg_PLATFORM_SHORT_NAME);
Cfg_PLATFORM_SHORT_NAME);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
Enr_ReqRegRemUsr (Role); Enr_ReqRegRemUsr (Role);
} }
} }
@ -3442,10 +3391,10 @@ static void Enr_AddAdm (Sco_Scope_t Scope,long Cod,const char *InsCtrDegName)
Rec_ShowSharedRecordUnmodifiable (&Gbl.Usrs.Other.UsrDat); Rec_ShowSharedRecordUnmodifiable (&Gbl.Usrs.Other.UsrDat);
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
} }
@ -3461,9 +3410,8 @@ static void Enr_RegisterAdmin (struct UsrData *UsrDat,Sco_Scope_t Scope,long Cod
/***** Check if user was and administrator of current institution/centre/degree *****/ /***** Check if user was and administrator of current institution/centre/degree *****/
if (Usr_CheckIfUsrIsAdm (UsrDat->UsrCod,Scope,Cod)) if (Usr_CheckIfUsrIsAdm (UsrDat->UsrCod,Scope,Cod))
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_THE_USER_X_is_already_an_administrator_of_Y,
Txt_THE_USER_X_is_already_an_administrator_of_Y, UsrDat->FullName,InsCtrDegName);
UsrDat->FullName,InsCtrDegName);
else // User was not administrator of current institution/centre/degree else // User was not administrator of current institution/centre/degree
{ {
/***** Insert or replace administrator in current institution/centre/degree *****/ /***** Insert or replace administrator in current institution/centre/degree *****/
@ -3474,11 +3422,9 @@ static void Enr_RegisterAdmin (struct UsrData *UsrDat,Sco_Scope_t Scope,long Cod
" (%ld,'%s',%ld)", " (%ld,'%s',%ld)",
UsrDat->UsrCod,Sco_ScopeDB[Scope],Cod); UsrDat->UsrCod,Sco_ScopeDB[Scope],Cod);
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_THE_USER_X_has_been_enroled_as_administrator_of_Y,
Txt_THE_USER_X_has_been_enroled_as_administrator_of_Y, UsrDat->FullName,InsCtrDegName);
UsrDat->FullName,InsCtrDegName);
} }
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -3504,10 +3450,10 @@ void Enr_ReqRemUsrFromCrs (void)
if (Enr_CheckIfICanRemUsrFromCrs ()) if (Enr_CheckIfICanRemUsrFromCrs ())
Enr_AskIfRemoveUsrFromCrs (&Gbl.Usrs.Other.UsrDat); Enr_AskIfRemoveUsrFromCrs (&Gbl.Usrs.Other.UsrDat);
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -3528,15 +3474,15 @@ void Enr_RemUsrFromCrs1 (void)
Enr_REMOVE_WORKS,Cns_VERBOSE); Enr_REMOVE_WORKS,Cns_VERBOSE);
else else
{ {
Gbl.Alert.Type = Ale_WARNING; Gbl.AlertToShowLater.Type = Ale_WARNING;
Str_Copy (Gbl.Alert.Txt,Txt_User_not_found_or_you_do_not_have_permission_, Str_Copy (Gbl.AlertToShowLater.Txt,Txt_User_not_found_or_you_do_not_have_permission_,
Ale_MAX_BYTES_ALERT); Ale_MAX_BYTES_ALERT);
} }
} }
else else
{ {
Gbl.Alert.Type = Ale_WARNING; Gbl.AlertToShowLater.Type = Ale_WARNING;
Str_Copy (Gbl.Alert.Txt,Txt_User_not_found_or_you_do_not_have_permission_, Str_Copy (Gbl.AlertToShowLater.Txt,Txt_User_not_found_or_you_do_not_have_permission_,
Ale_MAX_BYTES_ALERT); Ale_MAX_BYTES_ALERT);
} }
} }
@ -3544,7 +3490,7 @@ void Enr_RemUsrFromCrs1 (void)
void Enr_RemUsrFromCrs2 (void) void Enr_RemUsrFromCrs2 (void)
{ {
Ale_ShowA_old (Gbl.Alert.Type,Gbl.Alert.Txt); Ale_ShowA_new (Gbl.AlertToShowLater.Type,Gbl.AlertToShowLater.Txt);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -3674,18 +3620,14 @@ static void Enr_ReqRemOrRemAdm (Enr_ReqDelOrDelUsr_t ReqDelOrDelUsr,Sco_Scope_t
} }
} }
else // The other user is not an administrator of current institution else // The other user is not an administrator of current institution
{ Ale_ShowA_fmt (Ale_WARNING,Txt_THE_USER_X_is_not_an_administrator_of_Y,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Gbl.Usrs.Other.UsrDat.FullName,InsCtrDegName);
Txt_THE_USER_X_is_not_an_administrator_of_Y,
Gbl.Usrs.Other.UsrDat.FullName,InsCtrDegName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
} }
@ -3724,10 +3666,8 @@ static void Enr_ReqAddAdm (Sco_Scope_t Scope,long Cod,const char *InsCtrDegName)
{ {
if (Usr_CheckIfUsrIsAdm (Gbl.Usrs.Other.UsrDat.UsrCod,Scope,Cod)) // User is already an administrator of current institution/centre/degree if (Usr_CheckIfUsrIsAdm (Gbl.Usrs.Other.UsrDat.UsrCod,Scope,Cod)) // User is already an administrator of current institution/centre/degree
{ {
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_THE_USER_X_is_already_an_administrator_of_Y,
Txt_THE_USER_X_is_already_an_administrator_of_Y, Gbl.Usrs.Other.UsrDat.FullName,InsCtrDegName);
Gbl.Usrs.Other.UsrDat.FullName,InsCtrDegName);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
Rec_ShowSharedRecordUnmodifiable (&Gbl.Usrs.Other.UsrDat); Rec_ShowSharedRecordUnmodifiable (&Gbl.Usrs.Other.UsrDat);
} }
else else
@ -3749,10 +3689,10 @@ static void Enr_ReqAddAdm (Sco_Scope_t Scope,long Cod,const char *InsCtrDegName)
} }
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
else else
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
} }
@ -3775,10 +3715,8 @@ void Enr_AcceptRegisterMeInCrs (void)
Gbl.Usrs.Me.UsrDat.UsrCod); Gbl.Usrs.Me.UsrDat.UsrCod);
/***** Confirmation message *****/ /***** Confirmation message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_You_have_confirmed_your_enrolment_in_the_course_X,
Txt_You_have_confirmed_your_enrolment_in_the_course_X, Gbl.CurrentCrs.Crs.FullName);
Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -4070,7 +4008,7 @@ void Enr_ModifyUsr2 (void)
extern const char *Txt_User_not_found_or_you_do_not_have_permission_; extern const char *Txt_User_not_found_or_you_do_not_have_permission_;
if (Gbl.Alert.Type == Ale_WARNING) if (Gbl.Alert.Type == Ale_WARNING)
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
else // No error else // No error
switch (Gbl.Usrs.RegRemAction) switch (Gbl.Usrs.RegRemAction)
{ {
@ -4187,7 +4125,7 @@ static void Enr_AskIfRemoveUsrFromCrs (struct UsrData *UsrDat)
Ale_ShowAlertAndButton2 (ActUnk,NULL,NULL,NULL,Btn_NO_BUTTON,NULL); Ale_ShowAlertAndButton2 (ActUnk,NULL,NULL,NULL,Btn_NO_BUTTON,NULL);
} }
else // User does not belong to current course else // User does not belong to current course
Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); Ale_ShowA_fmt (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -4347,16 +4285,10 @@ static void Enr_EffectivelyRemAdm (struct UsrData *UsrDat,Sco_Scope_t Scope,
" WHERE UsrCod=%ld AND Scope='%s' AND Cod=%ld", " WHERE UsrCod=%ld AND Scope='%s' AND Cod=%ld",
UsrDat->UsrCod,Sco_ScopeDB[Scope],Cod); UsrDat->UsrCod,Sco_ScopeDB[Scope],Cod);
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_THE_USER_X_has_been_removed_as_administrator_of_Y,
Txt_THE_USER_X_has_been_removed_as_administrator_of_Y, UsrDat->FullName,InsCtrDegName);
UsrDat->FullName,InsCtrDegName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
else // User is not an administrator of the current institution/centre/degree else // User is not an administrator of the current institution/centre/degree
{ Ale_ShowA_fmt (Ale_ERROR,Txt_THE_USER_X_is_not_an_administrator_of_Y,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), UsrDat->FullName,InsCtrDegName);
Txt_THE_USER_X_is_not_an_administrator_of_Y,
UsrDat->FullName,InsCtrDegName);
Ale_ShowA_old (Ale_ERROR,Gbl.Alert.Txt);
}
} }

View File

@ -295,9 +295,9 @@ void Exa_ReceiveExamAnnouncement2 (void)
struct SocialPublishing SocPub; struct SocialPublishing SocPub;
/***** Show message *****/ /***** Show message *****/
Ale_ShowA_old (Ale_SUCCESS, Ale_ShowA_fmt (Ale_SUCCESS,
Gbl.ExamAnns.NewExamAnnouncement ? Txt_Created_new_announcement_of_exam : Gbl.ExamAnns.NewExamAnnouncement ? Txt_Created_new_announcement_of_exam :
Txt_The_announcement_of_exam_has_been_successfully_updated); Txt_The_announcement_of_exam_has_been_successfully_updated);
/***** Notify by email about the new exam announcement *****/ /***** Notify by email about the new exam announcement *****/
if ((NumUsrsToBeNotifiedByEMail = Ntf_StoreNotifyEventsToAllUsrs (Ntf_EVENT_EXAM_ANNOUNCEMENT,Gbl.ExamAnns.ExaDat.ExaCod))) if ((NumUsrsToBeNotifiedByEMail = Ntf_StoreNotifyEventsToAllUsrs (Ntf_EVENT_EXAM_ANNOUNCEMENT,Gbl.ExamAnns.ExaDat.ExaCod)))
@ -414,7 +414,7 @@ void Exa_RemoveExamAnnouncement2 (void)
extern const char *Txt_Announcement_of_exam_removed; extern const char *Txt_Announcement_of_exam_removed;
/***** Write message *****/ /***** Write message *****/
Ale_ShowA_old (Ale_SUCCESS,Txt_Announcement_of_exam_removed); Ale_ShowA_fmt (Ale_SUCCESS,Txt_Announcement_of_exam_removed);
/***** List again all the remaining exam announcements *****/ /***** List again all the remaining exam announcements *****/
Exa_ListExamAnnouncementsEdit (); Exa_ListExamAnnouncementsEdit ();
@ -447,7 +447,7 @@ void Exa_HideExamAnnouncement2 (void)
extern const char *Txt_The_announcement_of_exam_is_now_hidden; extern const char *Txt_The_announcement_of_exam_is_now_hidden;
/***** Write message to show the change made *****/ /***** Write message to show the change made *****/
Ale_ShowA_old (Ale_SUCCESS,Txt_The_announcement_of_exam_is_now_hidden); Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_announcement_of_exam_is_now_hidden);
/***** Show exam announcements again *****/ /***** Show exam announcements again *****/
Exa_ListExamAnnouncementsEdit (); Exa_ListExamAnnouncementsEdit ();
@ -480,7 +480,7 @@ void Exa_UnhideExamAnnouncement2 (void)
extern const char *Txt_The_announcement_of_exam_is_now_visible; extern const char *Txt_The_announcement_of_exam_is_now_visible;
/***** Write message to show the change made *****/ /***** Write message to show the change made *****/
Ale_ShowA_old (Ale_SUCCESS,Txt_The_announcement_of_exam_is_now_visible); Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_announcement_of_exam_is_now_visible);
/***** Show exam announcements again *****/ /***** Show exam announcements again *****/
Exa_ListExamAnnouncementsEdit (); Exa_ListExamAnnouncementsEdit ();
@ -657,12 +657,8 @@ static void Exa_ListExamAnnouncements (Exa_TypeViewExamAnnouncement_t TypeViewEx
/***** The result of the query may be empty *****/ /***** The result of the query may be empty *****/
if (!NumExaAnns) if (!NumExaAnns)
{ Ale_ShowA_fmt (Ale_INFO,Txt_No_announcements_of_exams_of_X,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Gbl.CurrentCrs.Crs.FullName);
Txt_No_announcements_of_exams_of_X,
Gbl.CurrentCrs.Crs.FullName);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
/***** List the existing exam announcements *****/ /***** List the existing exam announcements *****/
for (NumExaAnn = 0; for (NumExaAnn = 0;

View File

@ -2820,7 +2820,7 @@ bool Brw_UpdateFoldersAssigmentsIfExistForAllUsrs (const char *OldFolderName,con
NewFolderName); NewFolderName);
if (rename (PathOldFolder,PathNewFolder)) // Fail if (rename (PathOldFolder,PathNewFolder)) // Fail
{ {
Ale_ShowA_old (Ale_ERROR,Txt_Can_not_rename_a_folder_of_assignment); Ale_ShowA_fmt (Ale_ERROR,Txt_Can_not_rename_a_folder_of_assignment);
NumUsrsError++; NumUsrsError++;
} }
else // Success else // Success
@ -2847,18 +2847,16 @@ bool Brw_UpdateFoldersAssigmentsIfExistForAllUsrs (const char *OldFolderName,con
} }
/***** Summary message *****/ /***** Summary message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,"%s: %u<br />"
"%s: %u<br />" "%s: %u<br />"
"%s: %u<br />" "%s: %u.",
"%s: %u.", Txt_Users,NumUsrs,
Txt_Users,NumUsrs, Txt_Folders_renamed,NumUsrsSuccess,
Txt_Folders_renamed,NumUsrsSuccess, Txt_Folders_not_renamed,NumUsrsError);
Txt_Folders_not_renamed,NumUsrsError);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
} }
else else
/***** Warning message *****/ /***** Warning message *****/
Ale_ShowA_old (Ale_WARNING,Txt_Can_not_rename_a_folder_of_assignment); Ale_ShowA_fmt (Ale_WARNING,Txt_Can_not_rename_a_folder_of_assignment);
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/
DB_FreeMySQLResult (&mysql_res); DB_FreeMySQLResult (&mysql_res);
@ -2923,7 +2921,7 @@ static void Brw_SetAndCheckQuota (void)
Brw_SetMaxQuota (); Brw_SetMaxQuota ();
Brw_CalcSizeOfDir (Gbl.FileBrowser.Priv.PathRootFolder); Brw_CalcSizeOfDir (Gbl.FileBrowser.Priv.PathRootFolder);
if (Brw_CheckIfQuotaExceded ()) if (Brw_CheckIfQuotaExceded ())
Ale_ShowA_old (Ale_WARNING,Txt_Quota_exceeded); Ale_ShowA_fmt (Ale_WARNING,Txt_Quota_exceeded);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -3208,7 +3206,7 @@ static void Brw_ShowFileBrowserProject (void)
} }
} }
else else
Ale_ShowA_old (Ale_WARNING,"You have no access to project files."); Ale_ShowA_fmt (Ale_WARNING,"You have no access to project files.");
/***** End box *****/ /***** End box *****/
Box_EndBox (); Box_EndBox ();
@ -3280,7 +3278,7 @@ static void Brw_ShowFileBrowsersAsgWrkCrs (void)
else // If no users are selected... else // If no users are selected...
{ {
// ...write warning alert // ...write warning alert
Ale_ShowA_old (Ale_WARNING,Txt_You_must_select_one_ore_more_users); Ale_ShowA_fmt (Ale_WARNING,Txt_You_must_select_one_ore_more_users);
// ...and show again the form // ...and show again the form
Brw_AskEditWorksCrs (); Brw_AskEditWorksCrs ();
} }
@ -3535,18 +3533,16 @@ void Brw_ShowAgainFileBrowserOrWorks (void)
{ {
case Brw_ADMI_MRK_CRS: case Brw_ADMI_MRK_CRS:
case Brw_ADMI_MRK_GRP: case Brw_ADMI_MRK_GRP:
Ale_ShowA_old (Ale_INFO,Txt_Files_of_marks_must_contain_a_table_in_HTML_format_); Ale_ShowA_fmt (Ale_INFO,Txt_Files_of_marks_must_contain_a_table_in_HTML_format_);
break; break;
default: default:
break; break;
} }
/***** Legal notice *****/ /***** Legal notice *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_Disclaimer_the_files_hosted_here_,
Txt_Disclaimer_the_files_hosted_here_, Cfg_PLATFORM_SHORT_NAME,
Cfg_PLATFORM_SHORT_NAME, Cfg_PLATFORM_RESPONSIBLE_EMAIL);
Cfg_PLATFORM_RESPONSIBLE_EMAIL);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -6788,10 +6784,8 @@ void Brw_RemFileFromTree (void)
Gbl.Usrs.Other.UsrDat.UsrCod); Gbl.Usrs.Other.UsrDat.UsrCod);
/* Message of confirmation of removing */ /* Message of confirmation of removing */
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_FILE_X_removed,
Txt_FILE_X_removed, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
else // File / link not found else // File / link not found
Lay_ShowErrorAndExit ("File / link not found."); Lay_ShowErrorAndExit ("File / link not found.");
@ -6847,10 +6841,8 @@ void Brw_RemFolderFromTree (void)
Gbl.Usrs.Other.UsrDat.UsrCod); Gbl.Usrs.Other.UsrDat.UsrCod);
/* Message of confirmation of successfull removing */ /* Message of confirmation of successfull removing */
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_Folder_X_removed,
Txt_Folder_X_removed, Gbl.FileBrowser.FilFolLnkName);
Gbl.FileBrowser.FilFolLnkName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
else // Folder not found else // Folder not found
Lay_ShowErrorAndExit ("Folder not found."); Lay_ShowErrorAndExit ("Folder not found.");
@ -6928,10 +6920,8 @@ void Brw_RemSubtreeInFileBrowser (void)
Brw_RemoveAffectedExpandedFolders (Gbl.FileBrowser.Priv.FullPathInTree); Brw_RemoveAffectedExpandedFolders (Gbl.FileBrowser.Priv.FullPathInTree);
/***** Write message of confirmation *****/ /***** Write message of confirmation *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_Folder_X_and_all_its_contents_removed,
Txt_Folder_X_and_all_its_contents_removed, Gbl.FileBrowser.FilFolLnkName);
Gbl.FileBrowser.FilFolLnkName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
/***** Show again file browser *****/ /***** Show again file browser *****/
@ -7242,20 +7232,16 @@ static void Brw_WriteCurrentClipboard (void)
Gbl.FileBrowser.Clipboard.FileName, Gbl.FileBrowser.Clipboard.FileName,
FileNameToShow); FileNameToShow);
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_CLIPBOARD,"%s: %s, %s <strong>%s</strong>.",
"%s: %s, %s <strong>%s</strong>.", Txt_Copy_source,TxtClipboardZone,
Txt_Copy_source,TxtClipboardZone, TxtFileType[Gbl.FileBrowser.Clipboard.FileType],
TxtFileType[Gbl.FileBrowser.Clipboard.FileType], FileNameToShow);
FileNameToShow);
} }
else else
// The root folder // The root folder
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_CLIPBOARD,"%s: %s, %s.",
"%s: %s, %s.", Txt_Copy_source,TxtClipboardZone,
Txt_Copy_source,TxtClipboardZone, Txt_all_files_inside_the_root_folder);
Txt_all_files_inside_the_root_folder);
Ale_ShowA_old (Ale_CLIPBOARD,Gbl.Alert.Txt);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -8003,7 +7989,7 @@ void Brw_PasteIntoFileBrowser (void)
} }
else else
/***** Write message ******/ /***** Write message ******/
Ale_ShowA_old (Ale_WARNING,Txt_Nothing_has_been_pasted_because_the_clipboard_is_empty_); Ale_ShowA_fmt (Ale_WARNING,Txt_Nothing_has_been_pasted_because_the_clipboard_is_empty_);
/***** Show again file browser *****/ /***** Show again file browser *****/
Brw_ShowAgainFileBrowserOrWorks (); Brw_ShowAgainFileBrowserOrWorks ();
@ -8194,16 +8180,14 @@ static void Brw_PasteClipboard (void)
&FirstFilCod)) &FirstFilCod))
{ {
/***** Write message of success *****/ /***** Write message of success *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,"%s<br />"
"%s<br />" "%s: %u<br />"
"%s: %u<br />" "%s: %u<br />"
"%s: %u<br />" "%s: %u",
"%s: %u", Txt_The_copy_has_been_successful,
Txt_The_copy_has_been_successful, Txt_Files_copied ,Pasted.NumFiles,
Txt_Files_copied ,Pasted.NumFiles, Txt_Links_copied ,Pasted.NumLinks,
Txt_Links_copied ,Pasted.NumLinks, Txt_Folders_copied,Pasted.NumFolds);
Txt_Folders_copied,Pasted.NumFolds);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Notify new files *****/ /***** Notify new files *****/
if (Pasted.NumFiles || if (Pasted.NumFiles ||
@ -8346,24 +8330,20 @@ static bool Brw_PasteTreeIntoFolder (unsigned LevelOrg,
switch (FileType) switch (FileType)
{ {
case Brw_IS_FILE: case Brw_IS_FILE:
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_The_copy_has_stopped_when_trying_to_paste_the_file_X_because_it_would_exceed_the_maximum_allowed_number_of_levels,
Txt_The_copy_has_stopped_when_trying_to_paste_the_file_X_because_it_would_exceed_the_maximum_allowed_number_of_levels, FileNameToShow);
FileNameToShow);
break; break;
case Brw_IS_FOLDER: case Brw_IS_FOLDER:
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_The_copy_has_stopped_when_trying_to_paste_the_folder_X_because_it_would_exceed_the_maximum_allowed_number_of_levels,
Txt_The_copy_has_stopped_when_trying_to_paste_the_folder_X_because_it_would_exceed_the_maximum_allowed_number_of_levels, FileNameToShow);
FileNameToShow);
break; break;
case Brw_IS_LINK: case Brw_IS_LINK:
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_The_copy_has_stopped_when_trying_to_paste_the_link_X_because_it_would_exceed_the_maximum_allowed_number_of_levels,
Txt_The_copy_has_stopped_when_trying_to_paste_the_link_X_because_it_would_exceed_the_maximum_allowed_number_of_levels, FileNameToShow);
FileNameToShow);
break; break;
default: default:
Lay_ShowErrorAndExit ("Can not paste unknown file type."); Lay_ShowErrorAndExit ("Can not paste unknown file type.");
} }
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
CopyIsGoingSuccessful = false; CopyIsGoingSuccessful = false;
} }
else // Quota not exceeded else // Quota not exceeded
@ -8375,11 +8355,9 @@ static bool Brw_PasteTreeIntoFolder (unsigned LevelOrg,
/***** Check if exists the destination file */ /***** Check if exists the destination file */
if (Fil_CheckIfPathExists (PathDstWithFile)) if (Fil_CheckIfPathExists (PathDstWithFile))
{ {
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,FileType == Brw_IS_FILE ? Txt_The_copy_has_stopped_when_trying_to_paste_the_file_X_because_there_is_already_an_object_with_that_name :
FileType == Brw_IS_FILE ? Txt_The_copy_has_stopped_when_trying_to_paste_the_file_X_because_there_is_already_an_object_with_that_name : Txt_The_copy_has_stopped_when_trying_to_paste_the_link_X_because_there_is_already_an_object_with_that_name,
Txt_The_copy_has_stopped_when_trying_to_paste_the_link_X_because_there_is_already_an_object_with_that_name, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
CopyIsGoingSuccessful = false; CopyIsGoingSuccessful = false;
} }
else // Destination file does not exist else // Destination file does not exist
@ -8394,10 +8372,8 @@ static bool Brw_PasteTreeIntoFolder (unsigned LevelOrg,
Mrk_CheckFileOfMarks (PathOrg,&Marks); // Gbl.Alert.Txt contains feedback text Mrk_CheckFileOfMarks (PathOrg,&Marks); // Gbl.Alert.Txt contains feedback text
else else
{ {
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_The_copy_has_stopped_when_trying_to_paste_the_file_X_because_you_can_not_paste_a_file_here_of_a_type_other_than_HTML,
Txt_The_copy_has_stopped_when_trying_to_paste_the_file_X_because_you_can_not_paste_a_file_here_of_a_type_other_than_HTML, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
CopyIsGoingSuccessful = false; CopyIsGoingSuccessful = false;
} }
} }
@ -8409,11 +8385,9 @@ static bool Brw_PasteTreeIntoFolder (unsigned LevelOrg,
Gbl.FileBrowser.Size.TotalSiz += (unsigned long long) FileStatus.st_size; Gbl.FileBrowser.Size.TotalSiz += (unsigned long long) FileStatus.st_size;
if (Brw_CheckIfQuotaExceded ()) if (Brw_CheckIfQuotaExceded ())
{ {
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,FileType == Brw_IS_FILE ? Txt_The_copy_has_stopped_when_trying_to_paste_the_file_X_because_it_would_exceed_the_disk_quota :
FileType == Brw_IS_FILE ? Txt_The_copy_has_stopped_when_trying_to_paste_the_file_X_because_it_would_exceed_the_disk_quota : Txt_The_copy_has_stopped_when_trying_to_paste_the_link_X_because_it_would_exceed_the_disk_quota,
Txt_The_copy_has_stopped_when_trying_to_paste_the_link_X_because_it_would_exceed_the_disk_quota, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
CopyIsGoingSuccessful = false; CopyIsGoingSuccessful = false;
} }
else // Quota not exceeded else // Quota not exceeded
@ -8453,10 +8427,8 @@ static bool Brw_PasteTreeIntoFolder (unsigned LevelOrg,
Gbl.FileBrowser.Size.TotalSiz += (unsigned long long) FileStatus.st_size; Gbl.FileBrowser.Size.TotalSiz += (unsigned long long) FileStatus.st_size;
if (Brw_CheckIfQuotaExceded ()) if (Brw_CheckIfQuotaExceded ())
{ {
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_The_copy_has_stopped_when_trying_to_paste_the_folder_X_because_it_would_exceed_the_disk_quota,
Txt_The_copy_has_stopped_when_trying_to_paste_the_folder_X_because_it_would_exceed_the_disk_quota, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
CopyIsGoingSuccessful = false; CopyIsGoingSuccessful = false;
} }
else // Quota not exceded else // Quota not exceded
@ -8583,10 +8555,8 @@ static void Brw_PutFormToCreateAFolder (const char FileNameToShow[NAME_MAX + 1])
/***** Start box *****/ /***** Start box *****/
Box_StartBox (NULL,Txt_Create_folder,NULL, Box_StartBox (NULL,Txt_Create_folder,NULL,
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_You_can_create_a_new_folder_inside_the_folder_X,
Txt_You_can_create_a_new_folder_inside_the_folder_X, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
/***** Folder *****/ /***** Folder *****/
fprintf (Gbl.F.Out,"<label class=\"%s\">" fprintf (Gbl.F.Out,"<label class=\"%s\">"
@ -8623,10 +8593,8 @@ static void Brw_PutFormToUploadFilesUsingDropzone (const char *FileNameToShow)
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
/***** Help message *****/ /***** Help message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_or_you_can_upload_new_files_to_the_folder_X,
Txt_or_you_can_upload_new_files_to_the_folder_X, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
/***** Form to upload files using the library Dropzone.js *****/ /***** Form to upload files using the library Dropzone.js *****/
// Use min-height:125px; or other number to stablish the height? // Use min-height:125px; or other number to stablish the height?
@ -8686,10 +8654,8 @@ static void Brw_PutFormToUploadOneFileClassic (const char *FileNameToShow)
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
/***** Help message *****/ /***** Help message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_or_you_can_upload_a_new_file_to_the_folder_X,
Txt_or_you_can_upload_a_new_file_to_the_folder_X, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
/***** Form to upload one files using the classic way *****/ /***** Form to upload one files using the classic way *****/
Frm_StartForm (Brw_ActUploadFileClassic[Gbl.FileBrowser.Type]); Frm_StartForm (Brw_ActUploadFileClassic[Gbl.FileBrowser.Type]);
@ -8730,10 +8696,8 @@ static void Brw_PutFormToPasteAFileOrFolder (const char *FileNameToShow)
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
/***** Help message *****/ /***** Help message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_or_you_can_make_a_file_copy_to_the_folder_X,
Txt_or_you_can_make_a_file_copy_to_the_folder_X, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
/***** Send button and end box *****/ /***** Send button and end box *****/
Box_EndBoxWithButton (Btn_CREATE_BUTTON,Txt_Paste); Box_EndBoxWithButton (Btn_CREATE_BUTTON,Txt_Paste);
@ -8767,10 +8731,8 @@ static void Brw_PutFormToCreateALink (const char *FileNameToShow)
NULL,Box_NOT_CLOSABLE); NULL,Box_NOT_CLOSABLE);
/***** Help message *****/ /***** Help message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_INFO,Txt_or_you_can_create_a_new_link_inside_the_folder_X,
Txt_or_you_can_create_a_new_link_inside_the_folder_X, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
/***** URL *****/ /***** URL *****/
fprintf (Gbl.F.Out,"<table>" fprintf (Gbl.F.Out,"<table>"
@ -8858,10 +8820,8 @@ void Brw_RecFolderFileBrowser (void)
if (Brw_CheckIfQuotaExceded ()) if (Brw_CheckIfQuotaExceded ())
{ {
Fil_RemoveTree (Path); Fil_RemoveTree (Path);
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_Can_not_create_the_folder_X_because_it_would_exceed_the_disk_quota,
Txt_Can_not_create_the_folder_X_because_it_would_exceed_the_disk_quota, Gbl.FileBrowser.NewFilFolLnkName);
Gbl.FileBrowser.NewFilFolLnkName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
} }
else else
{ {
@ -8887,10 +8847,8 @@ void Brw_RecFolderFileBrowser (void)
Brw_IS_FOLDER, Brw_IS_FOLDER,
Gbl.FileBrowser.FilFolLnkName, Gbl.FileBrowser.FilFolLnkName,
FileNameToShow); FileNameToShow);
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_folder_X_has_been_created_inside_the_folder_Y,
Txt_The_folder_X_has_been_created_inside_the_folder_Y, Gbl.FileBrowser.NewFilFolLnkName,FileNameToShow);
Gbl.FileBrowser.NewFilFolLnkName,FileNameToShow);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
} }
else else
@ -8898,10 +8856,8 @@ void Brw_RecFolderFileBrowser (void)
switch (errno) switch (errno)
{ {
case EEXIST: case EEXIST:
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_Can_not_create_the_folder_X_because_there_is_already_a_folder_or_a_file_with_that_name,
Txt_Can_not_create_the_folder_X_because_there_is_already_a_folder_or_a_file_with_that_name, Gbl.FileBrowser.NewFilFolLnkName);
Gbl.FileBrowser.NewFilFolLnkName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
break; break;
case EACCES: case EACCES:
Lay_ShowErrorAndExit ("Write forbidden."); Lay_ShowErrorAndExit ("Write forbidden.");
@ -8913,7 +8869,7 @@ void Brw_RecFolderFileBrowser (void)
} }
} }
else // Folder name not valid else // Folder name not valid
Ale_ShowA_old (Ale_WARNING,Gbl.AlertToShowLater.Txt); Ale_ShowA_new (Ale_WARNING,Gbl.AlertToShowLater.Txt);
} }
else else
Lay_ShowErrorAndExit (Txt_You_can_not_create_folders_here); // It's difficult, but not impossible that a user sees this message Lay_ShowErrorAndExit (Txt_You_can_not_create_folders_here); // It's difficult, but not impossible that a user sees this message
@ -8981,9 +8937,8 @@ void Brw_RenFolderFileBrowser (void)
case ENOTEMPTY: case ENOTEMPTY:
case EEXIST: case EEXIST:
case ENOTDIR: case ENOTDIR:
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_The_folder_name_X_has_not_changed_because_there_is_already_a_folder_or_a_file_with_the_name_Y,
Txt_The_folder_name_X_has_not_changed_because_there_is_already_a_folder_or_a_file_with_the_name_Y, Gbl.FileBrowser.FilFolLnkName,Gbl.FileBrowser.NewFilFolLnkName);
Gbl.FileBrowser.FilFolLnkName,Gbl.FileBrowser.NewFilFolLnkName);
break; break;
case EACCES: case EACCES:
Lay_ShowErrorAndExit ("Write forbidden."); Lay_ShowErrorAndExit ("Write forbidden.");
@ -8992,7 +8947,6 @@ void Brw_RenFolderFileBrowser (void)
Lay_ShowErrorAndExit ("Can not rename folder."); Lay_ShowErrorAndExit ("Can not rename folder.");
break; break;
} }
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
} }
else // Success else // Success
{ {
@ -9017,24 +8971,18 @@ void Brw_RenFolderFileBrowser (void)
NewPathInTree); NewPathInTree);
/* Write message of confirmation */ /* Write message of confirmation */
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_folder_name_X_has_changed_to_Y,
Txt_The_folder_name_X_has_changed_to_Y, Gbl.FileBrowser.FilFolLnkName,
Gbl.FileBrowser.FilFolLnkName, Gbl.FileBrowser.NewFilFolLnkName);
Gbl.FileBrowser.NewFilFolLnkName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
} }
else // Names are equal. This may happens if we have press INTRO without changing the name else // Names are equal. This may happens if we have press INTRO without changing the name
{ Ale_ShowA_fmt (Ale_INFO,Txt_The_folder_name_X_has_not_changed,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Gbl.FileBrowser.FilFolLnkName);
Txt_The_folder_name_X_has_not_changed,
Gbl.FileBrowser.FilFolLnkName);
Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
} }
else // Folder name not valid else // Folder name not valid
Ale_ShowA_old (Ale_WARNING,Gbl.AlertToShowLater.Txt); Ale_ShowA_new (Ale_WARNING,Gbl.AlertToShowLater.Txt);
} }
else else
Lay_ShowErrorAndExit (Txt_You_can_not_rename_this_folder); Lay_ShowErrorAndExit (Txt_You_can_not_rename_this_folder);
@ -9372,12 +9320,8 @@ void Brw_RecLinkFileBrowser (void)
/* Check if the URL file exists */ /* Check if the URL file exists */
if (Fil_CheckIfPathExists (Path)) if (Fil_CheckIfPathExists (Path))
{ Ale_ShowA_fmt (Ale_WARNING,Txt_Can_not_create_the_link_X_because_there_is_already_a_folder_or_a_link_with_that_name,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), FileName);
Txt_Can_not_create_the_link_X_because_there_is_already_a_folder_or_a_link_with_that_name,
FileName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else // URL file does not exist else // URL file does not exist
{ {
/***** Create the new file with the URL *****/ /***** Create the new file with the URL *****/
@ -9395,10 +9339,8 @@ void Brw_RecLinkFileBrowser (void)
if (Brw_CheckIfQuotaExceded ()) if (Brw_CheckIfQuotaExceded ())
{ {
Fil_RemoveTree (Path); Fil_RemoveTree (Path);
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_WARNING,Txt_Can_not_create_the_link_X_because_it_would_exceed_the_disk_quota,
Txt_Can_not_create_the_link_X_because_it_would_exceed_the_disk_quota, FileName);
FileName);
Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
} }
else else
{ {
@ -9425,10 +9367,8 @@ void Brw_RecLinkFileBrowser (void)
Brw_IS_FOLDER, Brw_IS_FOLDER,
Gbl.FileBrowser.FilFolLnkName, Gbl.FileBrowser.FilFolLnkName,
FileNameToShow); FileNameToShow);
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_link_X_has_been_placed_inside_the_folder_Y,
Txt_The_link_X_has_been_placed_inside_the_folder_Y, FileName,FileNameToShow);
FileName,FileNameToShow);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
FileMetadata.FilCod = FilCod; FileMetadata.FilCod = FilCod;
Brw_GetFileMetadataByCod (&FileMetadata); Brw_GetFileMetadataByCod (&FileMetadata);
@ -9461,10 +9401,10 @@ void Brw_RecLinkFileBrowser (void)
} }
} }
else // Link URL not valid else // Link URL not valid
Ale_ShowA_old (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link); Ale_ShowA_fmt (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link);
} }
else // Link URL not valid else // Link URL not valid
Ale_ShowA_old (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link); Ale_ShowA_fmt (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link);
} }
else else
Lay_ShowErrorAndExit (Txt_You_can_not_create_links_here); // It's difficult, but not impossible that a user sees this message Lay_ShowErrorAndExit (Txt_You_can_not_create_links_here); // It's difficult, but not impossible that a user sees this message
@ -9564,10 +9504,8 @@ void Brw_SetDocumentAsVisible (void)
Gbl.FileBrowser.FileType, Gbl.FileBrowser.FileType,
Gbl.FileBrowser.FilFolLnkName, Gbl.FileBrowser.FilFolLnkName,
FileNameToShow); FileNameToShow);
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_FILE_FOLDER_OR_LINK_X_is_now_visible,
Txt_FILE_FOLDER_OR_LINK_X_is_now_visible, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Show again the file browser *****/ /***** Show again the file browser *****/
Brw_ShowAgainFileBrowserOrWorks (); Brw_ShowAgainFileBrowserOrWorks ();
@ -9602,10 +9540,8 @@ void Brw_SetDocumentAsHidden (void)
Gbl.FileBrowser.FileType, Gbl.FileBrowser.FileType,
Gbl.FileBrowser.FilFolLnkName, Gbl.FileBrowser.FilFolLnkName,
FileNameToShow); FileNameToShow);
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_FILE_FOLDER_OR_LINK_X_is_now_hidden,
Txt_FILE_FOLDER_OR_LINK_X_is_now_hidden, FileNameToShow);
FileNameToShow);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Show again the file browser *****/ /***** Show again the file browser *****/
Brw_ShowAgainFileBrowserOrWorks (); Brw_ShowAgainFileBrowserOrWorks ();
@ -10088,7 +10024,7 @@ void Brw_ShowFileMetadata (void)
break; break;
} }
Ale_ShowA_old (Ale_WARNING,Txt_The_file_of_folder_no_longer_exists_or_is_now_hidden); Ale_ShowA_fmt (Ale_WARNING,Txt_The_file_of_folder_no_longer_exists_or_is_now_hidden);
} }
/***** Show again the file browser *****/ /***** Show again the file browser *****/
@ -10247,7 +10183,7 @@ void Brw_DownloadFile (void)
break; break;
} }
Ale_ShowA_old (Ale_WARNING,Txt_The_file_of_folder_no_longer_exists_or_is_now_hidden); Ale_ShowA_fmt (Ale_WARNING,Txt_The_file_of_folder_no_longer_exists_or_is_now_hidden);
/***** Show again the file browser *****/ /***** Show again the file browser *****/
Brw_ShowAgainFileBrowserOrWorks (); Brw_ShowAgainFileBrowserOrWorks ();
@ -10570,20 +10506,14 @@ void Brw_ChgFileMetadata (void)
break; break;
} }
/***** Write message of confirmation *****/ /***** Write sucess message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,Txt_The_properties_of_file_X_have_been_saved,
Txt_The_properties_of_file_X_have_been_saved, Gbl.FileBrowser.FilFolLnkName);
Gbl.FileBrowser.FilFolLnkName);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
else else
{ /***** Write error message *****/
/***** Write message of error *****/ Ale_ShowA_fmt (Ale_ERROR,Txt_You_dont_have_permission_to_change_the_properties_of_file_X,
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Gbl.FileBrowser.FilFolLnkName);
Txt_You_dont_have_permission_to_change_the_properties_of_file_X,
Gbl.FileBrowser.FilFolLnkName);
Ale_ShowA_old (Ale_ERROR,Gbl.Alert.Txt);
}
/***** Show again the file browser *****/ /***** Show again the file browser *****/
Brw_ShowAgainFileBrowserOrWorks (); Brw_ShowAgainFileBrowserOrWorks ();
@ -12570,14 +12500,12 @@ void Brw_RemoveOldFilesBriefcase (void)
Brw_RemoveOldFilesInBrowser (Months,&Removed); Brw_RemoveOldFilesInBrowser (Months,&Removed);
/***** Success message *****/ /***** Success message *****/
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt), Ale_ShowA_fmt (Ale_SUCCESS,"%s: %u<br />"
"%s: %u<br />" "%s: %u<br />"
"%s: %u<br />" "%s: %u",
"%s: %u", Txt_Files_removed ,Removed.NumFiles,
Txt_Files_removed ,Removed.NumFiles, Txt_Links_removed ,Removed.NumLinks,
Txt_Links_removed ,Removed.NumLinks, Txt_Folders_removed,Removed.NumFolds);
Txt_Folders_removed,Removed.NumFolds);
Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
} }
/***** Show again the file browser *****/ /***** Show again the file browser *****/