%        File: Overload_Time_Effort.ltx
%     Created: Wed Jul 16 05:00 PM 2014 E
% Last Change:      1 Jul 2015
%
\documentclass[12pt]{article}%                                                   <<<
\usepackage[utf8]{inputenc}
\usepackage{times}
\usepackage{geometry}
  \geometry{hmargin=1in,top=0.75in,bottom=0.5in}
\usepackage{array}

\pagestyle{empty}
\setlength{\parindent}{0pt}

% Mastead                                                                        <<<2
\newcommand{\blankfillB}[3]  {%  title, blank-text, width-of-title
		\skip0=0.97\textwidth \skip1=#3 \advance\skip0 -\skip1
		\hbox{\rule{0pt}{1.5em}\hbox to #3 {#1\hfil}%
		\hbox to 0pt {\qquad #2 \hss}\rule[-0.6ex]{\skip0}{0.4pt}}}
\newcommand{\blankfill}	[2]  {\blankfillB{#1}{#2}{1.4in}}
%										>>>2

% Hour Table                                                                     <<<2
\newenvironment{HourTable}{%
  \begin{center}
    \small
  %  
  % The next 2 lines generate a MSWD grid-table
    %  \begin{tabular} {|c<{ \the\Mo\ \the\Yr}|c|m{3.8in}|}
  %    \ctr{\bf Date}	& \bf No of Hours & \ctr{\bf Nature of Work Performed} \nl
  %  
    \begin{tabular} {r<{ \the\Mo\ \the\Yr}c>{\mbox\bgroup}m{3.8in}<{\egroup}}
	\ctr{\bf Date}	& \bf Hours& \bf ~~Nature of Work Performed\\\hline
  }{%
      \hline
      \ctr{%
	\parbox[c][2em]{0.56in}{
	  \footnotesize\bf
	  \setlength{\baselineskip}{0.75\baselineskip}
	  Total Hrs Worked}  
      }
      & \ctr{\thehrs} & \\
  \end{tabular}

  \end{center}
}

\newcounter{hrs}	% !!! "hours" are truncated to an integer !!!
\catcode `+ = \active
\def+#1{\count255=#1 \the\count255 \addtocounter{hrs}{\count255}}

%\renewcommand{\arraystretch}{1.05}
\newcommand{\db}	[1]				% ditto-mark box
	{\settowidth{\skip0}{#1}\hbox to \skip0{\hfil''\hfil}}
\newcommand{\ctr}	[1] {\multicolumn{1}{c}{#1}}
\skip0=\arraystretch\ht\strutbox
\newcommand{\gap}	    {\omit & \omit & \\[-0.66\skip0]}
%
% the following lines generate an MSWD grid-table
%
% \newcommand{\ctr}	[1] {\multicolumn{1}{|c|}{#1}}
% \newcommand{\gap}{\ctr{}&\ctr{}&\nl}
% \newcommand{\nl}{\\\hline}


%	Short month-name
\makeatletter
  \newtoks\Mo
  \Mo={\expandafter\@carcube\Month\@nil}
\makeatother

%	2-Digit year
\newtoks\Yr
\def\yy20#1{#1}	%			 <--  Y-2100 bug.  Deal with it then.
\Yr={\expandafter\yy\Year}
%										>>>2
%										>>>

\begin{document}

\newcommand{\Year} {2014}   	% eg 2014
\newcommand{\Month}{July}   	% eg July

% Masthead                                                      <<<
\begin{bfseries}
  Wilkes University \hfill Grant/Project: \underline{~~Lorem Ipsum~~}

  {\center \medskip%
    Time -- Effort Certification for Supplemental Grant Activities
  \par\medskip}

  \blankfill{Employee Name:}  {Dolorsi T. Amet}
  \blankfill{Activity Title:}  {Consectetuer Adipiscing Eli Ut Purus Elit}
  \blankfillB{Period of Time for This Report:}{\Month\ \Year}{2.5in}
\end{bfseries}
\vspace{-0.5 ex}
{\small (Not to exceed one month)}

{ \catcode`,=\active  \def,{\char"2C \ } % extra space after commas in table

%                                                               >>>
%	Format:   day of month  &  +hrs  &  description   \\
%				      \
%				       integer! Needs {} if > 9
%
%	\db{text} substitutes a ditto-mark for "text"
%	\gap	  leaves a gap in the list (Fri --> Mon)

\begin{HourTable}

      14 &+1	& Vestibulum ut \strut \\
      15 &+7	& Placerat ac, adipiscing vitae, Curabitur dictum\\
      16 &+4	& \db{Placerat ac}, Gravida mauris\\
      17 &+3	& Nam arcu libero, Pellentesque habitant\\
      18 &+8	& \db{Nam arcu libero} \db{Pellentesque habitant}\\
      \gap
      21 &+7	& \db{Nam arcu libero} \db{Pellentesque habitant}\\
      23 &+4	& Mauris ut leo\\
      24 &+1	& \db{Mauris ut leo}\\
      25 &+3	& \db{Mauris ut leo}\\
      \gap
      28 &+3	& \db{Mauris ut leo}\\

\end{HourTable}


%\vskip 1in
\vfill

% Signature Lines (page footer)                                                 <<<

}% end "extra space after commas"

\newcommand\signhere	[2] {%  label, width
  \hsize= #2 \vtop {\hrule\kern 0.5ex\footnotesize\hfil#1\hfil}}

\parbox[t]{0.48\textwidth}{\small
  \setlength\baselineskip{0.8\baselineskip}
  I confirm that the above distribution of activity represents a reasonable
  estimate of all work performed by me during this period.

  \vspace{2.1\baselineskip}
  %\vspace{1.7\baselineskip}
  \hbox{%
    \signhere{Employee's Signature}{2in}
    \enspace
    \signhere{Date}{0.75in}
  }
}
\hfill
\parbox[t]{0.48\textwidth}{\small
  \setlength\baselineskip{0.8\baselineskip}
  I confirm that I have first-hand knowledge of all work performed by this
  employee and that the distribution of activity represents a reasonable
  estimate of the work performed during the stated period.

  \vspace{1.1\baselineskip}
  \hbox{%
    \signhere{Administrator's Signature}{2in}
    \enspace
    \signhere{Date}{0.75in}
  }
  \vspace{1.1\baselineskip}
    \signhere{Title}{2in}
}
\vfill

\vfill
%>>>


\end{document}

%	vim: sw=2 foldmethod=marker foldmarker=<<<,>>> nowrap
