gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/www/reporting usertime.php, 1.2, 1.3 siteact.php


From: gsmet
Subject: [Gforge-commits] gforge/www/reporting usertime.php, 1.2, 1.3 siteact.php, 1.2, 1.3 sitetimebar.php, 1.2, 1.3 sitetime.php, 1.2, 1.3 usersummary.php, 1.2, 1.3
Date: Fri, 06 Aug 2004 03:36:38 -0500

Update of /cvsroot/gforge/gforge/www/reporting
In directory db.perdue.net:/tmp/cvs-serv32697/www/reporting

Modified Files:
        usertime.php siteact.php sitetimebar.php sitetime.php 
        usersummary.php 
Log Message:
reporting localization effort

Index: usertime.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/reporting/usertime.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- usertime.php        4 Aug 2004 16:50:45 -0000       1.2
+++ usertime.php        6 Aug 2004 08:36:35 -0000       1.3
@@ -74,10 +74,10 @@
        <input type="hidden" name="sw" value="<?php echo $sw; ?>">
        <input type="hidden" name="typ" value="<?php echo $typ; ?>">
        <table><tr>
-       <td><strong>User:</strong><br /><?php echo 
report_usertime_box('dev_id',$dev_id,$sw); ?></td>
-       <td><strong>Type:</strong><br /><?php echo 
html_build_select_box_from_arrays($a2,$a,'type',$type,false); ?></td>
-       <td><strong>Start:</strong><br /><?php echo report_months_box($report, 
'start', $start); ?></td>
-       <td><strong>End:</strong><br /><?php echo report_months_box($report, 
'end', $end); ?></td>
+       <td><strong><?php echo $Language->getText('reporting','user'); 
?>:</strong><br /><?php echo report_usertime_box('dev_id',$dev_id,$sw); ?></td>
+       <td><strong><?php echo $Language->getText('reporting','type'); 
?>:</strong><br /><?php echo 
html_build_select_box_from_arrays($a2,$a,'type',$type,false); ?></td>
+       <td><strong><?php echo $Language->getText('reporting','start'); 
?>:</strong><br /><?php echo report_months_box($report, 'start', $start); 
?></td>
+       <td><strong><?php echo $Language->getText('reporting','end'); 
?>:</strong><br /><?php echo report_months_box($report, 'end', $end); ?></td>
        <td><input type="submit" name="submit" value="<?php echo 
$Language->getText('reporting','refresh'); ?>"></td>
        </tr></table>
        </form>

Index: siteact.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/reporting/siteact.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- siteact.php 4 Aug 2004 16:50:45 -0000       1.2
+++ siteact.php 6 Aug 2004 08:36:35 -0000       1.3
@@ -50,10 +50,10 @@
 <p>
 <form action="<?php echo $PHP_SELF; ?>" method="get">
 <table><tr>
-<td><strong>Area:</strong><br /><?php echo report_area_box('area',$area); 
?></td>
-<td><strong>Type:</strong><br /><?php echo report_span_box('SPAN',$SPAN); 
?></td>
-<td><strong>Start:</strong><br /><?php echo report_months_box($report, 
'start', $start); ?></td>
-<td><strong>End:</strong><br /><?php echo report_months_box($report, 'end', 
$end); ?></td>
+<td><strong><?php echo $Language->getText('reporting', 'area'); 
?>:</strong><br /><?php echo report_area_box('area',$area); ?></td>
+<td><strong><?php echo $Language->getText('reporting', 'type'); 
?>:</strong><br /><?php echo report_span_box('SPAN',$SPAN); ?></td>
+<td><strong><?php echo $Language->getText('reporting', 'start'); 
?>:</strong><br /><?php echo report_months_box($report, 'start', $start); 
?></td>
+<td><strong><?php echo $Language->getText('reporting', 'end'); ?>:</strong><br 
/><?php echo report_months_box($report, 'end', $end); ?></td>
 <td><input type="submit" name="submit" value="<?php echo 
$Language->getText('reporting','refresh'); ?>"></td>
 </tr></table>
 </form>

Index: sitetimebar.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/reporting/sitetimebar.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sitetimebar.php     4 Aug 2004 16:50:45 -0000       1.2
+++ sitetimebar.php     6 Aug 2004 08:36:35 -0000       1.3
@@ -52,7 +52,7 @@
 <table><tr>
 <td><strong><?php echo $Language->getText('reporting','start'); 
?>:</strong><br /><?php echo report_months_box($report, 'start', $start); 
?></td>
 <td><strong><?php echo $Language->getText('reporting','end'); ?>:</strong><br 
/><?php echo report_months_box($report, 'end', $end); ?></td>
-<td><input type="submit" name="submit" value="<?php 
$Language->getText('reporting','refresh'); ?>"></td>
+<td><input type="submit" name="submit" value="<?php echo 
$Language->getText('reporting','refresh'); ?>"></td>
 </tr></table>
 </form>
 <p>

