Version 14.39.6

This commit is contained in:
Antonio Cañas Vargas 2014-12-22 01:31:23 +01:00
parent 5d5db513fd
commit 862ae4bb99
22 changed files with 49 additions and 45 deletions

View File

@ -4138,7 +4138,7 @@ void Act_WriteSmallMFUActions (struct Act_ListMFUActions *ListMFUActions)
fprintf (Gbl.F.Out," %s</a></form>",Txt_Frequent_actions);
fprintf (Gbl.F.Out,"<div id=\"MFU_actions\">"
"<table width=\"120\">");
"<table style=\"width:120px;\">");
/***** Write list of frequently used actions *****/
for (NumAct = 0;

View File

@ -1246,7 +1246,7 @@ static void Ctr_ListCentresForEdition (void)
UsrDat.UsrCod = Ctr->RequesterUsrCod;
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
fprintf (Gbl.F.Out,"<td align=\"left\" width=\"100\" valign=\"top\">"
"<table width=\"100\" class=\"CELLS_PAD_2\">"
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
"<tr>");
Msg_WriteMsgAuthor (&UsrDat,80,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
@ -1943,7 +1943,7 @@ static void Ctr_PutFormToCreateCentre (void)
/***** Centre requester *****/
fprintf (Gbl.F.Out,"<td align=\"left\" width=\"100\" valign=\"top\">"
"<table width=\"100\" class=\"CELLS_PAD_2\">"
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
"<tr>");
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,80,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"

View File

@ -35,11 +35,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.39.5 (2014/12/21)"
#define Log_PLATFORM_VERSION "SWAD 14.39.6 (2014/12/22)"
// 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.6 :Dic 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (? lines)
Version 14.39.5 :Dic 21, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (170725 lines)
Version 14.39.4 :Dic 21, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (170688 lines)
Version 14.39.3 :Dic 21, 2014 Changes to validate HTML5 in W3C validator.

View File

@ -251,7 +251,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Start table *****/
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\" style=\"width:110px;\">"
"<table width=\"110\">");
"<table style=\"width:110px;\">");
/***** Write total number of sessions *****/
fprintf (Gbl.F.Out,"<tr>"
@ -398,7 +398,7 @@ void Con_ShowConnectedUsrsBelongingToScope (void)
break;
case Con_SHOW_ON_RIGHT_COLUMN:
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\" style=\"width:110px;\">"
"<table width=\"110\">");
"<table style=\"width:110px;\">");
break;
}

View File

