Version 14.123.2

This commit is contained in:
Antonio Cañas Vargas 2015-07-28 11:05:10 +02:00
parent a20f5ffd31
commit 051418b5f4
4 changed files with 110 additions and 142 deletions

View File

@ -103,11 +103,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.123.1 (2015/07/27)"
#define Log_PLATFORM_VERSION "SWAD 14.123.2 (2015/07/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 14.123.2: Jul 28, 2015 Changes in CSS of forms. (184953 lines)
Version 14.123.1: Jul 28, 2015 Changes in CSS of forms. (184984 lines)
Version 14.123: Jul 28, 2015 Changes in CSS of forms. (184877 lines)
Version 14.122: Jul 27, 2015 Changes in CSS of forms. (184892 lines)

View File

@ -256,12 +256,12 @@ void Cht_ShowListOfChatRoomsWithUsrs (void)
/***** Table start *****/
Lay_StartRoundFrameTable (NULL,2,Txt_Rooms_with_users);
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"TIT_TBL\""
" style=\"text-align:center; background-color:%s;\">"
"<td class=\"TIT_TBL CENTER_MIDDLE\""
" style=\"background-color:%s;\">"
"%s"
"</td>"
"<td class=\"TIT_TBL\""
" style=\"text-align:left; background-color:%s;\">"
"<td class=\"TIT_TBL LEFT_MIDDLE\""
" style=\"background-color:%s;\">"
"%s"
"</td>"
"</tr>",
@ -276,10 +276,10 @@ void Cht_ShowListOfChatRoomsWithUsrs (void)
/* Get next chat room */
row = mysql_fetch_row (mysql_res);
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"DAT\" style=\"text-align:left;\">"
"<td class=\"DAT LEFT_MIDDLE\">"
"%s"
"</td>"
"<td class=\"DAT\" style=\"text-align:right;\">"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%s"
"</td>"
"</tr>",

View File

