Version 14.63.2

This commit is contained in:
Antonio Cañas Vargas 2015-01-21 10:26:08 +01:00
parent 6fb860e6ab
commit 5e807b3238
2 changed files with 15 additions and 3 deletions

View File

@ -39,11 +39,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.63.1 (2015/01/21)"
#define Log_PLATFORM_VERSION "SWAD 14.63.2 (2015/01/21)"
// 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 | tail -1
/*
Version 14.63.2: Jan 21, 2015 Fixed bug in search of courses. (175542 lines)
Version 14.63.1: Jan 21, 2015 Remove last accesses to file browsers related with an institution, a centre or a degree. (175531 lines)
Version 14.63: Jan 21, 2015 See/admin documents of degree, centre and institution. (175512 lines)
1 change necessary in database:
@ -65,7 +66,7 @@ ALTER TABLE files ADD COLUMN InsCod INT NOT NULL DEFAULT -1 AFTER FilCod;
ALTER TABLE files ADD COLUMN CtrCod INT NOT NULL DEFAULT -1 AFTER InsCod;
ALTER TABLE files ADD COLUMN DegCod INT NOT NULL DEFAULT -1 AFTER CtrCod;
DROP INDEX CrsCod ON files;
DROP INDEX CrsCod_GrpCod_FileBrowser ON files;
DROP INDEX CrsCod_GrpCod_ZoneUsrCod_FileBrowser ON files;
CREATE INDEX Location ON files (InsCod,CtrCod,DegCod,CrsCod,GrpCod,FileBrowser);
Version 14.60: Jan 20, 2015 See/admin documents of degree, centre and institution (not finished). (175079 lines)

View File

@ -3259,6 +3259,17 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA
const char *BgColor;
bool Accepted;
/*
SELECT degrees.DegCod, 0
courses.CrsCod, 1
degrees.ShortName, 2
degrees.FullName, 3
courses.Year, 4
courses.Semester, 5
courses.FullName, 6
centres.ShortName 7
*/
/***** Get degree code (row[0]) *****/
if ((Deg.DegCod = Str_ConvertStrCodToLongCod (row[0])) < 0)
Lay_ShowErrorAndExit ("Wrong code of degree.");
@ -3352,7 +3363,7 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA
fprintf (Gbl.F.Out,"%s</a>"
"</form>"
"</td>",
row[7]);
row[6]);
/***** Write number of students in course *****/
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"