mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-01 06:15:31 +02:00
Version 20.83.1: May 27, 2021 Database function moved from swad_date to swad_setting.
This commit is contained in:
parent
41a08ee001
commit
608def06fc
|
@ -602,13 +602,14 @@ TODO: FIX BUG, URGENT! En las fechas como par
|
||||||
|
|
||||||
TODO: En las encuestas, que los estudiantes no puedan ver los resultados hasta que no finalice el plazo.
|
TODO: En las encuestas, que los estudiantes no puedan ver los resultados hasta que no finalice el plazo.
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 20.83 (2021-05-27)"
|
#define Log_PLATFORM_VERSION "SWAD 20.83.1 (2021-05-27)"
|
||||||
#define CSS_FILE "swad20.45.css"
|
#define CSS_FILE "swad20.45.css"
|
||||||
#define JS_FILE "swad20.69.1.js"
|
#define JS_FILE "swad20.69.1.js"
|
||||||
/*
|
/*
|
||||||
TODO: Rename CENTRE to CENTER in help wiki.
|
TODO: Rename CENTRE to CENTER in help wiki.
|
||||||
TODO: Rename ASSESSMENT.Announcements to ASSESSMENT.Calls_for_exams
|
TODO: Rename ASSESSMENT.Announcements to ASSESSMENT.Calls_for_exams
|
||||||
|
|
||||||
|
Version 20.83.1: May 27, 2021 Database function moved from swad_date to swad_setting. (311993 lines)
|
||||||
Version 20.83: May 27, 2021 New module swad_course_database for database queries related to courses. (311982 lines)
|
Version 20.83: May 27, 2021 New module swad_course_database for database queries related to courses. (311982 lines)
|
||||||
Version 20.82: May 23, 2021 Queries moved to module swad_country_database. (311702 lines)
|
Version 20.82: May 23, 2021 Queries moved to module swad_country_database. (311702 lines)
|
||||||
Version 20.81: May 22, 2021 New module swad_country_database for database queries related to countries. (311632 lines)
|
Version 20.81: May 22, 2021 New module swad_country_database for database queries related to countries. (311632 lines)
|
||||||
|
|
12
swad_date.c
12
swad_date.c
|
@ -136,7 +136,9 @@ void Dat_PutBoxToSelectDateFormat (void)
|
||||||
/***** Form with list of options *****/
|
/***** Form with list of options *****/
|
||||||
Frm_BeginForm (ActChgDatFmt);
|
Frm_BeginForm (ActChgDatFmt);
|
||||||
|
|
||||||
|
/***** Begin list *****/
|
||||||
HTM_UL_Begin ("class=\"LIST_LEFT\"");
|
HTM_UL_Begin ("class=\"LIST_LEFT\"");
|
||||||
|
|
||||||
for (Format = (Dat_Format_t) 0;
|
for (Format = (Dat_Format_t) 0;
|
||||||
Format <= (Dat_Format_t) (Dat_NUM_OPTIONS_FORMAT - 1);
|
Format <= (Dat_Format_t) (Dat_NUM_OPTIONS_FORMAT - 1);
|
||||||
Format++)
|
Format++)
|
||||||
|
@ -147,7 +149,8 @@ void Dat_PutBoxToSelectDateFormat (void)
|
||||||
HTM_INPUT_RADIO ("DateFormat",true,
|
HTM_INPUT_RADIO ("DateFormat",true,
|
||||||
" value=\"%u\"%s",
|
" value=\"%u\"%s",
|
||||||
(unsigned) Format,
|
(unsigned) Format,
|
||||||
Format == Gbl.Prefs.DateFormat ? " checked=\"checked\"" : "");
|
Format == Gbl.Prefs.DateFormat ? " checked=\"checked\"" :
|
||||||
|
"");
|
||||||
Dat_PutSpanDateFormat (Format);
|
Dat_PutSpanDateFormat (Format);
|
||||||
Dat_PutScriptDateFormat (Format);
|
Dat_PutScriptDateFormat (Format);
|
||||||
HTM_LABEL_End ();
|
HTM_LABEL_End ();
|
||||||
|
@ -205,12 +208,7 @@ void Dat_ChangeDateFormat (void)
|
||||||
|
|
||||||
/***** Store date format in database *****/
|
/***** Store date format in database *****/
|
||||||
if (Gbl.Usrs.Me.Logged)
|
if (Gbl.Usrs.Me.Logged)
|
||||||
DB_QueryUPDATE ("can not update your setting about date format",
|
Set_DB_UpdateMySettingsAboutDateFormat ();
|
||||||
"UPDATE usr_data"
|
|
||||||
" SET DateFormat=%u"
|
|
||||||
" WHERE UsrCod=%ld",
|
|
||||||
(unsigned) Gbl.Prefs.DateFormat,
|
|
||||||
Gbl.Usrs.Me.UsrDat.UsrCod);
|
|
||||||
|
|
||||||
/***** Set settings from current IP *****/
|
/***** Set settings from current IP *****/
|
||||||
Set_SetSettingsFromIP ();
|
Set_SetSettingsFromIP ();
|
||||||
|
|
|
@ -339,6 +339,20 @@ unsigned Set_GetParamSideCols (void)
|
||||||
Cfg_DEFAULT_COLUMNS);
|
Cfg_DEFAULT_COLUMNS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/******************** Update my settings about date format *******************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void Set_DB_UpdateMySettingsAboutDateFormat (void)
|
||||||
|
{
|
||||||
|
DB_QueryUPDATE ("can not update your setting about date format",
|
||||||
|
"UPDATE usr_data"
|
||||||
|
" SET DateFormat=%u"
|
||||||
|
" WHERE UsrCod=%ld",
|
||||||
|
(unsigned) Gbl.Prefs.DateFormat,
|
||||||
|
Gbl.Usrs.Me.UsrDat.UsrCod);
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*********** Head to select one or several settings using icons **************/
|
/*********** Head to select one or several settings using icons **************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -48,6 +48,8 @@ void Set_RemoveOldSettingsFromIP (void);
|
||||||
void Set_ChangeSideCols (void);
|
void Set_ChangeSideCols (void);
|
||||||
unsigned Set_GetParamSideCols (void);
|
unsigned Set_GetParamSideCols (void);
|
||||||
|
|
||||||
|
void Set_DB_UpdateMySettingsAboutDateFormat (void);
|
||||||
|
|
||||||
void Set_BeginSettingsHead (void);
|
void Set_BeginSettingsHead (void);
|
||||||
void Set_EndSettingsHead (void);
|
void Set_EndSettingsHead (void);
|
||||||
void Set_BeginOneSettingSelector (void);
|
void Set_BeginOneSettingSelector (void);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user