"
@@ -8861,7 +8861,7 @@ void Brw_RecFolderFileBrowser (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Can_not_create_the_folder_X_because_it_would_exceed_the_disk_quota,
Gbl.FileBrowser.NewFilFolLnkName);
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else
{
@@ -8890,7 +8890,7 @@ void Brw_RecFolderFileBrowser (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_The_folder_X_has_been_created_inside_the_folder_Y,
Gbl.FileBrowser.NewFilFolLnkName,FileNameToShow);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
}
}
else
@@ -8901,7 +8901,7 @@ void Brw_RecFolderFileBrowser (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Can_not_create_the_folder_X_because_there_is_already_a_folder_or_a_file_with_that_name,
Gbl.FileBrowser.NewFilFolLnkName);
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
break;
case EACCES:
Lay_ShowErrorAndExit ("Write forbidden.");
@@ -8913,7 +8913,7 @@ void Brw_RecFolderFileBrowser (void)
}
}
else // Folder name not valid
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.AlertToShowLater.Txt);
}
else
Lay_ShowErrorAndExit (Txt_You_can_not_create_folders_here); // It's difficult, but not impossible that a user sees this message
@@ -8992,7 +8992,7 @@ void Brw_RenFolderFileBrowser (void)
Lay_ShowErrorAndExit ("Can not rename folder.");
break;
}
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else // Success
{
@@ -9021,7 +9021,7 @@ void Brw_RenFolderFileBrowser (void)
Txt_The_folder_name_X_has_changed_to_Y,
Gbl.FileBrowser.FilFolLnkName,
Gbl.FileBrowser.NewFilFolLnkName);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
}
}
@@ -9030,11 +9030,11 @@ void Brw_RenFolderFileBrowser (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_The_folder_name_X_has_not_changed,
Gbl.FileBrowser.FilFolLnkName);
- Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
}
else // Folder name not valid
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.AlertToShowLater.Txt);
}
else
Lay_ShowErrorAndExit (Txt_You_can_not_rename_this_folder);
@@ -9138,7 +9138,7 @@ static bool Brw_RcvFileInFileBrw (Brw_UploadType_t UploadType)
/***** Check if uploading this kind of file is allowed *****/
if (Brw_CheckIfUploadIsAllowed (MIMEType)) // Gbl.Alert.Txt contains feedback text
{
- if (Str_ConvertFilFolLnkNameToValid (Gbl.FileBrowser.NewFilFolLnkName)) // Gbl.Alert.Txt contains feedback text
+ if (Str_ConvertFilFolLnkNameToValid (Gbl.FileBrowser.NewFilFolLnkName)) // Gbl.AlertToShowLater.Txt contains feedback text
{
/* Gbl.FileBrowser.NewFilFolLnkName holds the name of the new file */
snprintf (Path,sizeof (Path),
@@ -9376,7 +9376,7 @@ void Brw_RecLinkFileBrowser (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Can_not_create_the_link_X_because_there_is_already_a_folder_or_a_link_with_that_name,
FileName);
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else // URL file does not exist
{
@@ -9398,7 +9398,7 @@ void Brw_RecLinkFileBrowser (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Can_not_create_the_link_X_because_it_would_exceed_the_disk_quota,
FileName);
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else
{
@@ -9428,7 +9428,7 @@ void Brw_RecLinkFileBrowser (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_The_link_X_has_been_placed_inside_the_folder_Y,
FileName,FileNameToShow);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
FileMetadata.FilCod = FilCod;
Brw_GetFileMetadataByCod (&FileMetadata);
@@ -9461,10 +9461,10 @@ void Brw_RecLinkFileBrowser (void)
}
}
else // Link URL not valid
- Ale_ShowAlert (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link);
+ Ale_ShowA_old (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link);
}
else // Link URL not valid
- Ale_ShowAlert (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link);
+ Ale_ShowA_old (Ale_WARNING,Txt_UPLOAD_FILE_Invalid_link);
}
else
Lay_ShowErrorAndExit (Txt_You_can_not_create_links_here); // It's difficult, but not impossible that a user sees this message
@@ -9567,7 +9567,7 @@ void Brw_SetDocumentAsVisible (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_FILE_FOLDER_OR_LINK_X_is_now_visible,
FileNameToShow);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Show again the file browser *****/
Brw_ShowAgainFileBrowserOrWorks ();
@@ -9605,7 +9605,7 @@ void Brw_SetDocumentAsHidden (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_FILE_FOLDER_OR_LINK_X_is_now_hidden,
FileNameToShow);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Show again the file browser *****/
Brw_ShowAgainFileBrowserOrWorks ();
@@ -10088,7 +10088,7 @@ void Brw_ShowFileMetadata (void)
break;
}
- Ale_ShowAlert (Ale_WARNING,Txt_The_file_of_folder_no_longer_exists_or_is_now_hidden);
+ Ale_ShowA_old (Ale_WARNING,Txt_The_file_of_folder_no_longer_exists_or_is_now_hidden);
}
/***** Show again the file browser *****/
@@ -10247,7 +10247,7 @@ void Brw_DownloadFile (void)
break;
}
- Ale_ShowAlert (Ale_WARNING,Txt_The_file_of_folder_no_longer_exists_or_is_now_hidden);
+ Ale_ShowA_old (Ale_WARNING,Txt_The_file_of_folder_no_longer_exists_or_is_now_hidden);
/***** Show again the file browser *****/
Brw_ShowAgainFileBrowserOrWorks ();
@@ -10574,7 +10574,7 @@ void Brw_ChgFileMetadata (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_The_properties_of_file_X_have_been_saved,
Gbl.FileBrowser.FilFolLnkName);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
}
else
{
@@ -10582,7 +10582,7 @@ void Brw_ChgFileMetadata (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_You_dont_have_permission_to_change_the_properties_of_file_X,
Gbl.FileBrowser.FilFolLnkName);
- Ale_ShowAlert (Ale_ERROR,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_ERROR,Gbl.Alert.Txt);
}
/***** Show again the file browser *****/
@@ -12577,7 +12577,7 @@ void Brw_RemoveOldFilesBriefcase (void)
Txt_Files_removed ,Removed.NumFiles,
Txt_Links_removed ,Removed.NumLinks,
Txt_Folders_removed,Removed.NumFolds);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
}
/***** Show again the file browser *****/
diff --git a/swad_follow.c b/swad_follow.c
index 66f5a8fc..441a6c22 100644
--- a/swad_follow.c
+++ b/swad_follow.c
@@ -167,7 +167,7 @@ void Fol_SuggestUsrsToFollowMainZone (void)
Box_EndBoxTable ();
}
else
- Ale_ShowAlert (Ale_INFO,Txt_No_user_to_whom_you_can_follow_Try_again_later);
+ Ale_ShowA_old (Ale_INFO,Txt_No_user_to_whom_you_can_follow_Try_again_later);
/***** Free structure that stores the query result *****/
DB_FreeMySQLResult (&mysql_res);
@@ -653,7 +653,7 @@ void Fol_ListFollowing (void)
if (Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&Gbl.Usrs.Other.UsrDat))
Fol_ListFollowingUsr (&Gbl.Usrs.Other.UsrDat);
else
- Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
+ Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
}
else // If user not specified, view my profile
Fol_ListFollowingUsr (&Gbl.Usrs.Me.UsrDat);
@@ -719,7 +719,7 @@ static void Fol_ListFollowingUsr (struct UsrData *UsrDat)
DB_FreeMySQLResult (&mysql_res);
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
+ Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
}
/*****************************************************************************/
@@ -738,7 +738,7 @@ void Fol_ListFollowers (void)
if (Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&Gbl.Usrs.Other.UsrDat))
Fol_ListFollowersUsr (&Gbl.Usrs.Other.UsrDat);
else
- Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
+ Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
}
else // If user not specified, view my profile
Fol_ListFollowersUsr (&Gbl.Usrs.Me.UsrDat);
@@ -812,7 +812,7 @@ static void Fol_ListFollowersUsr (struct UsrData *UsrDat)
Gbl.Usrs.Me.UsrDat.UsrCod);
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
+ Ale_ShowA_old (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
}
/*****************************************************************************/
diff --git a/swad_forum.c b/swad_forum.c
index cd7c8ba6..3af8b170 100644
--- a/swad_forum.c
+++ b/swad_forum.c
@@ -972,7 +972,7 @@ static void For_ShowPostsOfAThread (Ale_AlertType_t AlertType,const char *Messag
Lay_StartSection (For_FORUM_POSTS_SECTION_ID);
if (Message)
if (Message[0])
- Ale_ShowAlert (AlertType,Message);
+ Ale_ShowA_old (AlertType,Message);
/***** Start box *****/
snprintf (FrameTitle,sizeof (FrameTitle),
@@ -2541,7 +2541,7 @@ static void For_ShowForumThreadsHighlightingOneThread (long ThrCodHighlighted,
Lay_StartSection (For_FORUM_THREADS_SECTION_ID);
if (Message)
if (Message[0])
- Ale_ShowAlert (AlertType,Message);
+ Ale_ShowA_old (AlertType,Message);
/***** Start box for threads of this forum *****/
snprintf (FrameTitle,sizeof (FrameTitle),
diff --git a/swad_game.c b/swad_game.c
index d02fa427..0246e357 100644
--- a/swad_game.c
+++ b/swad_game.c
@@ -277,7 +277,7 @@ static void Gam_ListAllGames (void)
Tbl_EndTable ();
}
else // No games created
- Ale_ShowAlert (Ale_INFO,Txt_No_games);
+ Ale_ShowA_old (Ale_INFO,Txt_No_games);
/***** Button to create a new game *****/
if (Gam_CheckIfICanCreateGame ())
@@ -1552,7 +1552,7 @@ void Gam_RemoveGame (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Game_X_removed,
Game.Title);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Show games again *****/
Gam_ListAllGames ();
@@ -1585,7 +1585,7 @@ void Gam_AskResetGame (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Do_you_really_want_to_reset_the_game_X,
Game.Title);
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
/***** Button of confirmation of reset *****/
Gbl.Games.CurrentGamCod = Game.GamCod;
@@ -1644,7 +1644,7 @@ void Gam_ResetGame (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Game_X_reset,
Game.Title);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Show games again *****/
Gam_ListAllGames ();
@@ -1677,7 +1677,7 @@ void Gam_HideGame (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Game_X_is_now_hidden,
Game.Title);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Show games again *****/
Gam_ListAllGames ();
@@ -1710,7 +1710,7 @@ void Gam_UnhideGame (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Game_X_is_now_visible,
Game.Title);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Show games again *****/
Gam_ListAllGames ();
@@ -2153,13 +2153,13 @@ void Gam_RecFormGame (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Already_existed_a_game_with_the_title_X,
NewGame.Title);
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
}
else // If there is not a game title
{
NewGameIsCorrect = false;
- Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_title_of_the_game);
+ Ale_ShowA_old (Ale_WARNING,Txt_You_must_specify_the_title_of_the_game);
}
/***** Create a new game or update an existing one *****/
@@ -2217,7 +2217,7 @@ static void Gam_CreateGame (struct Game *Game,const char *Txt)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Created_new_game_X,
Game->Title);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
}
/*****************************************************************************/
@@ -2254,7 +2254,7 @@ static void Gam_UpdateGame (struct Game *Game,const char *Txt)
Gam_CreateGrps (Game->GamCod);
/***** Write success message *****/
- Ale_ShowAlert (Ale_SUCCESS,Txt_The_game_has_been_modified);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_The_game_has_been_modified);
}
/*****************************************************************************/
@@ -2792,7 +2792,7 @@ static void Gam_ListGameQuestions (struct Game *Game)
}
}
else // This game has no questions
- Ale_ShowAlert (Ale_INFO,Txt_This_game_has_no_questions);
+ Ale_ShowA_old (Ale_INFO,Txt_This_game_has_no_questions);
if (Game->Status.ICanEdit && // I can edit
(!NumQsts || // This game has no questions
@@ -3034,7 +3034,7 @@ void Gam_AddTstQuestionsToGame (void)
/* Check number of questions */
if (Gam_CountNumQuestionsInList () == 0) // If no questions selected...
{ // ...write warning alert
- Ale_ShowAlert (Ale_WARNING,Txt_You_must_select_one_ore_more_questions);
+ Ale_ShowA_old (Ale_WARNING,Txt_You_must_select_one_ore_more_questions);
// TODO: Show form again!!!
}
@@ -3307,7 +3307,7 @@ void Gam_RemoveQst (void)
Game.GamCod,QstInd);
/***** Write message *****/
- Ale_ShowAlert (Ale_SUCCESS,Txt_Question_removed);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_Question_removed);
/***** Show current game *****/
Gam_ShowOneGame (Game.GamCod,
@@ -3353,7 +3353,7 @@ void Gam_MoveUpQst (void)
(unsigned) QstIndTop,(unsigned) QstIndBottom);
/* Success alert */
- Ale_ShowAlert (Ale_SUCCESS,Txt_The_question_has_been_moved_up);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_The_question_has_been_moved_up);
}
/***** Show current game *****/
@@ -3405,7 +3405,7 @@ void Gam_MoveDownQst (void)
(unsigned) QstIndTop,(unsigned) QstIndBottom);
/* Success alert */
- Ale_ShowAlert (Ale_SUCCESS,Txt_The_question_has_been_moved_down);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_The_question_has_been_moved_down);
}
/***** Show current game *****/
@@ -3576,7 +3576,7 @@ static void Gam_PlayGameShowQuestionAndAnswers (bool ShowAnswers)
" AND gam_questions.QstInd=%u"
" AND gam_questions.QstCod=tst_questions.QstCod",
Game.GamCod,QstInd))
- Ale_ShowAlert (Ale_WARNING,"Questions doesn't exist.");
+ Ale_ShowA_old (Ale_WARNING,"Questions doesn't exist.");
row = mysql_fetch_row (mysql_res);
/***** Show question *****/
@@ -3687,12 +3687,12 @@ void Gam_ReceiveGameAnswers (void)
/***** Check if I have no answered this game formerly *****/
if (Game.Status.IHaveAnswered)
- Ale_ShowAlert (Ale_WARNING,Txt_You_already_played_this_game_before);
+ Ale_ShowA_old (Ale_WARNING,Txt_You_already_played_this_game_before);
else
{
/***** Receive and store user's answers *****/
Gam_ReceiveAndStoreUserAnswersToAGame (Game.GamCod);
- Ale_ShowAlert (Ale_INFO,Txt_Thanks_for_playing_the_game);
+ Ale_ShowA_old (Ale_INFO,Txt_Thanks_for_playing_the_game);
}
/***** Show current game *****/
diff --git a/swad_group.c b/swad_group.c
index 274f3988..845cdcaa 100644
--- a/swad_group.c
+++ b/swad_group.c
@@ -238,7 +238,7 @@ static void Grp_ReqEditGroupsInternal1 (Ale_AlertType_t AlertTypeGroupTypes,cons
/***** Show optional alert *****/
if (MessageGroupTypes)
if (MessageGroupTypes[0])
- Ale_ShowAlert (AlertTypeGroupTypes,MessageGroupTypes);
+ Ale_ShowA_old (AlertTypeGroupTypes,MessageGroupTypes);
/***** Put form to edit group types *****/
Grp_EditGroupTypes ();
@@ -255,7 +255,7 @@ static void Grp_ReqEditGroupsInternal2 (Ale_AlertType_t AlertTypeGroups,const ch
/***** Show optional alert *****/
if (MessageGroups)
if (MessageGroups[0])
- Ale_ShowAlert (AlertTypeGroups,MessageGroups);
+ Ale_ShowA_old (AlertTypeGroups,MessageGroups);
/***** Put form to edit groups *****/
if (Gbl.CurrentCrs.Grps.GrpTypes.Num) // If there are group types...
@@ -296,7 +296,7 @@ static void Grp_EditGroupTypes (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_There_are_no_types_of_group_in_the_course_X,
Gbl.CurrentCrs.Crs.ShrtName);
- Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
/***** End box *****/
@@ -328,7 +328,7 @@ static void Grp_EditGroups (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_No_groups_have_been_created_in_the_course_X,
Gbl.CurrentCrs.Crs.ShrtName);
- Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
/***** End box *****/
@@ -1128,7 +1128,7 @@ void Grp_RegisterUsrIntoGroups (struct UsrData *UsrDat,struct ListCodGrps *LstGr
snprintf (Gbl.Alert.Txt,sizeof (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);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
}
if (!AlreadyRegisteredInGrp) // If the user does not belong to the selected group
@@ -1138,7 +1138,7 @@ void Grp_RegisterUsrIntoGroups (struct UsrData *UsrDat,struct ListCodGrps *LstGr
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);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (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
@@ -1197,7 +1197,7 @@ unsigned Grp_RemoveUsrFromGroups (struct UsrData *UsrDat,struct ListCodGrps *Lst
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_THE_USER_X_has_been_removed_from_Y_groups,
UsrDat->FullName,NumGrpsHeIsRemoved);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
/***** Free the list of groups of this type to which the user belonged *****/
Grp_FreeListCodGrp (&LstGrpsHeBelongs);
@@ -1869,7 +1869,7 @@ void Grp_ShowLstGrpsToChgMyGrps (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_No_groups_have_been_created_in_the_course_X,
Gbl.CurrentCrs.Crs.FullName);
- Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
/***** Button to create group *****/
if (ICanEdit)
@@ -1925,7 +1925,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);
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else
{
@@ -1933,7 +1933,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);
- Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
}
}
@@ -4644,7 +4644,7 @@ void Grp_ChangeOpenTimeGrpTyp (void)
Gbl.CurrentCrs.Grps.GrpTyp.GrpTypCod);
/***** Write message to show the change made *****/
- Ale_ShowAlert (Ale_SUCCESS,Txt_The_date_time_of_opening_of_groups_has_changed);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_The_date_time_of_opening_of_groups_has_changed);
/***** Show the form again *****/
Grp_ReqEditGroupsInternal (Ale_SUCCESS,Gbl.Alert.Txt,
diff --git a/swad_help.c b/swad_help.c
index 578914e6..e3f4af01 100644
--- a/swad_help.c
+++ b/swad_help.c
@@ -127,7 +127,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);
- Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
/***** Start box and table *****/
diff --git a/swad_holiday.c b/swad_holiday.c
index 301bbeac..b2caa15b 100644
--- a/swad_holiday.c
+++ b/swad_holiday.c
@@ -176,7 +176,7 @@ void Hld_SeeHolidays (void)
Tbl_EndTable ();
}
else // No holidays created in the current institution
- Ale_ShowAlert (Ale_INFO,Txt_No_holidays);
+ Ale_ShowA_old (Ale_INFO,Txt_No_holidays);
/***** Button to create centre *****/
if (Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM) // Institution admin or system admin
diff --git a/swad_image.c b/swad_image.c
index d0e213ef..60bf6101 100644
--- a/swad_image.c
+++ b/swad_image.c
@@ -545,7 +545,7 @@ void Img_MoveImageToDefinitiveDirectory (struct Image *Image)
/***** Move file *****/
if (rename (FileNameImgTmp,FileNameImg)) // Fail
- Ale_ShowAlert (Ale_ERROR,"Can not move file.");
+ Ale_ShowA_old (Ale_ERROR,"Can not move file.");
else // Success
Image->Status = Img_FILE_MOVED;
}
@@ -628,7 +628,7 @@ void Img_ShowImage (struct Image *Image,
fprintf (Gbl.F.Out,"");
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_Image_not_found);
+ Ale_ShowA_old (Ale_WARNING,Txt_Image_not_found);
}
/*****************************************************************************/
diff --git a/swad_info.c b/swad_info.c
index df779033..39d45063 100644
--- a/swad_info.c
+++ b/swad_info.c
@@ -450,7 +450,7 @@ void Inf_ShowInfo (void)
ICanEdit ? Inf_PutIconToEditInfo :
NULL,
Help[Gbl.CurrentCrs.Info.Type],Box_NOT_CLOSABLE);
- Ale_ShowAlert (Ale_INFO,Txt_No_information);
+ Ale_ShowA_old (Ale_INFO,Txt_No_information);
if (ICanEdit)
Inf_PutButtonToEditInfo ();
Box_EndBox ();
@@ -597,7 +597,7 @@ void Inf_WriteMsgYouMustReadInfo (void)
NULL,Box_NOT_CLOSABLE);
/***** Write message *****/
- Ale_ShowAlert (Ale_WARNING,Txt_You_should_read_the_following_information);
+ Ale_ShowA_old (Ale_WARNING,Txt_You_should_read_the_following_information);
/***** Write every information I must read *****/
fprintf (Gbl.F.Out,""
@@ -642,7 +642,7 @@ void Inf_ChangeForceReadInfo (void)
Inf_SetForceReadIntoDB (MustBeRead);
/***** Write message of success *****/
- Ale_ShowAlert (Ale_SUCCESS,
+ Ale_ShowA_old (Ale_SUCCESS,
MustBeRead ? Txt_Students_now_are_required_to_read_this_information :
Txt_Students_are_no_longer_obliged_to_read_this_information);
@@ -667,7 +667,7 @@ void Inf_ChangeIHaveReadInfo (void)
Inf_SetIHaveReadIntoDB (IHaveRead);
/***** Write message of success *****/
- Ale_ShowAlert (Ale_SUCCESS,
+ Ale_ShowA_old (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);
@@ -2246,11 +2246,11 @@ void Inf_ReceiveURLInfo (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_The_URL_X_has_been_updated,
Gbl.CurrentCrs.Info.URL);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
URLIsOK = true;
}
else
- Ale_ShowAlert (Ale_ERROR,"Error when saving URL to file.");
+ Ale_ShowA_old (Ale_ERROR,"Error when saving URL to file.");
if (URLIsOK)
{
@@ -2316,7 +2316,7 @@ void Inf_ReceivePagInfo (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_The_file_type_is_X_and_should_be_HTML_or_ZIP,
MIMEType);
- Ale_ShowAlert (Ale_INFO,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_INFO,Gbl.Alert.Txt);
}
else
{
@@ -2334,11 +2334,11 @@ void Inf_ReceivePagInfo (void)
PathRelDirHTML);
if (Fil_EndReceptionOfFile (PathRelFileHTML,Param))
{
- Ale_ShowAlert (Ale_SUCCESS,Txt_The_HTML_file_has_been_received_successfully);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_The_HTML_file_has_been_received_successfully);
FileIsOK = true;
}
else
- Ale_ShowAlert (Ale_WARNING,"Error uploading file.");
+ Ale_ShowA_old (Ale_WARNING,"Error uploading file.");
}
else if (Str_FileIs (SourceFileName,"zip")) // .zip file
{
@@ -2351,7 +2351,7 @@ void Inf_ReceivePagInfo (void)
if (Fil_EndReceptionOfFile (PathRelFileZIP,Param))
{
- Ale_ShowAlert (Ale_SUCCESS,Txt_The_ZIP_file_has_been_received_successfully);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_The_ZIP_file_has_been_received_successfully);
/* Uncompress ZIP */
snprintf (StrUnzip,sizeof (StrUnzip),
@@ -2365,8 +2365,8 @@ void Inf_ReceivePagInfo (void)
PathRelDirHTML);
if (Fil_CheckIfPathExists (PathRelFileHTML))
{
- Ale_ShowAlert (Ale_SUCCESS,Txt_The_ZIP_file_has_been_unzipped_successfully);
- Ale_ShowAlert (Ale_SUCCESS,Txt_Found_an_index_html_file);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_The_ZIP_file_has_been_unzipped_successfully);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_Found_an_index_html_file);
FileIsOK = true;
}
else
@@ -2376,22 +2376,22 @@ void Inf_ReceivePagInfo (void)
PathRelDirHTML);
if (Fil_CheckIfPathExists (PathRelFileHTML))
{
- Ale_ShowAlert (Ale_SUCCESS,Txt_The_ZIP_file_has_been_unzipped_successfully);
- Ale_ShowAlert (Ale_SUCCESS,Txt_Found_an_index_htm_file);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_The_ZIP_file_has_been_unzipped_successfully);
+ Ale_ShowA_old (Ale_SUCCESS,Txt_Found_an_index_htm_file);
FileIsOK = true;
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_No_file_index_html_index_htm_found_within_the_ZIP_file);
+ Ale_ShowA_old (Ale_WARNING,Txt_No_file_index_html_index_htm_found_within_the_ZIP_file);
}
}
else
Lay_ShowErrorAndExit ("Can not unzip file.");
}
else
- Ale_ShowAlert (Ale_WARNING,"Error uploading file.");
+ Ale_ShowA_old (Ale_WARNING,"Error uploading file.");
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_The_file_type_should_be_HTML_or_ZIP);
+ Ale_ShowA_old (Ale_WARNING,Txt_The_file_type_should_be_HTML_or_ZIP);
}
if (FileIsOK)
@@ -2420,7 +2420,7 @@ void Inf_EditorCourseInfo (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowA_old (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
@@ -2434,7 +2434,7 @@ void Inf_EditorTeachingGuide (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowA_old (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
@@ -2448,7 +2448,7 @@ void Inf_EditorBibliography (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowA_old (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
@@ -2462,7 +2462,7 @@ void Inf_EditorFAQ (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowA_old (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
@@ -2476,7 +2476,7 @@ void Inf_EditorLinks (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowA_old (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
/***** Show again the form to select and send course info *****/
Inf_FormsToSelSendInfo ();
@@ -2490,7 +2490,7 @@ void Inf_EditorAssessment (void)
{
extern const char *Txt_The_integrated_editor_is_not_yet_available;
- Ale_ShowAlert (Ale_WARNING,Txt_The_integrated_editor_is_not_yet_available);
+ Ale_ShowA_old (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 3e46b57b..e3d17f8a 100644
--- a/swad_institution.c
+++ b/swad_institution.c
@@ -215,7 +215,7 @@ void Ins_SeeInsWithPendingCtrs (void)
Box_EndBoxTable ();
}
else
- Ale_ShowAlert (Ale_INFO,Txt_There_are_no_institutions_with_requests_for_centres_to_be_confirmed);
+ Ale_ShowA_old (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);
@@ -708,7 +708,7 @@ static void Ins_ListInstitutions (void)
Tbl_EndTable ();
}
else // No insrtitutions created in the current country
- Ale_ShowAlert (Ale_INFO,Txt_No_institutions);
+ Ale_ShowA_old (Ale_INFO,Txt_No_institutions);
/***** Button to create institution *****/
if (Ins_CheckIfICanCreateInstitutions ())
@@ -1731,7 +1731,7 @@ void Ins_RemoveInstitution (void)
else if (Ins.NumCtrs ||
Ins.NumUsrsWhoClaimToBelongToIns ||
Ins.NumUsrs) // Institution has centres or users ==> don't remove
- Ale_ShowAlert (Ale_WARNING,Txt_To_remove_an_institution_you_must_first_remove_all_centres_and_users_in_the_institution);
+ Ale_ShowA_old (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 *****/
@@ -1764,7 +1764,7 @@ void Ins_RemoveInstitution (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_Institution_X_removed,
Ins.FullName);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
}
/***** Show the form again *****/
@@ -2032,7 +2032,7 @@ void Ins_ChangeInsWWW (void)
Ins_ShowAlertAndButtonToGoToIns ();
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty);
+ Ale_ShowA_old (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty);
/***** Show the form again *****/
Ins_EditInstitutions ();
@@ -2060,10 +2060,10 @@ void Ins_ChangeInsWWWInConfig (void)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_The_new_web_address_is_X,
NewWWW);
- Ale_ShowAlert (Ale_SUCCESS,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_SUCCESS,Gbl.Alert.Txt);
}
else
- Ale_ShowAlert (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty);
+ Ale_ShowA_old (Ale_WARNING,Txt_You_can_not_leave_the_web_address_empty);
/***** Show the form again *****/
Ins_ShowConfiguration ();
@@ -2165,7 +2165,7 @@ static void Ins_ShowAlertAndButtonToGoToIns (void)
}
else
/***** Alert *****/
- Ale_ShowAlert (Gbl.Alert.Type,Gbl.Alert.Txt);
+ Ale_ShowA_old (Gbl.Alert.Type,Gbl.Alert.Txt);
}
static void Ins_PutParamGoToIns (void)
@@ -2403,23 +2403,23 @@ static void Ins_RecFormRequestOrCreateIns (unsigned Status)
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_The_institution_X_already_exists,
Gbl.Inss.EditingIns.ShrtName);
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else if (Ins_CheckIfInsNameExistsInCty ("FullName",Gbl.Inss.EditingIns.FullName,-1L,Gbl.CurrentCty.Cty.CtyCod))
{
snprintf (Gbl.Alert.Txt,sizeof (Gbl.Alert.Txt),
Txt_The_institution_X_already_exists,
Gbl.Inss.EditingIns.FullName);
- Ale_ShowAlert (Ale_WARNING,Gbl.Alert.Txt);
+ Ale_ShowA_old (Ale_WARNING,Gbl.Alert.Txt);
}
else // Add new institution to database
Ins_CreateInstitution (Status);
}
else // If there is not a web
- Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_web_address_of_the_new_institution);
+ Ale_ShowA_old (Ale_WARNING,Txt_You_must_specify_the_web_address_of_the_new_institution);
}
else // If there is not a institution name
- Ale_ShowAlert (Ale_WARNING,Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_institution);
+ Ale_ShowA_old (Ale_WARNING,Txt_You_must_specify_the_short_name_and_the_full_name_of_the_new_institution);
/***** Show the form again *****/
Ins_EditInstitutions ();
diff --git a/swad_layout.c b/swad_layout.c
index 81549a97..e22abfe6 100644
--- a/swad_layout.c
+++ b/swad_layout.c
@@ -1269,7 +1269,7 @@ void Lay_ShowErrorAndExit (const char *Txt)
/***** Write possible error message *****/
if (Txt)
- Ale_ShowAlert (Ale_ERROR,Txt);
+ Ale_ShowA_old (Ale_ERROR,Txt);
/***** Finish the page, except