mirror of https://github.com/acanas/swad-core.git
Version 14.47.5
This commit is contained in:
parent
89e55e411d
commit
49ca2cf689
|
@ -35,11 +35,12 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.47.4 (2014/12/29)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.47.5 (2014/12/29)"
|
||||
|
||||
// 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.47.5 :Dic 29, 2014 Restricted length of links in user's courses. (174549 lines)
|
||||
Version 14.47.4 :Dic 29, 2014 Changes in HTML and CSS. (174535 lines)
|
||||
Version 14.47.3 :Dic 29, 2014 Removed old code not used. (174499 lines)
|
||||
Version 14.47.2 :Dic 29, 2014 Changes in listing of chat rooms, forums and user's courses. (174677 lines)
|
||||
|
|
|
@ -533,6 +533,8 @@ void Crs_ChangeCourseConfig (void)
|
|||
/************************ Write menu with my courses *************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Crs_MAX_BYTES_TXT_LINK 60
|
||||
|
||||
static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||
{
|
||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||
|
@ -544,6 +546,10 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
struct Centre Ctr;
|
||||
struct Degree Deg;
|
||||
struct Course Crs;
|
||||
char InsFullName[Ins_MAX_LENGTH_INSTITUTION_FULL_NAME+1];
|
||||
char CtrFullName[Ctr_MAX_LENGTH_CENTRE_FULL_NAME+1];
|
||||
char DegFullName[Deg_MAX_LENGTH_DEGREE_FULL_NAME+1];
|
||||
char CrsFullName[Crs_MAX_LENGTH_COURSE_FULL_NAME+1];
|
||||
bool IsLastItemInLevel[1+5];
|
||||
bool Highlight; // Highlight because degree, course, etc. is selected
|
||||
MYSQL_RES *mysql_resCty;
|
||||
|
@ -662,7 +668,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
Gbl.CurrentIns.Ins.InsCod == Ins.InsCod);
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out,"<strong>");
|
||||
fprintf (Gbl.F.Out," %s",Ins.FullName);
|
||||
strcpy (InsFullName,Ins.FullName);
|
||||
Str_LimitLengthHTMLStr (InsFullName,Crs_MAX_BYTES_TXT_LINK);
|
||||
fprintf (Gbl.F.Out," %s",InsFullName);
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out,"</strong>");
|
||||
fprintf (Gbl.F.Out,"</a>"
|
||||
|
@ -697,7 +705,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
Gbl.CurrentCtr.Ctr.CtrCod == Ctr.CtrCod);
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out,"<strong>");
|
||||
fprintf (Gbl.F.Out," %s",Ctr.FullName);
|
||||
strcpy (CtrFullName,Ctr.FullName);
|
||||
Str_LimitLengthHTMLStr (CtrFullName,Crs_MAX_BYTES_TXT_LINK);
|
||||
fprintf (Gbl.F.Out," %s",CtrFullName);
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out,"</strong>");
|
||||
fprintf (Gbl.F.Out,"</a>"
|
||||
|
@ -732,7 +742,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
Gbl.CurrentDeg.Deg.DegCod == Deg.DegCod);
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out,"<strong>");
|
||||
fprintf (Gbl.F.Out," %s",Deg.FullName);
|
||||
strcpy (DegFullName,Deg.FullName);
|
||||
Str_LimitLengthHTMLStr (DegFullName,Crs_MAX_BYTES_TXT_LINK);
|
||||
fprintf (Gbl.F.Out," %s",DegFullName);
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out,"</strong>");
|
||||
fprintf (Gbl.F.Out,"</a>"
|
||||
|
@ -770,7 +782,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
Highlight = (Gbl.CurrentCrs.Crs.CrsCod == Crs.CrsCod);
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out,"<strong>");
|
||||
fprintf (Gbl.F.Out," %s",Crs.FullName);
|
||||
strcpy (CrsFullName,Crs.FullName);
|
||||
Str_LimitLengthHTMLStr (CrsFullName,Crs_MAX_BYTES_TXT_LINK);
|
||||
fprintf (Gbl.F.Out," %s",CrsFullName);
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out,"</strong>");
|
||||
fprintf (Gbl.F.Out,"</a>"
|
||||
|
|
Loading…
Reference in New Issue