mirror of https://github.com/acanas/swad-core.git
Version 16.186
This commit is contained in:
parent
3b8e6d7988
commit
8a3cc6a594
|
@ -2381,14 +2381,15 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
font-size:10pt;
|
font-size:10pt;
|
||||||
letter-spacing:0;
|
letter-spacing:0;
|
||||||
}
|
}
|
||||||
.TT_HOUR {height:40px;}
|
.TT_HOUR {height:20px;}
|
||||||
.TT_FREE0 {height:20px; background-color:#F4F2EA; border:solid 1px; border-color:#F4F2EA #E0D9C2 #EEEADC #F4F2EA;}
|
.TT_ALIGN {height:10px;}
|
||||||
.TT_FREE1 {height:20px; background-color:#F4F2EA; border:solid 1px; border-color:#F4F2EA #E0D9C2 #E0D9C2 #F4F2EA;}
|
.TT_FREE0 {height:10px; background-color:#F4F2EA; border:solid 1px; border-color:#F4F2EA #E0D9C2 #EEEADC #F4F2EA;}
|
||||||
.TT_FREE2 {height:20px; background-color:#FBFAF7; border:solid 1px; border-color:#FBFAF7 #E0D9C2 #F5F2E9 #FBFAF7;}
|
.TT_FREE1 {height:10px; background-color:#F4F2EA; border:solid 1px; border-color:#F4F2EA #E0D9C2 #E0D9C2 #F4F2EA;}
|
||||||
.TT_FREE3 {height:20px; background-color:#FBFAF7; border:solid 1px; border-color:#FBFAF7 #E0D9C2 #E0D9C2 #FBFAF7;}
|
.TT_FREE2 {height:10px; background-color:#FBFAF7; border:solid 1px; border-color:#FBFAF7 #E0D9C2 #F5F2E9 #FBFAF7;}
|
||||||
.TT_THEO {height:20px; background-color:#C0DAE4; border:solid 2px; border-color:#C9E3ED #B5CFD9 #B5CFD9 #C9E3ED;}
|
.TT_FREE3 {height:10px; background-color:#FBFAF7; border:solid 1px; border-color:#FBFAF7 #E0D9C2 #E0D9C2 #FBFAF7;}
|
||||||
.TT_PRAC {height:20px; background-color:#DBE5E9; border:solid 2px; border-color:#E4EEF2 #D0DADE #D0DADE #E4EEF2;}
|
.TT_THEO {height:10px; background-color:#C0DAE4; border:solid 2px; border-color:#C9E3ED #B5CFD9 #B5CFD9 #C9E3ED;}
|
||||||
.TT_TUTO {height:20px; background-color:#D6E9C3; border:solid 2px; border-color:#DFEEE0 #CAE3B1 #CAE3B1 #DFEEE0;}
|
.TT_PRAC {height:10px; background-color:#DBE5E9; border:solid 2px; border-color:#E4EEF2 #D0DADE #D0DADE #E4EEF2;}
|
||||||
|
.TT_TUTO {height:10px; background-color:#D6E9C3; border:solid 2px; border-color:#DFEEE0 #CAE3B1 #CAE3B1 #DFEEE0;}
|
||||||
|
|
||||||
/********************************* Preference ********************************/
|
/********************************* Preference ********************************/
|
||||||
.PREF_CONTAINER
|
.PREF_CONTAINER
|
||||||
|
|
|
@ -213,17 +213,20 @@
|
||||||
|
|
||||||
// TODO: Changes in timetable (hours end in 24h).
|
// TODO: Changes in timetable (hours end in 24h).
|
||||||
|
|
||||||
|
// TODO: Fix bug: An URL like https://openswad.org/es?a gives Internal Server Error
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 16.185.4 (2017-04-21)"
|
#define Log_PLATFORM_VERSION "SWAD 16.186 (2017-04-24)"
|
||||||
#define CSS_FILE "swad16.185.3.css"
|
#define CSS_FILE "swad16.185.3.css"
|
||||||
#define JS_FILE "swad16.181.js"
|
#define JS_FILE "swad16.181.js"
|
||||||
|
|
||||||
// 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 16.186: Apr 24, 2017 Changes in timetable. Not finished. (217867 lines)
|
||||||
Version 16.185.4: Apr 21, 2017 Warning about Java no longer working. (217849 lines)
|
Version 16.185.4: Apr 21, 2017 Warning about Java no longer working. (217849 lines)
|
||||||
Version 16.185.3: Apr 20, 2017 Timetables end at 24h, suggested by Sandra Daniela Tazzioli Barroso. (217797 lines)
|
Version 16.185.3: Apr 20, 2017 Timetables end at 24h, suggested by Sandra Daniela Tazzioli Barroso. (217797 lines)
|
||||||
Version 16.185.2: Apr 19, 2017 Changes in forums. (217793 lines)
|
Version 16.185.2: Apr 19, 2017 Changes in forums. (217793 lines)
|
||||||
|
|
|
@ -51,8 +51,8 @@
|
||||||
#define Cfg_PLATFORM_SHORT_NAME "SWAD local"
|
#define Cfg_PLATFORM_SHORT_NAME "SWAD local"
|
||||||
#define Cfg_PLATFORM_FULL_NAME "SWAD (Shared Workspace At a Distance)"
|
#define Cfg_PLATFORM_FULL_NAME "SWAD (Shared Workspace At a Distance)"
|
||||||
#define Cfg_PLATFORM_SERVER "localhost" // Server name (main part of the URL)
|
#define Cfg_PLATFORM_SERVER "localhost" // Server name (main part of the URL)
|
||||||
#define Cfg_URL_SWAD_SERVER "https://localhost/swad/" // With ending slash
|
#define Cfg_URL_SWAD_SERVER "https://localhost/" // With ending slash
|
||||||
#define Cfg_URL_SWAD_CGI "https://localhost/swad" // Without ending slash
|
#define Cfg_URL_SWAD_CGI "https://localhost" // Without ending slash
|
||||||
#define Cfg_URL_SWAD_PUBLIC "https://localhost/swad" // Without ending slash
|
#define Cfg_URL_SWAD_PUBLIC "https://localhost/swad" // Without ending slash
|
||||||
#define Cfg_PATH_CGI_BIN "/usr/lib/cgi-bin/swad" // Directory for this CGI and other commands called by it
|
#define Cfg_PATH_CGI_BIN "/usr/lib/cgi-bin/swad" // Directory for this CGI and other commands called by it
|
||||||
#define Cfg_PATH_SWAD_PUBLIC "/var/www/html/swad" // Main public directory for public SWAD pages, icons, etc.
|
#define Cfg_PATH_SWAD_PUBLIC "/var/www/html/swad" // Main public directory for public SWAD pages, icons, etc.
|
||||||
|
|
92
swad_text.c
92
swad_text.c
|
@ -41163,57 +41163,13 @@ const char *Txt_Tag_X_not_allowed_Click_to_allow_it = // Warning: it is very imp
|
||||||
|
|
||||||
#if defined LOCALHOST_UBUNTU // localhost (Ubuntu) *****************
|
#if defined LOCALHOST_UBUNTU // localhost (Ubuntu) *****************
|
||||||
|
|
||||||
const char *Txt_TAGLINE =
|
|
||||||
# if L==1
|
|
||||||
"plataforma de suport a la docència";
|
|
||||||
# elif L==2
|
|
||||||
"Plattform zur Unterstützung der Lehre";
|
|
||||||
# elif L==3
|
|
||||||
"platform to support teaching";
|
|
||||||
# elif L==4
|
|
||||||
"plataforma de apoyo a la docencia";
|
|
||||||
# elif L==5
|
|
||||||
"plate-forme pour appuyer l'enseignement";
|
|
||||||
# elif L==6
|
|
||||||
"plataforma de apoyo a la docencia"; // Okoteve traducción
|
|
||||||
# elif L==7
|
|
||||||
"piattaforma per sostenere l'insegnamento";
|
|
||||||
# elif L==8
|
|
||||||
"platforma do wspierania nauczania";
|
|
||||||
# elif L==9
|
|
||||||
"plataforma de apoio ao ensino";
|
|
||||||
# endif
|
|
||||||
|
|
||||||
const char *Txt_TAGLINE_BR =
|
|
||||||
# if L==1
|
|
||||||
"plataforma de suport<br />a la docència";
|
|
||||||
# elif L==2
|
|
||||||
"Plattform zur<br />Unterstützung der Lehre";
|
|
||||||
# elif L==3
|
|
||||||
"platform to<br />support teaching";
|
|
||||||
# elif L==4
|
|
||||||
"plataforma de apoyo<br />a la docencia";
|
|
||||||
# elif L==5
|
|
||||||
"plate-forme pour<br />appuyer l'enseignement";
|
|
||||||
# elif L==6
|
|
||||||
"plataforma de apoyo<br />a la docencia"; // Okoteve traducción
|
|
||||||
# elif L==7
|
|
||||||
"piattaforma per<br />sostenere l'insegnamento";
|
|
||||||
# elif L==8
|
|
||||||
"platforma do<br />wspierania nauczania";
|
|
||||||
# elif L==9
|
|
||||||
"plataforma de<br />apoio ao ensino";
|
|
||||||
# endif
|
|
||||||
|
|
||||||
#elif defined OPENSWAD_ORG // openswad.org ***********************
|
|
||||||
|
|
||||||
const char *Txt_TAGLINE =
|
const char *Txt_TAGLINE =
|
||||||
# if L==1
|
# if L==1
|
||||||
"plataforma educativa";
|
"plataforma educativa";
|
||||||
# elif L==2
|
# elif L==2
|
||||||
"Bildungsplattform";
|
"Bildungsplattform";
|
||||||
# elif L==3
|
# elif L==3
|
||||||
"educational platform";
|
"social learning platform";
|
||||||
# elif L==4
|
# elif L==4
|
||||||
"plataforma educativa";
|
"plataforma educativa";
|
||||||
# elif L==5
|
# elif L==5
|
||||||
|
@ -41234,7 +41190,51 @@ const char *Txt_TAGLINE_BR =
|
||||||
# elif L==2
|
# elif L==2
|
||||||
"Bildungs-<br />plattform";
|
"Bildungs-<br />plattform";
|
||||||
# elif L==3
|
# elif L==3
|
||||||
"educational<br />platform";
|
"social learning<br />platform";
|
||||||
|
# elif L==4
|
||||||
|
"plataforma<br />educativa";
|
||||||
|
# elif L==5
|
||||||
|
"plate-forme<br />éducative";
|
||||||
|
# elif L==6
|
||||||
|
"plataforma<br />educativa"; // Okoteve traducción
|
||||||
|
# elif L==7
|
||||||
|
"piattaforma<br />educativa";
|
||||||
|
# elif L==8
|
||||||
|
"platforma<br />edukacyjna";
|
||||||
|
# elif L==9
|
||||||
|
"plataforma<br />educacional";
|
||||||
|
# endif
|
||||||
|
|
||||||
|
#elif defined OPENSWAD_ORG // openswad.org ***********************
|
||||||
|
|
||||||
|
const char *Txt_TAGLINE =
|
||||||
|
# if L==1
|
||||||
|
"plataforma educativa";
|
||||||
|
# elif L==2
|
||||||
|
"Bildungsplattform";
|
||||||
|
# elif L==3
|
||||||
|
"social learning platform";
|
||||||
|
# elif L==4
|
||||||
|
"plataforma educativa";
|
||||||
|
# elif L==5
|
||||||
|
"plate-forme éducative";
|
||||||
|
# elif L==6
|
||||||
|
"plataforma educativa"; // Okoteve traducción
|
||||||
|
# elif L==7
|
||||||
|
"piattaforma educativa";
|
||||||
|
# elif L==8
|
||||||
|
"platforma edukacyjna";
|
||||||
|
# elif L==9
|
||||||
|
"plataforma educacional";
|
||||||
|
# endif
|
||||||
|
|
||||||
|
const char *Txt_TAGLINE_BR =
|
||||||
|
# if L==1
|
||||||
|
"plataforma<br />educativa";
|
||||||
|
# elif L==2
|
||||||
|
"Bildungs-<br />plattform";
|
||||||
|
# elif L==3
|
||||||
|
"social learning<br />platform";
|
||||||
# elif L==4
|
# elif L==4
|
||||||
"plataforma<br />educativa";
|
"plataforma<br />educativa";
|
||||||
# elif L==5
|
# elif L==5
|
||||||
|
|
|
@ -52,6 +52,8 @@ extern struct Globals Gbl;
|
||||||
|
|
||||||
#define TT_START_HOUR 6 // Day starts at 6:00
|
#define TT_START_HOUR 6 // Day starts at 6:00
|
||||||
#define TT_HOURS_PER_DAY 18 // From 6:00 to 24:00
|
#define TT_HOURS_PER_DAY 18 // From 6:00 to 24:00
|
||||||
|
// #define TT_HOURS_PER_DAY 2 // From 6:00 to 24:00
|
||||||
|
|
||||||
#define TT_DAYS 7 // Seven days per week
|
#define TT_DAYS 7 // Seven days per week
|
||||||
#define TT_MAX_COLUMNS_PER_CELL 3 // Maximum number of items (i.e. classes) in a timetable cell (1, 2, 3 or 4)
|
#define TT_MAX_COLUMNS_PER_CELL 3 // Maximum number of items (i.e. classes) in a timetable cell (1, 2, 3 or 4)
|
||||||
#define TT_NUM_MINICOLUMNS_PER_DAY 6 // Least common multiple of 1,2,3,...,TT_MAX_COLUMNS_PER_CELL
|
#define TT_NUM_MINICOLUMNS_PER_DAY 6 // Least common multiple of 1,2,3,...,TT_MAX_COLUMNS_PER_CELL
|
||||||
|
@ -105,8 +107,8 @@ struct
|
||||||
{
|
{
|
||||||
unsigned NumColumns;
|
unsigned NumColumns;
|
||||||
struct TimeTableColumn Columns[TT_MAX_COLUMNS_PER_CELL];
|
struct TimeTableColumn Columns[TT_MAX_COLUMNS_PER_CELL];
|
||||||
} TimeTable[TT_DAYS][TT_HOURS_PER_DAY * 2];
|
} TimeTable[TT_DAYS][TT_HOURS_PER_DAY * 12];
|
||||||
bool TimeTableHoursChecked[TT_HOURS_PER_DAY * 2];
|
bool TimeTableHoursChecked[TT_HOURS_PER_DAY * 12];
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/***************************** Internal prototypes **************************/
|
/***************************** Internal prototypes **************************/
|
||||||
|
@ -834,6 +836,7 @@ static void TT_DrawTimeTable (void)
|
||||||
unsigned DayColumn; // Column from left (0) to right (6)
|
unsigned DayColumn; // Column from left (0) to right (6)
|
||||||
unsigned Day; // Day of week
|
unsigned Day; // Day of week
|
||||||
unsigned Hour;
|
unsigned Hour;
|
||||||
|
unsigned Min;
|
||||||
unsigned H;
|
unsigned H;
|
||||||
unsigned Column;
|
unsigned Column;
|
||||||
unsigned ColumnsToDraw;
|
unsigned ColumnsToDraw;
|
||||||
|
@ -863,7 +866,7 @@ static void TT_DrawTimeTable (void)
|
||||||
/***** Row with day names *****/
|
/***** Row with day names *****/
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td rowspan=\"2\" class=\"TT_TXT RIGHT_MIDDLE\""
|
"<td rowspan=\"2\" class=\"TT_TXT RIGHT_MIDDLE\""
|
||||||
" style=\"width:%u%%; height:40px;\">"
|
" style=\"width:%u%%; background:grey;\">"
|
||||||
"%u:00"
|
"%u:00"
|
||||||
"</td>",
|
"</td>",
|
||||||
TT_PERCENT_WIDTH_OF_AN_HOUR_COLUMN,TT_START_HOUR);
|
TT_PERCENT_WIDTH_OF_AN_HOUR_COLUMN,TT_START_HOUR);
|
||||||
|
@ -871,11 +874,12 @@ static void TT_DrawTimeTable (void)
|
||||||
TT_TimeTableDrawDaysCells ();
|
TT_TimeTableDrawDaysCells ();
|
||||||
TT_DrawCellAlignTimeTable ();
|
TT_DrawCellAlignTimeTable ();
|
||||||
fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"TT_TXT LEFT_MIDDLE\""
|
fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"TT_TXT LEFT_MIDDLE\""
|
||||||
" style=\"width:%u%%; height:40px;\">"
|
" style=\"width:%u%%; background:grey;\">"
|
||||||
"%u:00"
|
"%u:00"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
TT_PERCENT_WIDTH_OF_AN_HOUR_COLUMN,TT_START_HOUR);
|
TT_PERCENT_WIDTH_OF_AN_HOUR_COLUMN,
|
||||||
|
TT_START_HOUR);
|
||||||
|
|
||||||
/***** Get list of groups types and groups in this course *****/
|
/***** Get list of groups types and groups in this course *****/
|
||||||
if (Gbl.Action.Act == ActEdiCrsTT ||
|
if (Gbl.Action.Act == ActEdiCrsTT ||
|
||||||
|
@ -883,20 +887,21 @@ static void TT_DrawTimeTable (void)
|
||||||
Grp_GetListGrpTypesAndGrpsInThisCrs (Grp_ONLY_GROUP_TYPES_WITH_GROUPS);
|
Grp_GetListGrpTypesAndGrpsInThisCrs (Grp_ONLY_GROUP_TYPES_WITH_GROUPS);
|
||||||
|
|
||||||
/***** Write the table row by row *****/
|
/***** Write the table row by row *****/
|
||||||
for (Hour = 0;
|
for (Hour = 0, Min = 5;
|
||||||
Hour < TT_HOURS_PER_DAY * 2;
|
Hour < TT_HOURS_PER_DAY * 12;
|
||||||
Hour++)
|
Hour++, Min = (Min + 5) % 60)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<tr>");
|
fprintf (Gbl.F.Out,"<tr>");
|
||||||
|
|
||||||
/* Hour */
|
/* Hour */
|
||||||
if (Hour % 2)
|
if (Hour % 2 == 1)
|
||||||
fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"TT_HOUR TT_TXT RIGHT_MIDDLE\""
|
fprintf (Gbl.F.Out,"<td rowspan=\"2\""
|
||||||
" style=\"width:%u%%;\">"
|
" class=\"TT_HOUR TT_TXT RIGHT_MIDDLE\""
|
||||||
"%2u:00"
|
" style=\"width:%u%%; background:pink;\">"
|
||||||
|
"%2u:%02u"
|
||||||
"</td>",
|
"</td>",
|
||||||
TT_PERCENT_WIDTH_OF_AN_HOUR_COLUMN,
|
TT_PERCENT_WIDTH_OF_AN_HOUR_COLUMN,
|
||||||
TT_START_HOUR + (Hour + 1) / 2);
|
TT_START_HOUR + (Hour + 2) / 12,Min);
|
||||||
|
|
||||||
/* Empty column used to adjust height */
|
/* Empty column used to adjust height */
|
||||||
TT_DrawCellAlignTimeTable ();
|
TT_DrawCellAlignTimeTable ();
|
||||||
|
@ -914,7 +919,7 @@ static void TT_DrawTimeTable (void)
|
||||||
/* Check how many colums are needed.
|
/* Check how many colums are needed.
|
||||||
For each item (class) in this hour from left to right, we must check the maximum of columns */
|
For each item (class) in this hour from left to right, we must check the maximum of columns */
|
||||||
for (H = 0;
|
for (H = 0;
|
||||||
H < TT_HOURS_PER_DAY * 2;
|
H < TT_HOURS_PER_DAY * 12;
|
||||||
H++)
|
H++)
|
||||||
TimeTableHoursChecked[H] = false;
|
TimeTableHoursChecked[H] = false;
|
||||||
ColumnsToDraw = TT_TimeTableCalculateColsToDraw (Day,Hour);
|
ColumnsToDraw = TT_TimeTableCalculateColsToDraw (Day,Hour);
|
||||||
|
@ -924,7 +929,7 @@ static void TT_DrawTimeTable (void)
|
||||||
if (Editing && ColumnsToDraw < TT_MAX_COLUMNS_PER_CELL)
|
if (Editing && ColumnsToDraw < TT_MAX_COLUMNS_PER_CELL)
|
||||||
ColumnsToDrawIncludingExtraColumn++;
|
ColumnsToDrawIncludingExtraColumn++;
|
||||||
|
|
||||||
/* Draw cells */
|
/* Draw cells */
|
||||||
for (Column = 0, ContinuousFreeMinicolumns = 0;
|
for (Column = 0, ContinuousFreeMinicolumns = 0;
|
||||||
Column < ColumnsToDrawIncludingExtraColumn;
|
Column < ColumnsToDrawIncludingExtraColumn;
|
||||||
Column++)
|
Column++)
|
||||||
|
@ -956,13 +961,13 @@ static void TT_DrawTimeTable (void)
|
||||||
TT_DrawCellAlignTimeTable ();
|
TT_DrawCellAlignTimeTable ();
|
||||||
|
|
||||||
/* Hour */
|
/* Hour */
|
||||||
if (Hour % 2)
|
if (Hour % 2 == 1)
|
||||||
fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"TT_HOUR TT_TXT LEFT_MIDDLE\""
|
fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"TT_HOUR TT_TXT LEFT_MIDDLE\""
|
||||||
" style=\"width:%u%%;\">"
|
" style=\"width:%u%%; background:pink;\">"
|
||||||
"%2u:00"
|
"%2u:%02u"
|
||||||
"</td>",
|
"</td>",
|
||||||
TT_PERCENT_WIDTH_OF_AN_HOUR_COLUMN,
|
TT_PERCENT_WIDTH_OF_AN_HOUR_COLUMN,
|
||||||
TT_START_HOUR + (Hour + 1) / 2);
|
TT_START_HOUR + (Hour + 6) / 12,Min);
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</tr>");
|
fprintf (Gbl.F.Out,"</tr>");
|
||||||
}
|
}
|
||||||
|
@ -996,11 +1001,16 @@ static void TT_TimeTableDrawAdjustRow (void)
|
||||||
unsigned Minicolumn;
|
unsigned Minicolumn;
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"TT_TXT LEFT_MIDDLE\" style=\"width:%u%%;\">"
|
"<td class=\"TT_TXT LEFT_MIDDLE\" style=\"width:%u%%; background:yellow;\">"
|
||||||
" "
|
" "
|
||||||
"</td>",
|
"</td>",
|
||||||
TT_PERCENT_WIDTH_OF_AN_HOUR_COLUMN);
|
TT_PERCENT_WIDTH_OF_AN_HOUR_COLUMN);
|
||||||
TT_DrawCellAlignTimeTable ();
|
// TT_DrawCellAlignTimeTable ();
|
||||||
|
fprintf (Gbl.F.Out,"<td class=\"TT_TXT LEFT_MIDDLE\""
|
||||||
|
" style=\"width:%u%%; background:yellow;\">"
|
||||||
|
" "
|
||||||
|
"</td>",
|
||||||
|
TT_PERCENT_WIDTH_OF_A_SEPARATION_COLUMN);
|
||||||
for (Day = 0;
|
for (Day = 0;
|
||||||
Day < TT_DAYS;
|
Day < TT_DAYS;
|
||||||
Day++)
|
Day++)
|
||||||
|
@ -1008,13 +1018,18 @@ static void TT_TimeTableDrawAdjustRow (void)
|
||||||
Minicolumn < TT_NUM_MINICOLUMNS_PER_DAY;
|
Minicolumn < TT_NUM_MINICOLUMNS_PER_DAY;
|
||||||
Minicolumn++)
|
Minicolumn++)
|
||||||
fprintf (Gbl.F.Out,"<td class=\"TT_TXT LEFT_MIDDLE\""
|
fprintf (Gbl.F.Out,"<td class=\"TT_TXT LEFT_MIDDLE\""
|
||||||
" style=\"width:%u%%;\">"
|
" style=\"width:%u%%; background:yellow;\">"
|
||||||
" "
|
" "
|
||||||
"</td>",
|
"</td>",
|
||||||
TT_PERCENT_WIDTH_OF_A_MINICOLUMN);
|
TT_PERCENT_WIDTH_OF_A_MINICOLUMN);
|
||||||
TT_DrawCellAlignTimeTable ();
|
// TT_DrawCellAlignTimeTable ();
|
||||||
fprintf (Gbl.F.Out,"<td class=\"TT_TXT LEFT_MIDDLE\""
|
fprintf (Gbl.F.Out,"<td class=\"TT_TXT LEFT_MIDDLE\""
|
||||||
" style=\"width:%u%%;\">"
|
" style=\"width:%u%%; background:yellow;\">"
|
||||||
|
" "
|
||||||
|
"</td>",
|
||||||
|
TT_PERCENT_WIDTH_OF_A_SEPARATION_COLUMN);
|
||||||
|
fprintf (Gbl.F.Out,"<td class=\"TT_TXT LEFT_MIDDLE\""
|
||||||
|
" style=\"width:%u%%; background:yellow;\">"
|
||||||
" "
|
" "
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
|
@ -1036,7 +1051,8 @@ static void TT_TimeTableDrawDaysCells (void)
|
||||||
DayColumn++)
|
DayColumn++)
|
||||||
{
|
{
|
||||||
Day = (DayColumn + Gbl.Prefs.FirstDayOfWeek) % 7;
|
Day = (DayColumn + Gbl.Prefs.FirstDayOfWeek) % 7;
|
||||||
fprintf (Gbl.F.Out,"<td colspan=\"%u\" class=\"%s CENTER_MIDDLE\""
|
fprintf (Gbl.F.Out,"<td colspan=\"%u\""
|
||||||
|
" class=\"%s CENTER_MIDDLE\""
|
||||||
" style=\"width:%u%%;\">"
|
" style=\"width:%u%%;\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</td>",
|
"</td>",
|
||||||
|
@ -1113,8 +1129,8 @@ static unsigned TT_TimeTableCalculateColsToDraw (unsigned Day,unsigned Hour)
|
||||||
|
|
||||||
static void TT_DrawCellAlignTimeTable (void)
|
static void TT_DrawCellAlignTimeTable (void)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<td class=\"TT_TXT LEFT_MIDDLE\" style=\"width:%u%%;\">"
|
fprintf (Gbl.F.Out,"<td class=\"TT_ALIGN\""
|
||||||
" "
|
" style=\"width:%u%%; background:green;\">"
|
||||||
"</td>",
|
"</td>",
|
||||||
TT_PERCENT_WIDTH_OF_A_SEPARATION_COLUMN);
|
TT_PERCENT_WIDTH_OF_A_SEPARATION_COLUMN);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue