diff --git a/css/swad_desktop.css b/css/swad_desktop.css index 0e5488150..eb5477891 100644 --- a/css/swad_desktop.css +++ b/css/swad_desktop.css @@ -139,19 +139,86 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;} border-width:1px 0 0 0; border-color:#DDECF1; } -.MONTH {color:#4D88A1; font-size:8pt; white-space:nowrap;} -.DAY_WRK_HEAD {color:#4D88A1; font-size:8pt;} -.DAY_NO_WRK_HEAD {color:#FF0000; font-size:8pt;} -.DAY_WRK {color:#202020; font-size:8pt;} -.DAY_NO_WORK {color:#C04080; font-size:8pt;} -.DAY_HLD {color:#FF0000; font-size:8pt;} -.DAY_WRK_LIGHT {color:#E0E0E0; font-size:8pt;} -.DAY_NO_WORK_LIGHT {color:#FFE0FF; font-size:8pt;} -.DAY_HLD_LIGHT {color:#FFE0E0; font-size:8pt;} -.DAY {border:solid 1px; border-color:white;} -.TODAY {border:solid 1px; border-color:#50B800;} -.DAY_EVENT {border:solid 1px; border-color:white; background-color:#FFF080;} -.TODAY_EVENT {border:solid 1px; border-color:#50B800; background-color:#FFF080;} +.MONTH + { + color:#4D88A1; + font-size:8pt; + white-space:nowrap; + } +.DAY_WRK_HEAD + { + color:#4D88A1; + font-size:8pt; + text-align:center; + } +.DAY_NO_WRK_HEAD + { + color:#FF0000; + font-size:8pt; + text-align:center; + } +.DAY_WRK + { + color:#202020; + font-size:8pt; + text-align:center; + } +.DAY_NO_WORK + { + color:#C04080; + font-size:8pt; + text-align:center; + } +.DAY_HLD + { + color:#FF0000; + font-size:8pt; + text-align:center; + } +.DAY_WRK_LIGHT + { + color:#E0E0E0; + font-size:8pt; + text-align:center; + } +.DAY_NO_WORK_LIGHT + { + color:#FFE0FF; + font-size:8pt; + text-align:center; + } +.DAY_HLD_LIGHT + { + color:#FFE0E0; + font-size:8pt; + text-align:center; + } +.DAY + { + border:solid 1px; + border-color:white; + text-align:center; + } +.TODAY + { + border:solid 1px; + border-color:#50B800; + text-align:center; + } +.DAY_EVENT + { + border:solid 1px; + border-color:white; + background-color:#FFF080; + text-align:center; + } +.TODAY_EVENT + { + border:solid 1px; + border-color:#50B800; + background-color:#FFF080; + text-align:center; + } /********************************* Buttons ***********************************/ .BT_CREATE @@ -391,6 +458,7 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;} font-size:20pt; font-weight:bold; color:#808080; + text-align:center; } /******************************* Map of country ******************************/ @@ -442,6 +510,7 @@ a:hover img.CENTRE_PHOTO_SHOW color:#A0A0A0; font-size:7pt; max-width:400px; + text-align:center; } /******************************* User's photo ********************************/ diff --git a/css/swad_mobile.css b/css/swad_mobile.css index 63c52e597..26adbc7b3 100644 --- a/css/swad_mobile.css +++ b/css/swad_mobile.css @@ -89,19 +89,86 @@ form {margin:0; display:inline;} border-width:1px 0 0 0; border-color:#DDECF1; } -.MONTH {color:#4D88A1; font-size:8pt; white-space:nowrap;} -.DAY_WRK_HEAD {color:#4D88A1; font-size:8pt;} -.DAY_NO_WRK_HEAD {color:#FF0000; font-size:8pt;} -.DAY_WRK {color:#202020; font-size:8pt;} -.DAY_NO_WORK {color:#C04080; font-size:8pt;} -.DAY_HLD {color:#FF0000; font-size:8pt;} -.DAY_WRK_LIGHT {color:#E0E0E0; font-size:8pt;} -.DAY_NO_WORK_LIGHT {color:#FFE0FF; font-size:8pt;} -.DAY_HLD_LIGHT {color:#FFE0E0; font-size:8pt;} -.DAY {border:solid 1px; border-color:white;} -.TODAY {border:solid 1px; border-color:#50B800;} -.DAY_EVENT {border:solid 1px; border-color:white; background-color:#FFF080;} -.TODAY_EVENT {border:solid 1px; border-color:#50B800; background-color:#FFF080;} +.MONTH + { + color:#4D88A1; + font-size:8pt; + white-space:nowrap; + } +.DAY_WRK_HEAD + { + color:#4D88A1; + font-size:8pt; + text-align:center; + } +.DAY_NO_WRK_HEAD + { + color:#FF0000; + font-size:8pt; + text-align:center; + } +.DAY_WRK + { + color:#202020; + font-size:8pt; + text-align:center; + } +.DAY_NO_WORK + { + color:#C04080; + font-size:8pt; + text-align:center; + } +.DAY_HLD + { + color:#FF0000; + font-size:8pt; + text-align:center; + } +.DAY_WRK_LIGHT + { + color:#E0E0E0; + font-size:8pt; + text-align:center; + } +.DAY_NO_WORK_LIGHT + { + color:#FFE0FF; + font-size:8pt; + text-align:center; + } +.DAY_HLD_LIGHT + { + color:#FFE0E0; + font-size:8pt; + text-align:center; + } +.DAY + { + border:solid 1px; + border-color:white; + text-align:center; + } +.TODAY + { + border:solid 1px; + border-color:#50B800; + text-align:center; + } +.DAY_EVENT + { + border:solid 1px; + border-color:white; + background-color:#FFF080; + text-align:center; + } +.TODAY_EVENT + { + border:solid 1px; + border-color:#50B800; + background-color:#FFF080; + text-align:center; + } /********************************* Buttons ***********************************/ .BT_CREATE @@ -354,6 +421,7 @@ form {margin:0; display:inline;} font-size:20pt; font-weight:bold; color:#808080; + text-align:center; } /******************************* Map of country ******************************/ @@ -405,6 +473,7 @@ a:hover img.CENTRE_PHOTO_SHOW color:#A0A0A0; font-size:7pt; max-width:400px; + text-align:center; } /******************************* User's photo ********************************/ diff --git a/swad_banner.c b/swad_banner.c index 9e5ebd4af..b07e13b96 100644 --- a/swad_banner.c +++ b/swad_banner.c @@ -98,7 +98,7 @@ void Ban_SeeBanners (void) NumBan++) /* Write data of this banner */ fprintf (Gbl.F.Out,"" - "" + "" "" "\"%s\""); /* Banner code */ - fprintf (Gbl.F.Out,"" + fprintf (Gbl.F.Out,"" "%ld " "", Ban->IsHidden ? "DAT_LIGHT" : @@ -351,8 +351,7 @@ static void Ban_ListBannersForEdition (void) Ban->BanCod); /* Banner short name */ - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,""); Act_FormStart (ActRenBanSho); Ban_PutParamBanCod (Ban->BanCod); fprintf (Gbl.F.Out,""); /* Banner full name */ - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,""); Act_FormStart (ActRenBanFul); Ban_PutParamBanCod (Ban->BanCod); fprintf (Gbl.F.Out,""); /* Banner image */ - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,""); Act_FormStart (ActChgBanImg); Ban_PutParamBanCod (Ban->BanCod); fprintf (Gbl.F.Out,""); /* Banner WWW */ - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,""); Act_FormStart (ActChgBanWWW); Ban_PutParamBanCod (Ban->BanCod); fprintf (Gbl.F.Out,""); /***** Banner short name *****/ - fprintf (Gbl.F.Out,"" + fprintf (Gbl.F.Out,"" "" "", Ban_MAX_LENGTH_SHORT_NAME,Ban->ShortName); /***** Banner full name *****/ - fprintf (Gbl.F.Out,"" + fprintf (Gbl.F.Out,"" "" "", Ban_MAX_LENGTH_FULL_NAME,Ban->FullName); /***** Banner image *****/ - fprintf (Gbl.F.Out,"" + fprintf (Gbl.F.Out,"" "" "", Ban_MAX_LENGTH_IMAGE,Ban->Img); /***** Banner WWW *****/ - fprintf (Gbl.F.Out,"" + fprintf (Gbl.F.Out,"" "" "" "", @@ -795,11 +791,11 @@ static void Ban_PutHeadBanners (void) fprintf (Gbl.F.Out,"" "" "" - "%s" - "%s" - "%s" - "%s" - "%s" + "%s" + "%s" + "%s" + "%s" + "%s" "", Txt_Code, Txt_Short_name, @@ -910,7 +906,7 @@ void Ban_WriteMenuWithBanners (void) { /* Write data of this banner */ fprintf (Gbl.F.Out,"" - ""); + ""); Act_FormStart (ActClkBan); Ban_PutParamBanCod (Gbl.Banners.Lst[NumBan].BanCod); Par_PutHiddenParamString ("URL",Gbl.Banners.Lst[NumBan].WWW); diff --git a/swad_calendar.c b/swad_calendar.c index 26292f687..82d8e6af4 100644 --- a/swad_calendar.c +++ b/swad_calendar.c @@ -141,7 +141,7 @@ void Cal_DrawCalendar (void) /***** Draw several months *****/ fprintf (Gbl.F.Out,"" - "" + "" ""); for (Row = 0; Row < 4; @@ -152,8 +152,7 @@ void Cal_DrawCalendar (void) Col < 4; Col++) { - fprintf (Gbl.F.Out,""); if (++Month == 13) @@ -256,7 +255,7 @@ static void Cal_DrawMonth (unsigned RealYear,unsigned RealMonth, for (DayOfWeek = 0; DayOfWeek < 7; DayOfWeek++) - fprintf (Gbl.F.Out,"", (DayOfWeek == 6) ? "DAY_NO_WRK_HEAD" : @@ -351,7 +350,7 @@ static void Cal_DrawMonth (unsigned RealYear,unsigned RealMonth, } /***** Write the box with the day *****/ - fprintf (Gbl.F.Out,"
"); + fprintf (Gbl.F.Out,""); Cal_DrawMonth (Year,Month,true,!PrintView,(Gbl.CurrentAct == ActPrnCal)); fprintf (Gbl.F.Out,"" + fprintf (Gbl.F.Out,"" "%c" "", + fprintf (Gbl.F.Out,"", IsToday ? (ThisDayHasEvent ? "TODAY_EVENT" : "TODAY") : (ThisDayHasEvent ? "DAY_EVENT" : @@ -363,7 +362,7 @@ static void Cal_DrawMonth (unsigned RealYear,unsigned RealMonth, Act_FormStart (ActSeeExaAnn); fprintf (Gbl.F.Out,"" "" - "" "" - "" - "" "", @@ -169,8 +169,8 @@ void Ctr_SeeCtrWithPendingDegs (void) /* Centre logo */ fprintf (Gbl.F.Out,"" - ""); /* Centre full name */ - fprintf (Gbl.F.Out,""); /* Number of pending degrees (row[1]) */ - fprintf (Gbl.F.Out,"" "", @@ -289,8 +289,7 @@ static void Ctr_Configuration (bool PrintView) /***** Title *****/ fprintf (Gbl.F.Out,"" - "" - "" - "
", + "", ClassForDay); Act_LinkFormSubmit (Gbl.Title,ClassForDay); } diff --git a/swad_centre.c b/swad_centre.c index a12e114a9..c8876a6b3 100644 --- a/swad_centre.c +++ b/swad_centre.c @@ -141,10 +141,10 @@ void Ctr_SeeCtrWithPendingDegs (void) Lay_StartRoundFrameTable (NULL,2,Txt_Centres_with_pending_degrees); fprintf (Gbl.F.Out,"
" + "" "%s" "" + "" "%s" "
" + "" "", BgColor,Ctr.WWW,Ctr.FullName); Log_DrawLogo (Sco_SCOPE_CTR,Ctr.CtrCod,Ctr.ShortName, @@ -179,8 +179,8 @@ void Ctr_SeeCtrWithPendingDegs (void) "", + fprintf (Gbl.F.Out,"", BgColor); Act_FormGoToStart (ActSeeDeg); Ctr_PutParamCtrCod (Ctr.CtrCod); @@ -193,8 +193,8 @@ void Ctr_SeeCtrWithPendingDegs (void) fprintf (Gbl.F.Out,"" + fprintf (Gbl.F.Out,"" "%s" "
"); + ""); if (PutLink) fprintf (Gbl.F.Out,"", @@ -312,8 +311,7 @@ static void Ctr_Configuration (bool PrintView) /* Photo image */ fprintf (Gbl.F.Out,"
"); + ""); if (PutLink) fprintf (Gbl.F.Out,"", Gbl.CurrentCtr.Ctr.WWW); @@ -337,8 +335,7 @@ static void Ctr_Configuration (bool PrintView) if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM && !PrintView) { fprintf (Gbl.F.Out,"
"); + ""); Act_FormStart (ActChgCtrPhoAtt); fprintf (Gbl.F.Out,"