Version 16.205.1

This commit is contained in:
Antonio Cañas Vargas 2017-05-04 20:11:39 +02:00
parent 40ef386c36
commit 4bdc1c4cad
4 changed files with 3 additions and 289 deletions

View File

@ -36,37 +36,6 @@ var NumUsrsCon;
var ListSeconds = [];
var countClockConnected = 0;
/****************** Write a date in client local time ************************/
//id is the id of the HTML element in which date will be written
//TimeUTC is the date-time to write in UTC UNIX time format
/*
function writeLocalDateFromUTC (id,TimeUTC,StrToday) {
var today = new Date();
var todayYea = today.getFullYear();
var todayMon = today.getMonth() + 1;
var todayDay = today.getDate();
var d = new Date();
var Yea;
var Mon;
var Day;
var StrMon;
var StrDay;
d.setTime(TimeUTC * 1000);
Yea = d.getFullYear();
Mon = d.getMonth() + 1;
Day = d.getDate();
StrMon = ((Mon < 10) ? '0' : '') + Mon;
StrDay = ((Day < 10) ? '0' : '') + Day;
if (Yea == todayYea && Mon == todayMon && Day == todayDay && // Today
StrToday.length)
document.getElementById(id).innerHTML = StrToday;
else
document.getElementById(id).innerHTML = Yea + '-' + StrMon + '-' + StrDay;
}
*/
/*************** Write a date-time in client local time **********************/
// id is the id of the HTML element in which date-time will be written
// TimeUTC is the date-time to write in UTC UNIX time format

View File

@ -233,13 +233,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.205 (2017-05-04)"
#define Log_PLATFORM_VERSION "SWAD 16.205.1 (2017-05-04)"
#define CSS_FILE "swad16.205.css"
#define JS_FILE "swad16.205.js"
// Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
/*
Version 16.205.1: May 04, 2017 Removed unused code. (218440 lines)
Version 16.205: May 04, 2017 Dates written depending on user's preferences. (218721 lines)
Version 16.204: May 04, 2017 Form in preferences to change date format. (218656 lines)
3 changes necessary in database:

View File

@ -465,11 +465,9 @@ static void Lay_WriteRedirToMyLangOnViewUsrAgd (void)
static void Lay_WriteScripts (void)
{
extern struct Act_Actions Act_Actions[Act_NUM_ACTIONS];
extern const char *Txt_MONTHS_CAPS[12];
extern const char *Txt_DAYS_CAPS[7];
extern const char *Txt_DAYS_SMALL[7];
extern const char *Txt_Exam_of_X;
unsigned Month;
unsigned DayOfWeek; /* 0, 1, 2, 3, 4, 5, 6 */
unsigned NumHld;
unsigned NumExamAnnouncement; // Number of exam announcement
@ -508,18 +506,7 @@ static void Lay_WriteScripts (void)
/***** Write script to initialize variables used to draw months *****/
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">\n"
" var MONTHS_CAPS = [");
for (Month = 0;
Month < 12;
Month++)
{
if (Month)
fprintf (Gbl.F.Out,",");
fprintf (Gbl.F.Out,"'%s'",Txt_MONTHS_CAPS[Month]);
}
fprintf (Gbl.F.Out,"];\n");
fprintf (Gbl.F.Out," var DAYS_CAPS = [");
" var DAYS_CAPS = [");
for (DayOfWeek = 0;
DayOfWeek < 7;
DayOfWeek++)

View File

