gforge-commits
[Top][All Lists]
Advanced

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

[Gforge-commits] gforge/www/tracker tracker.php, 1.5, 1.6 mod-limited.ph


From: gsmet
Subject: [Gforge-commits] gforge/www/tracker tracker.php, 1.5, 1.6 mod-limited.php, 1.10, 1.11
Date: Thu, 04 Nov 2004 16:33:55 -0600

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

Modified Files:
        tracker.php mod-limited.php 
Log Message:
technicians and submitter of a tracker item can now upload files

Index: tracker.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/tracker/tracker.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- tracker.php 31 Oct 2004 04:01:01 -0000      1.5
+++ tracker.php 4 Nov 2004 22:33:52 -0000       1.6
@@ -142,7 +142,6 @@
                                $summary=addslashes($ah->getSummary());
                                $canned_response=100;
                                $new_artfact_type_id=$ath->getID();
-                               $add_file=false;
                                $delete_file=false;
                        }
 //echo "$priority|$status_id|$category_id|$artifact_group_id|$resolution_id|

Index: mod-limited.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/tracker/mod-limited.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- mod-limited.php     7 Oct 2004 19:30:50 -0000       1.10
+++ mod-limited.php     4 Nov 2004 22:33:52 -0000       1.11
@@ -153,6 +153,13 @@
        </td></tr>
 
        <tr><td colspan="2">
+               <strong><?php echo $Language->getText('tracker','check_upload') 
?>:</strong> <input type="checkbox" name="add_file" value="1" />
+               <a 
href="javascript:help_window('/help/tracker.php?helpname=attach_file')"><strong>(?)</strong></a><br
 />
+               <p>
+               <input type="file" name="input_file" size="30" /></p>
+               <p>
+               <strong><?php echo 
$Language->getText('tracker','file_description') ?>:</strong><br />
+               <input type="text" name="file_description" size="40" 
maxlength="255" /></p>
                <h4><?php echo 
$Language->getText('tracker_detail','attached_files') ?>:</h4>
                <?php
                //
@@ -181,47 +188,6 @@
                } else {
                        echo '<tr 
'.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td 
colspan=3>'.$Language->getText('tracker_detail','no_files_attached').'</td></tr>';
                }
-
-/*
-               <strong><?php echo $Language->getText('tracker','check_upload') 
?>:</strong> <input type="checkbox" name="add_file" value="1" />
-               <a 
href="javascript:help_window('/help/tracker.php?helpname=attach_file')"><strong>(?)</strong></a><br
 />
-               <p>
-               <input type="file" name="input_file" size="30" /></p>
-               <p>
-               <strong><?php echo 
$Language->getText('tracker','file_description') ?>:</strong><br />
-               <input type="text" name="file_description" size="40" 
maxlength="255" /></p>
-               <h4><?php echo 
$Language->getText('tracker_mod','existing_files') ?>:</h4>
-               <?php
-               //
-               //      print a list of files attached to this Artifact
-               //
-               $file_list =& $ah->getFiles();
-               
-               $count=count($file_list);
-
-               $title_arr=array();
-               $title_arr[]=$Language->getText('tracker_mod','delete');
-               $title_arr[]=$Language->getText('tracker_mod','name');
-               $title_arr[]=$Language->getText('tracker_mod','description');
-               $title_arr[]=$Language->getText('tracker_mod','download');
-               echo $GLOBALS['HTML']->listTableTop ($title_arr);
-
-               if ($count > 0) {
-
-                       for ($i=0; $i<$count; $i++) {
-                               echo '
-                               <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) 
.'><td><input type="CHECKBOX" name="delete_file[]" value="'. 
$file_list[$i]->getID() .'">'.$Language->getText('tracker_mod','delete').' 
</td>'.
-                               '<td>'. 
htmlspecialchars($file_list[$i]->getName()) .'</td>
-                               <td>'.  
htmlspecialchars($file_list[$i]->getDescription()) .'</td>
-                               <td><a 
href="/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() 
.'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName() 
.'">'.$Language->getText('tracker_mod','download').'</a></td>
-                               </tr>';
-                       }
-
-               } else {
-                       echo '<tr><td 
colspan=3>'.$Language->getText('tracker_mod','no_files').'</td></tr>';
-               }
-
-*/
                echo $GLOBALS['HTML']->listTableBottom();
                ?>
        </td><tr>
@@ -236,7 +202,10 @@
                ?>
        </td></tr>
 
-       </form>
+       <tr><td colspan="2" align="middle">
+               <input type="submit" name="submit" value="<?php echo 
$Language->getText('general','submit') ?>">
+               </form>
+       </td></tr>
 
        </table>
 





reply via email to

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