mirror of https://github.com/acanas/swad-core.git
Version 15.74
This commit is contained in:
parent
cb98083486
commit
a8908ef3ea
1980
css/swad15.73.3.css
1980
css/swad15.73.3.css
File diff suppressed because it is too large
Load Diff
|
@ -117,12 +117,13 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.73.4 (2015-12-26)"
|
||||
#define CSS_FILE "swad15.73.3.css"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.74 (2015-12-26)"
|
||||
#define CSS_FILE "swad15.74.css"
|
||||
|
||||
// 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.74: Dec 26, 2015 New layout of breadcrumb. (187750 lines)
|
||||
Version 15.73.4: Dec 26, 2015 Code refactoring in breadcrumb. (187719 lines)
|
||||
Version 15.73.3: Dec 25, 2015 Select one of my courses goes to the current action. (187710 lines)
|
||||
Version 15.73.2: Dec 25, 2015 Background of selected course in light blue. (187698 lines)
|
||||
|
|
140
swad_degree.c
140
swad_degree.c
|
@ -648,6 +648,10 @@ void Deg_WriteCtyInsCtrDeg (void)
|
|||
{
|
||||
extern const char *The_ClassBreadcrumb[The_NUM_THEMES];
|
||||
extern const char *Txt_System;
|
||||
extern const char *Txt_Country;
|
||||
extern const char *Txt_Institution;
|
||||
extern const char *Txt_Centre;
|
||||
extern const char *Txt_Degree;
|
||||
char DegreeShortName[Deg_MAX_LENGTH_DEGREE_FULL_NAME+1]; // Full name of degree
|
||||
|
||||
/***** Form to go to the system *****/
|
||||
|
@ -672,65 +676,87 @@ void Deg_WriteCtyInsCtrDeg (void)
|
|||
fprintf (Gbl.F.Out,"%s</a>",
|
||||
Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
|
||||
Act_FormEnd ();
|
||||
|
||||
if (Gbl.CurrentIns.Ins.InsCod > 0) // If institution selected...
|
||||
{
|
||||
/***** Separator *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"%s\"> / </span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
|
||||
/***** Form to go to the institution *****/
|
||||
Act_FormGoToStart (ActSeeCtr);
|
||||
Ins_PutParamInsCod (Gbl.CurrentIns.Ins.InsCod);
|
||||
Act_LinkFormSubmit (Gbl.CurrentIns.Ins.FullName,
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"%s</a>",
|
||||
Gbl.CurrentIns.Ins.ShortName);
|
||||
Act_FormEnd ();
|
||||
|
||||
if (Gbl.CurrentCtr.Ctr.CtrCod > 0) // If centre selected...
|
||||
{
|
||||
/***** Separator *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"%s\"> / </span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
|
||||
/***** Form to go to the centre *****/
|
||||
Act_FormGoToStart (ActSeeDeg);
|
||||
Ctr_PutParamCtrCod (Gbl.CurrentCtr.Ctr.CtrCod);
|
||||
Act_LinkFormSubmit (Gbl.CurrentCtr.Ctr.FullName,
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"%s</a>",
|
||||
Gbl.CurrentCtr.Ctr.ShortName);
|
||||
Act_FormEnd ();
|
||||
|
||||
if (Gbl.CurrentDeg.Deg.DegCod > 0) // If degree selected...
|
||||
{
|
||||
/***** Separator *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"%s\"> / </span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
|
||||
/***** Form to go to the degree *****/
|
||||
Act_FormGoToStart (ActSeeCrs);
|
||||
Deg_PutParamDegCod (Gbl.CurrentDeg.Deg.DegCod);
|
||||
Act_LinkFormSubmit (Gbl.CurrentDeg.Deg.FullName,
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
strcpy (DegreeShortName,Gbl.CurrentDeg.Deg.ShortName);
|
||||
Str_LimitLengthHTMLStr (DegreeShortName,
|
||||
Deg_MAX_LENGTH_SHORT_NAME_DEGREE_ON_PAGE_HEAD);
|
||||
fprintf (Gbl.F.Out,"%s</a>",
|
||||
DegreeShortName);
|
||||
Act_FormEnd ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
/***** Separator and hidden country *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"BC_OFF %s\"> / %s</span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme],
|
||||
Txt_Country);
|
||||
|
||||
/***** Separator *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"%s\"> / ",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
if (Gbl.CurrentDeg.Deg.DegCod <= 0) // No degree selected...
|
||||
fprintf (Gbl.F.Out,"... ");
|
||||
fprintf (Gbl.F.Out,"</span>");
|
||||
if (Gbl.CurrentIns.Ins.InsCod > 0) // If institution selected...
|
||||
{
|
||||
/***** Separator *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"%s\"> / </span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
|
||||
/***** Form to go to the institution *****/
|
||||
Act_FormGoToStart (ActSeeCtr);
|
||||
Ins_PutParamInsCod (Gbl.CurrentIns.Ins.InsCod);
|
||||
Act_LinkFormSubmit (Gbl.CurrentIns.Ins.FullName,
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"%s</a>",
|
||||
Gbl.CurrentIns.Ins.ShortName);
|
||||
Act_FormEnd ();
|
||||
}
|
||||
else
|
||||
/***** Separator and hidden institution *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"BC_OFF %s\"> / %s</span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme],
|
||||
Txt_Institution);
|
||||
|
||||
if (Gbl.CurrentCtr.Ctr.CtrCod > 0) // If centre selected...
|
||||
{
|
||||
/***** Separator *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"%s\"> / </span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
|
||||
/***** Form to go to the centre *****/
|
||||
Act_FormGoToStart (ActSeeDeg);
|
||||
Ctr_PutParamCtrCod (Gbl.CurrentCtr.Ctr.CtrCod);
|
||||
Act_LinkFormSubmit (Gbl.CurrentCtr.Ctr.FullName,
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"%s</a>",
|
||||
Gbl.CurrentCtr.Ctr.ShortName);
|
||||
Act_FormEnd ();
|
||||
}
|
||||
else
|
||||
/***** Separator and hidden centre *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"BC_OFF %s\"> / %s</span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme],
|
||||
Txt_Centre);
|
||||
|
||||
if (Gbl.CurrentDeg.Deg.DegCod > 0) // If degree selected...
|
||||
{
|
||||
/***** Separator *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"%s\"> / </span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
|
||||
/***** Form to go to the degree *****/
|
||||
Act_FormGoToStart (ActSeeCrs);
|
||||
Deg_PutParamDegCod (Gbl.CurrentDeg.Deg.DegCod);
|
||||
Act_LinkFormSubmit (Gbl.CurrentDeg.Deg.FullName,
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
strcpy (DegreeShortName,Gbl.CurrentDeg.Deg.ShortName);
|
||||
Str_LimitLengthHTMLStr (DegreeShortName,
|
||||
Deg_MAX_LENGTH_SHORT_NAME_DEGREE_ON_PAGE_HEAD);
|
||||
fprintf (Gbl.F.Out,"%s</a>",
|
||||
DegreeShortName);
|
||||
Act_FormEnd ();
|
||||
}
|
||||
else
|
||||
/***** Separator and hidden degree *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"BC_OFF %s\"> / %s</span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme],
|
||||
Txt_Degree);
|
||||
|
||||
if (Gbl.CurrentCrs.Crs.CrsCod > 0) // If course selected...
|
||||
/***** Separator *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"%s\"> / </span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
else
|
||||
/***** Separator *****/
|
||||
fprintf (Gbl.F.Out,"<span class=\"BC_OFF %s\"> / </span>",
|
||||
The_ClassBreadcrumb[Gbl.Prefs.Theme]);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -121,10 +121,10 @@ const char *The_ClassUsr[The_NUM_THEMES] =
|
|||
|
||||
const char *The_ClassBreadcrumb[The_NUM_THEMES] =
|
||||
{
|
||||
"BREADCRUMB_WHITE",
|
||||
"BREADCRUMB_GREY",
|
||||
"BREADCRUMB_BLUE",
|
||||
"BREADCRUMB_YELLOW",
|
||||
"BC_WHITE",
|
||||
"BC_GREY",
|
||||
"BC_BLUE",
|
||||
"BC_YELLOW",
|
||||
};
|
||||
|
||||
const char *The_ClassCourse[The_NUM_THEMES] =
|
||||
|
|
Loading…
Reference in New Issue