Copy link to clipboard
Copied
<cfparam name="st_hrs" default="0">
<table width="100%" cellspacing="0" cellpadding="3">
<cfoutput query="getDetail" group="staffLname">
<tr>
<td class="lablesW" colspan="4"><strong>#staffLname#, #staffFname# </strong>
<table width="100%">
<tr>
<td width="10%"> </td>
<td width="90%">
<table width="100%">
<tr>
<th scope="col" class="lables" width="25%"><strong>Charge Number</strong></th>
<th scope="col" class="lables" width="12.5%"><strong>Hours</strong></th>
<th scope="col" class="lables" width="12.5%"><strong>CR</strong><strong></th>
<th scope="col" class="lables" width="50%"><strong>Description * </strong></th>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%">
<cfoutput >
<cfif #dayofweek(DatePart('W', wkEndingDTD))# neq 5 ><!---Development Note:: if the day is not THURSADY write the record to the screen--->
<tr>
<td class="lables">
#dateformat(wkEndingDTD, 'mm/dd/yyyy')#
</td>
<td>
<table width="100%" cellspacing="0" cellpadding="3">
<
<tr>
<td scope="row" class="lables" width="25%">#catChrgNum#</td>
<td class="lables" width="12.5%">#hrs#</td>
<td class="lables" width="12.5%">#cr#</td>
<td class="lables" width="50%"><cfif crDscr is '>
#ChrgCat#
<cfelse>
#crDscr#
</cfif><!-- Development Note:: always display a description, either the CR descr OR the charge number -->
</td>
</tr>
</table></td>
</tr>
<cfset T_hrs = #st_hrs# + #hrs# ><!-- Development Note:: sum of hours for the week -->
<cfelse> Development Note:: If the day is Thursday write the record to the screen
<cfif #dayofweek(DatePart('W', wkEndingDTD))# Neq #pdtd#>
<tr>
<td class="lables">#dateformat(wkEndingDTD, 'mm/dd/yyyy')# </td>
<td> <table width="100%" cellspacing="0" cellpadding="3">
<tr>
<td class="lables"width="25%">#catChrgNum#</td>
<td class="lables"width="12.5%">#hrs#</td>
<td class="lables"width="12.5%">#cr#</td>
<td class="lables" width="50%"><cfif crDscr is '>
#ChrgCat#
<cfelse>
#crDscr#
</cfif></td><!-- Development Note:: always display a description, either the CR descr OR the charge number -->
</tr>
</table></td>
</tr>
</cfif>
<cfset T_hrs = #st_hrs# + #hrs# >
<tr>
<td> </td>
<td >
<table width="100%" cellspacing="0" cellpadding="3">
<tr>
<td class="lablesW" width="25%"><strong>Weekly Total </strong></td>
<td class="lablesW"width="12.5%"><strong>#T_hrs#</strong></td>
<td width="12.5%"><strong> </strong></td>
<td width="50%"><strong> </strong></td>
</tr>
</table>
</td>
</tr>
<cfset T_hrs = 0 ><!-- Development Note :: reset weekly total to zero-->
</cfif>
</cfoutput> </table>
</td>
</tr>
Copy link to clipboard
Copied
Copy link to clipboard
Copied
<table width="100%" border="1" cellspacing="0" cellpadding="3">
<tr bgcolor="#CCCCCC">
<td colspan="5"><strong>Tester JB</strong></td>
</tr>
<tr bgcolor="#CCCCCC">
<td><strong>Date</strong></td>
<td><strong>Charge Number </strong></td>
<td><strong>CR</strong></td>
<td><strong>Hours</strong></td>
<td><strong>Descriptions</strong></td>
</tr>
<tr>
<td>Thursday</td>
<td>A00001</td>
<td>1200</td>
<td>24</td>
<td> spr Testing</td>
</tr>
<tr>
<td> </td>
<td>Weekly Total</td>
<td> </td>
<td>24</td>
<td> </td>
</tr>
<tr>
<td>Thursday</td>
<td>A0002</td>
<td>2345</td>
<td>16</td>
<td>Development</td>
</tr>
<tr>
<td>Thursday</td>
<td>A0001</td>
<td>1200</td>
<td>2</td>
<td>spr testing</td>
</tr>
<tr>
<td>thursday</td>
<td>A0006</td>
<td>1371</td>
<td>4</td>
<td>Development</td>
</tr>
<tr>
<td> </td>
<td>Weekly Total</td>
<td> </td>
<td>22</td>
<td> </td>
</tr>
<tr>
<td>Friday</td>
<td>A0001</td>
<td>1200</td>
<td>8</td>
<td>spr Testing</td>
</tr>
<tr>
<td>Monday</td>
<td>A0001</td>
<td>1201</td>
<td>8</td>
<td>spr Testing</td>
</tr>
<tr>
<td>Wednesday</td>
<td>A0006</td>
<td>2345</td>
<td>8</td>
<td>Development</td>
</tr>
<tr>
<td>Thursday</td>
<td>A0002</td>
<td>2345</td>
<td>8</td>
<td>Development</td>
</tr>
<tr>
<td> </td>
<td>Weekly total</td>
<td> </td>
<td>32</td>
<td> </td>
</tr>
<tr>
<td>Monday</td>
<td>A0002</td>
<td>1371</td>
<td>4</td>
<td>Development</td>
</tr>
<tr>
<td>Tuesday</td>
<td>A0002</td>
<td>1371</td>
<td>8</td>
<td>Devleopment</td>
</tr>
<tr>
<td> </td>
<td>weekly total</td>
<td> </td>
<td>12</td>
<td> </td>
</tr>
</table>
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied