mirror of https://github.com/acanas/swad-core.git
Version19.16.3
This commit is contained in:
parent
0f2e8adccc
commit
16fd93fc03
|
@ -470,10 +470,11 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
|||
En OpenSWAD:
|
||||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
#define Log_PLATFORM_VERSION "SWAD 19.16.2 (2019-09-26)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 19.16.3 (2019-09-27)"
|
||||
#define CSS_FILE "swad19.15.css"
|
||||
#define JS_FILE "swad19.15.js"
|
||||
/*
|
||||
Version 19.16.3: Sep 27, 2019 Code refactoring in game dates. (246414 lines)
|
||||
Version 19.16.2: Sep 26, 2019 Fixed bugs in edition of games.
|
||||
Changed listing of games and surveys. (246422 lines)
|
||||
Version 19.16.1: Sep 26, 2019 Code refactoring in edition of games. (246416 lines)
|
||||
|
|
56
swad_game.c
56
swad_game.c
|
@ -378,6 +378,7 @@ void Gam_ShowOneGame (long GamCod,
|
|||
char *Anchor = NULL;
|
||||
static unsigned UniqueId = 0;
|
||||
struct Game Game;
|
||||
Dat_StartEndTime_t StartEndTime;
|
||||
char Txt[Cns_MAX_BYTES_TEXT + 1];
|
||||
|
||||
/***** Start box *****/
|
||||
|
@ -414,40 +415,29 @@ void Gam_ShowOneGame (long GamCod,
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
|
||||
/***** Start date/time *****/
|
||||
/***** Start/end date/time *****/
|
||||
UniqueId++;
|
||||
fprintf (Gbl.F.Out,"<td id=\"gam_date_start_%u\" class=\"%s LEFT_TOP",
|
||||
UniqueId,
|
||||
Game.Status.Visible ? "DATE_GREEN" :
|
||||
"DATE_GREEN_LIGHT");
|
||||
if (!ShowOnlyThisGame)
|
||||
fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd);
|
||||
fprintf (Gbl.F.Out,"\">");
|
||||
if (Game.TimeUTC[Dat_START_TIME])
|
||||
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('gam_date_start_%u',%ld,"
|
||||
"%u,'<br />','%s',true,true,0x7);"
|
||||
"</script>",
|
||||
UniqueId,Game.TimeUTC[Dat_START_TIME],
|
||||
(unsigned) Gbl.Prefs.DateFormat,Txt_Today);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** End date/time *****/
|
||||
fprintf (Gbl.F.Out,"<td id=\"gam_date_end_%u\" class=\"%s LEFT_TOP",
|
||||
UniqueId,
|
||||
Game.Status.Visible ? "DATE_GREEN" :
|
||||
"DATE_GREEN_LIGHT");
|
||||
if (!ShowOnlyThisGame)
|
||||
fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd);
|
||||
fprintf (Gbl.F.Out,"\">");
|
||||
if (Game.TimeUTC[Dat_END_TIME])
|
||||
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('gam_date_end_%u',%ld,"
|
||||
"%u,'<br />','%s',false,true,0x7);"
|
||||
"</script>",
|
||||
UniqueId,Game.TimeUTC[Dat_END_TIME],
|
||||
(unsigned) Gbl.Prefs.DateFormat,Txt_Today);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
for (StartEndTime = (Dat_StartEndTime_t) 0;
|
||||
StartEndTime <= (Dat_StartEndTime_t) (Dat_NUM_START_END_TIME - 1);
|
||||
StartEndTime++)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td id=\"gam_date_%u_%u\" class=\"%s LEFT_TOP",
|
||||
(unsigned) StartEndTime,UniqueId,
|
||||
Game.Status.Visible ? "DATE_GREEN" :
|
||||
"DATE_GREEN_LIGHT");
|
||||
if (!ShowOnlyThisGame)
|
||||
fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd);
|
||||
fprintf (Gbl.F.Out,"\">");
|
||||
if (Game.TimeUTC[Dat_START_TIME])
|
||||
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('gam_date_%u_%u',%ld,"
|
||||
"%u,'<br />','%s',true,true,0x7);"
|
||||
"</script>",
|
||||
(unsigned) StartEndTime,UniqueId,
|
||||
Game.TimeUTC[StartEndTime],
|
||||
(unsigned) Gbl.Prefs.DateFormat,Txt_Today);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
|
||||
/***** Game title and main data *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP");
|
||||
|
|
Loading…
Reference in New Issue