Added buttons and forms to get employee time punches
Added from loading and submission for pay_period form
Made date range better and added optional employee

Use pre-calculated timestamps where possible to avoid the extra calculations

Use different sql query if $ewmployee is not null

Gave table a caption showing the range