mirror of https://github.com/acanas/swad-core.git
Version19.51.19
This commit is contained in:
parent
023b977416
commit
f72b97675f
|
@ -833,7 +833,7 @@ void HTM_INPUT_TEXT (const char *Name,unsigned MaxLength,const char *Value,bool
|
||||||
fprintf (Gbl.F.Out," />");
|
fprintf (Gbl.F.Out," />");
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTM_INPUT_SEARCH (const char *Name,unsigned MaxLength,const char *Value,bool SubmitOnChange,
|
void HTM_INPUT_SEARCH (const char *Name,unsigned MaxLength,const char *Value,
|
||||||
const char *fmt,...)
|
const char *fmt,...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
@ -864,10 +864,6 @@ void HTM_INPUT_SEARCH (const char *Name,unsigned MaxLength,const char *Value,boo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SubmitOnChange)
|
|
||||||
fprintf (Gbl.F.Out," onchange=\"document.getElementById('%s').submit();\"",
|
|
||||||
Gbl.Form.Id);
|
|
||||||
|
|
||||||
fprintf (Gbl.F.Out," />");
|
fprintf (Gbl.F.Out," />");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ void HTM_LABEL_End (void);
|
||||||
|
|
||||||
void HTM_INPUT_TEXT (const char *Name,unsigned MaxLength,const char *Value,bool SubmitOnChange,
|
void HTM_INPUT_TEXT (const char *Name,unsigned MaxLength,const char *Value,bool SubmitOnChange,
|
||||||
const char *fmt,...);
|
const char *fmt,...);
|
||||||
void HTM_INPUT_SEARCH (const char *Name,unsigned MaxLength,const char *Value,bool SubmitOnChange,
|
void HTM_INPUT_SEARCH (const char *Name,unsigned MaxLength,const char *Value,
|
||||||
const char *fmt,...);
|
const char *fmt,...);
|
||||||
void HTM_INPUT_TEL (const char *Name,const char *Value,bool SubmitOnChange,
|
void HTM_INPUT_TEL (const char *Name,const char *Value,bool SubmitOnChange,
|
||||||
const char *fmt,...);
|
const char *fmt,...);
|
||||||
|
|
|
@ -413,10 +413,10 @@ static void Asg_ShowOneAssignment (long AsgCod,bool PrintView)
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
/* Assignment folder */
|
/* Assignment folder */
|
||||||
HTM_TD_Begin ("class=\"DAT LT");
|
if (PrintView)
|
||||||
if (!PrintView)
|
HTM_TD_Begin ("class=\"DAT LT");
|
||||||
fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd);
|
else
|
||||||
fprintf (Gbl.F.Out,"\">");
|
HTM_TD_Begin ("class=\"DAT LT COLOR%u",Gbl.RowEvenOdd);
|
||||||
if (Asg.SendWork == Asg_SEND_WORK)
|
if (Asg.SendWork == Asg_SEND_WORK)
|
||||||
Asg_WriteAssignmentFolder (&Asg,PrintView);
|
Asg_WriteAssignmentFolder (&Asg,PrintView);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
|
@ -469,6 +469,9 @@ contiene una de las que yo imparto. As
|
||||||
// TODO: En resultados de test y de juegos, en preguntas modificadas se podría mostrar la puntuación obtenida en la pregunta (ahora no sale)
|
// TODO: En resultados de test y de juegos, en preguntas modificadas se podría mostrar la puntuación obtenida en la pregunta (ahora no sale)
|
||||||
// TODO: Al crear un nuevo juego, debería irse a la pantalla de añadir preguntas (la misma opción que sale cuando pulsas en editar un juego existente)
|
// TODO: Al crear un nuevo juego, debería irse a la pantalla de añadir preguntas (la misma opción que sale cuando pulsas en editar un juego existente)
|
||||||
|
|
||||||
|
// TODO: Refactorize SELECT and OPTION
|
||||||
|
// TODO: Refactorize DL, DT, DD
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -487,7 +490,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.51.18 (2019-11-04)"
|
#define Log_PLATFORM_VERSION "SWAD 19.51.19 (2019-11-04)"
|
||||||
#define CSS_FILE "swad19.47.css"
|
#define CSS_FILE "swad19.47.css"
|
||||||
#define JS_FILE "swad19.39.js"
|
#define JS_FILE "swad19.39.js"
|
||||||
/*
|
/*
|
||||||
|
@ -495,6 +498,7 @@ ps2pdf source.ps destination.pdf
|
||||||
// TODO: Impedir la creación y edición de proyectos si no son editables.
|
// 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)
|
// TODO: Importante: filtrar proyectos por usuarios (igual que en trabajos o en asistencia)
|
||||||
|
|
||||||
|
Version 19.51.19: Nov 04, 2019 Code refactoring in HTML inputs. (245904 lines)
|
||||||
Version 19.51.18: Nov 04, 2019 Code refactoring in HTML inputs. (245912 lines)
|
Version 19.51.18: Nov 04, 2019 Code refactoring in HTML inputs. (245912 lines)
|
||||||
Version 19.51.17: Nov 04, 2019 Code refactoring in HTML inputs. (245887 lines)
|
Version 19.51.17: Nov 04, 2019 Code refactoring in HTML inputs. (245887 lines)
|
||||||
Version 19.51.16: Nov 04, 2019 Code refactoring in HTML inputs. (245893 lines)
|
Version 19.51.16: Nov 04, 2019 Code refactoring in HTML inputs. (245893 lines)
|
||||||
|
|
|
@ -2663,7 +2663,7 @@ void Msg_ShowFormToFilterMsgs (void)
|
||||||
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"%s: ",TxtFromTo[Gbl.Msg.TypeOfMessages]);
|
fprintf (Gbl.F.Out,"%s: ",TxtFromTo[Gbl.Msg.TypeOfMessages]);
|
||||||
HTM_INPUT_SEARCH ("FilterFromTo",Usr_MAX_CHARS_FIRSTNAME_OR_SURNAME * 3,
|
HTM_INPUT_SEARCH ("FilterFromTo",Usr_MAX_CHARS_FIRSTNAME_OR_SURNAME * 3,
|
||||||
Gbl.Msg.FilterFromTo,false,
|
Gbl.Msg.FilterFromTo,
|
||||||
"size=\"20\"");
|
"size=\"20\"");
|
||||||
HTM_LABEL_End ();
|
HTM_LABEL_End ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
@ -2673,7 +2673,7 @@ void Msg_ShowFormToFilterMsgs (void)
|
||||||
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"%s: ",Txt_MSG_Content);
|
fprintf (Gbl.F.Out,"%s: ",Txt_MSG_Content);
|
||||||
HTM_INPUT_SEARCH ("FilterContent",Msg_MAX_CHARS_FILTER_CONTENT,
|
HTM_INPUT_SEARCH ("FilterContent",Msg_MAX_CHARS_FILTER_CONTENT,
|
||||||
Gbl.Msg.FilterContent,false,
|
Gbl.Msg.FilterContent,
|
||||||
"size=\"20\"");
|
"size=\"20\"");
|
||||||
HTM_LABEL_End ();
|
HTM_LABEL_End ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
|
@ -159,7 +159,7 @@ static void Sch_PutFormToSearchWithWhatToSearchAndScope (Act_Action_t Action,Hie
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
|
||||||
/***** String to find *****/
|
/***** String to find *****/
|
||||||
Sch_PutInputStringToSearch (NULL);
|
Sch_PutInputStringToSearch ("");
|
||||||
|
|
||||||
/***** What to search? *****/
|
/***** What to search? *****/
|
||||||
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
HTM_LABEL_Begin ("class=\"%s\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
|
@ -249,17 +249,9 @@ void Sch_PutInputStringToSearch (const char *IdInputText)
|
||||||
|
|
||||||
/***** String to find *****/
|
/***** String to find *****/
|
||||||
// Input field not required, because it can be hidden (display:none)
|
// Input field not required, because it can be hidden (display:none)
|
||||||
fprintf (Gbl.F.Out,"<input");
|
HTM_INPUT_SEARCH ("Search",Sch_MAX_CHARS_STRING_TO_FIND,Gbl.Search.Str,
|
||||||
if (IdInputText)
|
"id=\"%s\" size=\"18\" placeholder=\"%s…\"",
|
||||||
fprintf (Gbl.F.Out," id=\"%s\"",IdInputText);
|
IdInputText,Txt_Search);
|
||||||
fprintf (Gbl.F.Out," type=\"search\" name=\"Search\""
|
|
||||||
" size=\"18\" maxlength=\"%u\" value=\"%s\"",
|
|
||||||
Sch_MAX_CHARS_STRING_TO_FIND,
|
|
||||||
Gbl.Search.Str);
|
|
||||||
if (!Gbl.Search.Str[0])
|
|
||||||
fprintf (Gbl.F.Out," placeholder=\"%s…\"",
|
|
||||||
Txt_Search);
|
|
||||||
fprintf (Gbl.F.Out," />");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue