Version 14.39.1

This commit is contained in:
Antonio Cañas Vargas 2014-12-20 16:20:51 +01:00
parent 8ee0410000
commit 47bcbe0eea
8 changed files with 45 additions and 44 deletions

View File

@ -146,11 +146,11 @@ hr.YELLOW_SEPARA {height:0px; border-top:0px; border-bottom:#BD4815 dotted 1px;}
padding:8px;
background-color:#FAF098;
background-image:linear-gradient(bottom, #FAF098 0%, #FEED95 85%, #EED86C 100%);
background-image:-o-linear-gradient(bottom, #FAF098 0%, #FEED95 85%, #EED86C 100%);
background-image:-moz-linear-gradient(bottom, #FAF098 0%, #FEED95 85%, #EED86C 100%);
background-image:-webkit-linear-gradient(bottom, #FAF098 0%, #FEED95 85%, #EED86C 100%);
background-image:-ms-linear-gradient(bottom, #FAF098 0%, #FEED95 85%, #EED86C 100%);
background-image:linear-gradient(#EED86C 0%, #FEED95 15%, #FAF098 100%);
background-image:-o-linear-gradient(#EED86C 0%, #FEED95 15%, #FAF098 100%);
background-image:-moz-linear-gradient(#EED86C 0%, #FEED95 15%, #FAF098 100%);
background-image:-webkit-linear-gradient(#EED86C 0%, #FEED95 15%, #FAF098 100%);
background-image:-ms-linear-gradient(#EED86C 0%, #FEED95 15%, #FAF098 100%);
background-image:-webkit-gradient(
linear,
left bottom,

View File

@ -96,11 +96,11 @@ p {margin:0px;}
padding:8px;
background-color:#FAF098;
background-image:linear-gradient(bottom, #FAF098 0%, #FEED95 85%, #EED86C 100%);
background-image:-o-linear-gradient(bottom, #FAF098 0%, #FEED95 85%, #EED86C 100%);
background-image:-moz-linear-gradient(bottom, #FAF098 0%, #FEED95 85%, #EED86C 100%);
background-image:-webkit-linear-gradient(bottom, #FAF098 0%, #FEED95 85%, #EED86C 100%);
background-image:-ms-linear-gradient(bottom, #FAF098 0%, #FEED95 85%, #EED86C 100%);
background-image:linear-gradient(#EED86C 0%, #FEED95 15%, #FAF098 100%);
background-image:-o-linear-gradient(#EED86C 0%, #FEED95 15%, #FAF098 100%);
background-image:-moz-linear-gradient(#EED86C 0%, #FEED95 15%, #FAF098 100%);
background-image:-webkit-linear-gradient(#EED86C 0%, #FEED95 15%, #FAF098 100%);
background-image:-ms-linear-gradient(#EED86C 0%, #FEED95 15%, #FAF098 100%);
background-image:-webkit-gradient(
linear,
left bottom,

View File

@ -35,11 +35,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.39 (2014/12/20)"
#define Log_PLATFORM_VERSION "SWAD 14.39.1 (2014/12/20)"
// 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 | tail -1
/*
Version 14.39.1 :Dic 20, 2014 Change from XHTML 1.0 Transitional to HTML5. (? lines)
Version 14.39 :Dic 20, 2014 iframes removed from course info. (170746 lines)
Version 14.38.9 :Dic 20, 2014 The words "Course" and "Group" are removed from selection of course and groups in Documents and Shared files. (? lines)
Version 14.38.8 :Dic 18, 2014 Fixed bug in banned users. (170793 lines)

View File

@ -473,7 +473,7 @@ void Dat_DrawMonth (unsigned RealYear,unsigned RealMonth,
}
else
{
fprintf (Gbl.F.Out,"<span class=\"%s\"",ClassForDay);
fprintf (Gbl.F.Out,"<div class=\"%s\"",ClassForDay);
if (!PrintView && TextForDay)
fprintf (Gbl.F.Out," title=\"%s\"",TextForDay);
fprintf (Gbl.F.Out,">");
@ -489,7 +489,7 @@ void Dat_DrawMonth (unsigned RealYear,unsigned RealMonth,
"</table>"
"</form>");
else
fprintf (Gbl.F.Out,"</span>");
fprintf (Gbl.F.Out,"</div>");
fprintf (Gbl.F.Out,"</td>");

View File

@ -680,7 +680,7 @@ void Deg_WriteBigNameCtyInsCtrDegCrs (void)
Deg_MAX_LENGTH_FULL_NAME);
FullName[Deg_MAX_LENGTH_FULL_NAME] = '\0';
Str_LimitLengthHTMLStr (FullName,Deg_MAX_LENGTH_FULL_NAME_ON_PAGE_HEAD);
fprintf (Gbl.F.Out,"<span class=\"%s\"><br />%s</span>",
fprintf (Gbl.F.Out,"<div class=\"%s\">%s</div>",
The_ClassCourse[Gbl.Prefs.Theme],FullName);
}
}

View File

@ -195,12 +195,11 @@ void Lay_WriteStartOfPage (void)
/***** Write header to standard output to avoid timeout *****/
// Two \r\n are necessary
fprintf (stdout,"Content-type: text/html; charset=ISO-8859-1\r\n\r\n"
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\""
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
"<!DOCTYPE html>\n");
/***** Write start of XHTML code *****/
// It is necessary to comment the line AddDefaultCharset UTF8 in httpd.conf to enable meta tag
fprintf (Gbl.F.Out,"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"%s\">\n"
// WARNING: It is necessary to comment the line AddDefaultCharset UTF8 in httpd.conf to enable meta tag
fprintf (Gbl.F.Out,"<html lang=\"%s\">\n"
"<head>\n"
"<meta http-equiv=\"Content-Type\" content=\"text/html;charset=iso-8859-1\" />\n",
Txt_STR_LANG_ID[Gbl.Prefs.Language]);
@ -270,7 +269,7 @@ void Lay_WriteStartOfPage (void)
if (Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW)
fprintf (Gbl.F.Out,"<div id=\"zoomLyr\" class=\"ZOOM\">"
"<img id=\"zoomImg\" src=\"%s/_.gif\" alt=\"\" class=\"IMG_USR\" /><br />"
"<img id=\"zoomImg\" src=\"%s/_.gif\" alt=\"\" class=\"IMG_USR\" />"
"<div id=\"zoomTxt\" align=\"center\"></div>"
"</div>",
Gbl.Prefs.IconsURL);
@ -288,8 +287,8 @@ void Lay_WriteStartOfPage (void)
ColspanCentralPart = 2;
}
fprintf (Gbl.F.Out,"<td colspan=\"%u\" align=\"center\" valign=\"top\">"
"<div id=\"CENTRAL_ZONE\" style=\"background-color:%s;valign:top;vertical-align:top;\">"
"<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%%\" style=\"valign:top;vertical-align:top;\">"
"<div id=\"CENTRAL_ZONE\" style=\"background-color:%s;vertical-align:top;\">"
"<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%%\" style=\"vertical-align:top;\">"
"<tr>",
ColspanCentralPart,
The_TabOnBgColors[Gbl.Prefs.Theme]);
@ -349,11 +348,9 @@ void Lay_WriteStartOfPage (void)
if (Gbl.Now.Date.Month == 1 &&
Gbl.Now.Date.Day == 1)
{
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"ASG_TITLE\">"
" <br /> <br /> <br />");
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"ASG_TITLE\" style=\"margin:50px;\">");
fprintf (Gbl.F.Out,Txt_NEW_YEAR_GREETING,Gbl.Now.Date.Year);
fprintf (Gbl.F.Out,"<br /> <br /> <br /> "
"</div>");
fprintf (Gbl.F.Out,"</div>");
}
/* Write message indicating number of clicks allowed before sending my photo */
@ -923,7 +920,7 @@ static void Lay_DrawTabsDeskTop (void)
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s32x32.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON32x32\" style=\"margin:4px;\" />"
"<br />%s"
"<div>%s</div>"
"</a>"
"</form>",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION_32x32,
@ -937,7 +934,7 @@ static void Lay_DrawTabsDeskTop (void)
"<img src=\"%s/%s/%s32x32.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON32x32\" style=\"margin:4px;\" />"
"<span class=\"%s\"><br />%s</span>",
"<div class=\"%s\">%s</div>",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION_32x32,
Lay_TabIcons[NumTab],
Txt_TABS_FULL_TXT[NumTab],
@ -995,7 +992,7 @@ static void Lay_DrawTabsMobile (void)
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s64x64.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON64x64\" style=\"margin:4px;\" />"
"<br />%s"
"<div>%s</div>"
"</a>"
"</form>"
"</div>",
@ -1010,7 +1007,7 @@ static void Lay_DrawTabsMobile (void)
"<img src=\"%s/%s/%s64x64.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON64x64\" style=\"margin:4px;\" />"
"<span class=\"%s\"><br />%s</span>"
"<div class=\"%s\">%s</div>"
"</div>",
Gbl.Prefs.PathIconSet,
Cfg_ICON_ACTION_64x64,
@ -1240,7 +1237,7 @@ static void Lay_WriteMenuThisTabMobile (void)
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s64x64.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON64x64\" style=\"margin:4px;\" />"
"<br />%s"
"<div>%s</div>"
"</a>"
"</form>"
"</div>"
@ -1335,13 +1332,13 @@ static void Lay_WriteTitleAction (void)
Act_Actions[Act_Actions[Gbl.CurrentAct].SuperAction].Icon);
/***** Title *****/
fprintf (Gbl.F.Out,"<span class=\"%s\">%s &gt; %s</span>",
fprintf (Gbl.F.Out,"<div class=\"%s\">%s &gt; %s</div>",
The_ClassTitleAction[Gbl.Prefs.Theme],
Txt_TABS_FULL_TXT[Act_Actions[Gbl.CurrentAct].Tab],
Act_GetTitleAction (Gbl.CurrentAct));
/***** Subtitle *****/
fprintf (Gbl.F.Out,"<span class=\"%s\"><br />%s</span>",
fprintf (Gbl.F.Out,"<div class=\"%s\">%s</div>",
The_ClassSubtitleAction[Gbl.Prefs.Theme],
Act_GetSubtitleAction (Gbl.CurrentAct));
@ -1738,26 +1735,29 @@ void Lay_WritePageFooter (void)
case Lay_LAYOUT_DESKTOP:
Lay_WriteFootFromHTMLFile ();
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"FOOT\" style=\"padding-bottom:10px;\"><br />");
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"FOOT\" style=\"padding-bottom:10px;\">");
/***** Institution and centre hosting the platform *****/
fprintf (Gbl.F.Out,"<a href=\"%s\" class=\"FOOT\" target=\"_blank\">"
"<img src=\"%s/%s\" width=\"%u\" height=\"%u\" alt=\"%s\" /><br />"
"%s"
"</a><br />",
"<img src=\"%s/%s\" width=\"%u\" height=\"%u\" alt=\"%s\" />"
"<div>%s</div>"
"</a>",
Cfg_ABOUT_URL,
Gbl.Prefs.IconsURL,Cfg_ABOUT_LOGO,
Cfg_ABOUT_LOGO_WIDTH,Cfg_ABOUT_LOGO_HEIGHT,
Cfg_ABOUT_NAME,
Cfg_ABOUT_NAME);
fprintf (Gbl.F.Out,"<a href=\"%s\" class=\"FOOT\" target=\"_blank\">%s:</a> "
"<a href=\"mailto:%s\" class=\"FOOT\" target=\"_blank\">%s</a><br />",
fprintf (Gbl.F.Out,"<div>"
"<a href=\"%s\" class=\"FOOT\" target=\"_blank\">%s:</a> "
"<a href=\"mailto:%s\" class=\"FOOT\" target=\"_blank\">%s</a>"
"</div>",
Cfg_HELP_WEB,Txt_Questions_and_problems,
Cfg_PLATFORM_RESPONSIBLE_E_MAIL,Cfg_PLATFORM_RESPONSIBLE_E_MAIL);
/***** About *****/
fprintf (Gbl.F.Out,"<a href=\"%s\" class=\"FOOT\" target=\"_blank\">",
fprintf (Gbl.F.Out,"<div>"
"<a href=\"%s\" class=\"FOOT\" target=\"_blank\">",
Cfg_ABOUT_SWAD_URL);
fprintf (Gbl.F.Out,Txt_About_X,Log_PLATFORM_VERSION);
fprintf (Gbl.F.Out,"</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
@ -1765,7 +1765,8 @@ void Lay_WritePageFooter (void)
/***** Write time to generate and send page *****/
Sta_WriteTimeToGenerateAndSendPage ();
fprintf (Gbl.F.Out,"</div>");
fprintf (Gbl.F.Out,"</div>"
"</div>");
break;
case Lay_LAYOUT_MOBILE:
default:

View File

@ -326,7 +326,7 @@ void Sch_PutFormToSearch (const char *IconURL)
/***** Send button *****/
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/search16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" style=\"padding-top:3px;vertical-align:top;valign:top;\" />",
" class=\"ICON16x16\" style=\"padding-top:3px;vertical-align:top;\" />",
IconURL,
Txt_Search,
Txt_Search);

View File

@ -222,9 +222,8 @@ void Sta_ExitIfTooFast (void)
/***** Write header to standard output to avoid timeout *****/
// Two \r\n are necessary
fprintf (stdout,"Content-type: text/html; charset=ISO-8859-1\r\n\r\n"
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\""
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"%s\">"
"<!DOCTYPE html>\n"
"<html lang=\"%s\">\n"
"<head>"
"<title>%s</title>"
"</head>"