@ -22290,249 +22290,6 @@ const char *Txt_Month =
"M&ecirc;s";
#endif
const char *Txt_MONTHS_CAPS[12] =
{
#if L==1
"GENER"
#elif L==2
"JANUAR"
#elif L==3
"JANUARY"
#elif L==4
"ENERO"
#elif L==5
"JANVIER"
#elif L==6
"JASYTE&#296;"
#elif L==7
"GENNAIO"
#elif L==8
"STYCZNIA"
#elif L==9
"JANEIRO"
#endif
,
#if L==1
"FEBRER"
#elif L==2
"FEBRUAR"
#elif L==3
"FEBRUARY"
#elif L==4
"FEBRERO"
#elif L==5
"F&Eacute;VRIER"
#elif L==6
"JASYK&Otilde;I"
#elif L==7
"FEBBRAIO"
#elif L==8
"LUTEGO"
#elif L==9
"FEVEREIRO"
#endif
,
#if L==1
"MAR&Ccedil;"
#elif L==2
"M&Auml;RZ"
#elif L==3
"MARCH"
#elif L==4
"MARZO"
#elif L==5
"MARS"
#elif L==6
"JASYAPY"
#elif L==7
"MARZO"
#elif L==8
"MARCA"
#elif L==9
"MAR&Ccedil;O"
#endif
,
#if L==1
"ABRIL"
#elif L==2
"APRIL"
#elif L==3
"APRIL"
#elif L==4
"ABRIL"
#elif L==5
"AVRIL"
#elif L==6
"JASYRUNDY"
#elif L==7
"APRILE"
#elif L==8
"KWIETNIA"
#elif L==9
"ABRIL"
#endif
,
#if L==1
"MAIG"
#elif L==2
"MAI"
#elif L==3
"MAY"
#elif L==4
"MAYO"
#elif L==5
"MAI"
#elif L==6
"JASYPO"
#elif L==7
"MAGGIO"
#elif L==8
"MAJA"
#elif L==9
"MAIO"
#endif
,
#if L==1
"JUNY"
#elif L==2
"JUNI"
#elif L==3
"JUNE"
#elif L==4
"JUNIO"
#elif L==5
"JUIN"
#elif L==6
"JASYPOTE&#296;"
#elif L==7
"GIUGNO"
#elif L==8
"CZERWCA"
#elif L==9
"JUNHO"
#endif
,
#if L==1
"JULIOL"
#elif L==2
"JULI"
#elif L==3
"JULY"
#elif L==4
"JULIO"
#elif L==5
"JUILLET"
#elif L==6
"JASYPOK&Otilde;I"
#elif L==7
"LUGLIO"
#elif L==8
"LIPCA"
#elif L==9
"JULHO"
#endif
,
#if L==1
"AGOST"
#elif L==2
"AUGUST"
#elif L==3
"AUGUST"
#elif L==4
"AGOSTO"
#elif L==5
"AO&Ucirc;T"
#elif L==6
"JASYPOAPY"
#elif L==7
"AGOSTO"
#elif L==8
"SIERPNIA"
#elif L==9
"AGOSTO"
#endif
,
#if L==1
"SETEMBRE"
#elif L==2
"SEPTEMBER"
#elif L==3
"SEPTEMBER"
#elif L==4
"SEPTIEMBRE"
#elif L==5
"SEPTEMBRE"
#elif L==6
"JASYPORUNDY"
#elif L==7
"SETTEMBRE"
#elif L==8
"WRZE&Sacute;NIA"
#elif L==9
"SETEMBRO"
#endif
,
#if L==1
"OCTUBRE"
#elif L==2
"OKTOBER"
#elif L==3
"OCTOBER"
#elif L==4
"OCTUBRE"
#elif L==5
"OCTOBRE"
#elif L==6
"JASYPA"
#elif L==7
"OTTOBRE"
#elif L==8
"PA&Zacute;DZIERNIKA"
#elif L==9
"OUTUBRO"
#endif
,
#if L==1
"NOVEMBRE"
#elif L==2
"NOVEMBER"
#elif L==3
"NOVEMBER"
#elif L==4
"NOVIEMBRE"
#elif L==5
"NOVEMBRE"
#elif L==6
"JASYPATE&#296;"
#elif L==7
"NOVEMBRE"
#elif L==8
"LISTOPADA"
#elif L==9
"NOVEMBRO"
#endif
,
#if L==1
"DESEMBRE"
#elif L==2
"DEZEMBER"
#elif L==3
"DECEMBER"
#elif L==4
"DICIEMBRE"
#elif L==5
"D&Eacute;CEMBRE"
#elif L==6
"JASYPAK&Otilde;I"
#elif L==7
"DICEMBRE"
#elif L==8
"GRUDNIA"
#elif L==9
"DEZEMBRO"
#endif
};
const char *Txt_MONTHS_SMALL[12] =
{
#if L==1