Index: sitetime.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/reporting/sitetime.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sitetime.php        4 Aug 2004 16:50:45 -0000       1.2
+++ sitetime.php        6 Aug 2004 08:36:35 -0000       1.3
@@ -60,9 +60,9 @@
 <form action="<?php echo $PHP_SELF; ?>" method="get">
 <input type="hidden" name="typ" value="<?php echo $typ; ?>">
 <table><tr>
-<td><strong>Type:</strong><br /><?php echo 
html_build_select_box_from_arrays($a2,$a,'type',$type,false); ?></td>
-<td><strong>Start:</strong><br /><?php echo report_months_box($report, 
'start', $start); ?></td>
-<td><strong>End:</strong><br /><?php echo report_months_box($report, 'end', 
$end); ?></td>
+<td><strong><?php echo $Language->getText('reporting', 'type'); 
?>:</strong><br /><?php echo 
html_build_select_box_from_arrays($a2,$a,'type',$type,false); ?></td>
+<td><strong><?php echo $Language->getText('reporting', 'start'); 
?>:</strong><br /><?php echo report_months_box($report, 'start', $start); 
?></td>
+<td><strong><?php echo $Language->getText('reporting', 'end'); ?>:</strong><br 
/><?php echo report_months_box($report, 'end', $end); ?></td>
 <td><input type="submit" name="submit" value="<?php echo 
$Language->getText('reporting','refresh'); ?>"></td>
 </tr></table>
 </form>

Index: usersummary.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/reporting/usersummary.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- usersummary.php     4 Aug 2004 16:50:45 -0000       1.2
+++ usersummary.php     6 Aug 2004 08:36:35 -0000       1.3
@@ -96,23 +96,22 @@
 if (!$res || db_numrows($res) < 1) {
        echo $Language->getText('reporting_us','no_matches').db_error();
 } else {
-
-       echo '<table border="1">
-                       <tr>
-                               
<td><strong>'.$Language->getText('reporting_us','name').'</strong></td>
-                               
<td><strong>'.$Language->getText('reporting_us','task').'</strong></td>
-                               
<td><strong>'.$Language->getText('reporting_us','status').'</strong></td>
-                               
<td><strong>'.$Language->getText('reporting_us','cum_hrs').'</strong></td>
-                               
<td><strong>'.$Language->getText('reporting_us','rem_hrs').'</strong></td>
-                               
<td><strong>'.$Language->getText('reporting_us','end_date').'</strong></td>
-                       </tr>';
+       $tableHeaders = array(
+               $Language->getText('reporting_us','name'),
+               $Language->getText('reporting_us','task'),
+               $Language->getText('reporting_us','status'),
+               $Language->getText('reporting_us','cum_hrs'),
+               $Language->getText('reporting_us','rem_hrs'),
+               $Language->getText('reporting_us','end_date')
+       );
+       echo $HTML->listTableTop($tableHeaders);
        for ($i=0; $i<db_numrows($res); $i++) {
                $name=db_result($res,$i,'realname');
                if ($last_name != $name) {
-                       echo '<tr><td 
colspan="6"><strong>'.$name.'</strong></td></tr>';
+                       echo '<tr '.$HTML->boxGetAltRowStyle(0).'><td 
colspan="6"><strong>'.$name.'</strong></td></tr>';
                        $last_name = $name;
                }
-               echo '<tr><td>&nbsp;</td>
+               echo '<tr '.$HTML->boxGetAltRowStyle(1).'><td>&nbsp;</td>
                                <td><a 
href="/pm/task.php?func=detailtask&group_id='.db_result($res,$i,'group_id')
                                        
.'&project_task_id='.db_result($res,$i,'project_task_id')
                                        
.'&group_project_id='.db_result($res,$i,'group_project_id')
@@ -121,7 +120,7 @@
                                
<td>'.number_format(db_result($res,$i,'cumulative_hrs'),1).'</td>
                                
<td>'.number_format((db_result($res,$i,'hours')-db_result($res,$i,'remaining_hrs')),1).'</td>
                                
<td>'.date($sys_datefmt,db_result($res,$i,'end_date')).'</td>
-                               ';
+                               </tr>';
 
                $task=db_result($res,$i,'project_task_id');
                $sql2="SELECT g.group_name, g.group_id, agl.group_artifact_id, 
agl.name, a.artifact_id, a.summary
@@ -137,7 +136,7 @@
                } else {
                        for ($j=0; $j<db_numrows($res2); $j++) {
                                $tracker=db_result($res2,$j,'group_name'). '*' 
.db_result($res2,$j,'name');
-                               echo '<tr><td colspan="3">&nbsp;</td>
+                               echo '<tr '.$HTML->boxGetAltRowStyle(1).'><td 
colspan="3">&nbsp;</td>
                                        <td>';
                                if ($last_tracker != $tracker) {
                                        $last_tracker = $tracker;
@@ -154,7 +153,7 @@
                }
 
        }
-       echo '</table>';
+       echo $HTML->listTableBottom();
 
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]