Version 16.181

This commit is contained in:
Antonio Cañas Vargas 2017-04-17 14:18:57 +02:00
parent a895afca0a
commit c1f49c36a8
35 changed files with 101 additions and 99 deletions

View File

@ -1548,7 +1548,7 @@ a:hover /* Default ==> underlined */
.FRAME_CONTAINER
{
box-sizing:border-box;
width:100%%;
width:100%;
text-align:center;
vertical-align:middle;
}
@ -1594,17 +1594,26 @@ a:hover /* Default ==> underlined */
display:inline-block;
float:right;
}
.FRAME_TBL
.FRAME_TBL_WIDE
{
box-sizing:border-box;
width:100%;
}
.FRAME_TBL_MARGIN
.FRAME_TBL_WIDE_MARGIN
{
box-sizing:border-box;
width:100%;
margin-bottom:20px;
}
.FRAME_TBL_CENTER
{
margin:0 auto;
}
.FRAME_TBL_CENTER_MARGIN
{
margin:0 auto;
margin-bottom:20px;
}
.FRAME_TITLE
{
display:table;
@ -1853,10 +1862,10 @@ a:hover img.CENTRE_PHOTO_SHOW
.NO_BR {white-space:nowrap;}
/********************************* Messages **********************************/
.MSG_SUBJECT, .MSG_CONTENT
.MSG_RECIPIENTS, .MSG_SUBJECT, .MSG_CONTENT
{
box-sizing:border-box;
width:480px;
width:640px;
}
.BG_MSG_BLUE
{

View File

@ -125,10 +125,9 @@ function writeLocalDateHMSFromUTC (id,TimeUTC,Separator,StrToday,
if (WriteWeekDay) {
DayOfWeek = d.getDay();
DayOfWeek = (DayOfWeek == 0) ? 6 : DayOfWeek - 1;
StrDate = StrDate + Separator + DAYS[DayOfWeek] + Separator;
StrDate = StrDate + Separator + DAYS[DayOfWeek];
}
else
StrDate = StrDate + Separator;
StrDate = StrDate + Separator;
}
else
StrDate = '';
@ -138,15 +137,12 @@ function writeLocalDateHMSFromUTC (id,TimeUTC,Separator,StrToday,
Min = d.getMinutes();
StrHou = ((Hou < 10) ? '0' : '') + Hou;
StrMin = ((Min < 10) ? ':0' : ':') + Min;
StrSec = '';
if (WriteSeconds) {
Sec = d.getSeconds();
if (Sec)
StrSec = ((Sec < 10) ? ':0' : ':') + Sec;
else
StrSec = '';
}
else
StrSec = '';
/* Write date and time */
document.getElementById(id).innerHTML = StrDate + StrHou + StrMin + StrSec;

View File

@ -529,7 +529,7 @@ void ID_ShowFormOthIDs (void)
Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,&Gbl.Usrs.Other.UsrDat);
/***** Form with the user's ID *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
ID_ShowFormChangeUsrID (&Gbl.Usrs.Other.UsrDat,
(Gbl.Usrs.Other.UsrDat.UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod)); // It's me?
fprintf (Gbl.F.Out,"</table>");

View File

@ -472,7 +472,7 @@ static void Agd_ShowEvents (Agd_AgendaType_t AgendaType)
if (Gbl.Agenda.Num)
{
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">");
/***** Table head *****/
Agd_WriteHeaderListEvents (AgendaType);

View File

@ -151,7 +151,7 @@ static void Asg_ShowAllAssignments (void)
if (Gbl.Asgs.Num)
{
/***** Table head *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">"
"<tr>");
for (Order = Dat_START_TIME;
Order <= Dat_END_TIME;

View File

@ -231,7 +231,7 @@ static void Att_ShowAllAttEvents (void)
if (Gbl.AttEvents.Num)
{
/***** Table head *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">"
"<tr>");
for (Order = Dat_START_TIME;
Order <= Dat_END_TIME;
@ -1946,7 +1946,7 @@ static void Att_ListAttStudents (struct AttendanceEvent *Att)
Grp_PutParamsCodGrps ();
/***** List students' data *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">"
"<tr>"
"<th></th>"
"<th></th>"
@ -2644,7 +2644,7 @@ void Usr_ReqListStdsAttendanceCrs (void)
Grp_PutParamsCodGrps ();
/* Write list of students to select some of them */
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto;\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER\">");
Usr_ListUsersToSelect (Rol_STUDENT);
fprintf (Gbl.F.Out,"</table>");
@ -3175,8 +3175,8 @@ static void Att_ListStdsAttendanceTable (Att_TypeOfView_t TypeOfView,
TypeOfView == Att_PRINT_VIEW ? NULL :
Hlp_USERS_Attendance_attendance_list);
fprintf (Gbl.F.Out,"<table class=\"%s CELLS_PAD_2\">",
PutButtonShowDetails ? "FRAME_TBL_MARGIN" :
"FRAME_TBL");
PutButtonShowDetails ? "FRAME_TBL_WIDE_MARGIN" :
"FRAME_TBL_WIDE");
/***** Heading row *****/
Att_WriteTableHeadSeveralAttEvents ();

View File

@ -377,7 +377,7 @@ static void Ctr_Configuration (bool PrintView)
}
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
/***** Institution *****/
fprintf (Gbl.F.Out,"<tr>"
@ -759,7 +759,7 @@ static void Ctr_ListCentres (void)
if (Gbl.Ctrs.Num) // There are centres in the current institution
{
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">");
Ctr_PutHeadCentresForSeeing (true); // Order selectable
/***** Write all the centres and their nuber of teachers *****/
@ -2425,7 +2425,7 @@ static void Ctr_PutFormToCreateCentre (void)
Lay_ShowErrorAndExit ("You can not edit centres.");
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">");
/***** Table head *****/
Ctr_PutHeadCentresForEdition ();

