mirror of https://github.com/acanas/swad-core.git
Version19.51.11
This commit is contained in:
parent
8191ed5790
commit
0a40454961
12
swad_HTML.c
12
swad_HTML.c
|
@ -795,7 +795,7 @@ void HTM_LABEL_End (void)
|
|||
/************************* Input text, email, url ****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void HTM_INPUT_TEXT (const char *Name,unsigned MaxLength,const char *Value,
|
||||
void HTM_INPUT_TEXT (const char *Name,unsigned MaxLength,const char *Value,bool SubmitOnChange,
|
||||
const char *fmt,...)
|
||||
{
|
||||
va_list ap;
|
||||
|
@ -826,6 +826,10 @@ void HTM_INPUT_TEXT (const char *Name,unsigned MaxLength,const char *Value,
|
|||
}
|
||||
}
|
||||
|
||||
if (SubmitOnChange)
|
||||
fprintf (Gbl.F.Out," onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
|
||||
fprintf (Gbl.F.Out," />");
|
||||
}
|
||||
|
||||
|
@ -863,7 +867,7 @@ void HTM_INPUT_EMAIL (const char *Name,unsigned MaxLength,const char *Value,
|
|||
fprintf (Gbl.F.Out," />");
|
||||
}
|
||||
|
||||
void HTM_INPUT_URL (const char *Name,const char *Value,
|
||||
void HTM_INPUT_URL (const char *Name,const char *Value,bool SubmitOnChange,
|
||||
const char *fmt,...)
|
||||
{
|
||||
va_list ap;
|
||||
|
@ -894,6 +898,10 @@ void HTM_INPUT_URL (const char *Name,const char *Value,
|
|||
}
|
||||
}
|
||||
|
||||
if (SubmitOnChange)
|
||||
fprintf (Gbl.F.Out," onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
|
||||
fprintf (Gbl.F.Out," />");
|
||||
}
|
||||
|
||||
|
|
|
@ -89,11 +89,11 @@ void HTM_SCRIPT_End (void);
|
|||
void HTM_LABEL_Begin (const char *fmt,...);
|
||||
void HTM_LABEL_End (void);
|
||||
|
||||
void HTM_INPUT_TEXT (const char *Name,unsigned MaxLength,const char *Value,
|
||||
void HTM_INPUT_TEXT (const char *Name,unsigned MaxLength,const char *Value,bool SubmitOnChange,
|
||||
const char *fmt,...);
|
||||
void HTM_INPUT_EMAIL (const char *Name,unsigned MaxLength,const char *Value,
|
||||
const char *fmt,...);
|
||||
void HTM_INPUT_URL (const char *Name,const char *Value,
|
||||
void HTM_INPUT_URL (const char *Name,const char *Value,bool SubmitOnChange,
|
||||
const char *fmt,...);
|
||||
void HTM_INPUT_FILE (const char *Accept,bool SubmitOnChange);
|
||||
|
||||
|
|
|
@ -716,6 +716,7 @@ static void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,
|
|||
HTM_INPUT_TEXT ("NewID",ID_MAX_BYTES_USR_ID,
|
||||
UsrDat->IDs.Num ? UsrDat->IDs.List[UsrDat->IDs.Num - 1].ID :
|
||||
"", // Show the most recent ID
|
||||
false,
|
||||
"size=\"18\"");
|
||||
fprintf (Gbl.F.Out,"<br />");
|
||||
Btn_PutCreateButtonInline (Txt_Add_this_ID);
|
||||
|
|
|
@ -151,7 +151,7 @@ static void Acc_ShowFormCheckIfIHaveAccount (const char *Title)
|
|||
Frm_StartForm (ActChkUsrAcc);
|
||||
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"%s: ",Txt_ID);
|
||||
HTM_INPUT_TEXT ("ID",ID_MAX_CHARS_USR_ID,"",
|
||||
HTM_INPUT_TEXT ("ID",ID_MAX_CHARS_USR_ID,"",false,
|
||||
"size=\"18\" required=\"required\"");
|
||||
HTM_LABEL_End ();
|
||||
Btn_PutCreateButtonInline (Txt_Check);
|
||||
|
@ -372,7 +372,7 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
|
|||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("NewNick",1 + Nck_MAX_CHARS_NICKNAME_WITHOUT_ARROBA,
|
||||
NewNicknameWithArroba,
|
||||
NewNicknameWithArroba,false,
|
||||
"size=\"18\" placeholder=\"%s\" required=\"required\"",
|
||||
Txt_HELP_nickname);
|
||||
HTM_TD_End ();
|
||||
|
|
|
@ -1506,7 +1506,7 @@ void Agd_RequestCreatOrEditEvent (void)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("Event",Agd_MAX_CHARS_EVENT,AgdEvent.Event,
|
||||
HTM_INPUT_TEXT ("Event",Agd_MAX_CHARS_EVENT,AgdEvent.Event,false,
|
||||
"size=\"45\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -1522,7 +1522,7 @@ void Agd_RequestCreatOrEditEvent (void)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("Location",Agd_MAX_CHARS_LOCATION,AgdEvent.Location,
|
||||
HTM_INPUT_TEXT ("Location",Agd_MAX_CHARS_LOCATION,AgdEvent.Location,false,
|
||||
"size=\"45\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -1173,7 +1173,7 @@ void Asg_RequestCreatOrEditAsg (void)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("Title",Asg_MAX_CHARS_ASSIGNMENT_TITLE,Asg.Title,
|
||||
HTM_INPUT_TEXT ("Title",Asg_MAX_CHARS_ASSIGNMENT_TITLE,Asg.Title,false,
|
||||
"size=\"45\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -1192,7 +1192,7 @@ void Asg_RequestCreatOrEditAsg (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_LABEL_Begin ("class=\"DAT\"");
|
||||
fprintf (Gbl.F.Out,"%s:",Txt_Folder);
|
||||
HTM_INPUT_TEXT ("Folder",Brw_MAX_CHARS_FOLDER,Asg.Folder,
|
||||
HTM_INPUT_TEXT ("Folder",Brw_MAX_CHARS_FOLDER,Asg.Folder,false,
|
||||
"size=\"30\"");
|
||||
HTM_LABEL_End ();
|
||||
HTM_TD_End ();
|
||||
|
|
|
@ -1110,7 +1110,7 @@ void Att_RequestCreatOrEditAttEvent (void)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LT\"");
|
||||
HTM_INPUT_TEXT ("Title",Att_MAX_CHARS_ATTENDANCE_EVENT_TITLE,Att.Title,
|
||||
HTM_INPUT_TEXT ("Title",Att_MAX_CHARS_ATTENDANCE_EVENT_TITLE,Att.Title,false,
|
||||
"size=\"45\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -445,10 +445,8 @@ static void Ban_ListBannersForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenBanSho);
|
||||
Ban_PutParamBanCodToEdit ();
|
||||
HTM_INPUT_TEXT ("ShortName",Ban_MAX_CHARS_SHRT_NAME,Ban->ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Ban_MAX_CHARS_SHRT_NAME,Ban->ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -456,10 +454,8 @@ static void Ban_ListBannersForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenBanFul);
|
||||
Ban_PutParamBanCodToEdit ();
|
||||
HTM_INPUT_TEXT ("FullName",Ban_MAX_CHARS_FULL_NAME,Ban->FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Ban_MAX_CHARS_FULL_NAME,Ban->FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -467,10 +463,8 @@ static void Ban_ListBannersForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActChgBanImg);
|
||||
Ban_PutParamBanCodToEdit ();
|
||||
HTM_INPUT_TEXT ("Img",Ban_MAX_CHARS_IMAGE,Ban->Img,
|
||||
"size=\"12\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Img",Ban_MAX_CHARS_IMAGE,Ban->Img,true,
|
||||
"size=\"12\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -478,10 +472,8 @@ static void Ban_ListBannersForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActChgBanWWW);
|
||||
Ban_PutParamBanCodToEdit ();
|
||||
HTM_INPUT_URL ("WWW",Ban->WWW,
|
||||
"class=\"INPUT_WWW\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("WWW",Ban->WWW,true,
|
||||
"class=\"INPUT_WWW\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -872,25 +864,25 @@ static void Ban_PutFormToCreateBanner (void)
|
|||
|
||||
/***** Banner short name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Ban_MAX_CHARS_SHRT_NAME,Ban_EditingBan->ShrtName,
|
||||
HTM_INPUT_TEXT ("ShortName",Ban_MAX_CHARS_SHRT_NAME,Ban_EditingBan->ShrtName,false,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Banner full name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Ban_MAX_CHARS_FULL_NAME,Ban_EditingBan->FullName,
|
||||
HTM_INPUT_TEXT ("FullName",Ban_MAX_CHARS_FULL_NAME,Ban_EditingBan->FullName,false,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Banner image *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("Img",Ban_MAX_CHARS_IMAGE,Ban_EditingBan->Img,
|
||||
HTM_INPUT_TEXT ("Img",Ban_MAX_CHARS_IMAGE,Ban_EditingBan->Img,false,
|
||||
"size=\"12\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Banner WWW *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_URL ("WWW",Ban_EditingBan->WWW,
|
||||
HTM_INPUT_URL ("WWW",Ban_EditingBan->WWW,false,
|
||||
"class=\"INPUT_WWW\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -468,10 +468,8 @@ static void Ctr_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change centre full name */
|
||||
Frm_StartForm (ActRenCtrFulCfg);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Gbl.Hierarchy.Ctr.FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Gbl.Hierarchy.Ctr.FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not edit centre full name
|
||||
|
@ -496,10 +494,8 @@ static void Ctr_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change centre short name */
|
||||
Frm_StartForm (ActRenCtrShoCfg);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Gbl.Hierarchy.Ctr.ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Gbl.Hierarchy.Ctr.ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not edit centre short name
|
||||
|
@ -573,10 +569,8 @@ static void Ctr_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change centre WWW */
|
||||
Frm_StartForm (ActChgCtrWWWCfg);
|
||||
HTM_INPUT_URL ("WWW",Gbl.Hierarchy.Ctr.WWW,
|
||||
"class=\"INPUT_WWW\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("WWW",Gbl.Hierarchy.Ctr.WWW,true,
|
||||
"class=\"INPUT_WWW\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not change centre WWW
|
||||
|
@ -1554,10 +1548,8 @@ static void Ctr_ListCentresForEdition (void)
|
|||
{
|
||||
Frm_StartForm (ActRenCtrSho);
|
||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Ctr->ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Ctr->ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1570,10 +1562,8 @@ static void Ctr_ListCentresForEdition (void)
|
|||
{
|
||||
Frm_StartForm (ActRenCtrFul);
|
||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Ctr->FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Ctr->FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1586,10 +1576,8 @@ static void Ctr_ListCentresForEdition (void)
|
|||
{
|
||||
Frm_StartForm (ActChgCtrWWW);
|
||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||
HTM_INPUT_URL ("WWW",Ctr->WWW,
|
||||
"class=\"INPUT_WWW\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("WWW",Ctr->WWW,true,
|
||||
"class=\"INPUT_WWW\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -2532,19 +2520,19 @@ static void Ctr_PutFormToCreateCentre (void)
|
|||
|
||||
/***** Centre short name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Ctr_EditingCtr->ShrtName,
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Ctr_EditingCtr->ShrtName,false,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Centre full name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Ctr_EditingCtr->FullName,
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Ctr_EditingCtr->FullName,false,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Centre WWW *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_URL ("WWW",Ctr_EditingCtr->WWW,
|
||||
HTM_INPUT_URL ("WWW",Ctr_EditingCtr->WWW,false,
|
||||
"class=\"INPUT_WWW\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -487,7 +487,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
|||
En OpenSWAD:
|
||||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
#define Log_PLATFORM_VERSION "SWAD 19.51.10 (2019-11-04)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 19.51.11 (2019-11-04)"
|
||||
#define CSS_FILE "swad19.47.css"
|
||||
#define JS_FILE "swad19.39.js"
|
||||
/*
|
||||
|
@ -495,6 +495,7 @@ ps2pdf source.ps destination.pdf
|
|||
// TODO: Impedir la creación y edición de proyectos si no son editables.
|
||||
// TODO: Importante: filtrar proyectos por usuarios (igual que en trabajos o en asistencia)
|
||||
|
||||
Version 19.51.11: Nov 04, 2019 Code refactoring in HTML inputs. (245868 lines)
|
||||
Version 19.51.10: Nov 04, 2019 Code refactoring in HTML inputs. (245971 lines)
|
||||
Version 19.51.9: Nov 04, 2019 Code refactoring in HTML inputs. (245974 lines)
|
||||
Version 19.51.8: Nov 04, 2019 Code refactoring in HTML inputs. (245968 lines)
|
||||
|
|
|
@ -501,10 +501,8 @@ static void Cla_ListClassroomsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
Frm_StartForm (ActRenClaSho);
|
||||
Cla_PutParamClaCod (Cla->ClaCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Cla_MAX_CHARS_SHRT_NAME,Cla->ShrtName,
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Cla_MAX_CHARS_SHRT_NAME,Cla->ShrtName,true,
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -512,10 +510,8 @@ static void Cla_ListClassroomsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
Frm_StartForm (ActRenClaFul);
|
||||
Cla_PutParamClaCod (Cla->ClaCod);
|
||||
HTM_INPUT_TEXT ("FullName",Cla_MAX_CHARS_FULL_NAME,Cla->FullName,
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Cla_MAX_CHARS_FULL_NAME,Cla->FullName,true,
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -524,10 +520,8 @@ static void Cla_ListClassroomsForEdition (void)
|
|||
Frm_StartForm (ActChgClaMaxStd);
|
||||
Cla_PutParamClaCod (Cla->ClaCod);
|
||||
Cla_WriteCapacity (StrCapacity,Cla->Capacity);
|
||||
HTM_INPUT_TEXT ("Capacity",10,StrCapacity,
|
||||
"size=\"3\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Capacity",10,StrCapacity,true,
|
||||
"size=\"3\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -535,10 +529,8 @@ static void Cla_ListClassroomsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
Frm_StartForm (ActRenClaLoc);
|
||||
Cla_PutParamClaCod (Cla->ClaCod);
|
||||
HTM_INPUT_TEXT ("Location",Cla_MAX_CHARS_LOCATION,Cla->Location,
|
||||
"size=\"15\" class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Location",Cla_MAX_CHARS_LOCATION,Cla->Location,true,
|
||||
"size=\"15\" class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -913,26 +905,26 @@ static void Cla_PutFormToCreateClassroom (void)
|
|||
|
||||
/***** Classroom short name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Cla_MAX_CHARS_SHRT_NAME,Cla_EditingCla->ShrtName,
|
||||
HTM_INPUT_TEXT ("ShortName",Cla_MAX_CHARS_SHRT_NAME,Cla_EditingCla->ShrtName,false,
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Classroom full name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Cla_MAX_CHARS_FULL_NAME,Cla_EditingCla->FullName,
|
||||
HTM_INPUT_TEXT ("FullName",Cla_MAX_CHARS_FULL_NAME,Cla_EditingCla->FullName,false,
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Seating capacity *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
Cla_WriteCapacity (StrCapacity,Cla_EditingCla->Capacity);
|
||||
HTM_INPUT_TEXT ("Capacity",10,StrCapacity,
|
||||
HTM_INPUT_TEXT ("Capacity",10,StrCapacity,false,
|
||||
"size=\"3\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Classroom location *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("Location",Cla_MAX_CHARS_LOCATION,Cla_EditingCla->Location,
|
||||
HTM_INPUT_TEXT ("Location",Cla_MAX_CHARS_LOCATION,Cla_EditingCla->Location,false,
|
||||
"size=\"15\" class=\"INPUT_FULL_NAME\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -1673,10 +1673,8 @@ static void Cty_ListCountriesForEdition (void)
|
|||
Frm_StartForm (ActRenCty);
|
||||
Cty_PutParamOtherCtyCod (Cty->CtyCod);
|
||||
Par_PutHiddenParamUnsigned (NULL,"Lan",(unsigned) Lan);
|
||||
HTM_INPUT_TEXT ("Name",Cty_MAX_CHARS_NAME,Cty->Name[Lan],
|
||||
"size=\"15\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Name",Cty_MAX_CHARS_NAME,Cty->Name[Lan],true,
|
||||
"size=\"15\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -1685,10 +1683,8 @@ static void Cty_ListCountriesForEdition (void)
|
|||
Frm_StartForm (ActChgCtyWWW);
|
||||
Cty_PutParamOtherCtyCod (Cty->CtyCod);
|
||||
Par_PutHiddenParamUnsigned (NULL,"Lan",(unsigned) Lan);
|
||||
HTM_INPUT_URL ("WWW",Cty->WWW[Lan],
|
||||
"class=\"INPUT_WWW\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("WWW",Cty->WWW[Lan],true,
|
||||
"class=\"INPUT_WWW\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -2062,13 +2058,13 @@ static void Cty_PutFormToCreateCountry (void)
|
|||
Cty_EditingCty->CtyCod);
|
||||
else
|
||||
StrCtyCod[0] = '\0';
|
||||
HTM_INPUT_TEXT ("OthCtyCod",10,StrCtyCod,
|
||||
HTM_INPUT_TEXT ("OthCtyCod",10,StrCtyCod,false,
|
||||
"size=\"3\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Alphabetic country code with 2 letters (ISO 3166-1) *****/
|
||||
HTM_TD_Begin ("rowspan=\"%u\" class=\"RT\"",1 + Lan_NUM_LANGUAGES);
|
||||
HTM_INPUT_TEXT ("Alpha2",2,Cty_EditingCty->Alpha2,
|
||||
HTM_INPUT_TEXT ("Alpha2",2,Cty_EditingCty->Alpha2,false,
|
||||
"size=\"2\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -2103,7 +2099,7 @@ static void Cty_PutFormToCreateCountry (void)
|
|||
snprintf (StrName,sizeof (StrName),
|
||||
"Name_%s",
|
||||
Lan_STR_LANG_ID[Lan]);
|
||||
HTM_INPUT_TEXT (StrName,Cty_MAX_CHARS_NAME,Cty_EditingCty->Name[Lan],
|
||||
HTM_INPUT_TEXT (StrName,Cty_MAX_CHARS_NAME,Cty_EditingCty->Name[Lan],false,
|
||||
"size=\"15\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -2112,7 +2108,7 @@ static void Cty_PutFormToCreateCountry (void)
|
|||
snprintf (StrName,sizeof (StrName),
|
||||
"WWW_%s",
|
||||
Lan_STR_LANG_ID[Lan]);
|
||||
HTM_INPUT_URL (StrName,Cty_EditingCty->WWW[Lan],
|
||||
HTM_INPUT_URL (StrName,Cty_EditingCty->WWW[Lan],false,
|
||||
"class=\"INPUT_WWW\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -294,10 +294,8 @@ static void Crs_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change course full name */
|
||||
Frm_StartForm (ActRenCrsFulCfg);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Gbl.Hierarchy.Crs.FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Gbl.Hierarchy.Crs.FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not edit course full name
|
||||
|
@ -322,10 +320,8 @@ static void Crs_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change course short name */
|
||||
Frm_StartForm (ActRenCrsShoCfg);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Gbl.Hierarchy.Crs.ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Gbl.Hierarchy.Crs.ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not edit course short name
|
||||
|
@ -385,11 +381,10 @@ static void Crs_Configuration (bool PrintView)
|
|||
if (IsForm)
|
||||
{
|
||||
Frm_StartForm (ActChgInsCrsCodCfg);
|
||||
HTM_INPUT_TEXT ("InsCrsCod",Crs_MAX_CHARS_INSTITUTIONAL_CRS_COD,Gbl.Hierarchy.Crs.InstitutionalCrsCod,
|
||||
"size=\"%u\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Crs_MAX_CHARS_INSTITUTIONAL_CRS_COD,
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("InsCrsCod",Crs_MAX_CHARS_INSTITUTIONAL_CRS_COD,
|
||||
Gbl.Hierarchy.Crs.InstitutionalCrsCod,true,
|
||||
"size=\"%u\"",
|
||||
Crs_MAX_CHARS_INSTITUTIONAL_CRS_COD);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1473,10 +1468,9 @@ static void Crs_ListCoursesOfAYearForEdition (unsigned Year)
|
|||
{
|
||||
Frm_StartForm (ActChgInsCrsCod);
|
||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||
HTM_INPUT_TEXT ("InsCrsCod",Crs_MAX_CHARS_INSTITUTIONAL_CRS_COD,Crs->InstitutionalCrsCod,
|
||||
"class=\"INPUT_INS_CODE\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("InsCrsCod",Crs_MAX_CHARS_INSTITUTIONAL_CRS_COD,
|
||||
Crs->InstitutionalCrsCod,true,
|
||||
"class=\"INPUT_INS_CODE\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1513,10 +1507,8 @@ static void Crs_ListCoursesOfAYearForEdition (unsigned Year)
|
|||
{
|
||||
Frm_StartForm (ActRenCrsSho);
|
||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Crs->ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Crs->ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1529,10 +1521,8 @@ static void Crs_ListCoursesOfAYearForEdition (unsigned Year)
|
|||
{
|
||||
Frm_StartForm (ActRenCrsFul);
|
||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Crs->FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Crs->FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1680,7 +1670,8 @@ static void Crs_PutFormToCreateCourse (void)
|
|||
|
||||
/***** Institutional code of the course *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("InsCrsCod",Crs_MAX_CHARS_INSTITUTIONAL_CRS_COD,Crs_EditingCrs->InstitutionalCrsCod,
|
||||
HTM_INPUT_TEXT ("InsCrsCod",Crs_MAX_CHARS_INSTITUTIONAL_CRS_COD,
|
||||
Crs_EditingCrs->InstitutionalCrsCod,false,
|
||||
"class=\"INPUT_INS_CODE\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -1700,13 +1691,13 @@ static void Crs_PutFormToCreateCourse (void)
|
|||
|
||||
/***** Course short name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Crs_EditingCrs->ShrtName,
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Crs_EditingCrs->ShrtName,false,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Course full name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Crs_EditingCrs->FullName,
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Crs_EditingCrs->FullName,false,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -397,10 +397,8 @@ static void Deg_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change degree full name */
|
||||
Frm_StartForm (ActRenDegFulCfg);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Gbl.Hierarchy.Deg.FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Gbl.Hierarchy.Deg.FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not edit degree full name
|
||||
|
@ -425,10 +423,8 @@ static void Deg_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change degree short name */
|
||||
Frm_StartForm (ActRenDegShoCfg);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Gbl.Hierarchy.Deg.ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Gbl.Hierarchy.Deg.ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not edit degree short name
|
||||
|
@ -453,10 +449,8 @@ static void Deg_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change degree WWW */
|
||||
Frm_StartForm (ActChgDegWWWCfg);
|
||||
HTM_INPUT_URL ("WWW",Gbl.Hierarchy.Deg.WWW,
|
||||
"class=\"INPUT_WWW\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("WWW",Gbl.Hierarchy.Deg.WWW,true,
|
||||
"class=\"INPUT_WWW\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not change degree WWW
|
||||
|
@ -747,10 +741,8 @@ static void Deg_ListDegreesForEdition (void)
|
|||
{
|
||||
Frm_StartForm (ActRenDegSho);
|
||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Deg->ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Deg->ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -763,10 +755,8 @@ static void Deg_ListDegreesForEdition (void)
|
|||
{
|
||||
Frm_StartForm (ActRenDegFul);
|
||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Deg->FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Deg->FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -810,10 +800,8 @@ static void Deg_ListDegreesForEdition (void)
|
|||
{
|
||||
Frm_StartForm (ActChgDegWWW);
|
||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||
HTM_INPUT_URL ("WWW",Deg->WWW,
|
||||
"class=\"INPUT_WWW\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("WWW",Deg->WWW,true,
|
||||
"class=\"INPUT_WWW\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -970,13 +958,13 @@ static void Deg_PutFormToCreateDegree (void)
|
|||
|
||||
/***** Degree short name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Deg_EditingDeg->ShrtName,
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Deg_EditingDeg->ShrtName,false,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Degree full name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Deg_EditingDeg->FullName,
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Deg_EditingDeg->FullName,false,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -999,7 +987,7 @@ static void Deg_PutFormToCreateDegree (void)
|
|||
|
||||
/***** Degree WWW *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_URL ("WWW",Deg_EditingDeg->WWW,
|
||||
HTM_INPUT_URL ("WWW",Deg_EditingDeg->WWW,false,
|
||||
"class=\"INPUT_WWW\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -422,10 +422,9 @@ static void DT_ListDegreeTypesForEdition (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
Frm_StartForm (ActRenDegTyp);
|
||||
DT_PutParamOtherDegTypCod (Gbl.DegTypes.Lst[NumDegTyp].DegTypCod);
|
||||
HTM_INPUT_TEXT ("DegTypName",Deg_MAX_CHARS_DEGREE_TYPE_NAME,Gbl.DegTypes.Lst[NumDegTyp].DegTypName,
|
||||
"size=\"25\" required=\"required\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("DegTypName",Deg_MAX_CHARS_DEGREE_TYPE_NAME,
|
||||
Gbl.DegTypes.Lst[NumDegTyp].DegTypName,true,
|
||||
"size=\"25\" required=\"required\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -481,9 +480,8 @@ static void DT_PutFormToCreateDegreeType (void)
|
|||
|
||||
/***** Degree type name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("DegTypName",Deg_MAX_CHARS_DEGREE_TYPE_NAME,DT_EditingDegTyp->DegTypName,
|
||||
"size=\"25\" required=\"required\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("DegTypName",Deg_MAX_CHARS_DEGREE_TYPE_NAME,DT_EditingDegTyp->DegTypName,false,
|
||||
"size=\"25\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Number of degrees of this degree type ****/
|
||||
|
|
|
@ -562,10 +562,8 @@ static void Dpt_ListDepartmentsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenDptSho);
|
||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Dpt->ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Dpt->ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -573,10 +571,8 @@ static void Dpt_ListDepartmentsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenDptFul);
|
||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Dpt->FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Dpt->FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -584,10 +580,8 @@ static void Dpt_ListDepartmentsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActChgDptWWW);
|
||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||
HTM_INPUT_URL ("WWW",Dpt->WWW,
|
||||
"class=\"INPUT_WWW\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("WWW",Dpt->WWW,true,
|
||||
"class=\"INPUT_WWW\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -942,19 +936,19 @@ static void Dpt_PutFormToCreateDepartment (void)
|
|||
|
||||
/***** Department short name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Dpt_EditingDpt->ShrtName,
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Dpt_EditingDpt->ShrtName,false,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Department full name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Dpt_EditingDpt->FullName,
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Dpt_EditingDpt->FullName,false,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Department WWW *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_URL ("WWW",Dpt_EditingDpt->WWW,
|
||||
HTM_INPUT_URL ("WWW",Dpt_EditingDpt->WWW,false,
|
||||
"class=\"INPUT_WWW\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -381,7 +381,7 @@ void Enr_WriteFormToReqAnotherUsrID (Act_Action_t NextAction,void (*FuncParams)
|
|||
The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"%s: ",Txt_nick_email_or_ID);
|
||||
HTM_LABEL_End ();
|
||||
HTM_INPUT_TEXT ("OtherUsrIDNickOrEMail",Cns_MAX_CHARS_EMAIL_ADDRESS,"",
|
||||
HTM_INPUT_TEXT ("OtherUsrIDNickOrEMail",Cns_MAX_CHARS_EMAIL_ADDRESS,"",false,
|
||||
"size=\"18\" required=\"required\"");
|
||||
|
||||
/***** Send button*****/
|
||||
|
|
|
@ -1099,7 +1099,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
|||
|
||||
HTM_TD_Begin ("class=\"%s LT\"",StyleNormal);
|
||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||
HTM_INPUT_TEXT ("CrsName",Hie_MAX_CHARS_FULL_NAME,Gbl.ExamAnns.ExaDat.CrsFullName,
|
||||
HTM_INPUT_TEXT ("CrsName",Hie_MAX_CHARS_FULL_NAME,Gbl.ExamAnns.ExaDat.CrsFullName,false,
|
||||
"size=\"30\"");
|
||||
else
|
||||
fprintf (Gbl.F.Out,"<strong>%s</strong>",Gbl.ExamAnns.ExaDat.CrsFullName);
|
||||
|
@ -1152,7 +1152,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
|||
|
||||
HTM_TD_Begin ("class=\"%s LT\"",StyleNormal);
|
||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||
HTM_INPUT_TEXT ("ExamSession",Exa_MAX_CHARS_SESSION,Gbl.ExamAnns.ExaDat.Session,
|
||||
HTM_INPUT_TEXT ("ExamSession",Exa_MAX_CHARS_SESSION,Gbl.ExamAnns.ExaDat.Session,false,
|
||||
"size=\"30\"");
|
||||
else
|
||||
fprintf (Gbl.F.Out,"%s",Gbl.ExamAnns.ExaDat.Session);
|
||||
|
|
|
@ -6262,13 +6262,11 @@ static void Brw_WriteFileName (unsigned Level,bool IsPublic)
|
|||
fprintf (Gbl.F.Out," ");
|
||||
if (Gbl.FileBrowser.ICanEditFileOrFolder) // Can I rename this folder?
|
||||
{
|
||||
HTM_INPUT_TEXT ("NewFolderName",Brw_MAX_CHARS_FOLDER,Gbl.FileBrowser.FilFolLnk.Name,
|
||||
"class=\"%s %s\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
HTM_INPUT_TEXT ("NewFolderName",Brw_MAX_CHARS_FOLDER,Gbl.FileBrowser.FilFolLnk.Name,true,
|
||||
"class=\"%s %s\"",
|
||||
Gbl.FileBrowser.InputStyle,
|
||||
Gbl.FileBrowser.Clipboard.IsThisFile ? "LIGHT_GREEN" :
|
||||
Gbl.ColorRows[Gbl.RowEvenOdd],
|
||||
Gbl.Form.Id);
|
||||
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -8342,7 +8340,7 @@ static void Brw_PutFormToCreateAFolder (const char FileNameToShow[NAME_MAX + 1])
|
|||
/***** Folder *****/
|
||||
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"%s: ",Txt_Folder);
|
||||
HTM_INPUT_TEXT ("NewFolderName",Brw_MAX_CHARS_FOLDER,"",
|
||||
HTM_INPUT_TEXT ("NewFolderName",Brw_MAX_CHARS_FOLDER,"",false,
|
||||
"size=\"30\" required=\"required\"");
|
||||
HTM_LABEL_End ();
|
||||
|
||||
|
@ -8510,7 +8508,7 @@ static void Brw_PutFormToCreateALink (const char *FileNameToShow)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_URL ("NewLinkURL","",
|
||||
HTM_INPUT_URL ("NewLinkURL","",false,
|
||||
"size=\"30\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -8526,7 +8524,7 @@ static void Brw_PutFormToCreateALink (const char *FileNameToShow)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("NewLinkName",Brw_MAX_CHARS_FOLDER,"",
|
||||
HTM_INPUT_TEXT ("NewLinkName",Brw_MAX_CHARS_FOLDER,"",false,
|
||||
"size=\"30\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -3911,8 +3911,9 @@ static void For_WriteFormForumPst (bool IsReply,const char *Subject)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("Subject",Cns_MAX_CHARS_SUBJECT,IsReply ? Subject :
|
||||
"",
|
||||
HTM_INPUT_TEXT ("Subject",Cns_MAX_CHARS_SUBJECT,
|
||||
IsReply ? Subject :
|
||||
"",false,
|
||||
"class=\"MSG_SUBJECT\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -1145,7 +1145,7 @@ static void Gam_PutFormsEditionGame (struct Game *Game,bool ItsANewGame)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("Title",Gam_MAX_CHARS_TITLE,Game->Title,
|
||||
HTM_INPUT_TEXT ("Title",Gam_MAX_CHARS_TITLE,Game->Title,false,
|
||||
"size=\"45\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
26
swad_group.c
26
swad_group.c
|
@ -1318,10 +1318,9 @@ static void Grp_ListGroupTypesForEdition (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
Frm_StartFormAnchor (ActRenGrpTyp,Grp_GROUP_TYPES_SECTION_ID);
|
||||
Grp_PutParamGrpTypCod (Gbl.Crs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
||||
HTM_INPUT_TEXT ("GrpTypName",Grp_MAX_CHARS_GROUP_TYPE_NAME,Gbl.Crs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypName,
|
||||
"size=\"12\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("GrpTypName",Grp_MAX_CHARS_GROUP_TYPE_NAME,
|
||||
Gbl.Crs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypName,true,
|
||||
"size=\"12\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -1579,10 +1578,8 @@ static void Grp_ListGroupsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartFormAnchor (ActRenGrp,Grp_GROUPS_SECTION_ID);
|
||||
Grp_PutParamGrpCod (Grp->GrpCod);
|
||||
HTM_INPUT_TEXT ("GrpName",Grp_MAX_CHARS_GROUP_NAME,Grp->GrpName,
|
||||
"size=\"20\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("GrpName",Grp_MAX_CHARS_GROUP_NAME,Grp->GrpName,true,
|
||||
"size=\"20\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -1642,10 +1639,8 @@ static void Grp_ListGroupsForEdition (void)
|
|||
Frm_StartFormAnchor (ActChgMaxStdGrp,Grp_GROUPS_SECTION_ID);
|
||||
Grp_PutParamGrpCod (Grp->GrpCod);
|
||||
Grp_WriteMaxStds (StrMaxStudents,Grp->MaxStudents);
|
||||
HTM_INPUT_TEXT ("MaxStudents",10,StrMaxStudents,
|
||||
"size=\"3\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("MaxStudents",10,StrMaxStudents,true,
|
||||
"size=\"3\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -2493,7 +2488,8 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
|
||||
/***** Name of group type *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("GrpTypName",Grp_MAX_CHARS_GROUP_TYPE_NAME,Gbl.Crs.Grps.GrpTyp.GrpTypName,
|
||||
HTM_INPUT_TEXT ("GrpTypName",Grp_MAX_CHARS_GROUP_TYPE_NAME,
|
||||
Gbl.Crs.Grps.GrpTyp.GrpTypName,false,
|
||||
"size=\"12\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -2643,7 +2639,7 @@ static void Grp_PutFormToCreateGroup (void)
|
|||
|
||||
/***** Group name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("GrpName",Grp_MAX_CHARS_GROUP_NAME,Gbl.Crs.Grps.GrpName,
|
||||
HTM_INPUT_TEXT ("GrpName",Grp_MAX_CHARS_GROUP_NAME,Gbl.Crs.Grps.GrpName,false,
|
||||
"size=\"20\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -2696,7 +2692,7 @@ static void Grp_PutFormToCreateGroup (void)
|
|||
/***** Maximum number of students *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Grp_WriteMaxStds (StrMaxStudents,Gbl.Crs.Grps.MaxStudents);
|
||||
HTM_INPUT_TEXT ("MaxStudents",10,StrMaxStudents,
|
||||
HTM_INPUT_TEXT ("MaxStudents",10,StrMaxStudents,false,
|
||||
"size=\"3\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -651,10 +651,8 @@ static void Hld_ListHolidaysForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenHld);
|
||||
Hld_PutParamHldCod (Hld->HldCod);
|
||||
HTM_INPUT_TEXT ("Name",Hld_MAX_CHARS_HOLIDAY_NAME,Hld->Name,
|
||||
"size=\"20\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Name",Hld_MAX_CHARS_HOLIDAY_NAME,Hld->Name,true,
|
||||
"size=\"20\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
HTM_TR_End ();
|
||||
|
@ -1038,7 +1036,7 @@ static void Hld_PutFormToCreateHoliday (void)
|
|||
|
||||
/***** Holiday name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("Name",Hld_MAX_CHARS_HOLIDAY_NAME,Hld_EditingHld->Name,
|
||||
HTM_INPUT_TEXT ("Name",Hld_MAX_CHARS_HOLIDAY_NAME,Hld_EditingHld->Name,false,
|
||||
"size=\"20\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -1320,7 +1320,7 @@ void Inf_FormToSendURL (Inf_InfoSrc_t InfoSrc)
|
|||
HTM_DIV_Begin ("class=\"CM\"");
|
||||
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"%s: ",Txt_URL);
|
||||
HTM_INPUT_URL ("InfoSrcURL",Gbl.Crs.Info.URL,
|
||||
HTM_INPUT_URL ("InfoSrcURL",Gbl.Crs.Info.URL,false,
|
||||
"size=\"50\"");
|
||||
HTM_LABEL_End ();
|
||||
HTM_DIV_End ();
|
||||
|
|
|
@ -409,10 +409,8 @@ static void Ins_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change institution full name */
|
||||
Frm_StartForm (ActRenInsFulCfg);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Gbl.Hierarchy.Ins.FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Gbl.Hierarchy.Ins.FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not edit institution full name
|
||||
|
@ -437,10 +435,8 @@ static void Ins_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change institution short name */
|
||||
Frm_StartForm (ActRenInsShoCfg);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Gbl.Hierarchy.Ins.ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Gbl.Hierarchy.Ins.ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not edit institution short name
|
||||
|
@ -466,10 +462,8 @@ static void Ins_Configuration (bool PrintView)
|
|||
{
|
||||
/* Form to change institution WWW */
|
||||
Frm_StartForm (ActChgInsWWWCfg);
|
||||
HTM_INPUT_URL ("WWW",Gbl.Hierarchy.Ins.WWW,
|
||||
"class=\"INPUT_WWW\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("WWW",Gbl.Hierarchy.Ins.WWW,true,
|
||||
"class=\"INPUT_WWW\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not change institution WWW
|
||||
|
@ -1492,10 +1486,8 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
{
|
||||
Frm_StartForm (ActRenInsSho);
|
||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Ins->ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Ins->ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1508,10 +1500,8 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
{
|
||||
Frm_StartForm (ActRenInsFul);
|
||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Ins->FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Ins->FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1524,10 +1514,8 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
{
|
||||
Frm_StartForm (ActChgInsWWW);
|
||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||
HTM_INPUT_URL ("WWW",Ins->WWW,
|
||||
"class=\"INPUT_WWW\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("WWW",Ins->WWW,true,
|
||||
"class=\"INPUT_WWW\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
}
|
||||
|
@ -2218,19 +2206,19 @@ static void Ins_PutFormToCreateInstitution (void)
|
|||
|
||||
/***** Institution short name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Ins_EditingIns->ShrtName,
|
||||
HTM_INPUT_TEXT ("ShortName",Hie_MAX_CHARS_SHRT_NAME,Ins_EditingIns->ShrtName,false,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Institution full name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Ins_EditingIns->FullName,
|
||||
HTM_INPUT_TEXT ("FullName",Hie_MAX_CHARS_FULL_NAME,Ins_EditingIns->FullName,false,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Institution WWW *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_URL ("WWW",Ins_EditingIns->WWW,
|
||||
HTM_INPUT_URL ("WWW",Ins_EditingIns->WWW,false,
|
||||
"class=\"INPUT_WWW\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
24
swad_link.c
24
swad_link.c
|
@ -440,10 +440,8 @@ static void Lnk_ListLinksForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenLnkSho);
|
||||
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Lnk_MAX_CHARS_LINK_SHRT_NAME,Lnk->ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Lnk_MAX_CHARS_LINK_SHRT_NAME,Lnk->ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -451,10 +449,8 @@ static void Lnk_ListLinksForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenLnkFul);
|
||||
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
||||
HTM_INPUT_TEXT ("FullName",Lnk_MAX_CHARS_LINK_FULL_NAME,Lnk->FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Lnk_MAX_CHARS_LINK_FULL_NAME,Lnk->FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -462,10 +458,8 @@ static void Lnk_ListLinksForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActChgLnkWWW);
|
||||
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
||||
HTM_INPUT_URL ("WWW",Lnk->WWW,
|
||||
"class=\"INPUT_WWW\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("WWW",Lnk->WWW,true,
|
||||
"class=\"INPUT_WWW\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -749,19 +743,19 @@ static void Lnk_PutFormToCreateLink (void)
|
|||
|
||||
/***** Link short name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Lnk_MAX_CHARS_LINK_SHRT_NAME,Lnk_EditingLnk->ShrtName,
|
||||
HTM_INPUT_TEXT ("ShortName",Lnk_MAX_CHARS_LINK_SHRT_NAME,Lnk_EditingLnk->ShrtName,false,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Link full name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Lnk_MAX_CHARS_LINK_FULL_NAME,Lnk_EditingLnk->FullName,
|
||||
HTM_INPUT_TEXT ("FullName",Lnk_MAX_CHARS_LINK_FULL_NAME,Lnk_EditingLnk->FullName,false,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Link WWW *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_URL ("WWW",Lnk_EditingLnk->WWW,
|
||||
HTM_INPUT_URL ("WWW",Lnk_EditingLnk->WWW,false,
|
||||
"class=\"INPUT_WWW\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
16
swad_mail.c
16
swad_mail.c
|
@ -506,10 +506,8 @@ static void Mai_ListMailDomainsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenMaiSho);
|
||||
Mai_PutParamMaiCod (Mai->MaiCod);
|
||||
HTM_INPUT_TEXT ("Domain",Cns_MAX_CHARS_EMAIL_ADDRESS,Mai->Domain,
|
||||
"size=\"15\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Domain",Cns_MAX_CHARS_EMAIL_ADDRESS,Mai->Domain,true,
|
||||
"size=\"15\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -517,10 +515,8 @@ static void Mai_ListMailDomainsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenMaiFul);
|
||||
Mai_PutParamMaiCod (Mai->MaiCod);
|
||||
HTM_INPUT_TEXT ("Info",Mai_MAX_CHARS_MAIL_INFO,Mai->Info,
|
||||
"size=\"40\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Info",Mai_MAX_CHARS_MAIL_INFO,Mai->Info,true,
|
||||
"size=\"40\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -763,13 +759,13 @@ static void Mai_PutFormToCreateMailDomain (void)
|
|||
|
||||
/***** Mail domain *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("Domain",Cns_MAX_CHARS_EMAIL_ADDRESS,Mai_EditingMai->Domain,
|
||||
HTM_INPUT_TEXT ("Domain",Cns_MAX_CHARS_EMAIL_ADDRESS,Mai_EditingMai->Domain,false,
|
||||
"size=\"15\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Mail domain info *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("Info",Mai_MAX_CHARS_MAIL_INFO,Mai_EditingMai->Info,
|
||||
HTM_INPUT_TEXT ("Info",Mai_MAX_CHARS_MAIL_INFO,Mai_EditingMai->Info,false,
|
||||
"size=\"40\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
16
swad_mark.c
16
swad_mark.c
|
@ -133,11 +133,9 @@ void Mrk_GetAndWriteNumRowsHeaderAndFooter (void)
|
|||
snprintf (StrHeadOrFoot,sizeof (StrHeadOrFoot),
|
||||
"%u",
|
||||
Marks.Header);
|
||||
HTM_INPUT_TEXT (Mrk_HeadOrFootStr[Brw_HEADER],5,StrHeadOrFoot,
|
||||
"size=\"1\" class=\"LST_EDIT_ROWS COLOR%u\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.RowEvenOdd,
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT (Mrk_HeadOrFootStr[Brw_HEADER],5,StrHeadOrFoot,true,
|
||||
"size=\"1\" class=\"LST_EDIT_ROWS COLOR%u\"",
|
||||
Gbl.RowEvenOdd);
|
||||
HTM_LABEL_End ();
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
@ -154,11 +152,9 @@ void Mrk_GetAndWriteNumRowsHeaderAndFooter (void)
|
|||
snprintf (StrHeadOrFoot,sizeof (StrHeadOrFoot),
|
||||
"%u",
|
||||
Marks.Footer);
|
||||
HTM_INPUT_TEXT (Mrk_HeadOrFootStr[Brw_FOOTER],5,StrHeadOrFoot,
|
||||
"size=\"1\" class=\"LST_EDIT_ROWS COLOR%u\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.RowEvenOdd,
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT (Mrk_HeadOrFootStr[Brw_FOOTER],5,StrHeadOrFoot,true,
|
||||
"size=\"1\" class=\"LST_EDIT_ROWS COLOR%u\"",
|
||||
Gbl.RowEvenOdd);
|
||||
HTM_LABEL_End ();
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
|
|
@ -1205,7 +1205,7 @@ static void Mch_PutFormNewMatch (struct Game *Game)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("Title",Gam_MAX_CHARS_TITLE,Game->Title,
|
||||
HTM_INPUT_TEXT ("Title",Gam_MAX_CHARS_TITLE,Game->Title,false,
|
||||
"size=\"45\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -334,7 +334,7 @@ void Net_ShowFormMyWebsAndSocialNets (void)
|
|||
snprintf (StrName,sizeof (StrName),
|
||||
"URL%u",
|
||||
(unsigned) NumURL);
|
||||
HTM_INPUT_URL ("WWW",StrName,
|
||||
HTM_INPUT_URL ("WWW",StrName,false,
|
||||
"class=\"REC_C2_BOT_INPUT\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -401,7 +401,8 @@ static void Nck_ShowFormChangeUsrNickname (const struct UsrData *UsrDat,bool Its
|
|||
snprintf (NicknameWithArroba,sizeof (NicknameWithArroba),
|
||||
"@%s",
|
||||
Gbl.Usrs.Me.UsrDat.Nickname);
|
||||
HTM_INPUT_TEXT ("NewNick",1 + Nck_MAX_CHARS_NICKNAME_WITHOUT_ARROBA,NicknameWithArroba,
|
||||
HTM_INPUT_TEXT ("NewNick",1 + Nck_MAX_CHARS_NICKNAME_WITHOUT_ARROBA,
|
||||
NicknameWithArroba,false,
|
||||
"size=\"18\"");
|
||||
fprintf (Gbl.F.Out,"<br />");
|
||||
Btn_PutCreateButtonInline (NumNicks ? Txt_Change_nickname : // I already have a nickname
|
||||
|
|
|
@ -284,7 +284,7 @@ void Pwd_ShowFormSendNewPwd (void)
|
|||
/***** User's ID/nickname *****/
|
||||
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"%s: ",Txt_nick_email_or_ID);
|
||||
HTM_INPUT_TEXT ("UsrId",Cns_MAX_CHARS_EMAIL_ADDRESS,Gbl.Usrs.Me.UsrIdLogin,
|
||||
HTM_INPUT_TEXT ("UsrId",Cns_MAX_CHARS_EMAIL_ADDRESS,Gbl.Usrs.Me.UsrIdLogin,false,
|
||||
"size=\"8\" required=\"required\"");
|
||||
HTM_LABEL_End ();
|
||||
|
||||
|
|
16
swad_place.c
16
swad_place.c
|
@ -552,10 +552,8 @@ static void Plc_ListPlacesForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenPlcSho);
|
||||
Plc_PutParamPlcCod (Plc->PlcCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Plc_MAX_CHARS_PLACE_SHRT_NAME,Plc->ShrtName,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("ShortName",Plc_MAX_CHARS_PLACE_SHRT_NAME,Plc->ShrtName,true,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -563,10 +561,8 @@ static void Plc_ListPlacesForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenPlcFul);
|
||||
Plc_PutParamPlcCod (Plc->PlcCod);
|
||||
HTM_INPUT_TEXT ("FullName",Plc_MAX_CHARS_PLACE_FULL_NAME,Plc->FullName,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FullName",Plc_MAX_CHARS_PLACE_FULL_NAME,Plc->FullName,true,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -820,13 +816,13 @@ static void Plc_PutFormToCreatePlace (void)
|
|||
|
||||
/***** Place short name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Plc_MAX_CHARS_PLACE_SHRT_NAME,Plc_EditingPlc->ShrtName,
|
||||
HTM_INPUT_TEXT ("ShortName",Plc_MAX_CHARS_PLACE_SHRT_NAME,Plc_EditingPlc->ShrtName,false,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Place full name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Plc_MAX_CHARS_PLACE_FULL_NAME,Plc_EditingPlc->FullName,
|
||||
HTM_INPUT_TEXT ("FullName",Plc_MAX_CHARS_PLACE_FULL_NAME,Plc_EditingPlc->FullName,false,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -426,10 +426,8 @@ static void Plg_ListPluginsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActRenPlg);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
HTM_INPUT_TEXT ("Name",Plg_MAX_CHARS_PLUGIN_NAME,Plg->Name,
|
||||
"size=\"10\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Name",Plg_MAX_CHARS_PLUGIN_NAME,Plg->Name,true,
|
||||
"size=\"10\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -437,10 +435,8 @@ static void Plg_ListPluginsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActChgPlgDes);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
HTM_INPUT_TEXT ("Description",Plg_MAX_CHARS_PLUGIN_DESCRIPTION,Plg->Description,
|
||||
"size=\"30\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Description",Plg_MAX_CHARS_PLUGIN_DESCRIPTION,Plg->Description,true,
|
||||
"size=\"30\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -448,10 +444,8 @@ static void Plg_ListPluginsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActChgPlgLog);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
HTM_INPUT_TEXT ("Logo",Plg_MAX_CHARS_PLUGIN_LOGO,Plg->Logo,
|
||||
"size=\"4\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Logo",Plg_MAX_CHARS_PLUGIN_LOGO,Plg->Logo,true,
|
||||
"size=\"4\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -459,10 +453,8 @@ static void Plg_ListPluginsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActChgPlgAppKey);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
HTM_INPUT_TEXT ("AppKey",Plg_MAX_CHARS_PLUGIN_APP_KEY,Plg->AppKey,
|
||||
"size=\"16\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("AppKey",Plg_MAX_CHARS_PLUGIN_APP_KEY,Plg->AppKey,true,
|
||||
"size=\"16\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -470,10 +462,8 @@ static void Plg_ListPluginsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActChgPlgURL);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
HTM_INPUT_URL ("URL",Plg->URL,
|
||||
"size=\"15\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_URL ("URL",Plg->URL,true,
|
||||
"size=\"15\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -481,10 +471,8 @@ static void Plg_ListPluginsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
Frm_StartForm (ActChgPlgIP);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
HTM_INPUT_TEXT ("IP",Cns_MAX_CHARS_IP,Plg->IP,
|
||||
"size=\"10\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("IP",Cns_MAX_CHARS_IP,Plg->IP,true,
|
||||
"size=\"10\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
HTM_TR_End ();
|
||||
|
@ -904,37 +892,38 @@ static void Plg_PutFormToCreatePlugin (void)
|
|||
|
||||
/***** Plugin name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("Name",Plg_MAX_CHARS_PLUGIN_NAME,Plg_EditingPlg->Name,
|
||||
HTM_INPUT_TEXT ("Name",Plg_MAX_CHARS_PLUGIN_NAME,Plg_EditingPlg->Name,false,
|
||||
"size=\"10\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Plugin description *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("Description",Plg_MAX_CHARS_PLUGIN_DESCRIPTION,Plg_EditingPlg->Description,
|
||||
HTM_INPUT_TEXT ("Description",Plg_MAX_CHARS_PLUGIN_DESCRIPTION,
|
||||
Plg_EditingPlg->Description,false,
|
||||
"size=\"30\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Plugin logo *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("Logo",Plg_MAX_CHARS_PLUGIN_LOGO,Plg_EditingPlg->Logo,
|
||||
HTM_INPUT_TEXT ("Logo",Plg_MAX_CHARS_PLUGIN_LOGO,Plg_EditingPlg->Logo,false,
|
||||
"size=\"4\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Plugin application key *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("AppKey",Plg_MAX_CHARS_PLUGIN_APP_KEY,Plg_EditingPlg->AppKey,
|
||||
HTM_INPUT_TEXT ("AppKey",Plg_MAX_CHARS_PLUGIN_APP_KEY,Plg_EditingPlg->AppKey,false,
|
||||
"size=\"16\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Plugin URL *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_URL ("URL",Plg_EditingPlg->URL,
|
||||
HTM_INPUT_URL ("URL",Plg_EditingPlg->URL,false,
|
||||
"size=\"15\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Plugin IP address *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("IP",Cns_MAX_CHARS_IP,Plg_EditingPlg->IP,
|
||||
HTM_INPUT_TEXT ("IP",Cns_MAX_CHARS_IP,Plg_EditingPlg->IP,false,
|
||||
"size=\"10\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -211,7 +211,7 @@ void Prf_RequestUserProfile (void)
|
|||
snprintf (NicknameWithArroba,sizeof (NicknameWithArroba),
|
||||
"@%s",
|
||||
Gbl.Usrs.Me.UsrDat.Nickname);
|
||||
HTM_INPUT_TEXT ("usr",Nck_MAX_BYTES_NICKNAME_FROM_FORM,NicknameWithArroba,
|
||||
HTM_INPUT_TEXT ("usr",Nck_MAX_BYTES_NICKNAME_FROM_FORM,NicknameWithArroba,false,
|
||||
"size=\"18\"");
|
||||
HTM_LABEL_End ();
|
||||
|
||||
|
|
|
@ -3305,7 +3305,7 @@ static void Prj_PutFormProject (struct Project *Prj,bool ItsANewProject)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("Title",Prj_MAX_CHARS_PROJECT_TITLE,Prj->Title,
|
||||
HTM_INPUT_TEXT ("Title",Prj_MAX_CHARS_PROJECT_TITLE,Prj->Title,false,
|
||||
"size=\"45\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -3422,7 +3422,7 @@ static void Prj_PutFormProject (struct Project *Prj,bool ItsANewProject)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
||||
HTM_INPUT_URL ("URL",Prj->URL,
|
||||
HTM_INPUT_URL ("URL",Prj->URL,false,
|
||||
"size=\"45\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -310,10 +310,9 @@ void Rec_ListFieldsRecordsForEdition (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
Frm_StartForm (ActRenFie);
|
||||
Par_PutHiddenParamLong (NULL,"FieldCod",Gbl.Crs.Records.LstFields.Lst[NumField].FieldCod);
|
||||
HTM_INPUT_TEXT ("FieldName",Rec_MAX_CHARS_NAME_FIELD,Gbl.Crs.Records.LstFields.Lst[NumField].Name,
|
||||
"class=\"REC_FIELDNAME\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("FieldName",Rec_MAX_CHARS_NAME_FIELD,
|
||||
Gbl.Crs.Records.LstFields.Lst[NumField].Name,true,
|
||||
"class=\"REC_FIELDNAME\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -324,10 +323,8 @@ void Rec_ListFieldsRecordsForEdition (void)
|
|||
snprintf (StrNumLines,sizeof (StrNumLines),
|
||||
"%u",
|
||||
Gbl.Crs.Records.LstFields.Lst[NumField].NumLines);
|
||||
HTM_INPUT_TEXT ("NumLines",2,StrNumLines,
|
||||
"size=\"2\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("NumLines",2,StrNumLines,true,
|
||||
"size=\"2\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -386,7 +383,7 @@ void Rec_ShowFormCreateRecordField (void)
|
|||
|
||||
/***** Field name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FieldName",Rec_MAX_CHARS_NAME_FIELD,Gbl.Crs.Records.Field.Name,
|
||||
HTM_INPUT_TEXT ("FieldName",Rec_MAX_CHARS_NAME_FIELD,Gbl.Crs.Records.Field.Name,false,
|
||||
"class=\"REC_FIELDNAME\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -395,7 +392,7 @@ void Rec_ShowFormCreateRecordField (void)
|
|||
snprintf (StrNumLines,sizeof (StrNumLines),
|
||||
"%u",
|
||||
Gbl.Crs.Records.Field.NumLines);
|
||||
HTM_INPUT_TEXT ("NumLines",2,StrNumLines,
|
||||
HTM_INPUT_TEXT ("NumLines",2,StrNumLines,false,
|
||||
"size=\"2\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -3173,7 +3170,7 @@ static void Rec_ShowSurname1 (struct UsrData *UsrDat,
|
|||
|
||||
HTM_TD_Begin ("class=\"REC_C2_BOT REC_DAT_BOLD LM\"");
|
||||
if (ICanEdit)
|
||||
HTM_INPUT_TEXT ("Surname1",Usr_MAX_CHARS_FIRSTNAME_OR_SURNAME,UsrDat->Surname1,
|
||||
HTM_INPUT_TEXT ("Surname1",Usr_MAX_CHARS_FIRSTNAME_OR_SURNAME,UsrDat->Surname1,false,
|
||||
"class=\"REC_C2_BOT_INPUT\"%s",
|
||||
TypeOfView == Rec_SHA_MY_RECORD_FORM ? " required=\"required\"" :
|
||||
"");
|
||||
|
@ -3204,7 +3201,8 @@ static void Rec_ShowSurname2 (struct UsrData *UsrDat,
|
|||
|
||||
HTM_TD_Begin ("class=\"REC_C2_BOT REC_DAT_BOLD LM\"");
|
||||
if (ICanEdit)
|
||||
HTM_INPUT_TEXT ("Surname2",Usr_MAX_CHARS_FIRSTNAME_OR_SURNAME,UsrDat->Surname2,
|
||||
HTM_INPUT_TEXT ("Surname2",Usr_MAX_CHARS_FIRSTNAME_OR_SURNAME,
|
||||
UsrDat->Surname2,false,
|
||||
"class=\"REC_C2_BOT_INPUT\"");
|
||||
else if (UsrDat->Surname2[0])
|
||||
fprintf (Gbl.F.Out,"<strong>%s</strong>",UsrDat->Surname2);
|
||||
|
@ -3237,7 +3235,8 @@ static void Rec_ShowFirstName (struct UsrData *UsrDat,
|
|||
|
||||
HTM_TD_Begin ("colspan=\"2\" class=\"REC_C2_BOT REC_DAT_BOLD LM\"");
|
||||
if (ICanEdit)
|
||||
HTM_INPUT_TEXT ("FirstName",Usr_MAX_CHARS_FIRSTNAME_OR_SURNAME,UsrDat->FirstName,
|
||||
HTM_INPUT_TEXT ("FirstName",Usr_MAX_CHARS_FIRSTNAME_OR_SURNAME,
|
||||
UsrDat->FirstName,false,
|
||||
"class=\"REC_C2_BOT_INPUT\"%s",
|
||||
TypeOfView == Rec_SHA_MY_RECORD_FORM ? " required=\"required\"" :
|
||||
"");
|
||||
|
@ -3328,7 +3327,8 @@ static void Rec_ShowOriginPlace (struct UsrData *UsrDat,
|
|||
if (ShowData)
|
||||
{
|
||||
if (ICanEdit)
|
||||
HTM_INPUT_TEXT ("OriginPlace",Usr_MAX_CHARS_ADDRESS,UsrDat->OriginPlace,
|
||||
HTM_INPUT_TEXT ("OriginPlace",Usr_MAX_CHARS_ADDRESS,
|
||||
UsrDat->OriginPlace,false,
|
||||
"class=\"REC_C2_BOT_INPUT\"");
|
||||
else if (UsrDat->OriginPlace[0])
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->OriginPlace);
|
||||
|
@ -3393,7 +3393,8 @@ static void Rec_ShowLocalAddress (struct UsrData *UsrDat,
|
|||
if (ShowData)
|
||||
{
|
||||
if (ICanEdit)
|
||||
HTM_INPUT_TEXT ("LocalAddress",Usr_MAX_CHARS_ADDRESS,UsrDat->LocalAddress,
|
||||
HTM_INPUT_TEXT ("LocalAddress",Usr_MAX_CHARS_ADDRESS,
|
||||
UsrDat->LocalAddress,false,
|
||||
"class=\"REC_C2_BOT_INPUT\"");
|
||||
else if (UsrDat->LocalAddress[0])
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->LocalAddress);
|
||||
|
@ -3465,7 +3466,8 @@ static void Rec_ShowFamilyAddress (struct UsrData *UsrDat,
|
|||
if (ShowData)
|
||||
{
|
||||
if (ICanEdit)
|
||||
HTM_INPUT_TEXT ("FamilyAddress",Usr_MAX_CHARS_ADDRESS,UsrDat->FamilyAddress,
|
||||
HTM_INPUT_TEXT ("FamilyAddress",Usr_MAX_CHARS_ADDRESS,
|
||||
UsrDat->FamilyAddress,false,
|
||||
"class=\"REC_C2_BOT_INPUT\"");
|
||||
else if (UsrDat->FamilyAddress[0])
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->FamilyAddress);
|
||||
|
@ -4180,10 +4182,8 @@ static void Rec_ShowFormMyInsCtrDpt (bool IAmATeacher)
|
|||
|
||||
HTM_TD_Begin ("class=\"REC_C2_BOT LM\"");
|
||||
Frm_StartFormAnchor (ActChgMyOff,Rec_MY_INS_CTR_DPT_ID);
|
||||
HTM_INPUT_TEXT ("Office",Usr_MAX_CHARS_ADDRESS,Gbl.Usrs.Me.UsrDat.Tch.Office,
|
||||
"class=\"REC_C2_BOT_INPUT\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("Office",Usr_MAX_CHARS_ADDRESS,Gbl.Usrs.Me.UsrDat.Tch.Office,true,
|
||||
"class=\"REC_C2_BOT_INPUT\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -1916,7 +1916,7 @@ void Svy_RequestCreatOrEditSvy (void)
|
|||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("Title",Svy_MAX_CHARS_SURVEY_TITLE,Svy.Title,
|
||||
HTM_INPUT_TEXT ("Title",Svy_MAX_CHARS_SURVEY_TITLE,Svy.Title,false,
|
||||
"size=\"45\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
|
|
@ -917,7 +917,7 @@ static void Syl_PutFormItemSyllabus (bool NewItem,unsigned NumItem,int Level,int
|
|||
ActModIteSylPra));
|
||||
Gbl.Syllabus.ParamNumItem = NumItem;
|
||||
Syl_PutParamNumItem ();
|
||||
HTM_INPUT_TEXT ("Txt",Syl_MAX_CHARS_TEXT_ITEM,Text,
|
||||
HTM_INPUT_TEXT ("Txt",Syl_MAX_CHARS_TEXT_ITEM,Text,false,
|
||||
"size=\"60\" placeholder=\"%s\"",
|
||||
Txt_Enter_a_new_item_here);
|
||||
if (NewItem)
|
||||
|
|
25
swad_test.c
25
swad_test.c
|
@ -1808,10 +1808,8 @@ static void Tst_ShowFormEditTags (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
Frm_StartForm (ActRenTag);
|
||||
Par_PutHiddenParamString (NULL,"OldTagTxt",row[1]);
|
||||
HTM_INPUT_TEXT ("NewTagTxt",Tst_MAX_CHARS_TAG,row[1],
|
||||
"size=\"36\""
|
||||
" onchange=\"document.getElementById('%s').submit();\"",
|
||||
Gbl.Form.Id);
|
||||
HTM_INPUT_TEXT ("NewTagTxt",Tst_MAX_CHARS_TAG,row[1],true,
|
||||
"size=\"36\"");
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -1960,7 +1958,7 @@ static void Tst_ShowFormConfigTst (void)
|
|||
snprintf (StrMinTimeNxtTstPerQst,sizeof (StrMinTimeNxtTstPerQst),
|
||||
"%lu",
|
||||
Gbl.Test.Config.MinTimeNxtTstPerQst);
|
||||
HTM_INPUT_TEXT ("MinTimeNxtTstPerQst",7,StrMinTimeNxtTstPerQst,
|
||||
HTM_INPUT_TEXT ("MinTimeNxtTstPerQst",7,StrMinTimeNxtTstPerQst,false,
|
||||
"size=\"7\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -2024,7 +2022,7 @@ static void Tst_PutInputFieldNumQst (const char *Field,const char *Label,
|
|||
snprintf (StrValue,sizeof (StrValue),
|
||||
"%u",
|
||||
Value);
|
||||
HTM_INPUT_TEXT (Field,3,StrValue,
|
||||
HTM_INPUT_TEXT (Field,3,StrValue,false,
|
||||
"size=\"3\" required=\"required\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -4220,7 +4218,7 @@ static void Tst_WriteTextAnsViewTest (unsigned NumQst)
|
|||
snprintf (StrAns,sizeof (StrAns),
|
||||
"Ans%06u",
|
||||
NumQst);
|
||||
HTM_INPUT_TEXT (StrAns,Tst_MAX_BYTES_ANSWERS_ONE_QST,"",
|
||||
HTM_INPUT_TEXT (StrAns,Tst_MAX_BYTES_ANSWERS_ONE_QST,"",false,
|
||||
"size=\"40\"");
|
||||
}
|
||||
|
||||
|
@ -4424,7 +4422,7 @@ static void Tst_WriteIntAnsViewTest (unsigned NumQst)
|
|||
snprintf (StrAns,sizeof (StrAns),
|
||||
"Ans%06u",
|
||||
NumQst);
|
||||
HTM_INPUT_TEXT (StrAns,11,"",
|
||||
HTM_INPUT_TEXT (StrAns,11,"",false,
|
||||
"size=\"11\"");
|
||||
}
|
||||
|
||||
|
@ -4543,7 +4541,7 @@ static void Tst_WriteFloatAnsViewTest (unsigned NumQst)
|
|||
snprintf (StrAns,sizeof (StrAns),
|
||||
"Ans%06u",
|
||||
NumQst);
|
||||
HTM_INPUT_TEXT (StrAns,Tst_MAX_BYTES_FLOAT_ANSWER,"",
|
||||
HTM_INPUT_TEXT (StrAns,Tst_MAX_BYTES_FLOAT_ANSWER,"",false,
|
||||
"size=\"11\"");
|
||||
}
|
||||
|
||||
|
@ -5128,9 +5126,8 @@ static void Tst_PutFormEditOneQst (char Stem[Cns_MAX_BYTES_TEXT + 1],
|
|||
snprintf (StrTagTxt,sizeof (StrTagTxt),
|
||||
"TagTxt%u",
|
||||
NumTag);
|
||||
HTM_INPUT_TEXT (StrTagTxt,Tst_MAX_CHARS_TAG,StrTagTxt,
|
||||
"class=\"TAG_TXT\""
|
||||
" onchange=\"changeSelTag('%u')\"",
|
||||
HTM_INPUT_TEXT (StrTagTxt,Tst_MAX_CHARS_TAG,StrTagTxt,false,
|
||||
"class=\"TAG_TXT\" onchange=\"changeSelTag('%u')\"",
|
||||
NumTag);
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -5216,7 +5213,7 @@ static void Tst_PutFormEditOneQst (char Stem[Cns_MAX_BYTES_TEXT + 1],
|
|||
snprintf (StrInteger,sizeof (StrInteger),
|
||||
"%ld",
|
||||
Gbl.Test.Answer.Integer);
|
||||
HTM_INPUT_TEXT ("AnsInt",11,StrInteger,
|
||||
HTM_INPUT_TEXT ("AnsInt",11,StrInteger,false,
|
||||
"size=\"11\" required=\"required\"%s",
|
||||
Gbl.Test.AnswerType == Tst_ANS_INT ? "" :
|
||||
" disabled=\"disabled\"");
|
||||
|
@ -5421,7 +5418,7 @@ static void Tst_PutFloatInputField (const char *Label,const char *Field,
|
|||
snprintf (StrFloat,sizeof (StrFloat),
|
||||
"%lg",
|
||||
Value);
|
||||
HTM_INPUT_TEXT (Field,Tst_MAX_BYTES_FLOAT_ANSWER,StrFloat,
|
||||
HTM_INPUT_TEXT (Field,Tst_MAX_BYTES_FLOAT_ANSWER,StrFloat,false,
|
||||
"size=\"11\" required=\"required\"%s",
|
||||
Gbl.Test.AnswerType == Tst_ANS_FLOAT ? "" :
|
||||
" disabled=\"disabled\"");
|
||||
|
|
|
@ -2610,7 +2610,7 @@ void Usr_WriteFormLogin (Act_Action_t NextAction,void (*FuncParams) (void))
|
|||
HTM_LABEL_Begin ("for=\"UsrId\"");
|
||||
Ico_PutIcon ("user.svg",Txt_User[Usr_SEX_UNKNOWN],"CONTEXT_ICO_16x16");
|
||||
HTM_LABEL_End ();
|
||||
HTM_INPUT_TEXT ("UsrId",Cns_MAX_CHARS_EMAIL_ADDRESS,Gbl.Usrs.Me.UsrIdLogin,
|
||||
HTM_INPUT_TEXT ("UsrId",Cns_MAX_CHARS_EMAIL_ADDRESS,Gbl.Usrs.Me.UsrIdLogin,false,
|
||||
"size=\"18\" placeholder=\"%s\""
|
||||
" autofocus=\"autofocus\" required=\"required\"",
|
||||
Txt_nick_email_or_ID);
|
||||
|
|
Loading…
Reference in New Issue