Version 22.78.15: Mar 23, 2023 Changes in rubric criteria.

This commit is contained in:
acanas 2023-03-23 22:47:23 +01:00
parent ddeb9b104f
commit d632e6504f
12 changed files with 84 additions and 28 deletions

View File

@ -50,13 +50,6 @@ textarea
font-size:13pt; font-size:13pt;
font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
} }
.INPUT_WHITE,
.INPUT_GREY,
.INPUT_PURPLE,
.INPUT_BLUE,
.INPUT_YELLOW,
.INPUT_PINK {}
.INPUT_DARK {border-color:#505050;background-color:#1f1f1f;color:white;}
table table
{ {
@ -4976,6 +4969,11 @@ button.PAG_DARK:hover, .PAG_CUR_DARK {background-color:#707070;}
box-sizing:border-box; box-sizing:border-box;
width:60px; width:60px;
} }
.INPUT_FLOAT
{
box-sizing:border-box;
width:90px;
}
.INPUT_WWW_NARROW .INPUT_WWW_NARROW
{ {
box-sizing:border-box; box-sizing:border-box;
@ -5001,6 +4999,13 @@ button.PAG_DARK:hover, .PAG_CUR_DARK {background-color:#707070;}
box-sizing:border-box; box-sizing:border-box;
width:90px; width:90px;
} }
.INPUT_WHITE,
.INPUT_GREY,
.INPUT_PURPLE,
.INPUT_BLUE,
.INPUT_YELLOW,
.INPUT_PINK {}
.INPUT_DARK {border-color:#505050;background-color:#1f1f1f;color:white;}
/******************************** Last clicks ********************************/ /******************************** Last clicks ********************************/
.LC_CLK {text-align:right; vertical-align:top; min-width:60px;} .LC_CLK {text-align:right; vertical-align:top; min-width:60px;}

View File

@ -286,7 +286,7 @@ static void Ban_GetListBanners (struct Ban_Banners *Banners,
for (NumBan = 0; for (NumBan = 0;
NumBan < Banners->Num; NumBan < Banners->Num;
NumBan++) NumBan++)
Ban_GetBannerDataFromRow (*mysql_res,&(Banners->Lst[NumBan])); Ban_GetBannerDataFromRow (*mysql_res,&Banners->Lst[NumBan]);
} }
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/

View File

@ -535,7 +535,7 @@ void Ctr_GetBasicListOfCenters (long InsCod)
NumCtr < Gbl.Hierarchy.Ctrs.Num; NumCtr < Gbl.Hierarchy.Ctrs.Num;
NumCtr++) NumCtr++)
/* Get center data */ /* Get center data */
Ctr_GetCenterDataFromRow (mysql_res,&(Gbl.Hierarchy.Ctrs.Lst[NumCtr]), Ctr_GetCenterDataFromRow (mysql_res,&Gbl.Hierarchy.Ctrs.Lst[NumCtr],
false); // Don't get number of users who claim to belong to this center false); // Don't get number of users who claim to belong to this center
} }
@ -568,8 +568,8 @@ void Ctr_GetFullListOfCenters (long InsCod,Ctr_Order_t SelectedOrder)
NumCtr < Gbl.Hierarchy.Ctrs.Num; NumCtr < Gbl.Hierarchy.Ctrs.Num;
NumCtr++) NumCtr++)
/* Get center data */ /* Get center data */
Ctr_GetCenterDataFromRow (mysql_res,&(Gbl.Hierarchy.Ctrs.Lst[NumCtr]), Ctr_GetCenterDataFromRow (mysql_res,&Gbl.Hierarchy.Ctrs.Lst[NumCtr],
true); // Get number of users who claim to belong to this center true); // Get number of users who claim to belong to this center
} }
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/
@ -603,7 +603,7 @@ bool Ctr_GetCenterDataByCod (struct Ctr_Center *Ctr)
{ {
/* Get center data */ /* Get center data */
Ctr_GetCenterDataFromRow (mysql_res,Ctr, Ctr_GetCenterDataFromRow (mysql_res,Ctr,
false); // Don't get number of users who claim to belong to this center false); // Don't get number of users who claim to belong to this center
/* Set return value */ /* Set return value */
CtrFound = true; CtrFound = true;

View File

@ -629,10 +629,11 @@ TODO: Emilce Barrera Mesa: Podr
TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen. TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen.
*/ */
#define Log_PLATFORM_VERSION "SWAD 22.78.14 (2023-03-23)" #define Log_PLATFORM_VERSION "SWAD 22.78.15 (2023-03-23)"
#define CSS_FILE "swad22.57.1.css" #define CSS_FILE "swad22.78.15.css"
#define JS_FILE "swad22.49.js" #define JS_FILE "swad22.49.js"
/* /*
Version 22.78.15: Mar 23, 2023 Changes in rubric criteria. (337686 lines)
Version 22.78.14: Mar 23, 2023 Code refactoring in timeline. (337634 lines) Version 22.78.14: Mar 23, 2023 Code refactoring in timeline. (337634 lines)
Version 22.78.13: Mar 23, 2023 Code refactoring in rooms. (337641 lines) Version 22.78.13: Mar 23, 2023 Code refactoring in rooms. (337641 lines)
Version 22.78.12: Mar 23, 2023 Code refactoring in plugins. (337651 lines) Version 22.78.12: Mar 23, 2023 Code refactoring in plugins. (337651 lines)

View File

@ -987,7 +987,7 @@ void Deg_GetListAllDegsWithStds (struct ListDegrees *Degs)
for (NumDeg = 0; for (NumDeg = 0;
NumDeg < Degs->Num; NumDeg < Degs->Num;
NumDeg++) NumDeg++)
Deg_GetDegreeDataFromRow (mysql_res,&(Degs->Lst[NumDeg])); Deg_GetDegreeDataFromRow (mysql_res,&Degs->Lst[NumDeg]);
} }
else else
Degs->Lst = NULL; Degs->Lst = NULL;

View File

@ -349,7 +349,7 @@ static void Dpt_GetListDepartments (struct Dpt_Departments *Departments,long Ins
for (NumDpt = 0; for (NumDpt = 0;
NumDpt < Departments->Num; NumDpt < Departments->Num;
NumDpt++) NumDpt++)
Dpt_GetDepartmentDataFromRow (mysql_res,&(Departments->Lst[NumDpt])); Dpt_GetDepartmentDataFromRow (mysql_res,&Departments->Lst[NumDpt]);
} }
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/

View File

@ -333,7 +333,7 @@ void Hld_GetListHolidays (struct Hld_Holidays *Holidays)
for (NumHld = 0; for (NumHld = 0;
NumHld < Holidays->Num; NumHld < Holidays->Num;
NumHld++) NumHld++)
Hld_GetHolidayDataFromRow (mysql_res,&(Holidays->Lst[NumHld])); Hld_GetHolidayDataFromRow (mysql_res,&Holidays->Lst[NumHld]);
} }
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/

View File

@ -622,7 +622,7 @@ void Ins_GetBasicListOfInstitutions (long CtyCod)
NumIns < Gbl.Hierarchy.Inss.Num; NumIns < Gbl.Hierarchy.Inss.Num;
NumIns++) NumIns++)
/* Get institution data */ /* Get institution data */
Ins_GetInstitDataFromRow (mysql_res,&(Gbl.Hierarchy.Inss.Lst[NumIns]), Ins_GetInstitDataFromRow (mysql_res,&Gbl.Hierarchy.Inss.Lst[NumIns],
false); // Don't get number of users who claim to belong to this institution false); // Don't get number of users who claim to belong to this institution
} }
else else
@ -655,7 +655,7 @@ void Ins_GetFullListOfInstitutions (long CtyCod)
NumIns < Gbl.Hierarchy.Inss.Num; NumIns < Gbl.Hierarchy.Inss.Num;
NumIns++) NumIns++)
/* Get institution data */ /* Get institution data */
Ins_GetInstitDataFromRow (mysql_res,&(Gbl.Hierarchy.Inss.Lst[NumIns]), Ins_GetInstitDataFromRow (mysql_res,&Gbl.Hierarchy.Inss.Lst[NumIns],
true); // Get number of users who claim to belong to this institution true); // Get number of users who claim to belong to this institution
} }
else else

