mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-14 12:44:09 +02:00
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:
|
En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
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 CSS_FILE "swad19.15.css"
|
||||||
#define JS_FILE "swad19.15.js"
|
#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.
|
Version 19.16.2: Sep 26, 2019 Fixed bugs in edition of games.
|
||||||
Changed listing of games and surveys. (246422 lines)
|
Changed listing of games and surveys. (246422 lines)
|
||||||
Version 19.16.1: Sep 26, 2019 Code refactoring in edition of games. (246416 lines)
|
Version 19.16.1: Sep 26, 2019 Code refactoring in edition of games. (246416 lines)
|
||||||
|
|
34
swad_game.c
34
swad_game.c
|
@ -378,6 +378,7 @@ void Gam_ShowOneGame (long GamCod,
|
||||||
char *Anchor = NULL;
|
char *Anchor = NULL;
|
||||||
static unsigned UniqueId = 0;
|
static unsigned UniqueId = 0;
|
||||||
struct Game Game;
|
struct Game Game;
|
||||||
|
Dat_StartEndTime_t StartEndTime;
|
||||||
char Txt[Cns_MAX_BYTES_TEXT + 1];
|
char Txt[Cns_MAX_BYTES_TEXT + 1];
|
||||||
|
|
||||||
/***** Start box *****/
|
/***** Start box *****/
|
||||||
|
@ -414,10 +415,14 @@ void Gam_ShowOneGame (long GamCod,
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Start date/time *****/
|
/***** Start/end date/time *****/
|
||||||
UniqueId++;
|
UniqueId++;
|
||||||
fprintf (Gbl.F.Out,"<td id=\"gam_date_start_%u\" class=\"%s LEFT_TOP",
|
for (StartEndTime = (Dat_StartEndTime_t) 0;
|
||||||
UniqueId,
|
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" :
|
Game.Status.Visible ? "DATE_GREEN" :
|
||||||
"DATE_GREEN_LIGHT");
|
"DATE_GREEN_LIGHT");
|
||||||
if (!ShowOnlyThisGame)
|
if (!ShowOnlyThisGame)
|
||||||
|
@ -425,29 +430,14 @@ void Gam_ShowOneGame (long GamCod,
|
||||||
fprintf (Gbl.F.Out,"\">");
|
fprintf (Gbl.F.Out,"\">");
|
||||||
if (Game.TimeUTC[Dat_START_TIME])
|
if (Game.TimeUTC[Dat_START_TIME])
|
||||||
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
||||||
"writeLocalDateHMSFromUTC('gam_date_start_%u',%ld,"
|
"writeLocalDateHMSFromUTC('gam_date_%u_%u',%ld,"
|
||||||
"%u,'<br />','%s',true,true,0x7);"
|
"%u,'<br />','%s',true,true,0x7);"
|
||||||
"</script>",
|
"</script>",
|
||||||
UniqueId,Game.TimeUTC[Dat_START_TIME],
|
(unsigned) StartEndTime,UniqueId,
|
||||||
(unsigned) Gbl.Prefs.DateFormat,Txt_Today);
|
Game.TimeUTC[StartEndTime],
|
||||||
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);
|
(unsigned) Gbl.Prefs.DateFormat,Txt_Today);
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
}
|
||||||
|
|
||||||
/***** Game title and main data *****/
|
/***** Game title and main data *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP");
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user