salary/attend: both using library functions to generate table;
tab-gen: improve this function, add highlight td support;