Version 15.46.1

This commit is contained in:
Antonio Cañas Vargas 2015-11-27 11:54:56 +01:00
parent 34f5b98ba8
commit 26cf9e52a1
5 changed files with 24 additions and 8 deletions

View File

@ -135,6 +135,18 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;}
text-align:left;
vertical-align:middle;
}
@media only screen and (max-width: 1279px) { /* For mobile phones and tablets */
#head_search_text
{
display:none;
}
}
@media only screen and (min-width: 1280px) { /* For desktop */
#head_search_text
{
display:initial;
}
}
#head_row_1_usr_lang
{
display:table-cell;
@ -331,7 +343,7 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;}
width:138px;
}
@media only screen and (max-width: 1280px) { /* For mobile phones: */
@media only screen and (max-width: 1279px) { /* For mobile phones and tablets */
#main_zone_central_none, #main_zone_central_left, #main_zone_central_right, #main_zone_central_both
{
display:table-cell;
@ -339,7 +351,7 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;}
vertical-align:top;
}
}
@media only screen and (min-width: 1280px) { /* For desktop: */
@media only screen and (min-width: 1280px) { /* For desktop */
#main_zone_central_none /* Hide left and right columns */
{
display:table-cell;

View File

@ -115,11 +115,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.46 (2015/11/27)"
#define Log_PLATFORM_VERSION "SWAD 15.46.1 (2015/11/27)"
// Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
/*
Version 15.46.1: Nov 27, 2015 Responsive design in search box (top of the page). (188094 lines)
Version 15.46: Nov 27, 2015 First version with responsive design: both side columns are hidden when screen size is small. (188078 lines)
Version 15.45.15: Nov 25, 2015 Some CSS styles related to layout are moved to CSS file. (188021 lines)
Version 15.45.14: Nov 25, 2015 Some CSS styles related to layout are moved to CSS file. (188037 lines)

View File

@ -760,7 +760,7 @@ static void Lay_WritePageTopHeadingDesktop (void)
(Gbl.CurrentCty.Cty.CtyCod > 0 ? ActCtySch :
ActSysSch)))));
Sco_PutParamScope (Sco_SCOPE_SYS);
Sch_PutFormToSearch (Gbl.Prefs.PathTheme);
Sch_PutFormToSearch (Gbl.Prefs.PathTheme,"head_search_text");
Act_FormEnd ();
fprintf (Gbl.F.Out,"</div>");

View File

@ -266,7 +266,7 @@ static void Sch_PutFormToSearchWithWhatToSearchAndScope (Act_Action_t Action,Sco
fprintf (Gbl.F.Out,"</select>");
/***** String to find *****/
Sch_PutFormToSearch (Gbl.Prefs.IconsURL);
Sch_PutFormToSearch (Gbl.Prefs.IconsURL,NULL);
/***** Send button and end frame *****/
Lay_EndRoundFrameWithButton (Lay_CONFIRM_BUTTON,Txt_Search);
@ -304,12 +304,15 @@ static bool Sch_CheckIfIHavePermissionToSearch (Sch_WhatToSearch_t WhatToSearch)
/*********** Put form to search courses, teachers, documents... **************/
/*****************************************************************************/
void Sch_PutFormToSearch (const char *IconURL)
void Sch_PutFormToSearch (const char *IconURL,const char *IdInputText)
{
extern const char *Txt_Search;
/***** String to find *****/
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Search\""
fprintf (Gbl.F.Out,"<input");
if (IdInputText)
fprintf (Gbl.F.Out," id=\"%s\"",IdInputText);
fprintf (Gbl.F.Out," type=\"text\" name=\"Search\""
" size=\"30\" maxlength=\"%u\" value=\"%s\"",
Sch_MAX_LENGTH_STRING_TO_FIND,
Gbl.Search.Str);

View File

@ -63,7 +63,7 @@ void Sch_ReqInsSearch (void);
void Sch_ReqCtrSearch (void);
void Sch_ReqDegSearch (void);
void Sch_ReqCrsSearch (void);
void Sch_PutFormToSearch (const char *IconURL);
void Sch_PutFormToSearch (const char *IconURL,const char *IdInputText);
void Sch_GetParamWhatToSearch (void);
void Sch_GetParamsSearch (void);
void Sch_SysSearch (void);