mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-20 07:25:42 +02:00
Version 14.108.4
This commit is contained in:
parent
84234429b7
commit
1b8c1355cb
|
@ -103,11 +103,12 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 14.108.3 (2015/04/03)"
|
#define Log_PLATFORM_VERSION "SWAD 14.108.4 (2015/04/04)"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 14.108.4: Apr 04, 2015 Changes in statistic about institutions. (184267 lines)
|
||||||
Version 14.108.3: Apr 03, 2015 Fixed bug in statistic about institutions. (184144 lines)
|
Version 14.108.3: Apr 03, 2015 Fixed bug in statistic about institutions. (184144 lines)
|
||||||
Version 14.108.2: Apr 03, 2015 Fixed bug in statistic about institutions. (184142 lines)
|
Version 14.108.2: Apr 03, 2015 Fixed bug in statistic about institutions. (184142 lines)
|
||||||
Version 14.108.1: Apr 03, 2015 Fixed bug in statistic about institutions. (184137 lines)
|
Version 14.108.1: Apr 03, 2015 Fixed bug in statistic about institutions. (184137 lines)
|
||||||
|
|
|
@ -4516,11 +4516,12 @@ static void Sta_GetAndShowInstitutionsStats (void)
|
||||||
static void Sta_GetAndShowInssOrderedByNumCtrs (void)
|
static void Sta_GetAndShowInssOrderedByNumCtrs (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||||
|
extern const char *Txt_Institutions_by_number_of_centres;
|
||||||
extern const char *Txt_Centres;
|
extern const char *Txt_Centres;
|
||||||
char Query[1024];
|
char Query[1024];
|
||||||
|
|
||||||
/****** Institutions ordered by number of centres ******/
|
/****** Institutions ordered by number of centres ******/
|
||||||
Lay_StartRoundFrameTable10 ("100%",2,"Instituciones según número de centros"); // Need translation
|
Lay_StartRoundFrameTable10 ("100%",2,Txt_Institutions_by_number_of_centres);
|
||||||
|
|
||||||
/***** Get institutions ordered by number of centres *****/
|
/***** Get institutions ordered by number of centres *****/
|
||||||
switch (Gbl.Scope.Current)
|
switch (Gbl.Scope.Current)
|
||||||
|
@ -4567,11 +4568,12 @@ static void Sta_GetAndShowInssOrderedByNumCtrs (void)
|
||||||
static void Sta_GetAndShowInssOrderedByNumDegs (void)
|
static void Sta_GetAndShowInssOrderedByNumDegs (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||||
|
extern const char *Txt_Institutions_by_number_of_degrees;
|
||||||
extern const char *Txt_Degrees;
|
extern const char *Txt_Degrees;
|
||||||
char Query[1024];
|
char Query[1024];
|
||||||
|
|
||||||
/****** Institutions ordered by number of centres ******/
|
/****** Institutions ordered by number of centres ******/
|
||||||
Lay_StartRoundFrameTable10 ("100%",2,"Instituciones según número de titulaciones"); // Need translation
|
Lay_StartRoundFrameTable10 ("100%",2,Txt_Institutions_by_number_of_degrees);
|
||||||
|
|
||||||
/***** Get institutions ordered by number of degrees *****/
|
/***** Get institutions ordered by number of degrees *****/
|
||||||
switch (Gbl.Scope.Current)
|
switch (Gbl.Scope.Current)
|
||||||
|
@ -4621,11 +4623,12 @@ static void Sta_GetAndShowInssOrderedByNumDegs (void)
|
||||||
static void Sta_GetAndShowInssOrderedByNumCrss (void)
|
static void Sta_GetAndShowInssOrderedByNumCrss (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||||
|
extern const char *Txt_Institutions_by_number_of_courses;
|
||||||
extern const char *Txt_Courses;
|
extern const char *Txt_Courses;
|
||||||
char Query[1024];
|
char Query[1024];
|
||||||
|
|
||||||
/****** Institutions ordered by number of centres ******/
|
/****** Institutions ordered by number of centres ******/
|
||||||
Lay_StartRoundFrameTable10 ("100%",2,"Instituciones según número de asignaturas"); // Need translation
|
Lay_StartRoundFrameTable10 ("100%",2,Txt_Institutions_by_number_of_courses);
|
||||||
|
|
||||||
/***** Get institutions ordered by number of courses *****/
|
/***** Get institutions ordered by number of courses *****/
|
||||||
switch (Gbl.Scope.Current)
|
switch (Gbl.Scope.Current)
|
||||||
|
@ -4678,11 +4681,12 @@ static void Sta_GetAndShowInssOrderedByNumCrss (void)
|
||||||
static void Sta_GetAndShowInssOrderedByNumUsrsInCrss (void)
|
static void Sta_GetAndShowInssOrderedByNumUsrsInCrss (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||||
|
extern const char *Txt_Institutions_by_number_of_users_in_courses;
|
||||||
extern const char *Txt_Users;
|
extern const char *Txt_Users;
|
||||||
char Query[1024];
|
char Query[1024];
|
||||||
|
|
||||||
/****** Institutions ordered by number of centres ******/
|
/****** Institutions ordered by number of centres ******/
|
||||||
Lay_StartRoundFrameTable10 ("100%",2,"Instituciones según número de usuarios en asignaturas"); // Need translation
|
Lay_StartRoundFrameTable10 ("100%",2,Txt_Institutions_by_number_of_users_in_courses);
|
||||||
|
|
||||||
/***** Get institutions ordered by number of users in courses *****/
|
/***** Get institutions ordered by number of users in courses *****/
|
||||||
switch (Gbl.Scope.Current)
|
switch (Gbl.Scope.Current)
|
||||||
|
@ -4739,11 +4743,12 @@ static void Sta_GetAndShowInssOrderedByNumUsrsInCrss (void)
|
||||||
static void Sta_GetAndShowInssOrderedByNumUsrsWhoClaimToBelongToThem (void)
|
static void Sta_GetAndShowInssOrderedByNumUsrsWhoClaimToBelongToThem (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||||
|
extern const char *Txt_Institutions_by_number_of_users_who_claim_to_belong_to_them;
|
||||||
extern const char *Txt_Users;
|
extern const char *Txt_Users;
|
||||||
char Query[1024];
|
char Query[1024];
|
||||||
|
|
||||||
/****** Institutions ordered by number of centres ******/
|
/****** Institutions ordered by number of centres ******/
|
||||||
Lay_StartRoundFrameTable10 ("100%",2,"Instituciones según número de usuarios que dicen pertenecer a ellas"); // Need translation
|
Lay_StartRoundFrameTable10 ("100%",2,Txt_Institutions_by_number_of_users_who_claim_to_belong_to_them);
|
||||||
|
|
||||||
/***** Get institutions ordered by number of users who claim to belong to them *****/
|
/***** Get institutions ordered by number of users who claim to belong to them *****/
|
||||||
switch (Gbl.Scope.Current)
|
switch (Gbl.Scope.Current)
|
||||||
|
@ -4796,12 +4801,16 @@ static void Sta_GetAndShowInss (const char *Query,const char *TxtFigure)
|
||||||
MYSQL_ROW row;
|
MYSQL_ROW row;
|
||||||
unsigned NumInss;
|
unsigned NumInss;
|
||||||
unsigned NumIns;
|
unsigned NumIns;
|
||||||
|
unsigned NumOrder;
|
||||||
|
unsigned NumberLastRow;
|
||||||
|
unsigned NumberThisRow;
|
||||||
struct Institution Ins;
|
struct Institution Ins;
|
||||||
|
|
||||||
/***** Query database *****/
|
/***** Query database *****/
|
||||||
if ((NumInss = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get institutions")))
|
if ((NumInss = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get institutions")))
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
|
"<th></th>"
|
||||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</th>"
|
"</th>"
|
||||||
|
@ -4812,22 +4821,36 @@ static void Sta_GetAndShowInss (const char *Query,const char *TxtFigure)
|
||||||
Txt_Institution,
|
Txt_Institution,
|
||||||
TxtFigure);
|
TxtFigure);
|
||||||
|
|
||||||
for (NumIns = 0;
|
for (NumIns = 1, NumOrder = 1, NumberLastRow = 0;
|
||||||
NumIns < NumInss;
|
NumIns <= NumInss;
|
||||||
NumIns++)
|
NumIns++)
|
||||||
{
|
{
|
||||||
/***** Get next institution *****/
|
/***** Get next institution *****/
|
||||||
row = mysql_fetch_row (mysql_res);
|
row = mysql_fetch_row (mysql_res);
|
||||||
|
|
||||||
/***** Get data of this institution (row[0]) *****/
|
/* Get data of this institution (row[0]) */
|
||||||
Ins.InsCod = Str_ConvertStrCodToLongCod (row[0]);
|
Ins.InsCod = Str_ConvertStrCodToLongCod (row[0]);
|
||||||
if (!Ins_GetDataOfInstitutionByCod (&Ins,Ins_GET_MINIMAL_DATA))
|
if (!Ins_GetDataOfInstitutionByCod (&Ins,Ins_GET_MINIMAL_DATA))
|
||||||
Lay_ShowErrorAndExit ("Institution not found.");
|
Lay_ShowErrorAndExit ("Institution not found.");
|
||||||
|
|
||||||
/***** Write link to institution *****/
|
/* Get statistic (row[1]) */
|
||||||
|
if (sscanf (row[1],"%u",&NumberThisRow) != 1)
|
||||||
|
Lay_ShowErrorAndExit ("Error in statistic");
|
||||||
|
|
||||||
|
/***** Number of order *****/
|
||||||
|
if (NumberThisRow != NumberLastRow)
|
||||||
|
NumOrder = NumIns;
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"%s\" style=\"text-align:left;\">",
|
"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||||
|
"%u"
|
||||||
|
"</td>",
|
||||||
|
NumOrder);
|
||||||
|
|
||||||
|
/***** Write link to institution *****/
|
||||||
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">",
|
||||||
The_ClassFormul[Gbl.Prefs.Theme]);
|
The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
|
|
||||||
|
/* Icon and name of this institution */
|
||||||
Act_FormStart (ActSeeInsInf);
|
Act_FormStart (ActSeeInsInf);
|
||||||
Ins_PutParamInsCod (Ins.InsCod);
|
Ins_PutParamInsCod (Ins.InsCod);
|
||||||
Act_LinkFormSubmit (Ins.ShortName,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Ins.ShortName,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
|
@ -4835,13 +4858,17 @@ static void Sta_GetAndShowInss (const char *Query,const char *TxtFigure)
|
||||||
32,NULL,true);
|
32,NULL,true);
|
||||||
fprintf (Gbl.F.Out," %s</a>",Ins.FullName);
|
fprintf (Gbl.F.Out," %s</a>",Ins.FullName);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Write number of centres (row[1]) *****/
|
/***** Write statistic *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||||
"%s"
|
"%u"
|
||||||
"</td></tr>",
|
"</td>"
|
||||||
row[1]);
|
"</tr>",
|
||||||
|
NumberThisRow);
|
||||||
|
|
||||||
|
NumberLastRow = NumberThisRow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
109
swad_text.c
109
swad_text.c
|
@ -14558,6 +14558,111 @@ const char *Txt_INSTITUTIONS_HELP_ORDER[2] =
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const char *Txt_Institutions_by_number_of_centres =
|
||||||
|
#if L==0
|
||||||
|
"Institucions segons nombre de centres";
|
||||||
|
#elif L==1
|
||||||
|
"Hochschulen nach der Anzahl der Lehrinstitute";
|
||||||
|
#elif L==2
|
||||||
|
"Institutions by number of centres";
|
||||||
|
#elif L==3
|
||||||
|
"Instituciones según número de centros";
|
||||||
|
#elif L==4
|
||||||
|
"Établissements par nombre de centres";
|
||||||
|
#elif L==5
|
||||||
|
"Instituciones según número de centros"; // Okoteve traducción
|
||||||
|
#elif L==6
|
||||||
|
"Istituzioni per numero di centri";
|
||||||
|
#elif L==7
|
||||||
|
"Instytucje według liczby ośrodków";
|
||||||
|
#elif L==8
|
||||||
|
"Instituções por número de centros";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char *Txt_Institutions_by_number_of_degrees =
|
||||||
|
#if L==0
|
||||||
|
"Institucions segons nombre de titulacions";
|
||||||
|
#elif L==1
|
||||||
|
"Hochschulen nach der Anzahl der Studiengang";
|
||||||
|
#elif L==2
|
||||||
|
"Institutions by number of degrees";
|
||||||
|
#elif L==3
|
||||||
|
"Instituciones según número de titulaciones";
|
||||||
|
#elif L==4
|
||||||
|
"Établissements par nombre d'études";
|
||||||
|
#elif L==5
|
||||||
|
"Instituciones según número de titulaciones"; // Okoteve traducción
|
||||||
|
#elif L==6
|
||||||
|
"Istituzioni per numero di lauree";
|
||||||
|
#elif L==7
|
||||||
|
"Instytucje według liczby stopni";
|
||||||
|
#elif L==8
|
||||||
|
"Instituções por número de titulações";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char *Txt_Institutions_by_number_of_courses =
|
||||||
|
#if L==0
|
||||||
|
"Institucions segons nombre de assignatures";
|
||||||
|
#elif L==1
|
||||||
|
"Hochschulen nach der Anzahl der Kursen";
|
||||||
|
#elif L==2
|
||||||
|
"Institutions by number of courses";
|
||||||
|
#elif L==3
|
||||||
|
"Instituciones según número de asignaturas";
|
||||||
|
#elif L==4
|
||||||
|
"Établissements par nombre de matières";
|
||||||
|
#elif L==5
|
||||||
|
"Instituciones según número de asignaturas"; // Okoteve traducción
|
||||||
|
#elif L==6
|
||||||
|
"Istituzioni per numero di corsi";
|
||||||
|
#elif L==7
|
||||||
|
"Instytucje według liczby kursõw";
|
||||||
|
#elif L==8
|
||||||
|
"Instituções por número de disciplinas";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char *Txt_Institutions_by_number_of_users_in_courses =
|
||||||
|
#if L==0
|
||||||
|
"Institucions segons nombre d'usuaris en assignatures";
|
||||||
|
#elif L==1
|
||||||
|
"Hochschulen nach der Anzahl der Benutzer in Kurse";
|
||||||
|
#elif L==2
|
||||||
|
"Institutions by number of users in courses";
|
||||||
|
#elif L==3
|
||||||
|
"Instituciones según número de usuarios en asignaturas";
|
||||||
|
#elif L==4
|
||||||
|
"Établissements par nombre d'utilisateurs dans matières";
|
||||||
|
#elif L==5
|
||||||
|
"Instituciones según número de usuarios en asignaturas"; // Okoteve traducción
|
||||||
|
#elif L==6
|
||||||
|
"Istituzioni per numero di utenti in corsi";
|
||||||
|
#elif L==7
|
||||||
|
"Instytucje według liczby użytkowników w kursõw";
|
||||||
|
#elif L==8
|
||||||
|
"Instituções por número de usuários em disciplinas";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char *Txt_Institutions_by_number_of_users_who_claim_to_belong_to_them =
|
||||||
|
#if L==0
|
||||||
|
"Institucions segons nombre d'usuaris que diuen pertànyer-hi";
|
||||||
|
#elif L==1
|
||||||
|
"Hochschulen nach der Anzahl der Benutzer, die behaupten, zu ihnen gehören";
|
||||||
|
#elif L==2
|
||||||
|
"Institutions by number of users who claim to belong to them";
|
||||||
|
#elif L==3
|
||||||
|
"Instituciones según número de usuarios que dicen pertenecer a ellas";
|
||||||
|
#elif L==4
|
||||||
|
"Établissements par nombre d'utilisateurs qui prétendent leur appartiennent";
|
||||||
|
#elif L==5
|
||||||
|
"Instituciones según número de usuarios que dicen pertenecer a ellas"; // Okoteve traducción
|
||||||
|
#elif L==6
|
||||||
|
"Istituzioni per numero di utenti che affermano di appartenere a loro";
|
||||||
|
#elif L==7
|
||||||
|
"Instytucje według liczby użytkowników, którzy twierdzą, że należą do nich";
|
||||||
|
#elif L==8
|
||||||
|
"Instituções por número de usuários que afirmam pertencer a elas";
|
||||||
|
#endif
|
||||||
|
|
||||||
const char *Txt_Institutions_of_COUNTRY_X = // Warning: it is very important to include %s in the following sentences
|
const char *Txt_Institutions_of_COUNTRY_X = // Warning: it is very important to include %s in the following sentences
|
||||||
#if L==0
|
#if L==0
|
||||||
"Institucions de %s";
|
"Institucions de %s";
|
||||||
|
@ -18011,9 +18116,9 @@ const char *Txt_MENU_SUBTITLE[Tab_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB] =
|
||||||
#if L==0
|
#if L==0
|
||||||
"Institutions, centres, titulacions i assignatures pendents d'activar"
|
"Institutions, centres, titulacions i assignatures pendents d'activar"
|
||||||
#elif L==1
|
#elif L==1
|
||||||
"Hochschulen, Lehrinstitute, Studiengang und anhängig Kursen"
|
"Anhängig Hochschulen, Lehrinstitute, Studiengang und Kursen"
|
||||||
#elif L==2
|
#elif L==2
|
||||||
"Institutions, centres, degrees and pending courses"
|
"Pending institutions, centres, degrees and courses"
|
||||||
#elif L==3
|
#elif L==3
|
||||||
"Instituciones, centros, titulaciones y asignaturas pendientes de activar"
|
"Instituciones, centros, titulaciones y asignaturas pendientes de activar"
|
||||||
#elif L==4
|
#elif L==4
|
||||||
|
|
Loading…
Reference in New Issue
Block a user