View File

@ -214,13 +214,16 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.180.1 (2017-04-17)"
#define CSS_FILE "swad16.177.css"
#define JS_FILE "swad16.144.js"
#define Log_PLATFORM_VERSION "SWAD 16.181 (2017-04-17)"
#define CSS_FILE "swad16.181.css"
#define JS_FILE "swad16.181.js"
// 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 16.181: Apr 17, 2017 Changes in layout of messages.
Changes in layout of some tables.
Fixed bug in forums. (217560 lines)
Version 16.180.1: Apr 17, 2017 New '+' icon in list of thread posts to add a new post. (217558 lines)
Version 16.180: Apr 17, 2017 Code refactoring in forums. (217521 lines)
Version 16.179: Apr 16, 2017 Code refactoring in forums. (217444 lines)

View File

@ -297,7 +297,7 @@ static void Cty_Configuration (bool PrintView)
}
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
/***** Country name (an link to WWW if exists) *****/
fprintf (Gbl.F.Out,"<tr>"

View File

@ -216,7 +216,7 @@ static void Crs_Configuration (bool PrintView)
Gbl.CurrentCrs.Crs.FullName);
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
/***** Degree *****/
fprintf (Gbl.F.Out,"<tr>"
@ -1161,7 +1161,7 @@ static void Crs_ListCourses (void)
if (Gbl.CurrentDeg.NumCrss) // There are courses in the current degree
{
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">");
Crs_PutHeadCoursesForSeeing ();
/***** List the courses *****/

View File

@ -312,7 +312,7 @@ static void Deg_Configuration (bool PrintView)
fprintf (Gbl.F.Out,"</div>");
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
/***** Centre *****/
fprintf (Gbl.F.Out,"<tr>"
@ -949,7 +949,7 @@ static void Deg_PutFormToCreateDegree (void)
Lay_ShowErrorAndExit ("You can not edit degrees.");
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">");
/***** Table head *****/
Deg_PutHeadDegreesForEdition ();
@ -1192,7 +1192,7 @@ static void Deg_ListDegrees (void)
if (Gbl.CurrentCtr.Ctr.Degs.Num) // There are degrees in the current centre
{
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">");
Deg_PutHeadDegreesForSeeing ();
/***** List the degrees *****/

View File

@ -822,7 +822,7 @@ static void Enr_PutAreaToEnterUsrsIDs (void)
extern const char *Txt_List_of_nicks_emails_or_IDs;
/***** Text area for users' IDs *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">"
"<tr>"
"<td class=\"RIGHT_TOP\">"
"<label for=\"UsrsIDs\" class=\"%s\">%s:</label>"
@ -2207,7 +2207,7 @@ static void Enr_ShowEnrolmentRequestsGivenRoles (unsigned RolesSelected)
/***** Selection of scope and roles *****/
/* Start form */
Act_FormStart (ActUpdSignUpReq);
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:5px;\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_5\">");
/* Scope (whole platform, current centre, current degree or current course) */
fprintf (Gbl.F.Out,"<tr>"
@ -2678,8 +2678,7 @@ static void Enr_ShowEnrolmentRequestsGivenRoles (unsigned RolesSelected)
Usr_UsrDataConstructor (&UsrDat);
/* Start table */
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"margin:0 auto;\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">"
"<th></th>"
"<th class=\"LEFT_TOP\">"
"%s"

View File

@ -3120,7 +3120,7 @@ void Brw_AskEditWorksCrs (void)
Brw_PutHiddenParamFullTreeIfSelected ();
/* Put list of users to select some of them */
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto;\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER\">");
Usr_ListUsersToSelect (Rol_TEACHER);
Usr_ListUsersToSelect (Rol_STUDENT);
fprintf (Gbl.F.Out,"</table>");

