Mathieu Lutfy | 9 Feb 18:04

legalcase case_det.php,1.177,1.178

Update of /cvsroot/legalcase/legalcase
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv9006

Modified Files:
	case_det.php 
Log Message:
fix alignment bug in 'reports/times', bug reported by Mateusz Hołysz

Index: case_det.php
===================================================================
RCS file: /cvsroot/legalcase/legalcase/case_det.php,v
retrieving revision 1.177
retrieving revision 1.178
diff -C2 -d -r1.177 -r1.178
*** case_det.php	7 Sep 2006 19:51:44 -0000	1.177
--- case_det.php	9 Feb 2008 17:07:00 -0000	1.178
***************
*** 339,344 ****
  				show_page_subtitle(_T('case_subtitle_times'), 'reports_intro');

- 				echo "<p class=\"normal_text\">\n";
- 
  				$link_details = new Link();
  				$link_details->addVar('more_times', intval((! $show_more_times)));
--- 339,342 ----
***************
*** 352,356 ****
  					. '</a>'
  					. "</th>\n";
! 				echo "<th class='heading' width='1%' nowrap='nowrap'>" .  _Th('time_input_length') . ' (' .
_T('time_info_short_hour') . ")</th>\n";

  				$total_time = 0;
--- 350,354 ----
  					. '</a>'
  					. "</th>\n";
! 				echo "<th class='heading' width='120' nowrap='nowrap' align='right'>" . 
_Th('time_input_length') . ' (' . _T('time_info_short_hour') . ")</th>\n";

  				$total_time = 0;
***************
*** 360,364 ****
  				if ($meta_sum_billed == 'yes') {
  					$currency = read_meta('currency');
! 					echo "<th class='heading' width='1%' nowrap='nowrap'>" . _Th('fu_input_sum_billed') . ' (' .
$currency . ")</th>\n";
  				}

--- 358,362 ----
  				if ($meta_sum_billed == 'yes') {
  					$currency = read_meta('currency');
! 					echo "<th class='heading' width='120' nowrap='nowrap' align='right'>" .
_Th('fu_input_sum_billed') . ' (' . $currency . ")</th>\n";
  				}

***************
*** 404,415 ****
  							// But we should probably scrap the whole table anyway
  							while (($row2 = lcm_fetch_array($r2))) {
! 								$html .= "<li style='clear: both; height: 1.4em;'>"
! 										. '<div style="width: 69%; float: left; text-align: left;">' 
  										. _Tkw('followups', $row2['type']) . ": "
! 										. '</div>'
! 										. '<div style="width: 29%; float: right; text-align: right;">' 
  										. format_time_interval_prefs($row2['time']) 
! 										. '</div>'
! 										. "</li>\n";
  							}
  						}
--- 402,424 ----
  							// But we should probably scrap the whole table anyway
  							while (($row2 = lcm_fetch_array($r2))) {
! 								// either:  futype (70%) + length (15%) + sumbilled (15%)
! 								// or only: futype (70%) + length (30%)
! 
! 								$html .= "<li style='clear: both; height: 1.4em; width: 100%;'>";
! 
! 								$html .= '<div style="float: left; text-align: left;">' 
  										. _Tkw('followups', $row2['type']) . ": "
! 										. '</div>';
! 
! 								if ($meta_sum_billed == 'yes') 
! 									$html .= '<div style="width: 120px; float: right; text-align: right;">' 
! 											.  format_money($row2['sumbilled']) 
! 											. '</div>';
! 
! 								$html .= '<div style="width: 120px; float: right; text-align: right;">' 
  										. format_time_interval_prefs($row2['time']) 
! 										. '</div>';
! 
! 								$html .= "</li>\n";
  							}
  						}
***************
*** 449,454 ****
  				
  				echo "</tr>\n";

- 				echo "\t</table>\n</p></fieldset>\n";
  				break;
  			//
--- 458,464 ----
  				
  				echo "</tr>\n";
+ 				echo "</table>\n";
+ 				echo "</fieldset>\n";

  				break;
  			//

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
legalcase-commits mailing list
legalcase-commits <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/legalcase-commits

Gmane