[cxtest-cvs] Peter Nociar : Added delete result functionality.

Jozef Stefanka jstefanka at codeweavers.com
Tue Feb 26 07:14:05 CST 2008


Module: cxtest
Branch: master
Commit: 41bf9e2ec8208336c9a421c2d44327d820a1dd93
URL:    http://foghorn.codeweavers.com/git/cxtest/cxtest.git/?a=commit;h=41bf9e2ec8208336c9a421c2d44327d820a1dd93

Author: Peter Nociar <peter.nociar at ifne.eu>
Date:   Tue Feb 26 14:11:00 2008 +0100

Added delete result functionality.

Individual result could be deleted from DB through web interface.

---

 web/raw_data.php |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/web/raw_data.php b/web/raw_data.php
index 027784a..998d13f 100644
--- a/web/raw_data.php
+++ b/web/raw_data.php
@@ -280,6 +280,7 @@
        echo '<table>';
        echo '<tr bgcolor="#c0c0c0"><td>result ID</td><td>Package</td><td>Attachments</td><td>Failure</td>';
        if ($admin) echo '<td>Proposed failure</td>';
+       if ($admin) echo '<td>Delete</td>';
        echo '</tr>';
        $i=1;
        while ($record=mysql_fetch_array($results)) {
@@ -424,6 +425,10 @@
             echo '<td></td>';
             if ($admin) echo '<td></td>';
          }
+         if ($admin)
+         {
+            echo '<td><input type="submit" value="Delete" name="'.$record["id_result"].'" ></td>';
+         }
          echo "</tr>";
          $i++;
        }




More information about the cxtest-cvs mailing list