FET Forum

FET Development => Suggestions => Topic started by: pinco on September 30, 2009, 03:36:21 PM

Title: Little time table (A4)
Post by: pinco on September 30, 2009, 03:36:21 PM
I also have another suggestion to make. The HTML that is generated for time table is beautiful and clear, but too large to be printed on A4.
It would be appropriate to develop a minimal model, printable on A4, like this attached A4 that I make on the spreadsheet.
Thanks again.
Gianpaolo
Title: Re: Little time table (A4)
Post by: Volker Dirr on September 30, 2009, 07:27:18 PM
you can hide all unnneeded information with css by using the display:none; command.
please read:
http://www.timetabling.de/manual/FET-manual.en.html#id_45
Title: Re: Little time table (A4)
Post by: mbarsan on October 01, 2009, 04:15:58 PM
Hi pinco,
   get Volker's suggestion and have a look at this tool:
http://lalescu.ro/liviu/fet/forum/index.php?topic=504.msg2960#msg2960

:)
Title: Re: Little time table (A4)
Post by: pinco on October 01, 2009, 10:33:23 PM
Thanks for your reply.
I tried to use it, but with openoffice does not work well and also with Excel through Wine does not work. Now I use only Linux. When I have time I will try with Windows. Do you think it would be very difficult to design a minimal model? I do not know, but I think that would be enough to reduce the number of options from template that already exist.
Thanks
Gianpaolo
Title: Re: Little time table (A4)
Post by: pinco on October 18, 2009, 08:53:50 PM
I tried this tool (http://lalescu.ro/liviu/fet/forum/index.php?topic=504.msg2960#msg2960) on Windows and I must say that it works well, but for those not using Windows openoffice does not work. I tell to Liviu but especially to Volker Dirr, since he has realized the html template:
Could you do a minimal template to print on A4?
Or can you tell me where is the procedure that creates the html file so I can try to do it? (This way it's more difficult because i am not a great programmer, but I'll try to do it)

Thanks for all your work, Paolo
Title: Re: Little time table (A4)
Post by: Volker Dirr on October 19, 2009, 12:57:10 AM
at the end of file /src/engine/timetableexport.cpp (after line 6820 ff) are several functions with "TimetableExport::writeActivity*" and "TimetableExport::writeActivities*".

for example if you want to modify the students timetables you need the functions writeActivityStudents and writeActivitiesStudents.

you can see that in students timetable is printed first subject, second teacher and third room.

for example if you don't want to print the room, then you need to delete in function writeActivityStudents just the room. (that is line 6830: tmp+=writeRoom(ai, "div", " class=\"room line3\""); )

also do similar in writeActivitiesStudents. here you need to delete a few more lines if you don't want to print the room. (lines 6885 - 6895:
     if(TIMETABLE_HTML_LEVEL>=3)
           tmp+="<tr class=\"room line3\">";
     else      tmp+="<tr>";
     for(int a=0; a<allActivities.size(); a++){
           int ai=allActivities[a];
           if(ai!=UNALLOCATED_ACTIVITY){
                 Activity* act=&gt.rules.internalActivitiesList[ai];
                 tmp+=writeStartTagTDofActivities(act, true, false, false)+writeRoom(ai, "", "")+"</td>";
           }
     }
     tmp+="</tr>";
)