Add text/textarea field maxlength
DailySummary.php bugfixes

- Bugfix bug when Back to Student Search
- Bugfix SQL bug PERIOD_ID numeric
- Bugfix bug modname not set