diff --git a/sql/cambios.sql b/sql/cambios.sql index ee8d597ff..92d76e3a0 100644 --- a/sql/cambios.sql +++ b/sql/cambios.sql @@ -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; diff --git a/swad_changelog.h b/swad_changelog.h index 7b80ac9ee..2e341d938 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -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) diff --git a/swad_config.h b/swad_config.h index f11675379..b9ab1f124 100644 --- a/swad_config.h +++ b/swad_config.h @@ -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 diff --git a/swad_mark.c b/swad_mark.c index 5e157e35c..40355d2d4 100644 --- a/swad_mark.c +++ b/swad_mark.c @@ -165,7 +165,7 @@ void Mrk_GetAndWriteNumRowsHeaderAndFooter (Brw_FileType_t FileType, "", + " onchange=\"document.getElementById('%s').submit();\" />", Txt_TABLE_Footer, Mrk_HeadOrFootStr[Brw_FOOTER],Marks.Footer, Gbl.FileBrowser.InputStyle, diff --git a/swad_test.c b/swad_test.c index 9958bb651..7cb7ea4e9 100644 --- a/swad_test.c +++ b/swad_test.c @@ -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,