Version 14.127.4

This commit is contained in:
Antonio Cañas Vargas 2015-09-06 19:51:06 +02:00
parent e07f87181d
commit 5c071e4109
22 changed files with 104 additions and 78 deletions

View File

@ -91,7 +91,7 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;}
/************************* Users connected globally **************************/ /************************* Users connected globally **************************/
.CONNECTED .CONNECTED
{ {
margin:0; margin:0 auto;
border-style:solid; border-style:solid;
border-width:1px; border-width:1px;
border-color:#80C040; border-color:#80C040;
@ -391,6 +391,7 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;}
.ICON48x48 {width:48px; height:48px; vertical-align:middle;} .ICON48x48 {width:48px; height:48px; vertical-align:middle;}
.ICON64x64 {width:64px; height:64px; vertical-align:middle;} .ICON64x64 {width:64px; height:64px; vertical-align:middle;}
.ICON128x128 {width:128px; height:128px; vertical-align:middle;} .ICON128x128 {width:128px; height:128px; vertical-align:middle;}
.ICON8x800 {width:8px; height:800px;}
.BANNER {width:120px; height:40px;} .BANNER {width:120px; height:40px;}
.BANNER_SMALL {width:60px; height:20px;} .BANNER_SMALL {width:60px; height:20px;}

View File

@ -142,7 +142,7 @@ void Cal_DrawCalendar (void)
/***** Draw several months *****/ /***** Draw several months *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_TOP\">" "<td class=\"CENTER_TOP\">"
"<table style=\"margin:0 auto; border-spacing:5px;\">"); "<table style=\"border-spacing:5px;\">");
for (Row = 0; for (Row = 0;
Row < 4; Row < 4;
Row++) Row++)

View File

@ -1966,7 +1966,8 @@ static void Ctr_PutFormToCreateCentre (void)
/***** Institution *****/ /***** Institution *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">" fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
"<select name=\"OthInsCod\" style=\"width:50px;\" disabled=\"disabled\">" "<select name=\"OthInsCod\" style=\"width:50px;\""
" disabled=\"disabled\">"
"<option value=\"%ld\" selected=\"selected\">" "<option value=\"%ld\" selected=\"selected\">"
"%s" "%s"
"</option>" "</option>"

View File

@ -103,11 +103,12 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.127.3 (2015/09/06)" #define Log_PLATFORM_VERSION "SWAD 14.127.4 (2015/09/06)"
// Number of lines (includes comments but not blank lines) has been got with the following command: // 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 // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
/* /*
Version 14.127.4: Sep 06, 2015 Changes in styles. (184245 lines)
Version 14.127.3: Sep 06, 2015 Changes in styles. (184219 lines) Version 14.127.3: Sep 06, 2015 Changes in styles. (184219 lines)
Version 14.127.2: Sep 06, 2015 Changes in styles. (184244 lines) Version 14.127.2: Sep 06, 2015 Changes in styles. (184244 lines)
Version 14.127.1: Sep 06, 2015 Justify alignment is no longer used. (184259 lines) Version 14.127.1: Sep 06, 2015 Justify alignment is no longer used. (184259 lines)

View File

@ -275,8 +275,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\"" fprintf (Gbl.F.Out,"<div class=\"CONNECTED\""
" style=\"width:110px;" " style=\"width:110px; \">"
" margin-left:auto; margin-right:auto; \">"
"<table style=\"width:110px;\">"); "<table style=\"width:110px;\">");
/***** Write total number of sessions *****/ /***** Write total number of sessions *****/

View File

@ -757,7 +757,7 @@ void Cty_WriteScriptGoogleGeochart (void)
" height:300,\n" " height:300,\n"
" backgroundColor:'white',\n" " backgroundColor:'white',\n"
" datalessRegionColor:'white',\n" " datalessRegionColor:'white',\n"
" colorAxis:{colors:['black','black'],minValue:0,maxValue:%u}};\n" " colorAxis:{colors:['white','black'],minValue:0,maxValue:%u}};\n"
" var chart = new google.visualization.GeoChart(document.getElementById('chart_div'));\n" " var chart = new google.visualization.GeoChart(document.getElementById('chart_div'));\n"
" chart.draw(data, options);\n" " chart.draw(data, options);\n"
" };\n" " };\n"

View File

@ -563,7 +563,8 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
/***** Table start *****/ /***** Table start *****/
Lay_StartRoundFrame (NULL,Txt_My_courses); Lay_StartRoundFrame (NULL,Txt_My_courses);
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">" fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"display:inline-block;\">"
"<ul class=\"LIST_LEFT\">"); "<ul class=\"LIST_LEFT\">");
/***** Write link to platform *****/ /***** Write link to platform *****/
@ -1148,7 +1149,8 @@ void Crs_WriteSelectorMyCourses (void)
ActSysReqSch); ActSysReqSch);
/***** Start of selector of courses *****/ /***** Start of selector of courses *****/
fprintf (Gbl.F.Out,"<select name=\"CrsCod\" style=\"width:%upx;margin:1px;\"" fprintf (Gbl.F.Out,"<select name=\"CrsCod\""
" style=\"width:%upx; margin:1px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">", " onchange=\"javascript:document.getElementById('%s').submit();\">",
SelectorWidth[Gbl.Prefs.Layout],Gbl.FormId); SelectorWidth[Gbl.Prefs.Layout],Gbl.FormId);
@ -1451,7 +1453,8 @@ static void Crs_ListCoursesForEdition (void)
{ {
Act_FormStart (ActChgCrsDeg); Act_FormStart (ActChgCrsDeg);
Crs_PutParamOtherCrsCod (Crs->CrsCod); Crs_PutParamOtherCrsCod (Crs->CrsCod);
fprintf (Gbl.F.Out,"<select name=\"OthDegCod\" style=\"width:80px;\"" fprintf (Gbl.F.Out,"<select name=\"OthDegCod\""
" style=\"width:80px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">", " onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId); Gbl.FormId);
for (NumDeg = 0; for (NumDeg = 0;
@ -1475,7 +1478,8 @@ static void Crs_ListCoursesForEdition (void)
{ {
Act_FormStart (ActChgCrsYea); Act_FormStart (ActChgCrsYea);
Crs_PutParamOtherCrsCod (Crs->CrsCod); Crs_PutParamOtherCrsCod (Crs->CrsCod);
fprintf (Gbl.F.Out,"<select name=\"OthCrsYear\" style=\"width:40px;\"" fprintf (Gbl.F.Out,"<select name=\"OthCrsYear\""
" style=\"width:40px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">", " onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId); Gbl.FormId);
for (YearAux = 0; for (YearAux = 0;
@ -1571,7 +1575,8 @@ static void Crs_ListCoursesForEdition (void)
{ {
Act_FormStart (ActChgCrsSta); Act_FormStart (ActChgCrsSta);
Crs_PutParamOtherCrsCod (Crs->CrsCod); Crs_PutParamOtherCrsCod (Crs->CrsCod);
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:80px;\"" fprintf (Gbl.F.Out,"<select name=\"Status\""
" style=\"width:80px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">" " onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"%u\" selected=\"selected\">%s</option>" "<option value=\"%u\" selected=\"selected\">%s</option>"
"<option value=\"%u\">%s</option>" "<option value=\"%u\">%s</option>"
@ -1590,8 +1595,10 @@ static void Crs_ListCoursesForEdition (void)
/* Course requester */ /* Course requester */
UsrDat.UsrCod = Crs->RequesterUsrCod; UsrDat.UsrCod = Crs->RequesterUsrCod;
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat); Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:100px;\">" fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\""
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">" " style=\"width:100px;\">"
"<table class=\"CELLS_PAD_2\""
" style=\"width:100px;\">"
"<tr>"); "<tr>");
Msg_WriteMsgAuthor (&UsrDat,80,10,"DAT",true,NULL); Msg_WriteMsgAuthor (&UsrDat,80,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>" fprintf (Gbl.F.Out,"</tr>"

View File

@ -1477,7 +1477,8 @@ static void Deg_ListDegreesForEdition (void)
{ {
Act_FormStart (ActChgDegTyp); Act_FormStart (ActChgDegTyp);
Deg_PutParamOtherDegCod (Deg->DegCod); Deg_PutParamOtherDegCod (Deg->DegCod);
fprintf (Gbl.F.Out,"<select name=\"OthDegTypCod\" style=\"width:50px;\"" fprintf (Gbl.F.Out,"<select name=\"OthDegTypCod\""
" style=\"width:50px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">", " onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId); Gbl.FormId);
for (NumDegTyp = 0; for (NumDegTyp = 0;
@ -1807,7 +1808,8 @@ static void Deg_PutFormToCreateDegree (void)
/***** Centre *****/ /***** Centre *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">" fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
"<select name=\"OthCtrCod\" style=\"width:50px;\" disabled=\"disabled\">" "<select name=\"OthCtrCod\""
" style=\"width:50px;\" disabled=\"disabled\">"
"<option value=\"%ld\" selected=\"selected\">" "<option value=\"%ld\" selected=\"selected\">"
"%s" "%s"
"</option>" "</option>"

View File

@ -834,7 +834,8 @@ bool Enr_PutActionsRegRemOneUsr (bool ItsMe)
} }
/***** Start list of options *****/ /***** Start list of options *****/
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">" fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"display:inline-block;\">"
"<ul class=\"LIST_LEFT %s\">", "<ul class=\"LIST_LEFT %s\">",
The_ClassForm[Gbl.Prefs.Theme]); The_ClassForm[Gbl.Prefs.Theme]);
@ -1051,7 +1052,8 @@ static void Enr_PutActionsRegRemSeveralUsrs (void)
extern const char *Txt_Eliminate_from_the_platform_the_users_indicated_in_step_1; extern const char *Txt_Eliminate_from_the_platform_the_users_indicated_in_step_1;
/***** Start list of options *****/ /***** Start list of options *****/
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:10px auto;\">" fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"display:inline-block;\">"
"<ul class=\"LIST_LEFT %s\">", "<ul class=\"LIST_LEFT %s\">",
The_ClassForm[Gbl.Prefs.Theme]); The_ClassForm[Gbl.Prefs.Theme]);

View File

@ -906,7 +906,8 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
For_PutFormWhichForums (); For_PutFormWhichForums ();
/* Write a link to top level of forums */ /* Write a link to top level of forums */
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">" fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"display:inline-block;\">"
"<ul class=\"LIST_LEFT\">"); "<ul class=\"LIST_LEFT\">");
For_WriteLinkToTopLevelOfForums (); For_WriteLinkToTopLevelOfForums ();
@ -1617,7 +1618,8 @@ void For_ShowForumList (void)
For_PutFormWhichForums (); For_PutFormWhichForums ();
/***** Write a link to top level of forums *****/ /***** Write a link to top level of forums *****/
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">" fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"display:inline-block;\">"
"<ul class=\"LIST_LEFT\">"); "<ul class=\"LIST_LEFT\">");
For_WriteLinkToTopLevelOfForums (); For_WriteLinkToTopLevelOfForums ();
@ -2462,7 +2464,8 @@ void For_ShowForumThrs (void)
For_PutFormWhichForums (); For_PutFormWhichForums ();
/* Write a link to top level of forums */ /* Write a link to top level of forums */
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">" fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"display:inline-block;\">"
"<ul class=\"LIST_LEFT\">"); "<ul class=\"LIST_LEFT\">");
For_WriteLinkToTopLevelOfForums (); For_WriteLinkToTopLevelOfForums ();

View File

@ -1158,7 +1158,8 @@ static void Grp_ListGroupTypesForEdition (void)
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
Act_FormStart (ActChgMdtGrpTyp); Act_FormStart (ActChgMdtGrpTyp);
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod); Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
fprintf (Gbl.F.Out,"<select name=\"MandatoryEnrollment\" style=\"width:120px;\"" fprintf (Gbl.F.Out,"<select name=\"MandatoryEnrollment\""
" style=\"width:120px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">" " onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"N\"", "<option value=\"N\"",
Gbl.FormId); Gbl.FormId);
@ -1179,7 +1180,8 @@ static void Grp_ListGroupTypesForEdition (void)
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
Act_FormStart (ActChgMulGrpTyp); Act_FormStart (ActChgMulGrpTyp);
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod); Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
fprintf (Gbl.F.Out,"<select name=\"MultipleEnrollment\" style=\"width:120px;\"" fprintf (Gbl.F.Out,"<select name=\"MultipleEnrollment\""
" style=\"width:120px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">" " onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"N\"", "<option value=\"N\"",
Gbl.FormId); Gbl.FormId);
@ -2056,7 +2058,8 @@ static void Grp_PutFormToCreateGroupType (void)
/***** Is it mandatory to register in any groups of this type? *****/ /***** Is it mandatory to register in any groups of this type? *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">" fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
"<select name=\"MandatoryEnrollment\" style=\"width:120px;\">" "<select name=\"MandatoryEnrollment\""
" style=\"width:120px;\">"
"<option value=\"N\""); "<option value=\"N\"");
if (!Gbl.CurrentCrs.Grps.GrpTyp.MandatoryEnrollment) if (!Gbl.CurrentCrs.Grps.GrpTyp.MandatoryEnrollment)
fprintf (Gbl.F.Out," selected=\"selected\""); fprintf (Gbl.F.Out," selected=\"selected\"");
@ -2072,7 +2075,8 @@ static void Grp_PutFormToCreateGroupType (void)
/***** Is it possible to register in multiple groups of this type? *****/ /***** Is it possible to register in multiple groups of this type? *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">" fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
"<select name=\"MultipleEnrollment\" style=\"width:120px;\">" "<select name=\"MultipleEnrollment\""
" style=\"width:120px;\">"
"<option value=\"N\""); "<option value=\"N\"");
if (!Gbl.CurrentCrs.Grps.GrpTyp.MultipleEnrollment) if (!Gbl.CurrentCrs.Grps.GrpTyp.MultipleEnrollment)
fprintf (Gbl.F.Out," selected=\"selected\""); fprintf (Gbl.F.Out," selected=\"selected\"");

View File

@ -158,7 +158,7 @@ void Hld_SeeHolidays (void)
break; break;
} }
fprintf (Gbl.F.Out,"</td>" fprintf (Gbl.F.Out,"</td>"
"<td class=\"DAT\" style=\"text-align:center;\">" "<td class=\"DAT CENTER_MIDDLE\">"
"&nbsp;%s" "&nbsp;%s"
"</td>" "</td>"
"</tr>", "</tr>",

View File

@ -99,7 +99,7 @@ void Ind_ReqIndicatorsCourses (void)
/* Start form */ /* Start form */
Act_FormStart (ActReqStaCrs); Act_FormStart (ActReqStaCrs);
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">" fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\">"
"<tr>" "<tr>"
"<td class=\"%s RIGHT_MIDDLE\">" "<td class=\"%s RIGHT_MIDDLE\">"
"%s:" "%s:"
@ -1182,7 +1182,7 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
/***** Write number of courses with each number of indicators valid *****/ /***** Write number of courses with each number of indicators valid *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\"" fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"margin-left:auto; margin-right:auto;\">" " style=\"margin:0 auto;\">"
"<tr>" "<tr>"
"<th class=\"TIT_TBL RIGHT_MIDDLE\">" "<th class=\"TIT_TBL RIGHT_MIDDLE\">"
"%s" "%s"

View File

@ -1039,7 +1039,7 @@ void Inf_FormToSendPage (Inf_InfoSrc_t InfoSrc,Inf_InfoType_t InfoType)
Act_FormStart (Inf_ActionsInfo[InfoSrc][InfoType]); Act_FormStart (Inf_ActionsInfo[InfoSrc][InfoType]);
/***** File *****/ /***** File *****/
fprintf (Gbl.F.Out,"<table style=\"margin-left:auto; margin-right:auto;\">" fprintf (Gbl.F.Out,"<table style=\"margin:0 auto;\">"
"<tr>" "<tr>"
"<td class=\"%s RIGHT_MIDDLE\">" "<td class=\"%s RIGHT_MIDDLE\">"
"%s:" "%s:"
@ -1074,7 +1074,7 @@ void Inf_FormToSendURL (Inf_InfoSrc_t InfoSrc,Inf_InfoType_t InfoType)
Act_FormStart (Inf_ActionsInfo[InfoSrc][InfoType]); Act_FormStart (Inf_ActionsInfo[InfoSrc][InfoType]);
/***** Link *****/ /***** Link *****/
fprintf (Gbl.F.Out,"<table style=\"margin-left:auto; margin-right:auto;\">" fprintf (Gbl.F.Out,"<table style=\"margin:0 auto;\">"
"<tr>" "<tr>"
"<td class=\"%s RIGHT_MIDDLE\">" "<td class=\"%s RIGHT_MIDDLE\">"
"%s:" "%s:"

View File

@ -1743,7 +1743,8 @@ static void Ins_PutFormToCreateInstitution (void)
/***** Country *****/ /***** Country *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">" fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
"<select name=\"OthCtyCod\" style=\"width:80px;\" disabled=\"disabled\">" "<select name=\"OthCtyCod\""
" style=\"width:80px;\" disabled=\"disabled\">"
"<option value=\"%ld\" selected=\"selected\">" "<option value=\"%ld\" selected=\"selected\">"
"%s" "%s"
"</option>" "</option>"

View File

@ -1169,8 +1169,7 @@ void Lay_StartRoundFrameTableShadow (const char *Width,unsigned CellPadding)
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">" fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">"
"<div class=\"FRAME10_SHADOW\""); "<div class=\"FRAME10_SHADOW\"");
if (Width) if (Width)
fprintf (Gbl.F.Out," style=\"width:%s\"", fprintf (Gbl.F.Out," style=\"width:%s\"",Width);
Width);
fprintf (Gbl.F.Out,">" fprintf (Gbl.F.Out,">"
"<table class=\"TABLE10"); "<table class=\"TABLE10");
if (CellPadding) if (CellPadding)
@ -1577,14 +1576,13 @@ void Lay_PutIconsToSelectLayout (void)
Layout < Lay_NUM_LAYOUTS; Layout < Lay_NUM_LAYOUTS;
Layout++) Layout++)
{ {
fprintf (Gbl.F.Out,"<td class=\"%s\">", fprintf (Gbl.F.Out,"<td class=\"%s CENTER_MIDDLE\">",
Layout == Gbl.Prefs.Layout ? "LAYOUT_ON" : Layout == Gbl.Prefs.Layout ? "LAYOUT_ON" :
"LAYOUT_OFF"); "LAYOUT_OFF");
Act_FormStart (ActChgLay); Act_FormStart (ActChgLay);
Par_PutHiddenParamUnsigned ("Layout",(unsigned) Layout); Par_PutHiddenParamUnsigned ("Layout",(unsigned) Layout);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s32x32.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s32x32.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON32x32B\"" " alt=\"%s\" title=\"%s\" class=\"ICON32x32B\" />",
" style=\"margin:0 auto;\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Lay_LayoutIcons[Layout], Lay_LayoutIcons[Layout],
Txt_LAYOUT_NAMES[Layout], Txt_LAYOUT_NAMES[Layout],

View File

@ -2861,8 +2861,7 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsig
Style); Style);
if (BgColor) if (BgColor)
fprintf (Gbl.F.Out," %s",BgColor); fprintf (Gbl.F.Out," %s",BgColor);
fprintf (Gbl.F.Out,"\" style=\"width:%upx;\">" fprintf (Gbl.F.Out,"\" style=\"width:%upx;\">",
"&nbsp;",
WidthOfNameColumn); WidthOfNameColumn);
} }

View File

@ -378,7 +378,7 @@ void Pre_PutLeftIconToHideShowCols (void)
Act_FormStart (ActHidLftCol); Act_FormStart (ActHidLftCol);
fprintf (Gbl.F.Out,"<input type=\"image\"" fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/central_left_8x800.gif\" alt=\"%s\"" " src=\"%s/central_left_8x800.gif\" alt=\"%s\""
" title=\"%s\" style=\"width:8px; height:800px;\" />", " title=\"%s\" class=\"ICON8x800\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Hide_left_column, Txt_Hide_left_column,
Txt_Hide_left_column); Txt_Hide_left_column);
@ -388,7 +388,7 @@ void Pre_PutLeftIconToHideShowCols (void)
Act_FormStart (ActShoLftCol); Act_FormStart (ActShoLftCol);
fprintf (Gbl.F.Out,"<input type=\"image\"" fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/central_right_8x800.gif\" alt=\"%s\"" " src=\"%s/central_right_8x800.gif\" alt=\"%s\""
" title=\"%s\" style=\"width:8px; height:800px;\" />", " title=\"%s\" class=\"ICON8x800\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Show_left_column, Txt_Show_left_column,
Txt_Show_left_column); Txt_Show_left_column);
@ -410,7 +410,7 @@ void Pre_PutRigthIconToHideShowCols (void)
Act_FormStart (ActHidRgtCol); Act_FormStart (ActHidRgtCol);
fprintf (Gbl.F.Out,"<input type=\"image\"" fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/central_right_8x800.gif\" alt=\"%s\"" " src=\"%s/central_right_8x800.gif\" alt=\"%s\""
" title=\"%s\" style=\"width:8px; height:800px;\" />", " title=\"%s\" class=\"ICON8x800\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Hide_right_column, Txt_Hide_right_column,
Txt_Hide_right_column); Txt_Hide_right_column);
@ -420,7 +420,7 @@ void Pre_PutRigthIconToHideShowCols (void)
Act_FormStart (ActShoRgtCol); Act_FormStart (ActShoRgtCol);
fprintf (Gbl.F.Out,"<input type=\"image\"" fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/central_left_8x800.gif\" alt=\"%s\"" " src=\"%s/central_left_8x800.gif\" alt=\"%s\""
" title=\"%s\" style=\"width:8px; height:800px;\" />", " title=\"%s\" class=\"ICON8x800\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Show_right_column, Txt_Show_right_column,
Txt_Show_right_column); Txt_Show_right_column);

View File

@ -225,8 +225,7 @@ bool Prf_ShowUserProfile (void)
Gbl.Usrs.Other.UsrDat.Accepted = Usr_GetIfUserHasAcceptedEnrollmentInCurrentCrs (Gbl.Usrs.Other.UsrDat.UsrCod); Gbl.Usrs.Other.UsrDat.Accepted = Usr_GetIfUserHasAcceptedEnrollmentInCurrentCrs (Gbl.Usrs.Other.UsrDat.UsrCod);
} }
fprintf (Gbl.F.Out,"<div style=\"margin:0 auto;\">" fprintf (Gbl.F.Out,"<table style=\"margin:0 auto;\">"
"<table style=\"margin:0 auto;\">"
"<tr>" "<tr>"
"<td rowspan=\"2\" class=\"CENTER_TOP\">"); "<td rowspan=\"2\" class=\"CENTER_TOP\">");
@ -250,8 +249,7 @@ bool Prf_ShowUserProfile (void)
fprintf (Gbl.F.Out,"</td>" fprintf (Gbl.F.Out,"</td>"
"</tr>" "</tr>"
"</table>" "</table>");
"</div>");
return true; return true;
} }

View File

@ -2427,12 +2427,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
fprintf (Gbl.F.Out,"</td>"); fprintf (Gbl.F.Out,"</td>");
/***** User's web and social networks *****/ /***** User's web and social networks *****/
fprintf (Gbl.F.Out,"<td style=\"width:%upx;\">" fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:%upx;\">",
"<div class=\"CENTER_TOP\" style=\"margin:0 auto;\">",
TopC3Width); TopC3Width);
Net_ShowWebsAndSocialNets (UsrDat); Net_ShowWebsAndSocialNets (UsrDat);
fprintf (Gbl.F.Out,"</div>" fprintf (Gbl.F.Out,"</td>"
"</td>"
"</tr>"); "</tr>");
if (ShowIDRows || if (ShowIDRows ||
@ -2676,10 +2674,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
ClassData,Rec_C2_BOTTOM_WIDE); ClassData,Rec_C2_BOTTOM_WIDE);
if (DataForm) if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Surname1\"" fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Surname1\""
" style=\"width:%upx;\" maxlength=\"%u\" value=\"%s\" />", " maxlength=\"%u\" value=\"%s\""
Rec_C2_BOTTOM_WIDE - 60, " style=\"width:%upx;\" />",
Usr_MAX_LENGTH_USR_NAME_OR_SURNAME, Usr_MAX_LENGTH_USR_NAME_OR_SURNAME,
UsrDat->Surname1); UsrDat->Surname1,
Rec_C2_BOTTOM_WIDE - 60);
else if (UsrDat->Surname1[0]) else if (UsrDat->Surname1[0])
fprintf (Gbl.F.Out,"<strong>%s</strong>",UsrDat->Surname1); fprintf (Gbl.F.Out,"<strong>%s</strong>",UsrDat->Surname1);
fprintf (Gbl.F.Out,"</td>" fprintf (Gbl.F.Out,"</td>"
@ -2698,10 +2697,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
ClassData,Rec_C2_BOTTOM_WIDE); ClassData,Rec_C2_BOTTOM_WIDE);
if (DataForm) if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Surname2\"" fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Surname2\""
" style=\"width:%upx;\" maxlength=\"%u\" value=\"%s\" />", " maxlength=\"%u\" value=\"%s\""
Rec_C2_BOTTOM_WIDE - 60, " style=\"width:%upx;\" />",
Usr_MAX_LENGTH_USR_NAME_OR_SURNAME, Usr_MAX_LENGTH_USR_NAME_OR_SURNAME,
UsrDat->Surname2); UsrDat->Surname2,
Rec_C2_BOTTOM_WIDE - 60);
else if (UsrDat->Surname2[0]) else if (UsrDat->Surname2[0])
fprintf (Gbl.F.Out,"<strong>%s</strong>", fprintf (Gbl.F.Out,"<strong>%s</strong>",
UsrDat->Surname2); UsrDat->Surname2);
@ -2722,10 +2722,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
ClassData,Rec_C2_BOTTOM_WIDE); ClassData,Rec_C2_BOTTOM_WIDE);
if (DataForm) if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FirstName\"" fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FirstName\""
" style=\"width:%upx;\" maxlength=\"%u\" value=\"%s\" />", " maxlength=\"%u\" value=\"%s\""
Rec_C2_BOTTOM_WIDE - 60, " style=\"width:%upx;\" />",
Usr_MAX_LENGTH_USR_NAME_OR_SURNAME, Usr_MAX_LENGTH_USR_NAME_OR_SURNAME,
UsrDat->FirstName); UsrDat->FirstName,
Rec_C2_BOTTOM_WIDE - 60);
else if (UsrDat->FirstName[0]) else if (UsrDat->FirstName[0])
fprintf (Gbl.F.Out,"<strong>%s</strong>",UsrDat->FirstName); fprintf (Gbl.F.Out,"<strong>%s</strong>",UsrDat->FirstName);
fprintf (Gbl.F.Out,"</td>" fprintf (Gbl.F.Out,"</td>"
@ -2754,7 +2755,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
ClassData,Rec_C2_BOTTOM_WIDE); ClassData,Rec_C2_BOTTOM_WIDE);
/* Selector of country */ /* Selector of country */
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:%upx;\">" fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\""
" style=\"width:%upx;\">"
"<option value=\"-1\">%s</option>" "<option value=\"-1\">%s</option>"
"<option value=\"0\"", "<option value=\"0\"",
Rec_C2_BOTTOM_WIDE - 60, Rec_C2_BOTTOM_WIDE - 60,
@ -2796,10 +2798,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
{ {
if (DataForm) if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"OriginPlace\"" fprintf (Gbl.F.Out,"<input type=\"text\" name=\"OriginPlace\""
" style=\"width:%upx;\" maxlength=\"%u\" value=\"%s\" />", " maxlength=\"%u\" value=\"%s\""
Rec_C2_BOTTOM_WIDE - 60, " style=\"width:%upx;\" />",
Cns_MAX_LENGTH_STRING, Cns_MAX_LENGTH_STRING,
UsrDat->OriginPlace); UsrDat->OriginPlace,
Rec_C2_BOTTOM_WIDE - 60);
else if (UsrDat->OriginPlace[0]) else if (UsrDat->OriginPlace[0])
fprintf (Gbl.F.Out,"%s",UsrDat->OriginPlace); fprintf (Gbl.F.Out,"%s",UsrDat->OriginPlace);
} }
@ -2844,10 +2847,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
{ {
if (DataForm) if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"LocalAddress\"" fprintf (Gbl.F.Out,"<input type=\"text\" name=\"LocalAddress\""
" style=\"width:%upx;\" maxlength=\"%u\" value=\"%s\" />", " maxlength=\"%u\" value=\"%s\""
Rec_C2_BOTTOM_WIDE - 60, " style=\"width:%upx;\" />",
Cns_MAX_LENGTH_STRING, Cns_MAX_LENGTH_STRING,
UsrDat->LocalAddress); UsrDat->LocalAddress,
Rec_C2_BOTTOM_WIDE - 60);
else if (UsrDat->LocalAddress[0]) else if (UsrDat->LocalAddress[0])
fprintf (Gbl.F.Out,"%s",UsrDat->LocalAddress); fprintf (Gbl.F.Out,"%s",UsrDat->LocalAddress);
} }
@ -2868,10 +2872,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
{ {
if (DataForm) if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"LocalPhone\"" fprintf (Gbl.F.Out,"<input type=\"text\" name=\"LocalPhone\""
" style=\"width:%upx;\" maxlength=\"%u\" value=\"%s\" />", " maxlength=\"%u\" value=\"%s\""
Rec_C2_BOTTOM_WIDE - 60, " style=\"width:%upx;\" />",
Usr_MAX_LENGTH_PHONE, Usr_MAX_LENGTH_PHONE,
UsrDat->LocalPhone); UsrDat->LocalPhone,
Rec_C2_BOTTOM_WIDE - 60);
else if (UsrDat->LocalPhone[0]) else if (UsrDat->LocalPhone[0])
fprintf (Gbl.F.Out,"%s",UsrDat->LocalPhone); fprintf (Gbl.F.Out,"%s",UsrDat->LocalPhone);
} }
@ -2892,10 +2897,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
{ {
if (DataForm) if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FamilyAddress\"" fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FamilyAddress\""
" style=\"width:%upx;\" maxlength=\"%u\" value=\"%s\" />", " maxlength=\"%u\" value=\"%s\""
Rec_C2_BOTTOM_WIDE - 60, " style=\"width:%upx;\" />",
Cns_MAX_LENGTH_STRING, Cns_MAX_LENGTH_STRING,
UsrDat->FamilyAddress); UsrDat->FamilyAddress,
Rec_C2_BOTTOM_WIDE - 60);
else if (UsrDat->FamilyAddress[0]) else if (UsrDat->FamilyAddress[0])
fprintf (Gbl.F.Out,"%s",UsrDat->FamilyAddress); fprintf (Gbl.F.Out,"%s",UsrDat->FamilyAddress);
} }
@ -2916,10 +2922,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
{ {
if (DataForm) if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FamilyPhone\"" fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FamilyPhone\""
" style=\"width:%upx;\" maxlength=\"%u\" value=\"%s\" />", " maxlength=\"%u\" value=\"%s\""
Rec_C2_BOTTOM_WIDE - 60, " style=\"width:%upx;\" />",
Usr_MAX_LENGTH_PHONE, Usr_MAX_LENGTH_PHONE,
UsrDat->FamilyPhone); UsrDat->FamilyPhone,
Rec_C2_BOTTOM_WIDE - 60);
else if (UsrDat->FamilyPhone[0]) else if (UsrDat->FamilyPhone[0])
fprintf (Gbl.F.Out,"%s",UsrDat->FamilyPhone); fprintf (Gbl.F.Out,"%s",UsrDat->FamilyPhone);
} }
@ -3525,7 +3532,8 @@ void Rec_ShowFormMyInsCtrDpt (void)
COL2_WIDTH); COL2_WIDTH);
Act_FormGoToStart (ActChgMyOffPho); Act_FormGoToStart (ActChgMyOffPho);
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"OfficePhone\"" fprintf (Gbl.F.Out,"<input type=\"text\" name=\"OfficePhone\""
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\"" " maxlength=\"%u\" value=\"%s\""
" style=\"width:400px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\" />", " onchange=\"javascript:document.getElementById('%s').submit();\" />",
Usr_MAX_LENGTH_PHONE, Usr_MAX_LENGTH_PHONE,
Gbl.Usrs.Me.UsrDat.Tch.OfficePhone, Gbl.Usrs.Me.UsrDat.Tch.OfficePhone,

View File

@ -1521,7 +1521,8 @@ static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql
Act_FormEnd (); Act_FormEnd ();
/* Write number of current page */ /* Write number of current page */
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL CENTER_MIDDLE\" style=\"width:60%%;\">" fprintf (Gbl.F.Out,"<td class=\"TIT_TBL CENTER_MIDDLE\""
" style=\"width:60%%;\">"
"<strong>" "<strong>"
"%s %lu-%lu %s %lu (%s %ld %s %lu)" "%s %lu-%lu %s %lu (%s %ld %s %lu)"
"</strong>" "</strong>"

View File

@ -1216,7 +1216,8 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns
{ {
/***** Group *****/ /***** Group *****/
fprintf (Gbl.F.Out,"<br />%s" fprintf (Gbl.F.Out,"<br />%s"
"<select name=\"ModTTGrpCod\" style=\"width:88px;\"" "<select name=\"ModTTGrpCod\""
" style=\"width:88px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">", " onchange=\"javascript:document.getElementById('%s').submit();\">",
Txt_Group,Gbl.FormId); Txt_Group,Gbl.FormId);
fprintf (Gbl.F.Out,"<option value=\"-1\""); fprintf (Gbl.F.Out,"<option value=\"-1\"");