Version 15.35.3

This commit is contained in:
Antonio Cañas Vargas 2015-11-09 14:22:25 +01:00
parent f71cb846b9
commit 9dac6ffdbb
5 changed files with 18 additions and 6 deletions

View File

@ -11155,4 +11155,6 @@ OPTIMIZE TABLE usr_webs;
OPTIMIZE TABLE ws_keys;
-----
SELECT TstCod,AllowTeachers,UNIX_TIMESTAMP(TstTime) AS T,NumQsts,NumQstsNotBlank,Score FROM tst_exams WHERE T>='0' AND T<='2000000000' ORDER BY TstCod;

View File

@ -103,16 +103,25 @@
// TODO: Put headers Content-type and Content-disposition when redirecting with Location:
// TODO: System admin should be able to remove/edit user's mail (when he/she detects a recipient does not exists, for example)
// TODO: When a new assignment/attendance/survey is incorrect, the second time the form is shown, it should be filled with partial data, now is always empty
// TODO: Remove columns "first year, last year, optional, status" when listing degrees?
// TODO: The image of a country (the Earth) in listing of pending countries should link to the country inside SWAD
// TODO: Row with total of users in figures
// TODO: Remove total rows in listing of places
// TODO: Teachers should edit students' assignment folders and files
// TODO: Show message indicating that mail could be in SPAM folder
// TODO: Fix problem with gmail. They think we are SPAM. See https://support.google.com/a/answer/178723
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.35.2 (2015/11/04)"
#define Log_PLATFORM_VERSION "SWAD 15.35.3 (2015/11/09)"
// 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 15.35.3: Nov 09, 2015 Fixed bug in test exams, reported by Antonio Arcos Cebrián.
Fixed bug in marks, reported by Javier Fernández Baldomero. (186973 lines)
Version 15.35.2: Nov 04, 2015 Fixed bug in edition of degrees. (186963 lines)
Version 15.35.1: Nov 03, 2015 Confirmation message after removing a notice. (186979 lines)
Version 15.35: Nov 03, 2015 Request confirmation on notice removal. (186944 lines)

View File

@ -108,7 +108,7 @@
#define Cfg_PLATFORM_RESPONSIBLE_NAME "Antonio Cañas Vargas" // Main responsible for the platform
#define Cfg_PLATFORM_RESPONSIBLE_E_MAIL "webmaster@openswad.org" // Main responsible for the platform
#define Cfg_HELP_WEB "http://openswad.org/SWAD-sheet.pdf" // Web to solve questions and problems
#define Cfg_AUTOMATIC_EMAIL_SMTP_SERVER "localhost" // SMTP server for sending automatic e-mails
#define Cfg_AUTOMATIC_EMAIL_SMTP_SERVER "mail.openswad.org" // SMTP server for sending automatic e-mails
#define Cfg_AUTOMATIC_EMAIL_SMTP_PORT "465" // SMTP port for sending automatic e-mails
#define Cfg_AUTOMATIC_EMAIL_FROM "acanas@openswad.org" // E-mail address from where automatic e-mails will be sent
#define Cfg_DATABASE_HOST "localhost" // Database host
@ -122,7 +122,7 @@
#define Cfg_ABOUT_LOGO_WIDTH 32
#define Cfg_ABOUT_LOGO_HEIGHT 32
#define Cfg_DEFAULT_COLUMNS Lay_HIDE_BOTH_COLUMNS
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
#define Cfg_DEFAULT_ACTION_WHEN_NO_USR_LOGGED ActFrmUsrAcc
#define Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND "" // Client of the web service called by this CGI

View File

@ -165,7 +165,7 @@ void Mrk_GetAndWriteNumRowsHeaderAndFooter (Brw_FileType_t FileType,
"<input type=\"text\" name=\"%s\""
" size=\"1\" maxlength=\"5\" value=\"%u\""
" class=\"%s COLOR%u\""
" onchange=\"jdocument.getElementById('%s').submit();\" />",
" onchange=\"document.getElementById('%s').submit();\" />",
Txt_TABLE_Footer,
Mrk_HeadOrFootStr[Brw_FOOTER],Marks.Footer,
Gbl.FileBrowser.InputStyle,

View File

@ -6205,11 +6205,12 @@ static void Tst_ShowResultsOfTestExams (struct UsrData *UsrDat)
/***** Make database query *****/
sprintf (Query,"SELECT TstCod,AllowTeachers,"
"UNIX_TIMESTAMP(TstTime) AS T,"
"UNIX_TIMESTAMP(TstTime),"
"NumQsts,NumQstsNotBlank,Score"
" FROM tst_exams"
" WHERE CrsCod='%ld' AND UsrCod='%ld'"
" AND T>='%ld' AND T<='%ld'"
" AND UNIX_TIMESTAMP(TstTime)>='%ld'"
" AND UNIX_TIMESTAMP(TstTime)<='%ld'"
" ORDER BY TstCod",
Gbl.CurrentCrs.Crs.CrsCod,
UsrDat->UsrCod,