mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-14 12:44:09 +02:00
Version19.100
This commit is contained in:
parent
84ccb15a76
commit
2ebd8094ae
|
@ -602,8 +602,10 @@ static void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,
|
||||||
{
|
{
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RT",NULL,Txt_ID);
|
Frm_LabelColumn ("REC_C1_BOT RT",NULL,Txt_ID);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT USR_ID\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT USR_ID\"");
|
||||||
}
|
}
|
||||||
else // NumID >= 1
|
else // NumID >= 1
|
||||||
|
@ -677,10 +679,12 @@ static void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,
|
||||||
/***** Form to enter new user's ID *****/
|
/***** Form to enter new user's ID *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RT","NewID",
|
Frm_LabelColumn ("REC_C1_BOT RT","NewID",
|
||||||
UsrDat->IDs.Num ? Txt_Another_ID : // A new user's ID
|
UsrDat->IDs.Num ? Txt_Another_ID : // A new user's ID
|
||||||
Txt_ID); // The first user's ID
|
Txt_ID); // The first user's ID
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT\"");
|
||||||
if (ItsMe)
|
if (ItsMe)
|
||||||
Frm_StartFormAnchor (ActChgMyID,ID_ID_SECTION_ID);
|
Frm_StartFormAnchor (ActChgMyID,ID_ID_SECTION_ID);
|
||||||
|
|
|
@ -371,8 +371,10 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char NewNicknameWitho
|
||||||
NewNicknameWithArroba[0] = '\0';
|
NewNicknameWithArroba[0] = '\0';
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","NewNick",Txt_Nickname);
|
Frm_LabelColumn ("RT","NewNick",Txt_Nickname);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_TEXT ("NewNick",1 + Nck_MAX_CHARS_NICKNAME_WITHOUT_ARROBA,
|
HTM_INPUT_TEXT ("NewNick",1 + Nck_MAX_CHARS_NICKNAME_WITHOUT_ARROBA,
|
||||||
NewNicknameWithArroba,false,
|
NewNicknameWithArroba,false,
|
||||||
|
@ -385,8 +387,10 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char NewNicknameWitho
|
||||||
/***** Email *****/
|
/***** Email *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","NewEmail",Txt_Email);
|
Frm_LabelColumn ("RT","NewEmail",Txt_Email);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_EMAIL ("NewEmail",Cns_MAX_CHARS_EMAIL_ADDRESS,NewEmail,
|
HTM_INPUT_EMAIL ("NewEmail",Cns_MAX_CHARS_EMAIL_ADDRESS,NewEmail,
|
||||||
"id=\"NewEmail\" size=\"18\" placeholder=\"%s\" required=\"required\"",
|
"id=\"NewEmail\" size=\"18\" placeholder=\"%s\" required=\"required\"",
|
||||||
|
|
|
@ -1507,8 +1507,10 @@ void Agd_RequestCreatOrEditEvent (void)
|
||||||
/***** Event *****/
|
/***** Event *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Event",Txt_Event);
|
Frm_LabelColumn ("RT","Event",Txt_Event);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_TEXT ("Event",Agd_MAX_CHARS_EVENT,AgdEvent.Event,false,
|
HTM_INPUT_TEXT ("Event",Agd_MAX_CHARS_EVENT,AgdEvent.Event,false,
|
||||||
"id=\"Event\" required=\"required\""
|
"id=\"Event\" required=\"required\""
|
||||||
|
@ -1520,8 +1522,10 @@ void Agd_RequestCreatOrEditEvent (void)
|
||||||
/***** Location *****/
|
/***** Location *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Location",Txt_Location);
|
Frm_LabelColumn ("RT","Location",Txt_Location);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_TEXT ("Location",Agd_MAX_CHARS_LOCATION,AgdEvent.Location,false,
|
HTM_INPUT_TEXT ("Location",Agd_MAX_CHARS_LOCATION,AgdEvent.Location,false,
|
||||||
"id=\"Location\" required=\"required\""
|
"id=\"Location\" required=\"required\""
|
||||||
|
@ -1537,8 +1541,10 @@ void Agd_RequestCreatOrEditEvent (void)
|
||||||
/***** Text *****/
|
/***** Text *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Txt",Txt_Description);
|
Frm_LabelColumn ("RT","Txt",Txt_Description);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" rows=\"5\""
|
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" rows=\"5\""
|
||||||
" class=\"TITLE_DESCRIPTION_WIDTH\"");
|
" class=\"TITLE_DESCRIPTION_WIDTH\"");
|
||||||
|
|
|
@ -450,10 +450,13 @@ static void Ann_PutSubjectMessage (const char *Field,const char *Label,
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormInBox[The_NUM_THEMES];
|
extern const char *The_ClassFormInBox[The_NUM_THEMES];
|
||||||
|
|
||||||
|
/***** Subject or content *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",Field,Label);
|
Frm_LabelColumn ("RT",Field,Label);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"%s\" name=\"%s\" cols=\"75\" rows=\"%u\"",
|
HTM_TEXTAREA_Begin ("id=\"%s\" name=\"%s\" cols=\"75\" rows=\"%u\"",
|
||||||
Field,Field,Rows);
|
Field,Field,Rows);
|
||||||
|
|
|
@ -1165,8 +1165,10 @@ void Asg_RequestCreatOrEditAsg (void)
|
||||||
/***** Assignment title *****/
|
/***** Assignment title *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM","Title",Txt_Title);
|
Frm_LabelColumn ("RM","Title",Txt_Title);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
HTM_INPUT_TEXT ("Title",Asg_MAX_CHARS_ASSIGNMENT_TITLE,Asg.Title,false,
|
HTM_INPUT_TEXT ("Title",Asg_MAX_CHARS_ASSIGNMENT_TITLE,Asg.Title,false,
|
||||||
"id=\"Title\" required=\"required\""
|
"id=\"Title\" required=\"required\""
|
||||||
|
@ -1181,8 +1183,10 @@ void Asg_RequestCreatOrEditAsg (void)
|
||||||
/***** Send work? *****/
|
/***** Send work? *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM","Folder",Txt_Upload_files_QUESTION);
|
Frm_LabelColumn ("RM","Folder",Txt_Upload_files_QUESTION);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
HTM_LABEL_Begin ("class=\"DAT\"");
|
HTM_LABEL_Begin ("class=\"DAT\"");
|
||||||
HTM_TxtF ("%s:",Txt_Folder);
|
HTM_TxtF ("%s:",Txt_Folder);
|
||||||
|
@ -1196,8 +1200,10 @@ void Asg_RequestCreatOrEditAsg (void)
|
||||||
/***** Assignment text *****/
|
/***** Assignment text *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Txt",Txt_Description);
|
Frm_LabelColumn ("RT","Txt",Txt_Description);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" rows=\"10\""
|
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" rows=\"10\""
|
||||||
" class=\"TITLE_DESCRIPTION_WIDTH\"");
|
" class=\"TITLE_DESCRIPTION_WIDTH\"");
|
||||||
|
|
|
@ -1072,8 +1072,10 @@ void Att_RequestCreatOrEditAttEvent (void)
|
||||||
/***** Attendance event title *****/
|
/***** Attendance event title *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Title",Txt_Title);
|
Frm_LabelColumn ("RT","Title",Txt_Title);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_TEXT ("Title",Att_MAX_CHARS_ATTENDANCE_EVENT_TITLE,Att.Title,false,
|
HTM_INPUT_TEXT ("Title",Att_MAX_CHARS_ATTENDANCE_EVENT_TITLE,Att.Title,false,
|
||||||
"id=\"Title\" required=\"required\""
|
"id=\"Title\" required=\"required\""
|
||||||
|
@ -1088,8 +1090,10 @@ void Att_RequestCreatOrEditAttEvent (void)
|
||||||
/***** Visibility of comments *****/
|
/***** Visibility of comments *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","ComTchVisible",Txt_Teachers_comment);
|
Frm_LabelColumn ("RT","ComTchVisible",Txt_Teachers_comment);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_SELECT_Begin (false,"id=\"ComTchVisible\" name=\"ComTchVisible\"");
|
HTM_SELECT_Begin (false,"id=\"ComTchVisible\" name=\"ComTchVisible\"");
|
||||||
HTM_OPTION (HTM_Type_STRING,"N",!Att.CommentTchVisible,false,
|
HTM_OPTION (HTM_Type_STRING,"N",!Att.CommentTchVisible,false,
|
||||||
|
@ -1098,13 +1102,16 @@ void Att_RequestCreatOrEditAttEvent (void)
|
||||||
"%s",Txt_Visible_MALE_PLURAL);
|
"%s",Txt_Visible_MALE_PLURAL);
|
||||||
HTM_SELECT_End ();
|
HTM_SELECT_End ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
HTM_TR_End ();
|
HTM_TR_End ();
|
||||||
|
|
||||||
/***** Attendance event description *****/
|
/***** Attendance event description *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Txt",Txt_Description);
|
Frm_LabelColumn ("RT","Txt",Txt_Description);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" rows=\"5\""
|
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" rows=\"5\""
|
||||||
" class=\"TITLE_DESCRIPTION_WIDTH\"");
|
" class=\"TITLE_DESCRIPTION_WIDTH\"");
|
||||||
|
|
|
@ -546,12 +546,14 @@ static void Ctr_ConfigLatitude (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Latitude;
|
extern const char *Txt_Latitude;
|
||||||
|
|
||||||
|
/***** Latitude *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM","Latitude",Txt_Latitude);
|
Frm_LabelColumn ("RM","Latitude",Txt_Latitude);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
/* Form to change centre latitude */
|
|
||||||
Frm_StartForm (ActChgCtrLatCfg);
|
Frm_StartForm (ActChgCtrLatCfg);
|
||||||
HTM_INPUT_FLOAT ("Latitude",
|
HTM_INPUT_FLOAT ("Latitude",
|
||||||
-90.0, // South Pole
|
-90.0, // South Pole
|
||||||
|
@ -569,12 +571,14 @@ static void Ctr_ConfigLongitude (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Longitude;
|
extern const char *Txt_Longitude;
|
||||||
|
|
||||||
|
/***** Longitude *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM","Longitude",Txt_Longitude);
|
Frm_LabelColumn ("RM","Longitude",Txt_Longitude);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
/* Form to change centre longitude */
|
|
||||||
Frm_StartForm (ActChgCtrLgtCfg);
|
Frm_StartForm (ActChgCtrLgtCfg);
|
||||||
HTM_INPUT_FLOAT ("Longitude",
|
HTM_INPUT_FLOAT ("Longitude",
|
||||||
-180.0, // West
|
-180.0, // West
|
||||||
|
@ -592,12 +596,14 @@ static void Ctr_ConfigAltitude (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Altitude;
|
extern const char *Txt_Altitude;
|
||||||
|
|
||||||
|
/***** Altitude *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM","Altitude",Txt_Altitude);
|
Frm_LabelColumn ("RM","Altitude",Txt_Altitude);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
/* Form to change centre altitude */
|
|
||||||
Frm_StartForm (ActChgCtrAltCfg);
|
Frm_StartForm (ActChgCtrAltCfg);
|
||||||
HTM_INPUT_FLOAT ("Altitude",
|
HTM_INPUT_FLOAT ("Altitude",
|
||||||
-413.0, // Dead Sea shore
|
-413.0, // Dead Sea shore
|
||||||
|
@ -698,12 +704,15 @@ static void Ctr_ConfigInstitution (bool PutForm)
|
||||||
extern const char *Txt_Institution;
|
extern const char *Txt_Institution;
|
||||||
unsigned NumIns;
|
unsigned NumIns;
|
||||||
|
|
||||||
|
/***** Institution *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",PutForm ? "OthInsCod" :
|
Frm_LabelColumn ("RM",PutForm ? "OthInsCod" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_Institution);
|
Txt_Institution);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT_N LM\"");
|
HTM_TD_Begin ("class=\"DAT_N LM\"");
|
||||||
if (PutForm)
|
if (PutForm)
|
||||||
{
|
{
|
||||||
|
@ -766,14 +775,19 @@ static void Ctr_ConfigPlace (bool PutForm)
|
||||||
struct Place Plc;
|
struct Place Plc;
|
||||||
unsigned NumPlc;
|
unsigned NumPlc;
|
||||||
|
|
||||||
|
/***** Get data of place *****/
|
||||||
Plc.PlcCod = Gbl.Hierarchy.Ctr.PlcCod;
|
Plc.PlcCod = Gbl.Hierarchy.Ctr.PlcCod;
|
||||||
Plc_GetDataOfPlaceByCod (&Plc);
|
Plc_GetDataOfPlaceByCod (&Plc);
|
||||||
|
|
||||||
|
/***** Place *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",PutForm ? "PlcCod" :
|
Frm_LabelColumn ("RM",PutForm ? "PlcCod" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_Place);
|
Txt_Place);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
if (PutForm)
|
if (PutForm)
|
||||||
{
|
{
|
||||||
|
@ -842,10 +856,13 @@ static void Ctr_ConfigNumUsrs (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Users_of_the_centre;
|
extern const char *Txt_Users_of_the_centre;
|
||||||
|
|
||||||
|
/***** Number of users *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Users_of_the_centre);
|
Frm_LabelColumn ("RM",NULL,Txt_Users_of_the_centre);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Unsigned (Usr_GetNumUsrsWhoClaimToBelongToCtr (Gbl.Hierarchy.Ctr.CtrCod));
|
HTM_Unsigned (Usr_GetNumUsrsWhoClaimToBelongToCtr (Gbl.Hierarchy.Ctr.CtrCod));
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -862,11 +879,13 @@ static void Ctr_ConfigNumDegs (void)
|
||||||
extern const char *Txt_Degrees;
|
extern const char *Txt_Degrees;
|
||||||
extern const char *Txt_Degrees_of_CENTRE_X;
|
extern const char *Txt_Degrees_of_CENTRE_X;
|
||||||
|
|
||||||
|
/***** Number of degrees *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Degrees);
|
Frm_LabelColumn ("RM",NULL,Txt_Degrees);
|
||||||
|
|
||||||
/* Form to go to see degrees of this centre */
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Frm_StartFormGoTo (ActSeeDeg);
|
Frm_StartFormGoTo (ActSeeDeg);
|
||||||
Ctr_PutParamCtrCod (Gbl.Hierarchy.Ctr.CtrCod);
|
Ctr_PutParamCtrCod (Gbl.Hierarchy.Ctr.CtrCod);
|
||||||
|
@ -890,10 +909,13 @@ static void Ctr_ConfigNumCrss (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Courses;
|
extern const char *Txt_Courses;
|
||||||
|
|
||||||
|
/***** Number of courses *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Courses);
|
Frm_LabelColumn ("RM",NULL,Txt_Courses);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Unsigned (Crs_GetNumCrssInCtr (Gbl.Hierarchy.Ctr.CtrCod));
|
HTM_Unsigned (Crs_GetNumCrssInCtr (Gbl.Hierarchy.Ctr.CtrCod));
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -910,12 +932,15 @@ static void Ctr_ShowNumUsrsInCrssOfCtr (Rol_Role_t Role)
|
||||||
extern const char *Txt_Users_in_courses;
|
extern const char *Txt_Users_in_courses;
|
||||||
extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
||||||
|
|
||||||
|
/***** Number of users in courses *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,
|
Frm_LabelColumn ("RM",NULL,
|
||||||
Role == Rol_UNK ? Txt_Users_in_courses :
|
Role == Rol_UNK ? Txt_Users_in_courses :
|
||||||
Txt_ROLES_PLURAL_Abc[Role][Usr_SEX_UNKNOWN]);
|
Txt_ROLES_PLURAL_Abc[Role][Usr_SEX_UNKNOWN]);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Unsigned (Usr_GetNumUsrsInCrssOfCtr (Role,Gbl.Hierarchy.Ctr.CtrCod));
|
HTM_Unsigned (Usr_GetNumUsrsInCrssOfCtr (Role,Gbl.Hierarchy.Ctr.CtrCod));
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
|
@ -492,7 +492,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
||||||
En OpenSWAD:
|
En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 19.99.2 (2019-12-27)"
|
#define Log_PLATFORM_VERSION "SWAD 19.100 (2019-12-27)"
|
||||||
#define CSS_FILE "swad19.99.1.css"
|
#define CSS_FILE "swad19.99.1.css"
|
||||||
#define JS_FILE "swad19.91.1.js"
|
#define JS_FILE "swad19.91.1.js"
|
||||||
/*
|
/*
|
||||||
|
@ -502,7 +502,7 @@ ps2pdf source.ps destination.pdf
|
||||||
|
|
||||||
Version 19.102: Dec 27, 2019 Map in country information. (? lines)
|
Version 19.102: Dec 27, 2019 Map in country information. (? lines)
|
||||||
Version 19.101: Dec 27, 2019 Map in institution information. (? lines)
|
Version 19.101: Dec 27, 2019 Map in institution information. (? lines)
|
||||||
Version 19.100: Dec 27, 2019 Code refactoring in country information. (? lines)
|
Version 19.100: Dec 27, 2019 Code refactoring in country information. (249170 lines)
|
||||||
Version 19.99.2: Dec 27, 2019 Fixed bug in attendance. (248857 lines)
|
Version 19.99.2: Dec 27, 2019 Fixed bug in attendance. (248857 lines)
|
||||||
Version 19.99.1: Dec 27, 2019 Code refactoring in form labels. (248855 lines)
|
Version 19.99.1: Dec 27, 2019 Code refactoring in form labels. (248855 lines)
|
||||||
Version 19.99: Dec 27, 2019 Code refactoring in form labels. (248924 lines)
|
Version 19.99: Dec 27, 2019 Code refactoring in form labels. (248924 lines)
|
||||||
|
|
444
swad_country.c
444
swad_country.c
|
@ -72,6 +72,16 @@ long Cty_CurrentCtyCod = -1L; // Used as parameter in contextual links
|
||||||
|
|
||||||
static void Cty_Configuration (bool PrintView);
|
static void Cty_Configuration (bool PrintView);
|
||||||
static void Cty_PutIconToPrint (void);
|
static void Cty_PutIconToPrint (void);
|
||||||
|
static void Cty_ConfigTitle (bool PutLink);
|
||||||
|
static void Cty_ConfigMap (bool PrintView,bool PutLink);
|
||||||
|
static void Cty_ConfigName (bool PutLink);
|
||||||
|
static void Cty_ConfigShortcut (void);
|
||||||
|
static void Cty_ConfigQR (void);
|
||||||
|
static void Cty_ConfigNumUsrs (void);
|
||||||
|
static void Cty_ConfigNumInss (void);
|
||||||
|
static void Cty_ConfigNumCtrs (void);
|
||||||
|
static void Cty_ConfigNumDegs (void);
|
||||||
|
static void Cty_ConfigNumCrss (void);
|
||||||
static void Cty_ShowNumUsrsInCrssOfCty (Rol_Role_t Role);
|
static void Cty_ShowNumUsrsInCrssOfCty (Rol_Role_t Role);
|
||||||
|
|
||||||
static void Cty_PutHeadCountriesForSeeing (bool OrderSelectable);
|
static void Cty_PutHeadCountriesForSeeing (bool OrderSelectable);
|
||||||
|
@ -236,24 +246,15 @@ void Cty_PrintConfiguration (void)
|
||||||
static void Cty_Configuration (bool PrintView)
|
static void Cty_Configuration (bool PrintView)
|
||||||
{
|
{
|
||||||
extern const char *Hlp_COUNTRY_Information;
|
extern const char *Hlp_COUNTRY_Information;
|
||||||
extern const char *The_ClassFormInBox[The_NUM_THEMES];
|
|
||||||
extern const char *Txt_Country;
|
|
||||||
extern const char *Txt_Shortcut;
|
|
||||||
extern const char *Lan_STR_LANG_ID[1 + Lan_NUM_LANGUAGES];
|
|
||||||
extern const char *Txt_QR_code;
|
|
||||||
extern const char *Txt_Institutions;
|
|
||||||
extern const char *Txt_Institutions_of_COUNTRY_X;
|
|
||||||
extern const char *Txt_Centres;
|
|
||||||
extern const char *Txt_Degrees;
|
|
||||||
extern const char *Txt_Courses;
|
|
||||||
extern const char *Txt_Users_of_the_country;
|
|
||||||
char *MapAttribution = NULL;
|
|
||||||
bool PutLink;
|
bool PutLink;
|
||||||
|
|
||||||
/***** Trivial check *****/
|
/***** Trivial check *****/
|
||||||
if (Gbl.Hierarchy.Cty.CtyCod <= 0) // No country selected
|
if (Gbl.Hierarchy.Cty.CtyCod <= 0) // No country selected
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/***** Initializations *****/
|
||||||
|
PutLink = !PrintView && Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language][0];
|
||||||
|
|
||||||
/***** Begin box *****/
|
/***** Begin box *****/
|
||||||
if (PrintView)
|
if (PrintView)
|
||||||
Box_BoxBegin (NULL,NULL,NULL,
|
Box_BoxBegin (NULL,NULL,NULL,
|
||||||
|
@ -263,192 +264,36 @@ static void Cty_Configuration (bool PrintView)
|
||||||
Hlp_COUNTRY_Information,Box_NOT_CLOSABLE);
|
Hlp_COUNTRY_Information,Box_NOT_CLOSABLE);
|
||||||
|
|
||||||
/***** Title *****/
|
/***** Title *****/
|
||||||
PutLink = !PrintView && Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language][0];
|
Cty_ConfigTitle (PutLink);
|
||||||
HTM_DIV_Begin ("class=\"FRAME_TITLE FRAME_TITLE_BIG\"");
|
|
||||||
if (PutLink)
|
|
||||||
HTM_A_Begin ("href=\"%s\" target=\"_blank\""
|
|
||||||
" class=\"FRAME_TITLE_BIG\" title=\"%s\"",
|
|
||||||
Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language],
|
|
||||||
Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
|
||||||
HTM_Txt (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
|
||||||
if (PutLink)
|
|
||||||
HTM_A_End ();
|
|
||||||
HTM_DIV_End ();
|
|
||||||
|
|
||||||
/***** Country map (and link to WWW if exists) *****/
|
/***** Country map *****/
|
||||||
if (Cty_CheckIfCountryMapExists (&Gbl.Hierarchy.Cty))
|
if (Cty_CheckIfCountryMapExists (&Gbl.Hierarchy.Cty))
|
||||||
{
|
Cty_ConfigMap (PrintView,PutLink);
|
||||||
/* Get map attribution */
|
|
||||||
Cty_GetMapAttribution (Gbl.Hierarchy.Cty.CtyCod,&MapAttribution);
|
|
||||||
|
|
||||||
/* Map image */
|
|
||||||
HTM_DIV_Begin ("class=\"DAT_SMALL CM\"");
|
|
||||||
if (PutLink)
|
|
||||||
HTM_A_Begin ("href=\"%s\" target=\"_blank\"",
|
|
||||||
Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language]);
|
|
||||||
Cty_DrawCountryMap (&Gbl.Hierarchy.Cty,PrintView ? "COUNTRY_MAP_PRINT" :
|
|
||||||
"COUNTRY_MAP_SHOW");
|
|
||||||
if (PutLink)
|
|
||||||
HTM_A_End ();
|
|
||||||
HTM_DIV_End ();
|
|
||||||
|
|
||||||
/* Map attribution */
|
|
||||||
if (!PrintView && Cty_CheckIfICanEditCountries ())
|
|
||||||
{
|
|
||||||
HTM_DIV_Begin ("class=\"CM\"");
|
|
||||||
Frm_StartForm (ActChgCtyMapAtt);
|
|
||||||
HTM_TEXTAREA_Begin ("name=\"Attribution\" cols=\"50\" rows=\"2\""
|
|
||||||
" onchange=\"document.getElementById('%s').submit();return false;\"",
|
|
||||||
Gbl.Form.Id);
|
|
||||||
if (MapAttribution)
|
|
||||||
HTM_Txt (MapAttribution);
|
|
||||||
HTM_TEXTAREA_End ();
|
|
||||||
Frm_EndForm ();
|
|
||||||
HTM_DIV_End ();
|
|
||||||
}
|
|
||||||
else if (MapAttribution)
|
|
||||||
{
|
|
||||||
HTM_DIV_Begin ("class=\"ATTRIBUTION\"");
|
|
||||||
HTM_Txt (MapAttribution);
|
|
||||||
HTM_DIV_End ();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Free memory used for map attribution */
|
|
||||||
Cty_FreeMapAttribution (&MapAttribution);
|
|
||||||
}
|
|
||||||
|
|
||||||
/***** Begin table *****/
|
/***** Begin table *****/
|
||||||
HTM_TABLE_BeginWidePadding (2);
|
HTM_TABLE_BeginWidePadding (2);
|
||||||
|
|
||||||
/***** Country name (an link to WWW if exists) *****/
|
/***** Country name (an link to WWW if exists) *****/
|
||||||
HTM_TR_Begin (NULL);
|
Cty_ConfigName (PutLink);
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
/***** Shortcut to the country *****/
|
||||||
HTM_TxtF ("%s:",Txt_Country);
|
Cty_ConfigShortcut ();
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT_N LM\"");
|
|
||||||
if (!PrintView && Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language][0])
|
|
||||||
HTM_A_Begin ("href=\"%s\" target=\"_blank\" class=\"DAT_N\"",
|
|
||||||
Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language]);
|
|
||||||
HTM_Txt (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
|
||||||
if (!PrintView && Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language][0])
|
|
||||||
HTM_A_End ();
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TR_End ();
|
|
||||||
|
|
||||||
/***** Link to the country inside platform *****/
|
|
||||||
HTM_TR_Begin (NULL);
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
|
||||||
HTM_TxtF ("%s:",Txt_Shortcut);
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
|
||||||
HTM_A_Begin ("href=\"%s/%s?cty=%ld\" class=\"DAT\" target=\"_blank\"",
|
|
||||||
Cfg_URL_SWAD_CGI,
|
|
||||||
Lan_STR_LANG_ID[Gbl.Prefs.Language],
|
|
||||||
Gbl.Hierarchy.Cty.CtyCod);
|
|
||||||
HTM_TxtF ("%s/%s?cty=%ld",
|
|
||||||
Cfg_URL_SWAD_CGI,
|
|
||||||
Lan_STR_LANG_ID[Gbl.Prefs.Language],
|
|
||||||
Gbl.Hierarchy.Cty.CtyCod);
|
|
||||||
HTM_A_End ();
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TR_End ();
|
|
||||||
|
|
||||||
if (PrintView)
|
if (PrintView)
|
||||||
{
|
|
||||||
/***** QR code with link to the country *****/
|
/***** QR code with link to the country *****/
|
||||||
HTM_TR_Begin (NULL);
|
Cty_ConfigQR ();
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
|
||||||
HTM_TxtF ("%s:",Txt_QR_code);
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
|
||||||
QR_LinkTo (250,"cty",Gbl.Hierarchy.Cty.CtyCod);
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TR_End ();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/***** Number of users who claim to belong to this country *****/
|
/***** Number of users who claim to belong to this centre,
|
||||||
HTM_TR_Begin (NULL);
|
number of institutions,
|
||||||
|
number of centres,
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
number of degrees,
|
||||||
HTM_TxtF ("%s:",Txt_Users_of_the_country);
|
number of courses *****/
|
||||||
HTM_TD_End ();
|
Cty_ConfigNumUsrs ();
|
||||||
|
Cty_ConfigNumInss ();
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
Cty_ConfigNumCtrs ();
|
||||||
HTM_Unsigned (Usr_GetNumUsrsWhoClaimToBelongToCty (Gbl.Hierarchy.Cty.CtyCod));
|
Cty_ConfigNumDegs ();
|
||||||
HTM_TD_End ();
|
Cty_ConfigNumCrss ();
|
||||||
|
|
||||||
HTM_TR_End ();
|
|
||||||
|
|
||||||
/***** Number of institutions *****/
|
|
||||||
HTM_TR_Begin (NULL);
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
|
||||||
HTM_TxtF ("%s:",Txt_Institutions);
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
/* Form to go to see institutions of this country */
|
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
|
||||||
Frm_StartFormGoTo (ActSeeIns);
|
|
||||||
Cty_PutParamCtyCod (Gbl.Hierarchy.Cty.CtyCod);
|
|
||||||
snprintf (Gbl.Title,sizeof (Gbl.Title),
|
|
||||||
Txt_Institutions_of_COUNTRY_X,
|
|
||||||
Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
|
||||||
HTM_BUTTON_SUBMIT_Begin (Gbl.Title,"BT_LINK DAT",NULL);
|
|
||||||
HTM_Unsigned (Ins_GetNumInssInCty (Gbl.Hierarchy.Cty.CtyCod));
|
|
||||||
HTM_BUTTON_End ();
|
|
||||||
Frm_EndForm ();
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TR_End ();
|
|
||||||
|
|
||||||
/***** Number of centres *****/
|
|
||||||
HTM_TR_Begin (NULL);
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
|
||||||
HTM_TxtF ("%s:",Txt_Centres);
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
|
||||||
HTM_Unsigned (Ctr_GetNumCtrsInCty (Gbl.Hierarchy.Cty.CtyCod));
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TR_End ();
|
|
||||||
|
|
||||||
/***** Number of degrees *****/
|
|
||||||
HTM_TR_Begin (NULL);
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
|
||||||
HTM_TxtF ("%s:",Txt_Degrees);
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
|
||||||
HTM_Unsigned (Deg_GetNumDegsInCty (Gbl.Hierarchy.Cty.CtyCod));
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TR_End ();
|
|
||||||
|
|
||||||
/***** Number of courses *****/
|
|
||||||
HTM_TR_Begin (NULL);
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
|
||||||
HTM_TxtF ("%s:",Txt_Courses);
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
|
||||||
HTM_Unsigned (Crs_GetNumCrssInCty (Gbl.Hierarchy.Cty.CtyCod));
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TR_End ();
|
|
||||||
|
|
||||||
/***** Number of users in courses of this country *****/
|
/***** Number of users in courses of this country *****/
|
||||||
Cty_ShowNumUsrsInCrssOfCty (Rol_TCH);
|
Cty_ShowNumUsrsInCrssOfCty (Rol_TCH);
|
||||||
|
@ -473,6 +318,235 @@ static void Cty_PutIconToPrint (void)
|
||||||
Ico_PutContextualIconToPrint (ActPrnCtyInf,NULL);
|
Ico_PutContextualIconToPrint (ActPrnCtyInf,NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/******************** Show title in country configuration ********************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Cty_ConfigTitle (bool PutLink)
|
||||||
|
{
|
||||||
|
HTM_DIV_Begin ("class=\"FRAME_TITLE FRAME_TITLE_BIG\"");
|
||||||
|
if (PutLink)
|
||||||
|
HTM_A_Begin ("href=\"%s\" target=\"_blank\""
|
||||||
|
" class=\"FRAME_TITLE_BIG\" title=\"%s\"",
|
||||||
|
Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language],
|
||||||
|
Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
||||||
|
HTM_Txt (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
||||||
|
if (PutLink)
|
||||||
|
HTM_A_End ();
|
||||||
|
HTM_DIV_End ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/********************* Show map in country configuration *********************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Cty_ConfigMap (bool PrintView,bool PutLink)
|
||||||
|
{
|
||||||
|
char *MapAttribution = NULL;
|
||||||
|
|
||||||
|
/***** Get map attribution *****/
|
||||||
|
Cty_GetMapAttribution (Gbl.Hierarchy.Cty.CtyCod,&MapAttribution);
|
||||||
|
|
||||||
|
/***** Map image *****/
|
||||||
|
HTM_DIV_Begin ("class=\"DAT_SMALL CM\"");
|
||||||
|
if (PutLink)
|
||||||
|
HTM_A_Begin ("href=\"%s\" target=\"_blank\"",
|
||||||
|
Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language]);
|
||||||
|
Cty_DrawCountryMap (&Gbl.Hierarchy.Cty,PrintView ? "COUNTRY_MAP_PRINT" :
|
||||||
|
"COUNTRY_MAP_SHOW");
|
||||||
|
if (PutLink)
|
||||||
|
HTM_A_End ();
|
||||||
|
HTM_DIV_End ();
|
||||||
|
|
||||||
|
/***** Map attribution *****/
|
||||||
|
if (!PrintView && Cty_CheckIfICanEditCountries ())
|
||||||
|
{
|
||||||
|
HTM_DIV_Begin ("class=\"CM\"");
|
||||||
|
Frm_StartForm (ActChgCtyMapAtt);
|
||||||
|
HTM_TEXTAREA_Begin ("name=\"Attribution\" cols=\"50\" rows=\"2\""
|
||||||
|
" onchange=\"document.getElementById('%s').submit();return false;\"",
|
||||||
|
Gbl.Form.Id);
|
||||||
|
if (MapAttribution)
|
||||||
|
HTM_Txt (MapAttribution);
|
||||||
|
HTM_TEXTAREA_End ();
|
||||||
|
Frm_EndForm ();
|
||||||
|
HTM_DIV_End ();
|
||||||
|
}
|
||||||
|
else if (MapAttribution)
|
||||||
|
{
|
||||||
|
HTM_DIV_Begin ("class=\"ATTRIBUTION\"");
|
||||||
|
HTM_Txt (MapAttribution);
|
||||||
|
HTM_DIV_End ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/***** Free memory used for map attribution *****/
|
||||||
|
Cty_FreeMapAttribution (&MapAttribution);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/**************** Show country name in country configuration *****************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Cty_ConfigName (bool PutLink)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Country;
|
||||||
|
|
||||||
|
/***** Country name *****/
|
||||||
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
|
Frm_LabelColumn ("RM",NULL,Txt_Country);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
|
HTM_TD_Begin ("class=\"DAT_N LM\"");
|
||||||
|
if (PutLink)
|
||||||
|
HTM_A_Begin ("href=\"%s\" target=\"_blank\" class=\"DAT_N\"",
|
||||||
|
Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language]);
|
||||||
|
HTM_Txt (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
||||||
|
if (PutLink)
|
||||||
|
HTM_A_End ();
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
|
HTM_TR_End ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/************** Show country shortcut in country configuration ***************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Cty_ConfigShortcut (void)
|
||||||
|
{
|
||||||
|
Hie_ConfigShortcut ("cty",Gbl.Hierarchy.Cty.CtyCod);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/***************** Show country QR in country configuration ******************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Cty_ConfigQR (void)
|
||||||
|
{
|
||||||
|
Hie_ConfigQR ("cty",Gbl.Hierarchy.Cty.CtyCod);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/*** Show number of users who claim to belong to country in country config. **/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Cty_ConfigNumUsrs (void)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Users_of_the_country;
|
||||||
|
|
||||||
|
/***** Number of users *****/
|
||||||
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
|
Frm_LabelColumn ("RM",NULL,Txt_Users_of_the_country);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
|
HTM_Unsigned (Usr_GetNumUsrsWhoClaimToBelongToCty (Gbl.Hierarchy.Cty.CtyCod));
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
|
HTM_TR_End ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/*********** Show number of institutions in country configuration ************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Cty_ConfigNumInss (void)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Institutions;
|
||||||
|
extern const char *Txt_Institutions_of_COUNTRY_X;
|
||||||
|
|
||||||
|
/***** Number of institutions ******/
|
||||||
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
|
Frm_LabelColumn ("RM",NULL,Txt_Institutions);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
|
Frm_StartFormGoTo (ActSeeIns);
|
||||||
|
Cty_PutParamCtyCod (Gbl.Hierarchy.Cty.CtyCod);
|
||||||
|
snprintf (Gbl.Title,sizeof (Gbl.Title),
|
||||||
|
Txt_Institutions_of_COUNTRY_X,
|
||||||
|
Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
||||||
|
HTM_BUTTON_SUBMIT_Begin (Gbl.Title,"BT_LINK DAT",NULL);
|
||||||
|
HTM_Unsigned (Ins_GetNumInssInCty (Gbl.Hierarchy.Cty.CtyCod));
|
||||||
|
HTM_BUTTON_End ();
|
||||||
|
Frm_EndForm ();
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
|
HTM_TR_End ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/************* Show number of centres in country configuration ***************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Cty_ConfigNumCtrs (void)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Centres;
|
||||||
|
|
||||||
|
/***** Number of centres *****/
|
||||||
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
|
Frm_LabelColumn ("RM",NULL,Txt_Centres);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
|
HTM_Unsigned (Ctr_GetNumCtrsInCty (Gbl.Hierarchy.Cty.CtyCod));
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
|
HTM_TR_End ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/************* Show number of degrees in country configuration ***************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Cty_ConfigNumDegs (void)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Degrees;
|
||||||
|
|
||||||
|
/***** Number of degrees *****/
|
||||||
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
|
Frm_LabelColumn ("RM",NULL,Txt_Degrees);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
|
HTM_Unsigned (Deg_GetNumDegsInCty (Gbl.Hierarchy.Cty.CtyCod));
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
|
HTM_TR_End ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/************* Show number of courses in country configuration ***************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Cty_ConfigNumCrss (void)
|
||||||
|
{
|
||||||
|
extern const char *Txt_Courses;
|
||||||
|
|
||||||
|
/***** Number of courses *****/
|
||||||
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
|
Frm_LabelColumn ("RM",NULL,Txt_Courses);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
|
HTM_Unsigned (Crs_GetNumCrssInCty (Gbl.Hierarchy.Cty.CtyCod));
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
|
HTM_TR_End ();
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/**************** Number of users in courses of this country *****************/
|
/**************** Number of users in courses of this country *****************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -298,12 +298,15 @@ static void Crs_ConfigDegree (bool PutForm)
|
||||||
extern const char *Txt_Degree;
|
extern const char *Txt_Degree;
|
||||||
unsigned NumDeg;
|
unsigned NumDeg;
|
||||||
|
|
||||||
|
/***** Degree *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",PutForm ? "OthDegCod" :
|
Frm_LabelColumn ("RM",PutForm ? "OthDegCod" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_Degree);
|
Txt_Degree);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
if (PutForm)
|
if (PutForm)
|
||||||
{
|
{
|
||||||
|
@ -366,12 +369,15 @@ static void Crs_ConfigYear (bool PutForm)
|
||||||
extern const char *Txt_Not_applicable;
|
extern const char *Txt_Not_applicable;
|
||||||
unsigned Year;
|
unsigned Year;
|
||||||
|
|
||||||
|
/***** Academic year *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",PutForm ? "OthCrsYear" :
|
Frm_LabelColumn ("RM",PutForm ? "OthCrsYear" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_Year_OF_A_DEGREE);
|
Txt_Year_OF_A_DEGREE);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
if (PutForm)
|
if (PutForm)
|
||||||
{
|
{
|
||||||
|
@ -403,12 +409,15 @@ static void Crs_ConfigInstitutionalCode (bool PutForm)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Institutional_code;
|
extern const char *Txt_Institutional_code;
|
||||||
|
|
||||||
|
/***** Institutional course code *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",PutForm ? "InsCrsCod" :
|
Frm_LabelColumn ("RM",PutForm ? "InsCrsCod" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_Institutional_code);
|
Txt_Institutional_code);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
if (PutForm)
|
if (PutForm)
|
||||||
{
|
{
|
||||||
|
@ -434,10 +443,13 @@ static void Crs_ConfigInternalCode (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Internal_code;
|
extern const char *Txt_Internal_code;
|
||||||
|
|
||||||
|
/***** Internal course code *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Internal_code);
|
Frm_LabelColumn ("RM",NULL,Txt_Internal_code);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Long (Gbl.Hierarchy.Crs.CrsCod);
|
HTM_Long (Gbl.Hierarchy.Crs.CrsCod);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -471,10 +483,13 @@ static void Crs_ShowNumUsrsInCrs (Rol_Role_t Role)
|
||||||
{
|
{
|
||||||
extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
||||||
|
|
||||||
|
/***** Number of users in course *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_ROLES_PLURAL_Abc[Role][Usr_SEX_UNKNOWN]);
|
Frm_LabelColumn ("RM",NULL,Txt_ROLES_PLURAL_Abc[Role][Usr_SEX_UNKNOWN]);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Unsigned (Gbl.Hierarchy.Crs.NumUsrs[Role]);
|
HTM_Unsigned (Gbl.Hierarchy.Crs.NumUsrs[Role]);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -493,12 +508,17 @@ static void Crs_ConfigIndicators (void)
|
||||||
struct Ind_IndicatorsCrs Indicators;
|
struct Ind_IndicatorsCrs Indicators;
|
||||||
int NumIndicatorsFromDB = Ind_GetNumIndicatorsCrsFromDB (Gbl.Hierarchy.Crs.CrsCod);
|
int NumIndicatorsFromDB = Ind_GetNumIndicatorsCrsFromDB (Gbl.Hierarchy.Crs.CrsCod);
|
||||||
|
|
||||||
|
/***** Compute indicators ******/
|
||||||
Ind_ComputeAndStoreIndicatorsCrs (Gbl.Hierarchy.Crs.CrsCod,
|
Ind_ComputeAndStoreIndicatorsCrs (Gbl.Hierarchy.Crs.CrsCod,
|
||||||
NumIndicatorsFromDB,&Indicators);
|
NumIndicatorsFromDB,&Indicators);
|
||||||
|
|
||||||
|
/***** Number of indicators *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Indicators);
|
Frm_LabelColumn ("RM",NULL,Txt_Indicators);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Frm_StartForm (ActReqStaCrs);
|
Frm_StartForm (ActReqStaCrs);
|
||||||
snprintf (Gbl.Title,sizeof (Gbl.Title),
|
snprintf (Gbl.Title,sizeof (Gbl.Title),
|
||||||
|
|
10
swad_date.c
10
swad_date.c
|
@ -433,9 +433,10 @@ void Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (bool SetHMS00000
|
||||||
/***** Start date-time *****/
|
/***** Start date-time *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_START_END_TIME[Dat_START_TIME]);
|
Frm_LabelColumn ("RM",NULL,Txt_START_END_TIME[Dat_START_TIME]);
|
||||||
|
|
||||||
/* Date-time */
|
/* Data (date-time) */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Dat_WriteFormClientLocalDateTimeFromTimeUTC ("Start",
|
Dat_WriteFormClientLocalDateTimeFromTimeUTC ("Start",
|
||||||
"Start",
|
"Start",
|
||||||
|
@ -460,9 +461,10 @@ void Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (bool SetHMS00000
|
||||||
/***** End date-time *****/
|
/***** End date-time *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_START_END_TIME[Dat_END_TIME]);
|
Frm_LabelColumn ("RM",NULL,Txt_START_END_TIME[Dat_END_TIME]);
|
||||||
|
|
||||||
/* Date-time */
|
/* Data (date-time) */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Dat_WriteFormClientLocalDateTimeFromTimeUTC ("End",
|
Dat_WriteFormClientLocalDateTimeFromTimeUTC ("End",
|
||||||
"End",
|
"End",
|
||||||
|
@ -497,11 +499,13 @@ void Dat_PutFormStartEndClientLocalDateTimes (time_t TimeUTC[2],
|
||||||
StartEndTime <= Dat_END_TIME;
|
StartEndTime <= Dat_END_TIME;
|
||||||
StartEndTime++)
|
StartEndTime++)
|
||||||
{
|
{
|
||||||
/* Date-time */
|
/***** Date-time *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_START_END_TIME[StartEndTime]);
|
Frm_LabelColumn ("RM",NULL,Txt_START_END_TIME[StartEndTime]);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Dat_WriteFormClientLocalDateTimeFromTimeUTC (Id[StartEndTime],
|
Dat_WriteFormClientLocalDateTimeFromTimeUTC (Id[StartEndTime],
|
||||||
Id[StartEndTime],
|
Id[StartEndTime],
|
||||||
|
|
|
@ -405,12 +405,15 @@ static void Deg_ConfigCentre (bool PutForm)
|
||||||
extern const char *Txt_Centre;
|
extern const char *Txt_Centre;
|
||||||
unsigned NumCtr;
|
unsigned NumCtr;
|
||||||
|
|
||||||
|
/***** Centre *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",PutForm ? "OthCtrCod" :
|
Frm_LabelColumn ("RM",PutForm ? "OthCtrCod" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_Centre);
|
Txt_Centre);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT_N LM\"");
|
HTM_TD_Begin ("class=\"DAT_N LM\"");
|
||||||
if (PutForm)
|
if (PutForm)
|
||||||
{
|
{
|
||||||
|
@ -498,11 +501,13 @@ static void Deg_ConfigNumCrss (void)
|
||||||
extern const char *Txt_Courses;
|
extern const char *Txt_Courses;
|
||||||
extern const char *Txt_Courses_of_DEGREE_X;
|
extern const char *Txt_Courses_of_DEGREE_X;
|
||||||
|
|
||||||
|
/***** Number of courses *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Courses);
|
Frm_LabelColumn ("RM",NULL,Txt_Courses);
|
||||||
|
|
||||||
/* Form to go to see courses of this degree */
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Frm_StartFormGoTo (ActSeeCrs);
|
Frm_StartFormGoTo (ActSeeCrs);
|
||||||
Deg_PutParamDegCod (Gbl.Hierarchy.Deg.DegCod);
|
Deg_PutParamDegCod (Gbl.Hierarchy.Deg.DegCod);
|
||||||
|
@ -527,12 +532,15 @@ static void Deg_ShowNumUsrsInCrssOfDeg (Rol_Role_t Role)
|
||||||
extern const char *Txt_Users_in_courses;
|
extern const char *Txt_Users_in_courses;
|
||||||
extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
||||||
|
|
||||||
|
/***** Number of users in courses *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,
|
Frm_LabelColumn ("RM",NULL,
|
||||||
Role == Rol_UNK ? Txt_Users_in_courses :
|
Role == Rol_UNK ? Txt_Users_in_courses :
|
||||||
Txt_ROLES_PLURAL_Abc[Role][Usr_SEX_UNKNOWN]);
|
Txt_ROLES_PLURAL_Abc[Role][Usr_SEX_UNKNOWN]);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Unsigned (Usr_GetNumUsrsInCrssOfDeg (Role,Gbl.Hierarchy.Deg.DegCod));
|
HTM_Unsigned (Usr_GetNumUsrsInCrssOfDeg (Role,Gbl.Hierarchy.Deg.DegCod));
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
|
@ -916,8 +916,10 @@ static void Enr_PutAreaToEnterUsrsIDs (void)
|
||||||
HTM_TABLE_BeginCenterPadding (2);
|
HTM_TABLE_BeginCenterPadding (2);
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","UsrsIDs",Txt_List_of_nicks_emails_or_IDs);
|
Frm_LabelColumn ("RT","UsrsIDs",Txt_List_of_nicks_emails_or_IDs);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"UsrsIDs\" name=\"UsrsIDs\" cols=\"60\" rows=\"10\"");
|
HTM_TEXTAREA_Begin ("id=\"UsrsIDs\" name=\"UsrsIDs\" cols=\"60\" rows=\"10\"");
|
||||||
HTM_TEXTAREA_End ();
|
HTM_TEXTAREA_End ();
|
||||||
|
@ -2257,8 +2259,10 @@ static void Enr_ShowEnrolmentRequestsGivenRoles (unsigned RolesSelected)
|
||||||
/* Scope (whole platform, current centre, current degree or current course) */
|
/* Scope (whole platform, current centre, current degree or current course) */
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","ScopeEnr",Txt_Scope);
|
Frm_LabelColumn ("RT","ScopeEnr",Txt_Scope);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Sco_PutSelectorScope ("ScopeEnr",true);
|
Sco_PutSelectorScope ("ScopeEnr",true);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
26
swad_exam.c
26
swad_exam.c
|
@ -1071,11 +1071,13 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Name of the course *****/
|
/***** Name of the course *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",
|
Frm_LabelColumn ("RT",
|
||||||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "CrsName" :
|
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "CrsName" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_EXAM_ANNOUNCEMENT_Course);
|
Txt_EXAM_ANNOUNCEMENT_Course);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
HTM_INPUT_TEXT ("CrsName",Hie_MAX_CHARS_FULL_NAME,Gbl.ExamAnns.ExaDat.CrsFullName,false,
|
HTM_INPUT_TEXT ("CrsName",Hie_MAX_CHARS_FULL_NAME,Gbl.ExamAnns.ExaDat.CrsFullName,false,
|
||||||
|
@ -1093,11 +1095,13 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Year/semester (N.A., 1º, 2º, 3º, 4º, 5º...) *****/
|
/***** Year/semester (N.A., 1º, 2º, 3º, 4º, 5º...) *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",
|
Frm_LabelColumn ("RT",
|
||||||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "Year" :
|
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "Year" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_EXAM_ANNOUNCEMENT_Year_or_semester);
|
Txt_EXAM_ANNOUNCEMENT_Year_or_semester);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
|
@ -1120,11 +1124,13 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Exam session *****/
|
/***** Exam session *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",
|
Frm_LabelColumn ("RT",
|
||||||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "ExamSession" :
|
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "ExamSession" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_EXAM_ANNOUNCEMENT_Session);
|
Txt_EXAM_ANNOUNCEMENT_Session);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
HTM_INPUT_TEXT ("ExamSession",Exa_MAX_CHARS_SESSION,Gbl.ExamAnns.ExaDat.Session,false,
|
HTM_INPUT_TEXT ("ExamSession",Exa_MAX_CHARS_SESSION,Gbl.ExamAnns.ExaDat.Session,false,
|
||||||
|
@ -1138,8 +1144,10 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Date of the exam *****/
|
/***** Date of the exam *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",NULL,Txt_EXAM_ANNOUNCEMENT_Exam_date);
|
Frm_LabelColumn ("RT",NULL,Txt_EXAM_ANNOUNCEMENT_Exam_date);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
|
@ -1163,8 +1171,10 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Start time *****/
|
/***** Start time *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",NULL,Txt_EXAM_ANNOUNCEMENT_Start_time);
|
Frm_LabelColumn ("RT",NULL,Txt_EXAM_ANNOUNCEMENT_Start_time);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
|
@ -1201,8 +1211,10 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Approximate duration of the exam *****/
|
/***** Approximate duration of the exam *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",NULL,Txt_EXAM_ANNOUNCEMENT_Approximate_duration);
|
Frm_LabelColumn ("RT",NULL,Txt_EXAM_ANNOUNCEMENT_Approximate_duration);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
|
@ -1254,11 +1266,13 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Place where the exam will be made *****/
|
/***** Place where the exam will be made *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",
|
Frm_LabelColumn ("RT",
|
||||||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "Place" :
|
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "Place" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_EXAM_ANNOUNCEMENT_Place_of_exam);
|
Txt_EXAM_ANNOUNCEMENT_Place_of_exam);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
|
@ -1280,11 +1294,13 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Exam mode *****/
|
/***** Exam mode *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",
|
Frm_LabelColumn ("RT",
|
||||||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "ExamMode" :
|
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "ExamMode" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_EXAM_ANNOUNCEMENT_Mode);
|
Txt_EXAM_ANNOUNCEMENT_Mode);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
|
@ -1306,11 +1322,13 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Structure of the exam *****/
|
/***** Structure of the exam *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",
|
Frm_LabelColumn ("RT",
|
||||||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "Structure" :
|
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "Structure" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_EXAM_ANNOUNCEMENT_Structure_of_the_exam);
|
Txt_EXAM_ANNOUNCEMENT_Structure_of_the_exam);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
|
@ -1332,11 +1350,13 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Documentation required *****/
|
/***** Documentation required *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",
|
Frm_LabelColumn ("RT",
|
||||||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "DocRequired" :
|
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "DocRequired" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_EXAM_ANNOUNCEMENT_Documentation_required);
|
Txt_EXAM_ANNOUNCEMENT_Documentation_required);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
|
@ -1358,11 +1378,13 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Material required *****/
|
/***** Material required *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",
|
Frm_LabelColumn ("RT",
|
||||||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "MatRequired" :
|
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "MatRequired" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_EXAM_ANNOUNCEMENT_Material_required);
|
Txt_EXAM_ANNOUNCEMENT_Material_required);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
|
@ -1384,11 +1406,13 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Material allowed *****/
|
/***** Material allowed *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",
|
Frm_LabelColumn ("RT",
|
||||||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "MatAllowed" :
|
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "MatAllowed" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_EXAM_ANNOUNCEMENT_Material_allowed);
|
Txt_EXAM_ANNOUNCEMENT_Material_allowed);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
|
@ -1410,11 +1434,13 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
/***** Other information to students *****/
|
/***** Other information to students *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",
|
Frm_LabelColumn ("RT",
|
||||||
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "OtherInfo" :
|
TypeViewExamAnnouncement == Exa_FORM_VIEW ? "OtherInfo" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_EXAM_ANNOUNCEMENT_Other_information);
|
Txt_EXAM_ANNOUNCEMENT_Other_information);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"EXAM LT\"");
|
HTM_TD_Begin ("class=\"EXAM LT\"");
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
|
|
|
@ -8539,8 +8539,10 @@ static void Brw_PutFormToCreateALink (const char *FileNameToShow)
|
||||||
HTM_TABLE_Begin (NULL);
|
HTM_TABLE_Begin (NULL);
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","NewLinkURL",Txt_URL);
|
Frm_LabelColumn ("RT","NewLinkURL",Txt_URL);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_URL ("NewLinkURL","",false,
|
HTM_INPUT_URL ("NewLinkURL","",false,
|
||||||
"size=\"30\" required=\"required\"");
|
"size=\"30\" required=\"required\"");
|
||||||
|
@ -8551,11 +8553,13 @@ static void Brw_PutFormToCreateALink (const char *FileNameToShow)
|
||||||
/***** Link name *****/
|
/***** Link name *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
if (asprintf (&Label,"%s (%s): ",Txt_Save_as,Txt_optional) < 0)
|
if (asprintf (&Label,"%s (%s): ",Txt_Save_as,Txt_optional) < 0)
|
||||||
Lay_NotEnoughMemoryExit ();
|
Lay_NotEnoughMemoryExit ();
|
||||||
Frm_LabelColumn ("RT","NewLinkName",Label);
|
Frm_LabelColumn ("RT","NewLinkName",Label);
|
||||||
free (Label);
|
free (Label);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
HTM_INPUT_TEXT ("NewLinkName",Brw_MAX_CHARS_FOLDER,"",false,
|
HTM_INPUT_TEXT ("NewLinkName",Brw_MAX_CHARS_FOLDER,"",false,
|
||||||
"id=\"NewLinkName\" size=\"30\"");
|
"id=\"NewLinkName\" size=\"30\"");
|
||||||
|
@ -9602,8 +9606,10 @@ void Brw_ShowFileMetadata (void)
|
||||||
/***** Private or public? *****/
|
/***** Private or public? *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","PublicFile",Txt_Availability);
|
Frm_LabelColumn ("RT","PublicFile",Txt_Availability);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LT\"");
|
HTM_TD_Begin ("class=\"DAT LT\"");
|
||||||
if (ICanChangePublic) // I can change file to public
|
if (ICanChangePublic) // I can change file to public
|
||||||
{
|
{
|
||||||
|
@ -9627,8 +9633,10 @@ void Brw_ShowFileMetadata (void)
|
||||||
/***** License *****/
|
/***** License *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","License",Txt_License);
|
Frm_LabelColumn ("RT","License",Txt_License);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LT\"");
|
HTM_TD_Begin ("class=\"DAT LT\"");
|
||||||
if (ICanEdit) // I can edit file properties
|
if (ICanEdit) // I can edit file properties
|
||||||
{
|
{
|
||||||
|
|
|
@ -3829,8 +3829,10 @@ static void For_WriteFormForumPst (bool IsReply,const char *Subject)
|
||||||
/* Subject */
|
/* Subject */
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Subject",Txt_MSG_Subject);
|
Frm_LabelColumn ("RT","Subject",Txt_MSG_Subject);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_TEXT ("Subject",Cns_MAX_CHARS_SUBJECT,
|
HTM_INPUT_TEXT ("Subject",Cns_MAX_CHARS_SUBJECT,
|
||||||
IsReply ? Subject :
|
IsReply ? Subject :
|
||||||
|
@ -3843,8 +3845,10 @@ static void For_WriteFormForumPst (bool IsReply,const char *Subject)
|
||||||
/* Content */
|
/* Content */
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Content",Txt_MSG_Content);
|
Frm_LabelColumn ("RT","Content",Txt_MSG_Content);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"Content\" name=\"Content\" class=\"MSG_CONTENT\" rows=\"10\"");
|
HTM_TEXTAREA_Begin ("id=\"Content\" name=\"Content\" class=\"MSG_CONTENT\" rows=\"10\"");
|
||||||
HTM_TEXTAREA_End ();
|
HTM_TEXTAREA_End ();
|
||||||
|
|
|
@ -1288,8 +1288,10 @@ static void Gam_PutFormsEditionGame (struct Game *Game,bool ItsANewGame)
|
||||||
/***** Game title *****/
|
/***** Game title *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Title",Txt_Title);
|
Frm_LabelColumn ("RT","Title",Txt_Title);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_TEXT ("Title",Gam_MAX_CHARS_TITLE,Game->Title,false,
|
HTM_INPUT_TEXT ("Title",Gam_MAX_CHARS_TITLE,Game->Title,false,
|
||||||
"id=\"Title\" required=\"required\""
|
"id=\"Title\" required=\"required\""
|
||||||
|
@ -1315,8 +1317,10 @@ static void Gam_PutFormsEditionGame (struct Game *Game,bool ItsANewGame)
|
||||||
/***** Game text *****/
|
/***** Game text *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Txt",Txt_Description);
|
Frm_LabelColumn ("RT","Txt",Txt_Description);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" rows=\"5\""
|
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" rows=\"5\""
|
||||||
" class=\"TITLE_DESCRIPTION_WIDTH\"");
|
" class=\"TITLE_DESCRIPTION_WIDTH\"");
|
||||||
|
|
|
@ -93,12 +93,15 @@ void Hie_ConfigTitle (bool PutLink,
|
||||||
void Hie_ConfigFullName (bool PutForm,const char *Label,Act_Action_t NextAction,
|
void Hie_ConfigFullName (bool PutForm,const char *Label,Act_Action_t NextAction,
|
||||||
const char FullName[Hie_MAX_BYTES_FULL_NAME + 1])
|
const char FullName[Hie_MAX_BYTES_FULL_NAME + 1])
|
||||||
{
|
{
|
||||||
|
/***** Full name *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",PutForm ? "FullName" :
|
Frm_LabelColumn ("RM",PutForm ? "FullName" :
|
||||||
NULL,
|
NULL,
|
||||||
Label);
|
Label);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT_N LM\"");
|
HTM_TD_Begin ("class=\"DAT_N LM\"");
|
||||||
if (PutForm)
|
if (PutForm)
|
||||||
{
|
{
|
||||||
|
@ -124,12 +127,15 @@ void Hie_ConfigShrtName (bool PutForm,Act_Action_t NextAction,
|
||||||
{
|
{
|
||||||
extern const char *Txt_Short_name;
|
extern const char *Txt_Short_name;
|
||||||
|
|
||||||
|
/***** Short name *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",PutForm ? "ShortName" :
|
Frm_LabelColumn ("RM",PutForm ? "ShortName" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_Short_name);
|
Txt_Short_name);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT_N LM\"");
|
HTM_TD_Begin ("class=\"DAT_N LM\"");
|
||||||
if (PutForm)
|
if (PutForm)
|
||||||
{
|
{
|
||||||
|
@ -155,12 +161,15 @@ void Hie_ConfigWWW (bool PutForm,Act_Action_t NextAction,
|
||||||
{
|
{
|
||||||
extern const char *Txt_Web;
|
extern const char *Txt_Web;
|
||||||
|
|
||||||
|
/***** Web *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",PutForm ? "WWW" :
|
Frm_LabelColumn ("RM",PutForm ? "WWW" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_Web);
|
Txt_Web);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
if (PutForm)
|
if (PutForm)
|
||||||
{
|
{
|
||||||
|
@ -192,10 +201,13 @@ void Hie_ConfigShortcut (const char *ParamName,long HieCod)
|
||||||
extern const char *Lan_STR_LANG_ID[1 + Lan_NUM_LANGUAGES];
|
extern const char *Lan_STR_LANG_ID[1 + Lan_NUM_LANGUAGES];
|
||||||
extern const char *Txt_Shortcut;
|
extern const char *Txt_Shortcut;
|
||||||
|
|
||||||
|
/***** Short cut *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Shortcut);
|
Frm_LabelColumn ("RM",NULL,Txt_Shortcut);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_A_Begin ("href=\"%s/%s?%s=%ld\" class=\"DAT\" target=\"_blank\"",
|
HTM_A_Begin ("href=\"%s/%s?%s=%ld\" class=\"DAT\" target=\"_blank\"",
|
||||||
Cfg_URL_SWAD_CGI,
|
Cfg_URL_SWAD_CGI,
|
||||||
|
@ -219,10 +231,13 @@ void Hie_ConfigQR (const char *ParamName,long HieCod)
|
||||||
{
|
{
|
||||||
extern const char *Txt_QR_code;
|
extern const char *Txt_QR_code;
|
||||||
|
|
||||||
|
/***** QR *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",NULL,Txt_QR_code);
|
Frm_LabelColumn ("RT",NULL,Txt_QR_code);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LT\"");
|
HTM_TD_Begin ("class=\"DAT LT\"");
|
||||||
QR_LinkTo (250,ParamName,HieCod);
|
QR_LinkTo (250,ParamName,HieCod);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -273,8 +288,10 @@ void Hie_WriteMenuHierarchy (void)
|
||||||
with all the countries *****/
|
with all the countries *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","cty",Txt_Country);
|
Frm_LabelColumn ("RT","cty",Txt_Country);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Cty_WriteSelectorOfCountry ();
|
Cty_WriteSelectorOfCountry ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -287,8 +304,10 @@ void Hie_WriteMenuHierarchy (void)
|
||||||
with the institutions of selected country *****/
|
with the institutions of selected country *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","ins",Txt_Institution);
|
Frm_LabelColumn ("RT","ins",Txt_Institution);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Ins_WriteSelectorOfInstitution ();
|
Ins_WriteSelectorOfInstitution ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -301,8 +320,10 @@ void Hie_WriteMenuHierarchy (void)
|
||||||
with all the centres of selected institution *****/
|
with all the centres of selected institution *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","ctr",Txt_Centre);
|
Frm_LabelColumn ("RT","ctr",Txt_Centre);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Ctr_WriteSelectorOfCentre ();
|
Ctr_WriteSelectorOfCentre ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -315,8 +336,10 @@ void Hie_WriteMenuHierarchy (void)
|
||||||
with all the degrees of selected centre *****/
|
with all the degrees of selected centre *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","deg",Txt_Degree);
|
Frm_LabelColumn ("RT","deg",Txt_Degree);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Deg_WriteSelectorOfDegree ();
|
Deg_WriteSelectorOfDegree ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -329,8 +352,10 @@ void Hie_WriteMenuHierarchy (void)
|
||||||
with all the courses of selected degree *****/
|
with all the courses of selected degree *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","crs",Txt_Course);
|
Frm_LabelColumn ("RT","crs",Txt_Course);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Crs_WriteSelectorOfCourse ();
|
Crs_WriteSelectorOfCourse ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
|
@ -122,8 +122,10 @@ void Ind_ReqIndicatorsCourses (void)
|
||||||
/* Scope */
|
/* Scope */
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","ScopeInd",Txt_Scope);
|
Frm_LabelColumn ("RT","ScopeInd",Txt_Scope);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Sco_PutSelectorScope ("ScopeInd",true);
|
Sco_PutSelectorScope ("ScopeInd",true);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -133,8 +135,10 @@ void Ind_ReqIndicatorsCourses (void)
|
||||||
/* Compute stats for a type of degree */
|
/* Compute stats for a type of degree */
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","OthDegTypCod",Txt_Types_of_degree);
|
Frm_LabelColumn ("RT","OthDegTypCod",Txt_Types_of_degree);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LT\"");
|
HTM_TD_Begin ("class=\"DAT LT\"");
|
||||||
DT_WriteSelectorDegreeTypes ();
|
DT_WriteSelectorDegreeTypes ();
|
||||||
HTM_Txt (" (");
|
HTM_Txt (" (");
|
||||||
|
@ -147,8 +151,10 @@ void Ind_ReqIndicatorsCourses (void)
|
||||||
/* Compute stats for courses with teachers belonging to any department or to a particular departament? */
|
/* Compute stats for courses with teachers belonging to any department or to a particular departament? */
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",Dpt_PARAM_DPT_COD_NAME,Txt_Department);
|
Frm_LabelColumn ("RT",Dpt_PARAM_DPT_COD_NAME,Txt_Department);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Dpt_WriteSelectorDepartment (Gbl.Hierarchy.Ins.InsCod, // Departments in current insitution
|
Dpt_WriteSelectorDepartment (Gbl.Hierarchy.Ins.InsCod, // Departments in current insitution
|
||||||
Gbl.Stat.DptCod, // Selected department
|
Gbl.Stat.DptCod, // Selected department
|
||||||
|
|
|
@ -512,12 +512,15 @@ static void Ins_ConfigCountry (bool PutForm)
|
||||||
extern const char *Txt_Country;
|
extern const char *Txt_Country;
|
||||||
unsigned NumCty;
|
unsigned NumCty;
|
||||||
|
|
||||||
|
/***** Country *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",PutForm ? "OthCtyCod" :
|
Frm_LabelColumn ("RM",PutForm ? "OthCtyCod" :
|
||||||
NULL,
|
NULL,
|
||||||
Txt_Country);
|
Txt_Country);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
if (PutForm)
|
if (PutForm)
|
||||||
{
|
{
|
||||||
|
@ -604,10 +607,13 @@ static void Ins_ConfigNumUsrs (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Users_of_the_institution;
|
extern const char *Txt_Users_of_the_institution;
|
||||||
|
|
||||||
|
/***** Number of users *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Users_of_the_institution);
|
Frm_LabelColumn ("RM",NULL,Txt_Users_of_the_institution);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Unsigned (Usr_GetNumUsrsWhoClaimToBelongToIns (Gbl.Hierarchy.Ins.InsCod));
|
HTM_Unsigned (Usr_GetNumUsrsWhoClaimToBelongToIns (Gbl.Hierarchy.Ins.InsCod));
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -624,11 +630,13 @@ static void Ins_ConfigNumCtrs (void)
|
||||||
extern const char *Txt_Centres;
|
extern const char *Txt_Centres;
|
||||||
extern const char *Txt_Centres_of_INSTITUTION_X;
|
extern const char *Txt_Centres_of_INSTITUTION_X;
|
||||||
|
|
||||||
|
/***** Number of centres *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Centres);
|
Frm_LabelColumn ("RM",NULL,Txt_Centres);
|
||||||
|
|
||||||
/* Form to go to see centres of this institution */
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Frm_StartFormGoTo (ActSeeCtr);
|
Frm_StartFormGoTo (ActSeeCtr);
|
||||||
Ins_PutParamInsCod (Gbl.Hierarchy.Ins.InsCod);
|
Ins_PutParamInsCod (Gbl.Hierarchy.Ins.InsCod);
|
||||||
|
@ -655,8 +663,10 @@ static void Ins_ConfigNumDegs (void)
|
||||||
/***** Number of degrees *****/
|
/***** Number of degrees *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Degrees);
|
Frm_LabelColumn ("RM",NULL,Txt_Degrees);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Unsigned (Deg_GetNumDegsInIns (Gbl.Hierarchy.Ins.InsCod));
|
HTM_Unsigned (Deg_GetNumDegsInIns (Gbl.Hierarchy.Ins.InsCod));
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -672,10 +682,13 @@ static void Ins_ConfigNumCrss (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Courses;
|
extern const char *Txt_Courses;
|
||||||
|
|
||||||
|
/***** Number of courses *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Courses);
|
Frm_LabelColumn ("RM",NULL,Txt_Courses);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Unsigned (Crs_GetNumCrssInIns (Gbl.Hierarchy.Ins.InsCod));
|
HTM_Unsigned (Crs_GetNumCrssInIns (Gbl.Hierarchy.Ins.InsCod));
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -691,10 +704,13 @@ static void Ins_ConfigNumDpts (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Departments;
|
extern const char *Txt_Departments;
|
||||||
|
|
||||||
|
/***** Number of departments *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,Txt_Departments);
|
Frm_LabelColumn ("RM",NULL,Txt_Departments);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Unsigned (Dpt_GetNumDepartmentsInInstitution (Gbl.Hierarchy.Ins.InsCod));
|
HTM_Unsigned (Dpt_GetNumDepartmentsInInstitution (Gbl.Hierarchy.Ins.InsCod));
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -711,12 +727,15 @@ static void Ins_ShowNumUsrsInCrssOfIns (Rol_Role_t Role)
|
||||||
extern const char *Txt_Users_in_courses;
|
extern const char *Txt_Users_in_courses;
|
||||||
extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
||||||
|
|
||||||
|
/***** Number of users in courses *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RM",NULL,
|
Frm_LabelColumn ("RM",NULL,
|
||||||
Role == Rol_UNK ? Txt_Users_in_courses :
|
Role == Rol_UNK ? Txt_Users_in_courses :
|
||||||
Txt_ROLES_PLURAL_Abc[Role][Usr_SEX_UNKNOWN]);
|
Txt_ROLES_PLURAL_Abc[Role][Usr_SEX_UNKNOWN]);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||||
HTM_Unsigned (Usr_GetNumUsrsInCrssOfIns (Role,Gbl.Hierarchy.Ins.InsCod));
|
HTM_Unsigned (Usr_GetNumUsrsInCrssOfIns (Role,Gbl.Hierarchy.Ins.InsCod));
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
|
@ -1260,16 +1260,20 @@ static void Mai_ShowFormChangeUsrEmail (const struct UsrData *UsrDat,bool ItsMe,
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* The first mail is the current one */
|
/* The first mail is the current one */
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RT",NULL,Txt_Current_email);
|
Frm_LabelColumn ("REC_C1_BOT RT",NULL,Txt_Current_email);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT USR_ID\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT USR_ID\"");
|
||||||
}
|
}
|
||||||
else if (NumEmail == 2)
|
else if (NumEmail == 2)
|
||||||
{
|
{
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RT",NULL,Txt_Other_emails);
|
Frm_LabelColumn ("REC_C1_BOT RT",NULL,Txt_Other_emails);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1353,10 +1357,12 @@ static void Mai_ShowFormChangeUsrEmail (const struct UsrData *UsrDat,bool ItsMe,
|
||||||
/***** Form to enter new email *****/
|
/***** Form to enter new email *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RT","NewEmail",
|
Frm_LabelColumn ("REC_C1_BOT RT","NewEmail",
|
||||||
NumEmails ? Txt_New_email : // A new email
|
NumEmails ? Txt_New_email : // A new email
|
||||||
Txt_Email); // The first email
|
Txt_Email); // The first email
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT\"");
|
||||||
if (ItsMe)
|
if (ItsMe)
|
||||||
Frm_StartFormAnchor (ActChgMyMai,Mai_EMAIL_SECTION_ID);
|
Frm_StartFormAnchor (ActChgMyMai,Mai_EMAIL_SECTION_ID);
|
||||||
|
|
|
@ -1243,8 +1243,10 @@ static void Mch_PutFormNewMatch (const struct Game *Game)
|
||||||
/***** Match title *****/
|
/***** Match title *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Title",Txt_Title);
|
Frm_LabelColumn ("RT","Title",Txt_Title);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_TEXT ("Title",Gam_MAX_CHARS_TITLE,Game->Title,false,
|
HTM_INPUT_TEXT ("Title",Gam_MAX_CHARS_TITLE,Game->Title,false,
|
||||||
"id=\"Title\" size=\"45\" required=\"required\"");
|
"id=\"Title\" size=\"45\" required=\"required\"");
|
||||||
|
|
|
@ -534,8 +534,10 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (char Content[Cns_MAX_BYTES_
|
||||||
/***** Message subject *****/
|
/***** Message subject *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","MsgSubject",Txt_MSG_Subject);
|
Frm_LabelColumn ("RT","MsgSubject",Txt_MSG_Subject);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"MsgSubject\" name=\"Subject\""
|
HTM_TEXTAREA_Begin ("id=\"MsgSubject\" name=\"Subject\""
|
||||||
" class=\"MSG_SUBJECT\" rows=\"2\"");
|
" class=\"MSG_SUBJECT\" rows=\"2\"");
|
||||||
|
@ -581,8 +583,10 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (char Content[Cns_MAX_BYTES_
|
||||||
/***** Message content *****/
|
/***** Message content *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","MsgContent",Txt_MSG_Content);
|
Frm_LabelColumn ("RT","MsgContent",Txt_MSG_Content);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"MsgContent\" name=\"Content\""
|
HTM_TEXTAREA_Begin ("id=\"MsgContent\" name=\"Content\""
|
||||||
" class=\"MSG_CONTENT\" rows=\"20\"");
|
" class=\"MSG_CONTENT\" rows=\"20\"");
|
||||||
|
@ -611,8 +615,10 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (char Content[Cns_MAX_BYTES_
|
||||||
/***** Message content *****/
|
/***** Message content *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","MsgContent",Txt_MSG_Content);
|
Frm_LabelColumn ("RT","MsgContent",Txt_MSG_Content);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"MsgContent\" name=\"Content\""
|
HTM_TEXTAREA_Begin ("id=\"MsgContent\" name=\"Content\""
|
||||||
" class=\"MSG_CONTENT\" rows=\"20\"");
|
" class=\"MSG_CONTENT\" rows=\"20\"");
|
||||||
|
|
|
@ -273,8 +273,10 @@ static void Nck_ShowFormChangeUsrNickname (const struct UsrData *UsrDat,bool Its
|
||||||
/* The first nickname is the current one */
|
/* The first nickname is the current one */
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RT",NULL,Txt_Current_nickname);
|
Frm_LabelColumn ("REC_C1_BOT RT",NULL,Txt_Current_nickname);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT USR_ID\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT USR_ID\"");
|
||||||
}
|
}
|
||||||
else // NumNick >= 2
|
else // NumNick >= 2
|
||||||
|
@ -283,8 +285,10 @@ static void Nck_ShowFormChangeUsrNickname (const struct UsrData *UsrDat,bool Its
|
||||||
{
|
{
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RT",NULL,Txt_Other_nicknames);
|
Frm_LabelColumn ("REC_C1_BOT RT",NULL,Txt_Other_nicknames);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -367,10 +371,12 @@ static void Nck_ShowFormChangeUsrNickname (const struct UsrData *UsrDat,bool Its
|
||||||
/***** Form to enter new nickname *****/
|
/***** Form to enter new nickname *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RT","NewNick",
|
Frm_LabelColumn ("REC_C1_BOT RT","NewNick",
|
||||||
NumNicks ? Txt_New_nickname : // A new nickname
|
NumNicks ? Txt_New_nickname : // A new nickname
|
||||||
Txt_Nickname); // The first nickname
|
Txt_Nickname); // The first nickname
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LT DAT\"");
|
||||||
if (ItsMe)
|
if (ItsMe)
|
||||||
Frm_StartFormAnchor (ActChgMyNck,Nck_NICKNAME_SECTION_ID);
|
Frm_StartFormAnchor (ActChgMyNck,Nck_NICKNAME_SECTION_ID);
|
||||||
|
|
|
@ -684,8 +684,10 @@ void Pwd_ShowFormChgMyPwd (void)
|
||||||
{
|
{
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RM","UsrPwd",Txt_Current_password);
|
Frm_LabelColumn ("REC_C1_BOT RM","UsrPwd",Txt_Current_password);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LM\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LM\"");
|
||||||
HTM_INPUT_PASSWORD ("UsrPwd",NULL,"off",true,
|
HTM_INPUT_PASSWORD ("UsrPwd",NULL,"off",true,
|
||||||
"id=\"UsrPwd\"");
|
"id=\"UsrPwd\"");
|
||||||
|
@ -727,12 +729,13 @@ void Pwd_PutFormToGetNewPasswordOnce (void)
|
||||||
extern const char *Txt_Password;
|
extern const char *Txt_Password;
|
||||||
extern const char *Txt_HELP_password;
|
extern const char *Txt_HELP_password;
|
||||||
|
|
||||||
|
/***** Password *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/***** Label ****/
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Paswd",Txt_Password);
|
Frm_LabelColumn ("RT","Paswd",Txt_Password);
|
||||||
|
|
||||||
/***** Input ****/
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_PASSWORD ("Paswd",Txt_HELP_password,NULL,true,
|
HTM_INPUT_PASSWORD ("Paswd",Txt_HELP_password,NULL,true,
|
||||||
"id=\"Paswd\"");
|
"id=\"Paswd\"");
|
||||||
|
@ -753,13 +756,12 @@ void Pwd_PutFormToGetNewPasswordTwice (void)
|
||||||
extern const char *Txt_HELP_password;
|
extern const char *Txt_HELP_password;
|
||||||
|
|
||||||
/***** 1st password *****/
|
/***** 1st password *****/
|
||||||
/* Begin form element */
|
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RM","Paswd1",Txt_New_password);
|
Frm_LabelColumn ("REC_C1_BOT RM","Paswd1",Txt_New_password);
|
||||||
|
|
||||||
/* Input */
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LM\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LM\"");
|
||||||
HTM_INPUT_PASSWORD ("Paswd1",Txt_HELP_password,NULL,true,
|
HTM_INPUT_PASSWORD ("Paswd1",Txt_HELP_password,NULL,true,
|
||||||
"id=\"Paswd1\"");
|
"id=\"Paswd1\"");
|
||||||
|
@ -768,13 +770,12 @@ void Pwd_PutFormToGetNewPasswordTwice (void)
|
||||||
HTM_TR_End ();
|
HTM_TR_End ();
|
||||||
|
|
||||||
/***** 2nd password *****/
|
/***** 2nd password *****/
|
||||||
/* Begin form element */
|
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
Frm_LabelColumn ("REC_C1_BOT RM","Paswd2",Txt_Retype_new_password);
|
Frm_LabelColumn ("REC_C1_BOT RM","Paswd2",Txt_Retype_new_password);
|
||||||
|
|
||||||
/* Input */
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"REC_C2_BOT LM\"");
|
HTM_TD_Begin ("class=\"REC_C2_BOT LM\"");
|
||||||
HTM_INPUT_PASSWORD ("Paswd2",Txt_HELP_password,NULL,true,
|
HTM_INPUT_PASSWORD ("Paswd2",Txt_HELP_password,NULL,true,
|
||||||
"id=\"Paswd2\"");
|
"id=\"Paswd2\"");
|
||||||
|
|
|
@ -1790,10 +1790,13 @@ static void Pho_PutSelectorForTypeOfAvg (void)
|
||||||
Pho_AvgPhotoTypeOfAverage_t TypeOfAvg;
|
Pho_AvgPhotoTypeOfAverage_t TypeOfAvg;
|
||||||
unsigned TypeOfAvgUnsigned;
|
unsigned TypeOfAvgUnsigned;
|
||||||
|
|
||||||
|
/***** Type of average *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","AvgType",Txt_Average_type);
|
Frm_LabelColumn ("RT","AvgType",Txt_Average_type);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Frm_StartForm (ActSeePhoDeg);
|
Frm_StartForm (ActSeePhoDeg);
|
||||||
Pho_PutHiddenParamPhotoSize ();
|
Pho_PutHiddenParamPhotoSize ();
|
||||||
|
@ -1851,10 +1854,13 @@ static void Pho_PutSelectorForHowComputePhotoSize (void)
|
||||||
Pho_HowComputePhotoSize_t PhoSi;
|
Pho_HowComputePhotoSize_t PhoSi;
|
||||||
unsigned PhoSiUnsigned;
|
unsigned PhoSiUnsigned;
|
||||||
|
|
||||||
|
/***** Photo size *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","PhotoSize",Txt_Size_of_photos);
|
Frm_LabelColumn ("RT","PhotoSize",Txt_Size_of_photos);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Frm_StartForm (ActSeePhoDeg);
|
Frm_StartForm (ActSeePhoDeg);
|
||||||
Pho_PutHiddenParamTypeOfAvg ();
|
Pho_PutHiddenParamTypeOfAvg ();
|
||||||
|
@ -1912,10 +1918,13 @@ static void Pho_PutSelectorForHowOrderDegrees (void)
|
||||||
Pho_HowOrderDegrees_t Order;
|
Pho_HowOrderDegrees_t Order;
|
||||||
unsigned OrderUnsigned;
|
unsigned OrderUnsigned;
|
||||||
|
|
||||||
|
/***** Order *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Order",Txt_Sort_degrees_by);
|
Frm_LabelColumn ("RT","Order",Txt_Sort_degrees_by);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Frm_StartForm (ActSeePhoDeg);
|
Frm_StartForm (ActSeePhoDeg);
|
||||||
Pho_PutHiddenParamTypeOfAvg ();
|
Pho_PutHiddenParamTypeOfAvg ();
|
||||||
|
|
|
@ -3471,8 +3471,10 @@ static void Prj_PutFormProject (struct Project *Prj,bool ItsANewProject)
|
||||||
/* Project title */
|
/* Project title */
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Title",Txt_Title);
|
Frm_LabelColumn ("RT","Title",Txt_Title);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_TEXT ("Title",Prj_MAX_CHARS_PROJECT_TITLE,Prj->Title,false,
|
HTM_INPUT_TEXT ("Title",Prj_MAX_CHARS_PROJECT_TITLE,Prj->Title,false,
|
||||||
"id=\"Title\" required=\"required\""
|
"id=\"Title\" required=\"required\""
|
||||||
|
@ -3484,8 +3486,10 @@ static void Prj_PutFormProject (struct Project *Prj,bool ItsANewProject)
|
||||||
/* Department */
|
/* Department */
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",Dpt_PARAM_DPT_COD_NAME,Txt_Department);
|
Frm_LabelColumn ("RT",Dpt_PARAM_DPT_COD_NAME,Txt_Department);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Dpt_WriteSelectorDepartment (Gbl.Hierarchy.Ins.InsCod, // Departments in current institution
|
Dpt_WriteSelectorDepartment (Gbl.Hierarchy.Ins.InsCod, // Departments in current institution
|
||||||
Prj->DptCod, // Selected department
|
Prj->DptCod, // Selected department
|
||||||
|
@ -3572,8 +3576,10 @@ static void Prj_PutFormProject (struct Project *Prj,bool ItsANewProject)
|
||||||
/* URL for additional info */
|
/* URL for additional info */
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","WWW",Txt_URL);
|
Frm_LabelColumn ("RT","WWW",Txt_URL);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"DAT LT\"");
|
HTM_TD_Begin ("class=\"DAT LT\"");
|
||||||
HTM_INPUT_URL ("URL",Prj->URL,false,
|
HTM_INPUT_URL ("URL",Prj->URL,false,
|
||||||
"class=\"TITLE_DESCRIPTION_WIDTH\"");
|
"class=\"TITLE_DESCRIPTION_WIDTH\"");
|
||||||
|
@ -3604,10 +3610,13 @@ static void Prj_EditOneProjectTxtArea (const char *Id,
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormInBox[The_NUM_THEMES];
|
extern const char *The_ClassFormInBox[The_NUM_THEMES];
|
||||||
|
|
||||||
|
/***** Description *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT",Id,Label);
|
Frm_LabelColumn ("RT",Id,Label);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"%s\" name=\"%s\" rows=\"%u\"%s"
|
HTM_TEXTAREA_Begin ("id=\"%s\" name=\"%s\" rows=\"%u\"%s"
|
||||||
" class=\"TITLE_DESCRIPTION_WIDTH\"",
|
" class=\"TITLE_DESCRIPTION_WIDTH\"",
|
||||||
|
@ -3904,8 +3913,10 @@ void Prj_ShowFormConfig (void)
|
||||||
HTM_TABLE_BeginCenterPadding (2);
|
HTM_TABLE_BeginCenterPadding (2);
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Editable",Txt_Editable);
|
Frm_LabelColumn ("RT","Editable",Txt_Editable);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_CHECKBOX ("Editable",false,
|
HTM_INPUT_CHECKBOX ("Editable",false,
|
||||||
"id=\"Editable\" value=\"Y\"%s",
|
"id=\"Editable\" value=\"Y\"%s",
|
||||||
|
|
|
@ -2791,6 +2791,7 @@ static void Rec_ShowEmail (struct UsrData *UsrDat)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Email;
|
extern const char *Txt_Email;
|
||||||
|
|
||||||
|
/***** Email *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -2824,6 +2825,7 @@ static void Rec_ShowUsrIDs (struct UsrData *UsrDat,const char *Anchor)
|
||||||
{
|
{
|
||||||
extern const char *Txt_ID;
|
extern const char *Txt_ID;
|
||||||
|
|
||||||
|
/***** User's IDs *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3272,6 +3274,7 @@ static void Rec_ShowOriginPlace (struct UsrData *UsrDat,bool ShowData,bool PutFo
|
||||||
{
|
{
|
||||||
extern const char *Txt_Place_of_origin;
|
extern const char *Txt_Place_of_origin;
|
||||||
|
|
||||||
|
/***** Origin place *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3303,6 +3306,7 @@ static void Rec_ShowDateOfBirth (struct UsrData *UsrDat,bool ShowData,bool PutFo
|
||||||
{
|
{
|
||||||
extern const char *Txt_Date_of_birth;
|
extern const char *Txt_Date_of_birth;
|
||||||
|
|
||||||
|
/***** Date of birth *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3336,6 +3340,7 @@ static void Rec_ShowLocalAddress (struct UsrData *UsrDat,bool ShowData,bool PutF
|
||||||
{
|
{
|
||||||
extern const char *Txt_Local_address;
|
extern const char *Txt_Local_address;
|
||||||
|
|
||||||
|
/***** Local address *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3367,6 +3372,7 @@ static void Rec_ShowLocalPhone (struct UsrData *UsrDat,bool ShowData,bool PutFor
|
||||||
{
|
{
|
||||||
extern const char *Txt_Phone;
|
extern const char *Txt_Phone;
|
||||||
|
|
||||||
|
/***** Local phone *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3401,6 +3407,7 @@ static void Rec_ShowFamilyAddress (struct UsrData *UsrDat,bool ShowData,bool Put
|
||||||
{
|
{
|
||||||
extern const char *Txt_Family_address;
|
extern const char *Txt_Family_address;
|
||||||
|
|
||||||
|
/***** Family address *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3432,6 +3439,7 @@ static void Rec_ShowFamilyPhone (struct UsrData *UsrDat,bool ShowData,bool PutFo
|
||||||
{
|
{
|
||||||
extern const char *Txt_Phone;
|
extern const char *Txt_Phone;
|
||||||
|
|
||||||
|
/***** Family phone *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3466,6 +3474,7 @@ static void Rec_ShowComments (struct UsrData *UsrDat,bool ShowData,bool PutForm)
|
||||||
{
|
{
|
||||||
extern const char *Txt_USER_comments;
|
extern const char *Txt_USER_comments;
|
||||||
|
|
||||||
|
/***** Comments *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3527,6 +3536,7 @@ static void Rec_ShowInstitution (struct Instit *Ins,bool ShowData)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Institution;
|
extern const char *Txt_Institution;
|
||||||
|
|
||||||
|
/***** Institution *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3558,6 +3568,7 @@ static void Rec_ShowCentre (struct UsrData *UsrDat,bool ShowData)
|
||||||
extern const char *Txt_Centre;
|
extern const char *Txt_Centre;
|
||||||
struct Centre Ctr;
|
struct Centre Ctr;
|
||||||
|
|
||||||
|
/***** Centre *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3593,6 +3604,7 @@ static void Rec_ShowDepartment (struct UsrData *UsrDat,bool ShowData)
|
||||||
extern const char *Txt_Department;
|
extern const char *Txt_Department;
|
||||||
struct Department Dpt;
|
struct Department Dpt;
|
||||||
|
|
||||||
|
/***** Department *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3627,6 +3639,7 @@ static void Rec_ShowOffice (struct UsrData *UsrDat,bool ShowData)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Office;
|
extern const char *Txt_Office;
|
||||||
|
|
||||||
|
/***** Office *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -3649,6 +3662,7 @@ static void Rec_ShowOfficePhone (struct UsrData *UsrDat,bool ShowData)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Phone;
|
extern const char *Txt_Phone;
|
||||||
|
|
||||||
|
/***** Office phone *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -4099,7 +4113,7 @@ static void Rec_ShowFormMyInsCtrDpt (bool IAmATeacher)
|
||||||
|
|
||||||
HTM_TR_End ();
|
HTM_TR_End ();
|
||||||
|
|
||||||
/***** Phone *****/
|
/***** Office phone *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
|
|
@ -427,8 +427,10 @@ void Sta_AskShowGblHits (void)
|
||||||
/***** Users' roles whose accesses we want to see *****/
|
/***** Users' roles whose accesses we want to see *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Role",Txt_Users);
|
Frm_LabelColumn ("RT","Role",Txt_Users);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_SELECT_Begin (false,
|
HTM_SELECT_Begin (false,
|
||||||
"id=\"Role\" name=\"Role\" class=\"STAT_SEL\"");
|
"id=\"Role\" name=\"Role\" class=\"STAT_SEL\"");
|
||||||
|
@ -452,8 +454,10 @@ void Sta_AskShowGblHits (void)
|
||||||
/***** Clicks made from anywhere, current centre, current degree or current course *****/
|
/***** Clicks made from anywhere, current centre, current degree or current course *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","ScopeSta",Txt_Scope);
|
Frm_LabelColumn ("RT","ScopeSta",Txt_Scope);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Gbl.Scope.Allowed = 1 << Hie_SYS |
|
Gbl.Scope.Allowed = 1 << Hie_SYS |
|
||||||
1 << Hie_CTY |
|
1 << Hie_CTY |
|
||||||
|
@ -471,8 +475,10 @@ void Sta_AskShowGblHits (void)
|
||||||
/***** Count type for the statistic *****/
|
/***** Count type for the statistic *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","CountType",Txt_Show);
|
Frm_LabelColumn ("RT","CountType",Txt_Show);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Sta_WriteSelectorCountType ();
|
Sta_WriteSelectorCountType ();
|
||||||
|
|
||||||
|
@ -576,7 +582,7 @@ static void Sta_WriteSelectorCountType (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/****** Put selectors for type of access count and for degree or course ******/
|
/******************** Put selector for type of action ************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void Sta_WriteSelectorAction (void)
|
static void Sta_WriteSelectorAction (void)
|
||||||
|
@ -590,8 +596,10 @@ static void Sta_WriteSelectorAction (void)
|
||||||
Tab_Tab_t Tab;
|
Tab_Tab_t Tab;
|
||||||
char ActTxt[Act_MAX_BYTES_ACTION_TXT + 1];
|
char ActTxt[Act_MAX_BYTES_ACTION_TXT + 1];
|
||||||
|
|
||||||
|
/***** Action *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","StatAct",Txt_Action);
|
Frm_LabelColumn ("RT","StatAct",Txt_Action);
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
|
|
|
@ -1863,8 +1863,10 @@ void Svy_RequestCreatOrEditSvy (void)
|
||||||
/***** Scope of the survey *****/
|
/***** Scope of the survey *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","ScopeSvy",Txt_Scope);
|
Frm_LabelColumn ("RT","ScopeSvy",Txt_Scope);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
Svy_SetDefaultAndAllowedScope (&Svy);
|
Svy_SetDefaultAndAllowedScope (&Svy);
|
||||||
Sco_GetScope ("ScopeSvy");
|
Sco_GetScope ("ScopeSvy");
|
||||||
|
@ -1876,8 +1878,10 @@ void Svy_RequestCreatOrEditSvy (void)
|
||||||
/***** Survey title *****/
|
/***** Survey title *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Title",Txt_Title);
|
Frm_LabelColumn ("RT","Title",Txt_Title);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_TEXT ("Title",Svy_MAX_CHARS_SURVEY_TITLE,Svy.Title,false,
|
HTM_INPUT_TEXT ("Title",Svy_MAX_CHARS_SURVEY_TITLE,Svy.Title,false,
|
||||||
"id=\"Title\" required=\"required\""
|
"id=\"Title\" required=\"required\""
|
||||||
|
@ -1892,8 +1896,10 @@ void Svy_RequestCreatOrEditSvy (void)
|
||||||
/***** Survey text *****/
|
/***** Survey text *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Txt",Txt_Description);
|
Frm_LabelColumn ("RT","Txt",Txt_Description);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" rows=\"5\""
|
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" rows=\"5\""
|
||||||
" class=\"TITLE_DESCRIPTION_WIDTH\"");
|
" class=\"TITLE_DESCRIPTION_WIDTH\"");
|
||||||
|
@ -2680,8 +2686,10 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,
|
||||||
/***** Stem *****/
|
/***** Stem *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Txt",Txt_Wording);
|
Frm_LabelColumn ("RT","Txt",Txt_Wording);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" cols=\"60\" rows=\"4\"");
|
HTM_TEXTAREA_Begin ("id=\"Txt\" name=\"Txt\" cols=\"60\" rows=\"4\"");
|
||||||
HTM_Txt (Txt);
|
HTM_Txt (Txt);
|
||||||
|
|
|
@ -336,8 +336,10 @@ void Tst_ShowFormAskTst (void)
|
||||||
/***** Number of questions to generate ****/
|
/***** Number of questions to generate ****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","NumQst",Txt_No_of_questions);
|
Frm_LabelColumn ("RT","NumQst",Txt_No_of_questions);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_INPUT_LONG ("NumQst",
|
HTM_INPUT_LONG ("NumQst",
|
||||||
(long) Gbl.Test.Config.Min,
|
(long) Gbl.Test.Config.Min,
|
||||||
|
@ -1947,9 +1949,11 @@ static void Tst_ShowFormConfigTst (void)
|
||||||
/***** Minimum time between consecutive tests, per question *****/
|
/***** Minimum time between consecutive tests, per question *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","MinTimeNxtTstPerQst",
|
Frm_LabelColumn ("RT","MinTimeNxtTstPerQst",
|
||||||
Txt_Minimum_time_seconds_per_question_between_two_tests);
|
Txt_Minimum_time_seconds_per_question_between_two_tests);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LB\"");
|
HTM_TD_Begin ("class=\"LB\"");
|
||||||
snprintf (StrMinTimeNxtTstPerQst,sizeof (StrMinTimeNxtTstPerQst),
|
snprintf (StrMinTimeNxtTstPerQst,sizeof (StrMinTimeNxtTstPerQst),
|
||||||
"%lu",
|
"%lu",
|
||||||
|
@ -5194,8 +5198,10 @@ static void Tst_PutFormEditOneQst (char Stem[Cns_MAX_BYTES_TEXT + 1],
|
||||||
/***** Stem and image *****/
|
/***** Stem and image *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
|
/* Label */
|
||||||
Frm_LabelColumn ("RT","Stem",Txt_Wording);
|
Frm_LabelColumn ("RT","Stem",Txt_Wording);
|
||||||
|
|
||||||
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"Stem\" name=\"Stem\" class=\"STEM_TEXTAREA\""
|
HTM_TEXTAREA_Begin ("id=\"Stem\" name=\"Stem\" class=\"STEM_TEXTAREA\""
|
||||||
" rows=\"5\" required=\"required\"");
|
" rows=\"5\" required=\"required\"");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user