@ -90,7 +90,8 @@ void Con_ShowConnectedUsrs (void)
/***** Put form to update connected users *****/
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"padding-bottom:10px; text-align:center;\">");
"<td class=\"CENTER_MIDDLE\""
" style=\"padding-bottom:10px;\">");
Act_FormStart (ActLstCon);
Gbl.Scope.Current = Sco_SCOPE_CRS;
if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM)
@ -108,7 +109,7 @@ void Con_ShowConnectedUsrs (void)
fprintf (Gbl.F.Out,"</td>"
"</tr>"
"<tr>"
"<td style=\"text-align:center;\">");
"<td class=\"CENTER_MIDDLE\">");
/* Number of connected users in the whole platform */
Con_ShowGlobalConnectedUsrs ();
@ -134,7 +135,7 @@ void Con_ShowLastClicks (void)
Lay_StartRoundFrame (NULL,Txt_Last_clicks_in_real_time);
fprintf (Gbl.F.Out,"<div id=\"lastclicks\"" // Used for AJAX based refresh
" style=\"text-align:center;\">");
" class=\"CENTER_MIDDLE\">");
Con_GetAndShowLastClicks ();
fprintf (Gbl.F.Out,"</div>"); // Used for AJAX based refresh
@ -177,24 +178,24 @@ void Con_GetAndShowLastClicks (void)
/***** Write list of connected users *****/
fprintf (Gbl.F.Out,"<table class=\"TABLE10\">"
"<tr>"
"<th class=\"TIT_TBL\""
" style=\"width:70px; text-align:left;\">"
"<th class=\"TIT_TBL LEFT_MIDDLE\""
" style=\"width:70px;\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\""
" style=\"width:60px; text-align:left;\">"
"<th class=\"TIT_TBL LEFT_MIDDLE\""
" style=\"width:60px;\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\""
" style=\"width:100px; text-align:left;\">"
"<th class=\"TIT_TBL LEFT_MIDDLE\""
" style=\"width:100px;\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\""
" style=\"width:150px; text-align:left;\">"
"<th class=\"TIT_TBL LEFT_MIDDLE\""
" style=\"width:150px;\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\""
" style=\"width:220px; text-align:left;\">"
"<th class=\"TIT_TBL LEFT_MIDDLE\""
" style=\"width:220px;\">"
"%s"
"</th>"
"</tr>",
@ -272,7 +273,6 @@ void Con_ShowGlobalConnectedUsrs (void)
unsigned WithoutCoursesTotal = Con_GetConnectedGuestsTotal ();
unsigned UsrsTotal = StdsTotal + TchsTotal + WithoutCoursesTotal;
/***** Start table *****/
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\""
" style=\"width:110px;"
@ -281,8 +281,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Write total number of sessions *****/
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"width:110px;"
" text-align:center; vertical-align:top;\">"
"<td class=\"CENTER_TOP\" style=\"width:110px;\">"
"%u %s"
"</td>"
"</tr>",
@ -292,8 +291,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Write total number of users *****/
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"width:110px;"
" text-align:center; vertical-align:top;\">"
"<td class=\"CENTER_TOP\" style=\"width:110px;\">"
"%u %s:"
"</td>"
"</tr>",
@ -303,8 +301,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Write total number of students *****/
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"width:110px;"
" text-align:center; vertical-align:top;\">"
"<td class=\"CENTER_TOP\" style=\"width:110px;\">"
"%u %s"
"</td>"
"</tr>",
@ -314,8 +311,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Write total number of teachers *****/
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"width:110px;"
" text-align:center; vertical-align:top;\">"
"<td class=\"CENTER_TOP\" style=\"width:110px;\">"
"%u %s"
"</td>"
"</tr>",
@ -326,8 +322,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Write total number of users who do not belong to any course *****/
if (WithoutCoursesTotal)
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"width:110px;"
" text-align:center; vertical-align:top;\">"
"<td class=\"CENTER_TOP\" style=\"width:110px;\">"
"%u %s"
"</td>"
"</tr>",
@ -511,8 +506,7 @@ static void Con_ShowConnectedUsrsWithARoleBelongingToCurrentLocationOnMainZone (
/***** Write number of connected users who belong to current course *****/
NumUsrsThisRole = Con_GetNumConnectedUsrsWithARoleBelongingCurrentLocation (Role,&UsrSex);
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"3\""
" style=\"text-align:center; vertical-align:top;\">"
"<td colspan=\"3\" class=\"CENTER_TOP\">"
"%u %s"
"</td>"
"</tr>",
@ -589,8 +583,8 @@ static void Con_ShowConnectedUsrsWithARoleBelongingToCurrentLocationOnRightColum
if (Gbl.Usrs.Connected.NumUsrsToList > Cfg_MAX_CONNECTED_SHOWN)
Gbl.Usrs.Connected.NumUsrsToList = Cfg_MAX_CONNECTED_SHOWN;
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"3\" style=\"width:110px;"
" text-align:center; vertical-align:top;\">"
"<td colspan=\"3\" class=\"CENTER_TOP\""
" style=\"width:110px;\">"
"%u %s"
"</td>"
"</tr>",
@ -641,7 +635,7 @@ static void Con_ShowConnectedUsrsWithARoleBelongingToCurrentLocationOnRightColum
{
sprintf (Gbl.FormId,"form_con_%d",++Gbl.NumFormConnectedUsrs);
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"3\" style=\"text-align:center;\">");
"<td colspan=\"3\" class=\"CENTER_TOP\">");
Act_FormStartId (ActLstCon,Gbl.FormId);
Sco_PutParamScope (Sco_SCOPE_CRS);
Act_LinkFormSubmitId (Txt_Connected_users,The_ClassConnected[Gbl.Prefs.Theme],Gbl.FormId);
@ -1008,8 +1002,8 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
/***** Show photo *****/
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"width:18px; text-align:left;"
" vertical-align:middle; background-color:%s;\">",
"<td class=\"LEFT_MIDDLE\""
" style=\"width:18px; background-color:%s;\">",
Color);
sprintf (Gbl.FormId,"form_con_%d",++Gbl.NumFormConnectedUsrs);
Act_FormStartId (ActSeePubPrf,Gbl.FormId);
@ -1024,8 +1018,8 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
fprintf (Gbl.F.Out,"</td>");
/***** Write full name and link *****/
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:54px; text-align:left;"
" vertical-align:middle; background-color:%s;\">",
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:54px; background-color:%s;\">",
Font,Color);
sprintf (Gbl.FormId,"form_con_%d",++Gbl.NumFormConnectedUsrs);
Act_FormStartId ((Role == Rol_STUDENT) ? ActSeeRecOneStd :
@ -1039,8 +1033,8 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
fprintf (Gbl.F.Out,"</td>");
/***** Write time from last access *****/
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:38px; text-align:right;"
" vertical-align:middle; background-color:%s;\">",
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:38px; background-color:%s;\">",
Font,Color);
fprintf (Gbl.F.Out,"<div id=\"hm%u\">",
@ -1205,8 +1199,8 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
/***** Show photo *****/
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"width:18px; text-align:left;"
" vertical-align:middle; background-color:%s;\">",
"<td class=\"LEFT_MIDDLE\""
" style=\"width:18px; background-color:%s;\">",
Gbl.ColorRows[Gbl.RowEvenOdd]);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
@ -1215,9 +1209,8 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
fprintf (Gbl.F.Out,"</td>");
/***** Write full name and link *****/
fprintf (Gbl.F.Out,"<td class=\"%s\""
" style=\"width:256px; text-align:left;"
" vertical-align:middle; background-color:%s;\">",
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:256px; background-color:%s;\">",
Font,Gbl.ColorRows[Gbl.RowEvenOdd]);
if (PutLinkToRecord)
{
@ -1235,9 +1228,8 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
fprintf (Gbl.F.Out,"</td>");
/***** Write time from last access *****/
fprintf (Gbl.F.Out,"<td class=\"%s\""
" style=\"width:38px; text-align:right;"
" vertical-align:middle; background-color:%s;\">",
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:38px; background-color:%s;\">",
Font,Gbl.ColorRows[Gbl.RowEvenOdd]);
Hours = Seconds / (60 * 60);
Minutes = (Seconds / 60) % 60;

View File

@ -119,10 +119,10 @@ void Cty_SeeCtyWithPendingInss (void)
Lay_StartRoundFrameTable (NULL,2,Txt_Countries_with_pending_institutions);
fprintf (Gbl.F.Out,"<tr>"
"<th></th>"
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
"<th class=\"TIT_TBL RIGHT_MIDDLE\">"
"%s"
"</th>"
"</tr>",
@ -147,8 +147,8 @@ void Cty_SeeCtyWithPendingInss (void)
/* Country map */
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"text-align:center;"
" vertical-align:middle; background-color:%s;\">",
"<td class=\"CENTER_MIDDLE\""
" style=\"background-color:%s;\">",
BgColor);
if (Cty_CheckIfCountryMapExists (&Cty))
{
@ -160,8 +160,8 @@ void Cty_SeeCtyWithPendingInss (void)
fprintf (Gbl.F.Out,"</td>");
/* Country name */
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:left;"
" vertical-align:middle; background-color:%s;\">",
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\""
" style=\"background-color:%s;\">",
BgColor);
Act_FormGoToStart (ActSeeIns);
Cty_PutParamCtyCod (Cty.CtyCod);
@ -173,8 +173,8 @@ void Cty_SeeCtyWithPendingInss (void)
fprintf (Gbl.F.Out,"</td>");
/* Number of pending institutions (row[1]) */
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
" vertical-align:middle; background-color:%s;\">"
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\""
" style=\"background-color:%s;\">"
"%s"
"</td>"
"</tr>",
@ -269,8 +269,8 @@ static void Cty_Configuration (bool PrintView)
/* Map image */
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"2\" class=\"DAT_SMALL\""
" style=\"text-align:center;\">");
"<td colspan=\"2\""
" class=\"DAT_SMALL CENTER_MIDDLE\">");
if (PutLink)
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\">",
Gbl.CurrentCty.Cty.WWW[Gbl.Prefs.Language]);
@ -285,8 +285,7 @@ static void Cty_Configuration (bool PrintView)
if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM && !PrintView)
{
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"2\""
" style=\"text-align:center;\">");
"<td colspan=\"2\" class=\"CENTER_MIDDLE\">");
Act_FormStart (ActChgCtyMapAtt);
fprintf (Gbl.F.Out,"<textarea name=\"Attribution\" cols=\"50\" rows=\"2\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
@ -315,8 +314,7 @@ static void Cty_Configuration (bool PrintView)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"DAT_N\""
" style=\"text-align:left; vertical-align:middle;\">",
"<td class=\"DAT_N LEFT_MIDDLE\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_Country);
if (!PrintView && Gbl.CurrentCty.Cty.WWW[Gbl.Prefs.Language][0])
@ -333,8 +331,7 @@ static void Cty_Configuration (bool PrintView)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"DAT\""
" style=\"text-align:left; vertical-align:middle;\">"
"<td class=\"DAT LEFT_MIDDLE\">"
"<a href=\"%s/%s?cty=%ld\" class=\"DAT\" target=\"_blank\">"
"%s/%s?cty=%ld</a>"
"</td>"
@ -351,8 +348,7 @@ static void Cty_Configuration (bool PrintView)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"DAT\" style=\"text-align:left;"
" vertical-align:middle;\">",
"<td class=\"DAT LEFT_MIDDLE\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_QR_code);
QR_LinkTo (200,"cty",Gbl.CurrentCty.Cty.CtyCod);
@ -366,8 +362,7 @@ static void Cty_Configuration (bool PrintView)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"DAT\" style=\"text-align:left;"
" vertical-align:middle;\">"
"<td class=\"DAT LEFT_MIDDLE\">"
"%u"
"</td>"
"</tr>",
@ -380,8 +375,7 @@ static void Cty_Configuration (bool PrintView)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"DAT\" style=\"text-align:left;"
" vertical-align:middle;\">"
"<td class=\"DAT LEFT_MIDDLE\">"
"%u"
"</td>"
"</tr>",
@ -394,8 +388,7 @@ static void Cty_Configuration (bool PrintView)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"DAT\" style=\"text-align:left;"
" vertical-align:middle;\">"
"<td class=\"DAT LEFT_MIDDLE\">"
"%u"
"</td>"
"</tr>",
@ -408,8 +401,7 @@ static void Cty_Configuration (bool PrintView)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"DAT\" style=\"text-align:left;"
" vertical-align:middle;\">"
"<td class=\"DAT LEFT_MIDDLE\">"
"%u"
"</td>"
"</tr>",
@ -422,8 +414,7 @@ static void Cty_Configuration (bool PrintView)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"DAT\" style=\"text-align:left;"
" vertical-align:middle;\">"
"<td class=\"DAT LEFT_MIDDLE\">"
"%u"
"</td>"
"</tr>",
@ -436,8 +427,7 @@ static void Cty_Configuration (bool PrintView)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"DAT\" style=\"text-align:left;"
" vertical-align:middle;\">"
"<td class=\"DAT LEFT_MIDDLE\">"
"%u"
"</td>"
"</tr>",
@ -510,7 +500,7 @@ void Cty_ListCountries2 (void)
Order <= Cty_ORDER_BY_NUM_USRS;
Order++)
{
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:left;\">");
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL LEFT_MIDDLE\">");
Act_FormStart (ActSeeCty);
Par_PutHiddenParamUnsigned ("Order",(unsigned) Order);
Act_LinkFormSubmit (Txt_COUNTRIES_HELP_ORDER[Order],"TIT_TBL");
@ -523,13 +513,13 @@ void Cty_ListCountries2 (void)
Act_FormEnd ();
fprintf (Gbl.F.Out,"</th>");
}
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL RIGHT_MIDDLE\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
"<th class=\"TIT_TBL RIGHT_MIDDLE\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
"<th class=\"TIT_TBL RIGHT_MIDDLE\">"
"%s"
"</th>"
"</tr>",
@ -548,8 +538,8 @@ void Cty_ListCountries2 (void)
/***** Country map (and link to WWW if exists) *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"COUNTRY_MAP_SMALL\""
" style=\"text-align:center; background-color:%s;\">",
"<td class=\"COUNTRY_MAP_SMALL CENTER_MIDDLE\""
" style=\"background-color:%s;\">",
BgColor);
if (Cty_CheckIfCountryMapExists (&Gbl.Ctys.Lst[NumCty]))
{
@ -566,8 +556,8 @@ void Cty_ListCountries2 (void)
fprintf (Gbl.F.Out,"</td>");
/* Name and link to go to this country */
fprintf (Gbl.F.Out,"<td class=\"DAT\""
" style=\"text-align:left; background-color:%s;\">",
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\""
" style=\"background-color:%s;\">",
BgColor);
Act_FormGoToStart (ActSeeCtyInf);
Cty_PutParamCtyCod (Gbl.Ctys.Lst[NumCty].CtyCod);
@ -583,20 +573,20 @@ void Cty_ListCountries2 (void)
/* Write stats of this country */
NumStds = Usr_GetNumUsrsInCountry (Rol_STUDENT,Gbl.Ctys.Lst[NumCty].CtyCod);
NumTchs = Usr_GetNumUsrsInCountry (Rol_TEACHER,Gbl.Ctys.Lst[NumCty].CtyCod);
fprintf (Gbl.F.Out,"<td class=\"DAT\""
" style=\"text-align:right; background-color:%s;\">"
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\""
" style=\"background-color:%s;\">"
"%u"
"</td>"
"<td class=\"DAT\""
" style=\"text-align:right; background-color:%s;\">"
"<td class=\"DAT RIGHT_MIDDLE\""
" style=\"background-color:%s;\">"
"%u"
"</td>"
"<td class=\"DAT\""
" style=\"text-align:right; background-color:%s;\">"
"<td class=\"DAT RIGHT_MIDDLE\""
" style=\"background-color:%s;\">"
"%u"
"</td>"
"<td class=\"DAT\""
" style=\"text-align:right; background-color:%s;\">"
"<td class=\"DAT RIGHT_MIDDLE\""
" style=\"background-color:%s;\">"
"%u"
"</td>"
"</tr>",
@ -614,8 +604,7 @@ void Cty_ListCountries2 (void)
/***** Separation row *****/
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"6\" class=\"DAT\""
" style=\"text-align:center;\">"
"<td colspan=\"6\" class=\"DAT CENTER_MIDDLE\">"
"&nbsp;"
"</td>"
"</tr>");
@ -627,19 +616,19 @@ void Cty_ListCountries2 (void)
NumInssInOtherCtys = Ins_GetNumInssInCty (0);
fprintf (Gbl.F.Out,"<tr>"
"<td></td>"
"<td class=\"DAT\" style=\"text-align:left;\">"
"<td class=\"DAT LEFT_MIDDLE\">"
"%s"
"</td>"
"<td class=\"DAT\" style=\"text-align:right;\">"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"
"</td>"
"<td class=\"DAT\" style=\"text-align:right;\">"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"
"</td>"
"<td class=\"DAT\" style=\"text-align:right;\">"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"
"</td>"
"<td class=\"DAT\" style=\"text-align:right;\">"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"
"</td>"
"</tr>",
@ -656,19 +645,19 @@ void Cty_ListCountries2 (void)
NumUsrs = Sta_GetTotalNumberOfUsers (Sco_SCOPE_SYS,Rol_UNKNOWN); // NumUsrs >= NumStds + NumTchs
fprintf (Gbl.F.Out,"<tr>"
"<td></td>"
"<td class=\"DAT\" style=\"text-align:left;\">"
"<td class=\"DAT LEFT_MIDDLE\">"
"%s"
"</td>"
"<td class=\"DAT\" style=\"text-align:right;\">"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"
"</td>"
"<td class=\"DAT\" style=\"text-align:right;\">"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"
"</td>"
"<td class=\"DAT\" style=\"text-align:right;\">"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"
"</td>"
"<td class=\"DAT\" style=\"text-align:right;\">"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"
"</td>"
"</tr>",
@ -1296,15 +1285,13 @@ static void Cty_ListCountriesForEdition (void)
fprintf (Gbl.F.Out,"</td>");
/* Numerical country code (ISO 3166-1) */
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT\""
" style=\"text-align:right; vertical-align:top;\">"
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT RIGHT_TOP\">"
"%03ld"
"</td>",
1 + Txt_NUM_LANGUAGES,Cty->CtyCod);
/* Alphabetic country code with 2 letters (ISO 3166-1) */
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT\""
" style=\"text-align:right; vertical-align:top;\">"
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT RIGHT_TOP\">"
"%s"
"</td>",
1 + Txt_NUM_LANGUAGES,Cty->Alpha2);
@ -1314,15 +1301,13 @@ static void Cty_ListCountriesForEdition (void)
"<td></td>");
/* Number of users */
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT\""
" style=\"text-align:right; vertical-align:top;\">"
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT RIGHT_TOP\">"
"%u"
"</td>",
1 + Txt_NUM_LANGUAGES,Cty->NumUsrs);
/* Number of institutions */
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT\""
" style=\"text-align:right; vertical-align:top;\">"
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT RIGHT_TOP\">"
"%u"
"</td>"
"</tr>",
@ -1335,15 +1320,13 @@ static void Cty_ListCountriesForEdition (void)
{
/* Language */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"DAT\" style=\"text-align:right;"
" vertical-align:middle;\">"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%s:"
"</td>",
Txt_STR_LANG_NAME[Lan]);
/* Name */
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
" vertical-align:top;\">");
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\">");
Act_FormStart (ActRenCty);
Cty_PutParamOtherCtyCod (Cty->CtyCod);
Par_PutHiddenParamUnsigned ("Lan",(unsigned) Lan);
@ -1355,8 +1338,7 @@ static void Cty_ListCountriesForEdition (void)
fprintf (Gbl.F.Out,"</td>");
/* WWW */
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
" vertical-align:top;\">");
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\">");
Act_FormStart (ActChgCtyWWW);
Cty_PutParamOtherCtyCod (Cty->CtyCod);
Par_PutHiddenParamUnsigned ("Lan",(unsigned) Lan);
@ -1660,8 +1642,7 @@ static void Cty_PutFormToCreateCountry (void)
1 + Txt_NUM_LANGUAGES);
/***** Numerical country code (ISO 3166-1) *****/
fprintf (Gbl.F.Out,"<td rowspan=\"%u\""
" style=\"text-align:right; vertical-align:top;\">"
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"RIGHT_TOP\">"
"<input type=\"text\" name=\"OthCtyCod\" size=\"3\" maxlength=\"10\" value=\"",
1 + Txt_NUM_LANGUAGES);
if (Cty->CtyCod > 0)
@ -1669,8 +1650,7 @@ static void Cty_PutFormToCreateCountry (void)
fprintf (Gbl.F.Out,"\" /></td>");
/***** Alphabetic country code with 2 letters (ISO 3166-1) *****/
fprintf (Gbl.F.Out,"<td rowspan=\"%u\""
" style=\"text-align:right; vertical-align:top;\">"
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"RIGHT_TOP\">"
"<input type=\"text\" name=\"Alpha2\" size=\"2\" maxlength=\"2\" value=\"%s\" />"
"</td>",
1 + Txt_NUM_LANGUAGES,Cty->Alpha2);
@ -1680,15 +1660,13 @@ static void Cty_PutFormToCreateCountry (void)
"<td></td>");
/* Number of users */
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT\""
" style=\"text-align:right; vertical-align:top;\">"
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT RIGHT_TOP\">"
"0"
"</td>",
1 + Txt_NUM_LANGUAGES);
/* Number of institutions */
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT\""
" style=\"text-align:right; vertical-align:top;\">"
fprintf (Gbl.F.Out,"<td rowspan=\"%u\" class=\"DAT RIGHT_TOP\">"
"0"
"</td>"
"</tr>",
@ -1701,22 +1679,19 @@ static void Cty_PutFormToCreateCountry (void)
{
/* Language */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"DAT\""
" style=\"text-align:right; vertical-align:top;\">"
"<td class=\"DAT RIGHT_TOP\">"
"%s"
"</td>",
Txt_STR_LANG_NAME[Lan]);
/* Name */
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
" vertical-align:middle;\">"
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
"<input type=\"text\" name=\"Name_%s\" size=\"15\" maxlength=\"%u\" value=\"%s\" />"
"</td>",
Txt_STR_LANG_ID[Lan],Cty_MAX_LENGTH_COUNTRY_NAME,Cty->Name[Lan]);
/* WWW */
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
" vertical-align:middle;\">"
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
"<input type=\"text\" name=\"WWW_%s\" size=\"15\" maxlength=\"%u\" value=\"%s\" />"
"</td>"
"</tr>",
@ -1745,23 +1720,23 @@ static void Cty_PutHeadCountries (void)
fprintf (Gbl.F.Out,"<tr>"
"<th class=\"BM\"></th>"
"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
"<th class=\"TIT_TBL RIGHT_MIDDLE\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
"<th class=\"TIT_TBL RIGHT_MIDDLE\">"
"%s"
"</th>"
"<th></th>"
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
"<th class=\"TIT_TBL RIGHT_MIDDLE\">"
"%s"
"</th>"
"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
"<th class=\"TIT_TBL RIGHT_MIDDLE\">"
"%s"
"</th>"
"</tr>",