View File

@ -292,7 +292,7 @@ static void Mai_GetListMailDomainsAllowedForNotif (struct Mai_Mails *Mails)
for (NumMai = 0; for (NumMai = 0;
NumMai < Mails->Num; NumMai < Mails->Num;
NumMai++) NumMai++)
Mai_GetMailDomainDataFromRow (mysql_res,&(Mails->Lst[NumMai]), Mai_GetMailDomainDataFromRow (mysql_res,&Mails->Lst[NumMai],
true); // Get number of users true); // Get number of users
} }

View File

@ -367,7 +367,7 @@ void Plc_GetListPlaces (struct Plc_Places *Places)
for (NumPlc = 0; for (NumPlc = 0;
NumPlc < Places->Num; NumPlc < Places->Num;
NumPlc++) NumPlc++)
Plc_GetPlaceDataFromRow (mysql_res,&(Places->Lst[NumPlc])); Plc_GetPlaceDataFromRow (mysql_res,&Places->Lst[NumPlc]);
} }
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/

View File

@ -178,6 +178,16 @@ static void RubCri_PutFormNewCriterion (struct Rub_Rubrics *Rubrics,
The_GetSuffix ()); The_GetSuffix ());
HTM_TD_End (); HTM_TD_End ();
/***** Source *****/
HTM_TD_Begin ("class=\"LM %s\"",The_GetColorRows ());
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,
"id=\"deg\" name=\"Source\" class=\"INPUT_%s\"",
The_GetSuffix ());
HTM_OPTION (HTM_Type_STRING,"Y",true,false,
"%s","Fuente");
HTM_SELECT_End ();
HTM_TD_End ();
/***** Minimum and maximum values of the criterion *****/ /***** Minimum and maximum values of the criterion *****/
for (ValueRange = (RubCri_ValueRange_t) 0; for (ValueRange = (RubCri_ValueRange_t) 0;
ValueRange <= (RubCri_ValueRange_t) (RubCri_NUM_VALUES - 1); ValueRange <= (RubCri_ValueRange_t) (RubCri_NUM_VALUES - 1);
@ -186,16 +196,16 @@ static void RubCri_PutFormNewCriterion (struct Rub_Rubrics *Rubrics,
HTM_TD_Begin ("class=\"RM\""); HTM_TD_Begin ("class=\"RM\"");
HTM_INPUT_FLOAT (RubCri_ParValues[ValueRange],0.0,DBL_MAX,0.1, HTM_INPUT_FLOAT (RubCri_ParValues[ValueRange],0.0,DBL_MAX,0.1,
Criterion->Values[ValueRange],false, Criterion->Values[ValueRange],false,
" class=\"INPUT_%s\" required=\"required\"", " class=\"INPUT_FLOAT INPUT_%s\" required=\"required\"",
The_GetSuffix ()); The_GetSuffix ());
HTM_TD_End (); HTM_TD_End ();
} }
/***** Weight of the criterion *****/ /***** Weight *****/
HTM_TD_Begin ("class=\"RM\""); HTM_TD_Begin ("class=\"RM\"");
HTM_INPUT_FLOAT ("Weight",0.0,1.0,0.01, HTM_INPUT_FLOAT ("Weight",0.0,1.0,0.01,
Criterion->Weight,false, Criterion->Weight,false,
" class=\"INPUT_%s\" required=\"required\"", " class=\"INPUT_FLOAT INPUT_%s\" required=\"required\"",
The_GetSuffix ()); The_GetSuffix ());
HTM_TD_End (); HTM_TD_End ();
@ -623,6 +633,16 @@ static void RubCri_ListOneOrMoreCriteriaForEdition (struct Rub_Rubrics *Rubrics,
HTM_ARTICLE_End (); HTM_ARTICLE_End ();
HTM_TD_End (); HTM_TD_End ();
/***** Source *****/
HTM_TD_Begin ("class=\"LT %s\"",The_GetColorRows ());
HTM_SELECT_Begin (HTM_SUBMIT_ON_CHANGE,
"id=\"deg\" name=\"Source\" class=\"INPUT_%s\"",
The_GetSuffix ());
HTM_OPTION (HTM_Type_STRING,"Y",true,false,
"%s","Fuente");
HTM_SELECT_End ();
HTM_TD_End ();
/***** Minimum and maximum values of criterion *****/ /***** Minimum and maximum values of criterion *****/
for (ValueRange = (RubCri_ValueRange_t) 0; for (ValueRange = (RubCri_ValueRange_t) 0;
ValueRange <= (RubCri_ValueRange_t) (RubCri_NUM_VALUES - 1); ValueRange <= (RubCri_ValueRange_t) (RubCri_NUM_VALUES - 1);
@ -635,7 +655,8 @@ static void RubCri_ListOneOrMoreCriteriaForEdition (struct Rub_Rubrics *Rubrics,
RubCri_PutParsOneCriterion (Rubrics); RubCri_PutParsOneCriterion (Rubrics);
HTM_INPUT_FLOAT (RubCri_ParValues[ValueRange],0.0,DBL_MAX,0.1, HTM_INPUT_FLOAT (RubCri_ParValues[ValueRange],0.0,DBL_MAX,0.1,
Criterion.Values[ValueRange],false, Criterion.Values[ValueRange],false,
" class=\"INPUT_%s\" required=\"required\"", " class=\"INPUT_FLOAT INPUT_%s\""
" required=\"required\"",
The_GetSuffix ()); The_GetSuffix ());
Frm_EndForm (); Frm_EndForm ();
} }
@ -656,7 +677,8 @@ static void RubCri_ListOneOrMoreCriteriaForEdition (struct Rub_Rubrics *Rubrics,
RubCri_PutParsOneCriterion (Rubrics); RubCri_PutParsOneCriterion (Rubrics);
HTM_INPUT_FLOAT ("Weight",0.0,1.0,0.01, HTM_INPUT_FLOAT ("Weight",0.0,1.0,0.01,
Criterion.Weight,false, Criterion.Weight,false,
" class=\"INPUT_%s\" required=\"required\"", " class=\"INPUT_FLOAT INPUT_%s\""
" required=\"required\"",
The_GetSuffix ()); The_GetSuffix ());
Frm_EndForm (); Frm_EndForm ();
} }
@ -675,9 +697,11 @@ static void RubCri_ListOneOrMoreCriteriaForEdition (struct Rub_Rubrics *Rubrics,
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
/***** Questions *****/ /***** Questions *****/
HTM_TD_Begin ("colspan=\"3\" class=\"LT %s\"", HTM_TD_Begin ("colspan=\"5\" class=\"LT %s\"",
The_GetColorRows ()); The_GetColorRows ());
// Description here
HTM_TD_End (); HTM_TD_End ();
/***** End second row *****/ /***** End second row *****/
@ -735,7 +759,8 @@ static void RubCri_GetCriterionDataFromRow (MYSQL_RES *mysql_res,
Criterion->Weight = Str_GetDoubleFromStr (row[5 + RubCri_NUM_VALUES]); Criterion->Weight = Str_GetDoubleFromStr (row[5 + RubCri_NUM_VALUES]);
/***** Get the title of the criterion (row[8]) *****/ /***** Get the title of the criterion (row[8]) *****/
Str_Copy (Criterion->Title,row[5 + RubCri_NUM_VALUES + 1],sizeof (Criterion->Title) - 1); Str_Copy (Criterion->Title,row[5 + RubCri_NUM_VALUES + 1],
sizeof (Criterion->Title) - 1);
} }
/*****************************************************************************/ /*****************************************************************************/
@ -783,6 +808,7 @@ static void RubCri_PutTableHeadingForCriteria (void)
{ {
extern const char *Txt_No_INDEX; extern const char *Txt_No_INDEX;
extern const char *Txt_Criterion; extern const char *Txt_Criterion;
extern const char *Txt_Source;
extern const char *Txt_Minimum; extern const char *Txt_Minimum;
extern const char *Txt_Maximum; extern const char *Txt_Maximum;
extern const char *Txt_Weight; extern const char *Txt_Weight;
@ -794,6 +820,7 @@ static void RubCri_PutTableHeadingForCriteria (void)
HTM_TH_Empty (1); HTM_TH_Empty (1);
HTM_TH (Txt_No_INDEX ,HTM_HEAD_RIGHT); HTM_TH (Txt_No_INDEX ,HTM_HEAD_RIGHT);
HTM_TH (Txt_Criterion,HTM_HEAD_LEFT ); HTM_TH (Txt_Criterion,HTM_HEAD_LEFT );
HTM_TH (Txt_Source ,HTM_HEAD_LEFT );
HTM_TH (Txt_Minimum ,HTM_HEAD_RIGHT); HTM_TH (Txt_Minimum ,HTM_HEAD_RIGHT);
HTM_TH (Txt_Maximum ,HTM_HEAD_RIGHT); HTM_TH (Txt_Maximum ,HTM_HEAD_RIGHT);
HTM_TH (Txt_Weight ,HTM_HEAD_RIGHT); HTM_TH (Txt_Weight ,HTM_HEAD_RIGHT);

View File

@ -44937,6 +44937,29 @@ const char *Txt_Sort_degrees_by =
"Sort degrees by"; // Çeviri lazim! "Sort degrees by"; // Çeviri lazim!
#endif #endif
const char *Txt_Source =
#if L==1 // ca
"Font";
#elif L==2 // de
"Quelle";
#elif L==3 // en
"Source";
#elif L==4 // es
"Fuente";
#elif L==5 // fr
"Source";
#elif L==6 // gn
"Fuente"; // Okoteve traducción
#elif L==7 // it
"Fonte";
#elif L==8 // pl
"&Zacute;r&oacute;d&lstrok;o";
#elif L==9 // pt
"Fonte";
#elif L==10 // tr
"Source"; // Çeviri lazim!
#endif
const char *Txt_Source_of_information = const char *Txt_Source_of_information =
#if L==1 // ca #if L==1 // ca
"Font d'informaci&oacute;"; "Font d'informaci&oacute;";