@ -1246,7 +1246,7 @@ static void Crs_ListCoursesForEdition (void)
UsrDat.UsrCod = Crs->RequesterUsrCod;
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
fprintf (Gbl.F.Out,"<td align=\"left\" width=\"100\" valign=\"top\">"
"<table width=\"100\" class=\"CELLS_PAD_2\">"
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
"<tr>");
Msg_WriteMsgAuthor (&UsrDat,80,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
@ -1429,7 +1429,7 @@ static void Crs_PutFormToCreateCourse (void)
/***** Course requester *****/
fprintf (Gbl.F.Out,"<td align=\"left\" width=\"100\" valign=\"top\">"
"<table width=\"100\" class=\"CELLS_PAD_2\">"
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
"<tr>");
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,80,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"

View File

@ -465,7 +465,7 @@ void Dat_DrawMonth (unsigned RealYear,unsigned RealMonth,
if (PutLinkToEvents && ThisDayHasEvent)
{
Act_FormStart (ActSeeExaAnn);
fprintf (Gbl.F.Out,"<table width=\"100%%\">"
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">"
"<tr>"
"<td align=\"center\" class=\"%s\">",
ClassForDay);

View File

@ -1542,7 +1542,7 @@ static void Deg_ListDegreesForEdition (void)
UsrDat.UsrCod = Deg->RequesterUsrCod;
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
fprintf (Gbl.F.Out,"<td align=\"left\" width=\"100\" valign=\"top\">"
"<table width=\"100\" class=\"CELLS_PAD_2\">"
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
"<tr>");
Msg_WriteMsgAuthor (&UsrDat,80,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
@ -1806,7 +1806,7 @@ static void Deg_PutFormToCreateDegree (void)
/***** Degree requester *****/
fprintf (Gbl.F.Out,"<td align=\"left\" width=\"100\" valign=\"top\">"
"<table width=\"100\" class=\"CELLS_PAD_2\">"
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
"<tr>");
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,80,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"

View File

@ -780,7 +780,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_tTypeViewExamAnnouncement_
Lay_StartRoundFrameTable10 ("500px",0,NULL);
fprintf (Gbl.F.Out,"<tr>" \
"<td align=\"center\">" \
"<table width=\"100%%\" style=\"padding:20px; border-spacing:3px;\">");
"<table style=\"width:100%%; padding:20px; border-spacing:3px;\">");
/***** Institution logo *****/
fprintf (Gbl.F.Out,"<tr>" \

View File

@ -6325,7 +6325,7 @@ static void Brw_PutFormToCreateAFolder (const char *FileNameToShow)
Brw_ParamListFiles (Brw_IS_FOLDER,Gbl.FileBrowser.Priv.PathInTreeExceptFileOrFolder,Gbl.FileBrowser.FilFolLnkName);
/* Folder */
fprintf (Gbl.F.Out,"<table width=\"100%%\">"
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">"
"<tr>"
"<td width=\"30%%\" align=\"right\" class=\"%s\">%s:<br /></td>"
"<td align=\"left\" width=\"70%%\">"
@ -6568,7 +6568,7 @@ static void Brw_PutFormToCreateALink (const char *FileNameToShow)
Brw_ParamListFiles (Brw_IS_FOLDER,Gbl.FileBrowser.Priv.PathInTreeExceptFileOrFolder,Gbl.FileBrowser.FilFolLnkName);
/* URL */
fprintf (Gbl.F.Out,"<table width=\"100%%\">"
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">"
"<tr>"
"<td width=\"30%%\" align=\"right\" class=\"%s\">%s:<br /></td>"
"<td align=\"left\" width=\"70%%\">"

View File

@ -929,7 +929,7 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
Lay_StartRoundFrameTable10 (NULL,0,NULL);
fprintf (Gbl.F.Out,"<tr>"
"<td align=\"center\" width=\"100%%\">"
"<table width=\"100%%\" class=\"CELLS_PAD_2\">");
"<table class=\"CELLS_PAD_2\" style=\"width:100%%;\">");
mysql_data_seek (mysql_res,(my_ulonglong) (Pagination.FirstItemVisible-1));
for (NumRow = Pagination.FirstItemVisible;
@ -1119,7 +1119,7 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
/***** Write author or destinatary, and form to reply (in case of received post) *****/
fprintf (Gbl.F.Out,"</td>"
"<td align=\"left\" width=\"120\" colspan=\"2\" valign=\"top\">"
"<table width=\"120\" class=\"CELLS_PAD_2\">");
"<table class=\"CELLS_PAD_2\" style=\"width:120px;\">");
/* Write author */
fprintf (Gbl.F.Out,"<tr>");
@ -3452,7 +3452,8 @@ void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject)
For_PutAllHiddenParamsForum ();
fprintf (Gbl.F.Out,"<div align=\"center\">"
"<table><tr>"
"<table>"
"<tr>"
"<td align=\"left\"></td>"
"<td align=\"left\"><span class=\"%s\">%s</span>"
"<span class=\"DAT\"> (%s)</span></td>",

View File

@ -935,7 +935,8 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
fprintf (Gbl.F.Out,"</table>");
/***** Write number of courses with each number of indicators valid *****/
fprintf (Gbl.F.Out,"<table><tr>"
fprintf (Gbl.F.Out,"<table>"
"<tr>"
"<th align=\"right\" class=\"TIT_TBL\">%s</th>"
"<th colspan=\"2\" align=\"right\" class=\"TIT_TBL\">%s</th>"
"</tr>",
@ -956,9 +957,9 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
"<td align=\"right\" class=\"DAT_N\" style=\"border-style:solid none none none;border-width:1px;\">%s</td>"
"<td align=\"right\" class=\"DAT_N\" style=\"border-style:solid none none none;border-width:1px;\">%u</td>"
"<td align=\"right\" class=\"DAT_N\" style=\"border-style:solid none none none;border-width:1px;\">(%.1f%%)</td>"
"</tr>",
"</tr>"
"</table>",
Txt_Total,NumCrss,100.0);
fprintf (Gbl.F.Out,"</table>");
}
/*****************************************************************************/

View File

@ -1172,7 +1172,7 @@ static void Ins_ListInstitutionsForEdition (void)
UsrDat.UsrCod = Ins->RequesterUsrCod;
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
fprintf (Gbl.F.Out,"<td align=\"left\" width=\"100\" valign=\"top\">"
"<table width=\"100\" class=\"CELLS_PAD_2\">"
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
"<tr>");
Msg_WriteMsgAuthor (&UsrDat,80,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
@ -1705,7 +1705,7 @@ static void Ins_PutFormToCreateInstitution (void)
/***** Centre requester *****/
fprintf (Gbl.F.Out,"<td align=\"left\" width=\"100\" valign=\"top\">"
"<table width=\"100\" class=\"CELLS_PAD_2\">"
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
"<tr>");
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,80,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"

View File

@ -271,7 +271,7 @@ void Lay_WriteStartOfPage (void)
Gbl.Prefs.IconsURL);
/***** Header of layout *****/
fprintf (Gbl.F.Out,"<table width=\"100%%\">");
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">");
Lay_WritePageTopHeading ();
@ -284,7 +284,7 @@ void Lay_WriteStartOfPage (void)
}
fprintf (Gbl.F.Out,"<td colspan=\"%u\" align=\"center\" valign=\"top\">"
"<div id=\"CENTRAL_ZONE\" style=\"background-color:%s;vertical-align:top;\">"
"<table width=\"100%%\" style=\"vertical-align:top;\">"
"<table style=\"width:100%%; vertical-align:top;\">"
"<tr>",
ColspanCentralPart,
The_TabOnBgColors[Gbl.Prefs.Theme]);
@ -604,7 +604,7 @@ static void Lay_WritePageTopHeading (void)
Cfg_PLATFORM_FULL_NAME);
fprintf (Gbl.F.Out,"</td>");
fprintf (Gbl.F.Out,"<td align=\"center\" valign=\"middle\">"
"<table width=\"100%%\">"
"<table style=\"width:100%%;\">"
"<tr>");
/***** 1st. row, 2nd. column: search, and logged user / language selection *****/
if (Gbl.Prefs.Layout == Lay_LAYOUT_DESKTOP)
@ -955,7 +955,7 @@ static void Lay_DrawTabsMobile (void)
bool ICanViewTab;
/***** Table start *****/
fprintf (Gbl.F.Out,"<table width=\"100%%\">");
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">");
/***** Loop to write all tabs. Each row holds a tab *****/
for (NumTabVisible = 0, NumTab = (Act_Tab_t) 1;
@ -1201,7 +1201,7 @@ static void Lay_WriteMenuThisTabMobile (void)
const char *Title;
/***** Table start *****/
fprintf (Gbl.F.Out,"<table width=\"100%%\">");
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">");
/***** Loop to write all options in menu. Each row holds an option *****/
for (NumOptInMenu = NumOptVisible = 0;
@ -1345,10 +1345,10 @@ static void Lay_ShowLeftColumn (void)
{
struct Act_ListMFUActions ListMFUActions;
fprintf (Gbl.F.Out,"<table width=\"128\">"
fprintf (Gbl.F.Out,"<table style=\"width:128px;\">"
"<tr>"
"<td align=\"left\" valign=\"top\">"
"<table width=\"128\" style=\"border-spacing:4px;\">");
"<table style=\"width:128px; border-spacing:4px;\">");
/***** Most frequently used actions *****/
if (Gbl.Usrs.Me.Logged)
@ -1400,11 +1400,11 @@ static void Lay_ShowRightColumn (void)
Gbl.Usrs.Connected.WhereToShow = Con_SHOW_ON_RIGHT_COLUMN;
/***** Connected users *****/
fprintf (Gbl.F.Out,"<table width=\"100%%\">"
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">"
"<tr>"
"<td align=\"right\" valign=\"top\""
" style=\"background-image: url('%s/head_base_background_1x56.gif'); background-repeat: repeat-x;\">"
"<table width=\"100%%\" style=\"padding-top:56px; border-spacing:4px;\">",
"<table style=\"width:100%%; padding-top:56px; border-spacing:4px;\">",
Gbl.Prefs.PathTheme);
/***** Banners *****/
@ -1818,7 +1818,7 @@ void Lay_WriteHeaderClassPhoto (unsigned NumColumns,bool PrintView,bool DrawingC
/***** Table start *****/
fprintf (Gbl.F.Out,"<tr>"
"<td align=\"center\" colspan=\"%u\">"
"<table width=\"100%%\" style=\"padding:10px;\">"
"<table style=\"width:100%%; padding:10px;\">"
"<tr>",
NumColumns);

View File

@ -740,7 +740,7 @@ void Lnk_WriteMenuWithInstitutionalLinks (void)
fprintf (Gbl.F.Out,"<tr>" \
"<td align=\"center\" width=\"120\" class=\"INS_LNK\">" \
"<div id=\"institutional_links\">" \
"<table width=\"110\">");
"<table style=\"width:110px;\">");
/***** Write all the links *****/
for (NumLnk = 0;

View File

@ -779,7 +779,7 @@ void Mai_WriteMenuWithMailDomains (void)
Txt_Mail_domains_allowed_for_notifications);
/***** Start table *****/
fprintf (Gbl.F.Out,"<table width=\"120\">"
fprintf (Gbl.F.Out,"<table style=\"width:120px;\">"
"<tr>"
"<td align=\"left\" width=\"4\"><img src=\"%s/ewbw1_4x4.gif\" width=\"4\" height=\"4\" alt=\"\" /></td>"
"<td align=\"left\" style=\"background-image: url('%s/mbw1_1x4.gif'); background-repeat: repeat-x;\"></td>"

View File

@ -1574,7 +1574,7 @@ static void Msg_ShowSentOrReceivedMessages (Msg_TypeOfMessages_t TypeOfMessages)
Lay_StartRoundFrameTable10 ("100%",0,NULL);
fprintf (Gbl.F.Out,"<tr>"
"<td align=\"center\" width=\"100%%\">"
"<table width=\"100%%\" class=\"CELLS_PAD_2\">");
"<table class=\"CELLS_PAD_2\" style=\"width:100%%;\">");
mysql_data_seek (mysql_res,(my_ulonglong) (Pagination.FirstItemVisible-1));
for (NumRow = Pagination.FirstItemVisible;
@ -2489,7 +2489,7 @@ static void Msg_ShowASentOrReceivedMessage (Msg_TypeOfMessages_t TypeOfMessages,
/***** Put an icon with message status *****/
fprintf (Gbl.F.Out,"<tr>"
"<td align=\"center\" valign=\"top\" width=\"16\" class=\"%s\">"
"<table width=\"16\">"
"<table style=\"width:16px;\">"
"<tr>"
"<td align=\"center\" valign=\"top\" width=\"16\">"
"<img src=\"%s/msg-%s16x16.gif\""

View File

@ -676,7 +676,8 @@ static void Pho_UpdatePhoto2 (void)
unsigned NumPhoto;
/***** Show the three images resulting of the processing *****/
fprintf (Gbl.F.Out,"<table width=\"100%%\"><tr>");
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">"
"<tr>");
for (NumPhoto = 0;
NumPhoto < 3;
NumPhoto++)

View File

@ -1498,7 +1498,7 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
/***** Header *****/
fprintf (Gbl.F.Out,"<tr>"
"<td align=\"left\" colspan=\"2\" valign=\"top\">"
"<table width=\"100%%\">"
"<table style=\"width:100%%;\">"
"<tr>"
"<td align=\"left\" width=\"%u\">",
Rec_DEGREE_LOGO_SIZE);

View File

@ -1441,7 +1441,7 @@ static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql
/***** Put heading with backward and forward buttons *****/
fprintf (Gbl.F.Out,"<tr>"
"<td align=\"left\" colspan=\"7\">"
"<table width=\"100%%\" class=\"CELLS_PAD_2\">"
"<table class=\"CELLS_PAD_2\" style=\"width:100%%;\">"
"<tr>");
/* Put link to jump to previous page (older clicks) */
@ -2135,7 +2135,7 @@ static void Sta_DrawBarColors (Sta_ColorType_t ColorType,float MaxPagesGenerated
unsigned Interval,NumColor,R,G,B;
/***** Write numbers from 0 to MaxPagesGenerated *****/
fprintf (Gbl.F.Out,"<table width=\"100%%\">"
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">"
"<tr>"
"<td align=\"left\" valign=\"bottom\" width=\"%u\" colspan=\"%u\" class=\"LOG\">0</td>",
(GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5)/2,(GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5)/2);

View File

@ -3108,7 +3108,7 @@ static void Svy_WriteAnswersOfAQst (struct Survey *Svy,struct SurveyQuestion *Sv
NumAnswers = Svy_GetAnswersQst (SvyQst->QstCod,&mysql_res); // Result: AnsInd,NumUsrs,Answer
/***** Write the answers *****/
fprintf (Gbl.F.Out,"<table width=\"100%%\" class=\"CELLS_PAD_4\">");
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_4\" style=\"width:100%%;\">");
for (NumAns = 0;
NumAns < NumAnswers;
NumAns++)

View File

@ -146,7 +146,7 @@ void Syl_EditSyllabus (void)
Lay_StartRoundFrameTable10 (NULL,0,Txt_INFO_TITLE[InfoType]);
fprintf (Gbl.F.Out,"<tr>"
"<td align=\"left\">"
"<table width=\"100%%\" class=\"CELLS_PAD_1\">");
"<table class=\"CELLS_PAD_1\" style=\"width:100%%;\">");
/***** Write the current syllabus *****/
Syl_ShowSyllabus (InfoType);

View File

@ -5071,7 +5071,7 @@ void Usr_ListAllDataGsts (void)
/***** Start table with list of guests *****/
/* Start row */
fprintf (Gbl.F.Out,"<table width=\"100%%\">"
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">"
"<tr>");
/* Columns for the data */
@ -5203,7 +5203,7 @@ void Usr_ListAllDataStds (void)
Lay_ShowErrorAndExit ("Not enough memory to store names of groups.");
/***** Start table with list of students *****/
fprintf (Gbl.F.Out,"<table width=\"100%%\">");
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">");
if (!Gbl.Usrs.ClassPhoto.AllGroups)
{
fprintf (Gbl.F.Out,"<tr>"
@ -5431,7 +5431,7 @@ void Usr_ListAllDataTchs (void)
/***** Start table with list of teachers *****/
/* Start row */
fprintf (Gbl.F.Out,"<table width=\"100%%\">"
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">"
"<tr>");
for (NumCol = (Gbl.Usrs.Listing.WithPhotos ? 0 :
1);