View File

@ -1061,7 +1061,7 @@ static void For_ShowThreadPosts (long ThrCod)
&PaginationPsts);
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
/***** Show posts from this page, the author and the date of last reply *****/
mysql_data_seek (mysql_res,(my_ulonglong) (PaginationPsts.FirstItemVisible - 1));
@ -2542,7 +2542,7 @@ static void For_ShowForumThreadsHighlightingOneThread (long ThrCodHighlighted)
&PaginationThrs);
/***** Heading row *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">"
"<tr>"
"<th class=\"LEFT_MIDDLE\""
" style=\"width:18px;\">"
@ -3342,9 +3342,9 @@ static void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],
/* Write the date of first or last message (it's in YYYYMMDDHHMMSS format) */
TimeUTC = Thr.WriteTime[Order];
UniqueId++;
fprintf (Gbl.F.Out,"<td id=\"date_%u\" class=\"%s LEFT_TOP %s\">"
fprintf (Gbl.F.Out,"<td id=\"thr_date_%u\" class=\"%s LEFT_TOP %s\">"
"<script type=\"text/javascript\">"
"writeLocalDateHMSFromUTC('date_%u',"
"writeLocalDateHMSFromUTC('thr_date_%u',"
"%ld,'<br />','%s',true,false,false);"
"</script>"
"</td>",
@ -3779,15 +3779,15 @@ static void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject)
{
extern const char *Hlp_SOCIAL_Forums;
extern const char *The_ClassForm[The_NUM_THEMES];
extern const char *Txt_New_message;
extern const char *Txt_New_post;
extern const char *Txt_New_thread;
extern const char *Txt_MSG_Subject;
extern const char *Txt_MSG_Message;
extern const char *Txt_Send_message;
extern const char *Txt_Send;
/***** Start frame *****/
Lay_StartRoundFrame (NULL,
IsReply ? Txt_New_message :
IsReply ? Txt_New_post :
Txt_New_thread,
NULL,Hlp_SOCIAL_Forums);
@ -3848,7 +3848,7 @@ static void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject)
Img_PutImageUploader (-1,"FOR_IMG_TIT_URL");
/***** Send button *****/
Lay_PutCreateButton (Txt_Send_message);
Lay_PutCreateButton (Txt_Send);
/***** End form *****/
Act_FormEnd ();

View File

@ -274,7 +274,7 @@ void Grp_ShowFormToSelectSeveralGroups (Act_Action_t NextAction)
Grp_GetListGrpTypesAndGrpsInThisCrs (Grp_ONLY_GROUP_TYPES_WITH_GROUPS);
/***** List the groups for each group type *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
for (NumGrpTyp = 0;
NumGrpTyp < Gbl.CurrentCrs.Grps.GrpTypes.Num;
NumGrpTyp++)
@ -1548,7 +1548,7 @@ void Grp_ShowLstGrpsToChgMyGrps (bool ShowWarningsToStudents)
Act_FormStart (ActChgGrp);
/***** List the groups the user belongs to for change *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
for (NumGrpTyp = 0;
NumGrpTyp < Gbl.CurrentCrs.Grps.GrpTypes.Num;
NumGrpTyp++)

View File

@ -97,8 +97,7 @@ void Hie_WriteMenuHierarchy (void)
extern const char *Txt_Course;
/***** Start of table *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"margin:0 auto 12px auto;\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER_MARGIN CELLS_PAD_2\">");
/***** Write a 1st selector
with all the countries *****/

View File

@ -104,7 +104,7 @@ void Hld_SeeHolidays (void)
Hlp_INSTITUTION_Holidays);
if (Gbl.Hlds.Num)
{
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">"
"<tr>");
for (Order = Hld_ORDER_BY_PLACE;
Order <= Hld_ORDER_BY_START_DATE;

View File

@ -110,7 +110,7 @@ void Ind_ReqIndicatorsCourses (void)
/***** Form to update indicators *****/
/* Start form */
Act_FormStart (ActReqStaCrs);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
/* Scope */
fprintf (Gbl.F.Out,"<tr>"

View File

@ -323,7 +323,7 @@ static void Ins_Configuration (bool PrintView)
fprintf (Gbl.F.Out,"</div>");
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
/***** Country *****/
fprintf (Gbl.F.Out,"<tr>"
@ -684,7 +684,7 @@ static void Ins_ListInstitutions (void)
if (Gbl.Inss.Num) // There are institutions in the current country
{
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">");
Ins_PutHeadInstitutionsForSeeing (true); // Order selectable
/***** Write all the institutions and their nuber of users *****/

View File

@ -1357,7 +1357,7 @@ void Lay_StartRoundFrameTable (const char *Width,const char *Title,
{
Lay_StartRoundFrame (Width,Title,FunctionToDrawContextualIcons,HelpLink);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE");
if (CellPadding)
fprintf (Gbl.F.Out," CELLS_PAD_%u",CellPadding); // CellPadding must be 0, 1, 2, 4 or 8
fprintf (Gbl.F.Out,"\">");
@ -1370,7 +1370,7 @@ void Lay_StartRoundFrameTableShadow (const char *Width,const char *Title,
{
Lay_StartRoundFrameShadow (Width,Title,FunctionToDrawContextualIcons,HelpLink);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE");
if (CellPadding)
fprintf (Gbl.F.Out," CELLS_PAD_%u",CellPadding); // CellPadding must be 0, 1, 2, 4 or 8
fprintf (Gbl.F.Out,"\">");

View File

@ -1170,7 +1170,7 @@ void Mai_ShowFormOthEmail (void)
Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,&Gbl.Usrs.Other.UsrDat);
/***** Form with the user's email *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">");
Mai_ShowFormChangeUsrEmail (&Gbl.Usrs.Other.UsrDat,
(Gbl.Usrs.Other.UsrDat.UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod)); // It's me?
fprintf (Gbl.F.Out,"</table>");

View File

@ -272,7 +272,7 @@ static void Msg_PutFormMsgUsrs (char Content[Cns_MAX_BYTES_LONG_TEXT + 1])
}
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">");
/***** "To:" section (recipients) *****/
fprintf (Gbl.F.Out,"<tr>"
@ -457,7 +457,7 @@ static void Msg_WriteFormUsrsIDsOrNicksOtherRecipients (void)
fprintf (Gbl.F.Out," colspan=\"%u\"",Colspan);
fprintf (Gbl.F.Out," class=\"LEFT_MIDDLE\">"
"<textarea id=\"OtherRecipients\" name=\"OtherRecipients\""
" cols=\"72\" rows=\"2\""
" class=\"MSG_RECIPIENTS\" rows=\"2\""
" placeholder=\"%s\">",
Txt_nicks_emails_or_IDs_separated_by_commas);
if (Gbl.Usrs.ListOtherRecipients[0])
@ -501,7 +501,7 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (char Content[Cns_MAX_BYTES_
"</td>"
"<td class=\"LEFT_MIDDLE\">"
"<textarea id=\"MsgSubject\" name=\"Subject\""
" cols=\"72\" rows=\"2\">",
" class=\"MSG_SUBJECT\" rows=\"2\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_MSG_Subject);
@ -551,7 +551,7 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (char Content[Cns_MAX_BYTES_
"</td>"
"<td class=\"LEFT_MIDDLE\">"
"<textarea id=\"MsgContent\" name=\"Content\""
" cols=\"72\" rows=\"20\">",
" class=\"MSG_CONTENT\" rows=\"20\">",
The_ClassForm[Gbl.Prefs.Theme],Txt_MSG_Message);
/* Start textarea with a '\n', that will be not visible in textarea.
@ -583,7 +583,7 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (char Content[Cns_MAX_BYTES_
"</td>"
"<td class=\"LEFT_MIDDLE\">"
"<textarea id=\"MsgContent\" name=\"Content\""
" cols=\"72\" rows=\"20\">",
" class=\"MSG_CONTENT\" rows=\"20\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_MSG_Message);
@ -2588,7 +2588,7 @@ void Msg_ShowFormToFilterMsgs (void)
};
/***** Table start *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">"
"<tr>");
/***** Filter authors/recipients *****/
@ -3529,13 +3529,13 @@ void Msg_WriteMsgDate (time_t TimeUTC,const char *ClassBackground)
UniqueId++;
/***** Start cell *****/
fprintf (Gbl.F.Out,"<td id=\"date_%u\" class=\"%s RIGHT_TOP\""
fprintf (Gbl.F.Out,"<td id=\"msg_date_%u\" class=\"%s RIGHT_TOP\""
" style=\"width:106px;\">",
UniqueId,ClassBackground);
/***** Write date and time *****/
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
"writeLocalDateHMSFromUTC('date_%u',"
"writeLocalDateHMSFromUTC('msg_date_%u',"
"%ld,',&nbsp;','%s',true,false,false);"
"</script>",
UniqueId,(long) TimeUTC,Txt_Today);

View File

@ -699,7 +699,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
Not_PutHiddenParamNotCod (NotCod);
Act_LinkFormSubmit (Txt_See_full_notice,DateClass[Status],NULL);
}
fprintf (Gbl.F.Out,"<span id=\"notice_date_%u\"></span>",
fprintf (Gbl.F.Out,"<span id=\"not_date_%u\"></span>",
UniqueId);
if (TypeNoticesListing == Not_LIST_BRIEF_NOTICES)
{
@ -707,7 +707,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
Act_FormEnd ();
}
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
"writeLocalDateHMSFromUTC('notice_date_%u',"
"writeLocalDateHMSFromUTC('not_date_%u',"
"%ld,'<br />','%s',true,false,false);"
"</script>"
"</div>",

View File

@ -388,7 +388,7 @@ void Ntf_ShowMyNotifications (void)
Usr_UsrDataConstructor (&UsrDat);
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">"
"<tr>"
"<th colspan=\"2\" class=\"LEFT_MIDDLE\">"
"%s"
@ -1899,7 +1899,7 @@ void Ntf_PutFormChangeNotifSentByEMail (void)
Mai_WriteWarningEmailNotifications ();
/***** List of notifications *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">"
"<tr>"
"<th></th>"
"<th class=\"CENTER_MIDDLE\">"

View File

@ -226,7 +226,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,
if (Pagination->MoreThanOnePage)
{
/***** Links to several pages start here *****/
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:6px;\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_5\">"
"<tr>"
"<td class=\"%s LEFT_MIDDLE\">"
"%s"

View File

@ -832,7 +832,7 @@ void Pwd_ShowFormOthPwd (void)
Usr_PutParamOtherUsrCodEncrypted ();
/* New password */
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">");
Pwd_PutFormToGetNewPasswordTwice ();
fprintf (Gbl.F.Out,"</table>");

View File

@ -1637,8 +1637,7 @@ void Pho_ShowOrPrintPhotoDegree (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
Pho_PutIconToPrintDegreeStats,
Hlp_STATS_Degrees);
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"margin:0 auto;\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">");
/***** Put a selector for the type of average *****/
Pho_PutSelectorForTypeOfAvg ();
@ -2036,7 +2035,7 @@ static void Pho_ShowOrPrintClassPhotoDegrees (Pho_AvgPhotoSeeOrPrint_t SeeOrPrin
/***** Form to select type of list used to display degree photos *****/
if (SeeOrPrint == Pho_DEGREES_SEE)
Usr_ShowFormsToSelectUsrListType (ActSeePhoDeg);
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto;\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER\">");
/***** Get and print degrees *****/
for (NumRow = 0, NumDegsNotEmpty = 0;
@ -2121,8 +2120,7 @@ static void Pho_ShowOrPrintListDegrees (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
Usr_ShowFormsToSelectUsrListType (ActSeePhoDeg);
/***** Write heading *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"margin:0 auto;\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">"
"<tr>"
"<th class=\"RIGHT_TOP\">"
"%s"

View File

@ -119,7 +119,7 @@ void Plc_SeePlaces (void)
ICanEdit ? Plc_PutIconToEditPlaces :
NULL,
Hlp_INSTITUTION_Places);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">"
"<tr>");
for (Order = Plc_ORDER_BY_PLACE;
Order <= Plc_ORDER_BY_NUM_CTRS;

View File

@ -104,7 +104,7 @@ void Pri_EditMyPrivacy (void)
/***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_Privacy,
Pri_PutIconsPrivacy,Hlp_PROFILE_Preferences_privacy);
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">");
/***** Edit photo visibility *****/
Pri_PutFormVisibility (Txt_Photo,

View File

@ -2216,7 +2216,7 @@ void Rec_ShowSharedUsrRecord (Rec_SharedRecordViewType_t TypeOfView,
/***** Show email and user's ID *****/
if (ShowIDRows)
{
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
Rec_ShowEmail (UsrDat,ClassForm);
Rec_ShowUsrIDs (UsrDat,ClassForm);
fprintf (Gbl.F.Out,"</table>");
@ -2244,7 +2244,7 @@ void Rec_ShowSharedUsrRecord (Rec_SharedRecordViewType_t TypeOfView,
break;
}
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
if (ShowIDRows)
{

View File

@ -493,8 +493,7 @@ void Sta_AskShowCrsHits (void)
Par_PutHiddenParamLong ("LastRow",0);
/***** Put list of users to select some of them *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"margin:0 auto;\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">"
"<tr>"
"<td class=\"RIGHT_TOP %s\">%s:"
"</td>"
@ -1770,9 +1769,9 @@ static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql
"?");
/* Write the date-time (row[3]) */
fprintf (Gbl.F.Out,"<td id=\"date_%u\" class=\"LOG CENTER_TOP COLOR%u\">"
fprintf (Gbl.F.Out,"<td id=\"log_date_%u\" class=\"LOG CENTER_TOP COLOR%u\">"
"<script type=\"text/javascript\">"
"writeLocalDateHMSFromUTC('date_%u',"
"writeLocalDateHMSFromUTC('log_date_%u',"
"%ld,',&nbsp;','%s',true,false,true);"
"</script>"
"</td>",

View File

@ -222,7 +222,7 @@ static void Svy_ListAllSurveys (struct SurveyQuestion *SvyQst)
if (Gbl.Svys.Num)
{
/***** Table head *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">"
"<tr>");
for (Order = Svy_ORDER_BY_START_DATE;
Order <= Svy_ORDER_BY_END_DATE;
@ -438,7 +438,7 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,
/***** Start table *****/
if (ShowOnlyThisSvyComplete)
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
/***** Start date/time *****/
UniqueId++;
@ -2666,7 +2666,7 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,
Svy_PutParamQstCod (SvyQst->QstCod);
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">");
/***** Stem *****/
fprintf (Gbl.F.Out,"<tr>"
@ -3188,7 +3188,7 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
}
/***** Write the heading *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">"
"<tr>");
if (Svy->Status.ICanEdit)
fprintf (Gbl.F.Out,"<th colspan=\"2\"></th>");

View File

@ -440,7 +440,7 @@ void Tst_ShowNewTest (void)
Par_PutHiddenParamUnsigned ("NumQst",Gbl.Test.NumQsts);
/***** List the questions *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_10\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_10\">");
Tst_ShowTestQuestionsWhenSeeing (mysql_res);
fprintf (Gbl.F.Out,"</table>");
@ -540,7 +540,7 @@ void Tst_AssessTest (void)
}
/***** Write answers and solutions *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_10\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_10\">");
Tst_ShowTestResultAfterAssess (TstCod,&NumQstsNotBlank,&TotalScore);
fprintf (Gbl.F.Out,"</table>");
@ -2722,7 +2722,7 @@ static void Tst_ListOneOrMoreQuestionsToEdit (unsigned long NumRows,MYSQL_RES *m
Tst_PutIconsTests,Hlp_ASSESSMENT_Tests);
/***** Write the heading *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE_MARGIN CELLS_PAD_2\">"
"<tr>"
"<th colspan=\"2\"></th>"
"<th class=\"CENTER_TOP\">"
@ -6968,8 +6968,7 @@ void Tst_SelUsrsToSeeUsrsTestResults (void)
Grp_PutParamsCodGrps ();
/***** Put list of users to select some of them *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"margin:0 auto;\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_CENTER CELLS_PAD_2\">"
"<tr>"
"<td class=\"%s RIGHT_TOP\">"
"%s:"
@ -7652,7 +7651,7 @@ void Tst_ShowOneTestResult (void)
Gbl.CurrentCrs.Crs.CrsCod);
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_10\">");
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_10\">");
/***** Header row *****/
/* Get data of the user who made the test */

View File

@ -959,7 +959,7 @@ static void TsI_WriteHeadingListImportedQst (void)
extern const char *Txt_Question;
/***** Write the heading *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">"
fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_WIDE CELLS_PAD_2\">"
"<tr>"
"<th></th>"
"<th class=\"CENTER_TOP\">"

View File

@ -24329,17 +24329,17 @@ const char *Txt_New_plugin =
const char *Txt_New_post =
#if L==1
"Novo missatge";
"Nou comentari";
#elif L==2
"Neue Nachricht";
"Neue Kommentar";
#elif L==3
"New post";
#elif L==4
"Nuevo mensaje";
"Nuevo comentario";
#elif L==5
"Nouveau message";
"Nouveau commentaire";
#elif L==6
"Nuevo mensaje"; // Okoteve traducción
"Nuevo comentario"; // Okoteve traducción
#elif L==7
"Nuovo post";
#elif L==8