Version19.86.1

This commit is contained in:
Antonio Cañas Vargas 2019-12-07 18:44:13 +01:00
parent 190f1fffd8
commit 46356d84ed
5 changed files with 8 additions and 13 deletions

View File

@ -2167,8 +2167,8 @@ const struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
[ActAnsMchQstStd ] = {1651,-1,TabUnk,ActSeeAllGam ,0x008, 0, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_2ND_TAB,Mch_GetMatchBeingPlayed ,Mch_ReceiveQuestionAnswer ,NULL},
[ActRefMchStd ] = {1782,-1,TabUnk,ActSeeAllGam ,0x008, 0, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_AJAX_RFRESH,Mch_GetMatchBeingPlayed ,Mch_RefreshMatchStd ,NULL},
[ActSeeAllMyMchRes ] = {1796,-1,TabUnk,ActSeeAllGam ,0x208,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,McR_ShowAllMyMchRes ,NULL},
[ActSeeGamMyMchRes ] = {1810,-1,TabUnk,ActSeeAllGam ,0x208,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,McR_ShowAllMyMchResInGame ,NULL},
[ActSeeAllMyMchRes ] = {1796,-1,TabUnk,ActSeeAllGam ,0x208,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,McR_ShowMyMchRes ,NULL},
[ActSeeGamMyMchRes ] = {1810,-1,TabUnk,ActSeeAllGam ,0x208,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,McR_ShowMyMchRes ,NULL},
[ActSeeOneMchResMe ] = {1797,-1,TabUnk,ActSeeAllGam ,0x208,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,McR_ShowOneMchResult ,NULL},
[ActReqSeeAllMchRes ] = {1798,-1,TabUnk,ActSeeAllGam ,0x230,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,Dat_SetIniEndDates ,McR_SelUsrsToViewUsrsMchRes ,NULL},

View File

@ -490,7 +490,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 19.86 (2019-12-07)"
#define Log_PLATFORM_VERSION "SWAD 19.86.1 (2019-12-07)"
#define CSS_FILE "swad19.85.css"
#define JS_FILE "swad19.70.js"
/*
@ -498,6 +498,7 @@ ps2pdf source.ps destination.pdf
// TODO: Impedir la creación y edición de proyectos si no son editables.
// TODO: En cada juego, poder listar los resultados en una tabla como la de resultados globales
Version 19.86.1: Dec 07, 2019 Show matches results in a game for a student. (247901 lines)
Version 19.86: Dec 07, 2019 New actions to show the matches results in a game. (247905 lines)
2 changes necessary in database:
INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1810','es','N','Ver mis resultados en un juego');

View File

@ -822,7 +822,7 @@ unsigned Gam_GetListSelectedGamCods (char **StrGamCodsSelected)
Lay_NotEnoughMemoryExit ();
/***** Get parameter multiple with list of games selected *****/
Par_GetParMultiToText ("GamCods",*StrGamCodsSelected,MaxSizeListGamCodsSelected);
Par_GetParMultiToText ("GamCod",*StrGamCodsSelected,MaxSizeListGamCodsSelected);
/***** Set which games will be shown as selected (checkboxes on) *****/
if ((*StrGamCodsSelected)[0]) // There are games selected

View File

@ -94,7 +94,7 @@ static bool McR_GetVisibilityMchResultFromDB (long MchCod);
/*************************** Show my matches results *************************/
/*****************************************************************************/
void McR_ShowAllMyMchRes (void)
void McR_ShowMyMchRes (void)
{
extern const char *Hlp_ASSESSMENT_Games_results;
extern const char *Hlp_ASSESSMENT_Games_results;
@ -149,11 +149,6 @@ void McR_ShowAllMyMchRes (void)
Gam_FreeListGames ();
}
void McR_ShowAllMyMchResInGame (void)
{
// TODO: Implement!!!!
}
/*****************************************************************************/
/*********** Select users and dates to show their matches results ************/
/*****************************************************************************/
@ -388,7 +383,7 @@ static void McR_ListGamesToSelect (void)
HTM_TR_Begin (NULL);
HTM_TD_Begin ("class=\"DAT CT COLOR%u\"",Gbl.RowEvenOdd);
HTM_INPUT_CHECKBOX ("GamCods",false,
HTM_INPUT_CHECKBOX ("GamCod",false,
"id=\"Gam%u\" value=\"%ld\"%s",
NumGame,Gbl.Games.Lst[NumGame].GamCod,
Gbl.Games.Lst[NumGame].Selected ? " checked=\"checked\"" : "");

View File

@ -35,8 +35,7 @@
/***************************** Public prototypes *****************************/
/*****************************************************************************/
void McR_ShowAllMyMchRes (void);
void McR_ShowAllMyMchResInGame (void);
void McR_ShowMyMchRes (void);
void McR_SelUsrsToViewUsrsMchRes (void);
void McR_GetUsrsAndShowMchRes (void);
void McR_GetUsrsAndShowMchResInGame (void);