Author: pwang
Date: 2011-12-30 15:44:36 -0800 (Fri, 30 Dec 2011)
New Revision: 27889

Modified:
   new_cytoscape_website/bugreport/bugreportadmin.php
Log:
updated

Modified: new_cytoscape_website/bugreport/bugreportadmin.php
===================================================================
--- new_cytoscape_website/bugreport/bugreportadmin.php  2011-12-30 23:42:53 UTC 
(rev 27888)
+++ new_cytoscape_website/bugreport/bugreportadmin.php  2011-12-30 23:44:36 UTC 
(rev 27889)
@@ -10,18 +10,21 @@
        $connection = getDBConnection('edit');// staff permission
 ?>
 <div id="bugreporttitle">
-Bug Report Administration
+   <h1>Bug Report Administration</h1>
 </div>
 
-<div id="tableheader"> 
+<div id="bugreport_tableheader"> 
 <div class="id">ID</div>
 <div class="name">Name</div>
+
 <div class="date">Date</div>
-<div class="description">Decription</div>
+<div class="description">Description</div>
+<div class="view">View</div>
 <div class="delete">Delete</div>
-<div class="lastmodified">Last Modified</div>
+<!-- <div class="lastmodified">Last Modified</div>  -->
 </div>
 
+
 <?php 
        // Check if the reporter already existed in table 'reporter'
        $dbQuery = "SELECT * FROM bugs,reporter where bugs.reporter_id = 
reporter.reporter_auto_id order by bug_auto_id";
@@ -35,18 +38,29 @@
                {           
                        $bug_auto_id = $_row['bug_auto_id'];                    
                        $name = $_row['name'];
-                       $date = $_row['date'];
+                       $date = $_row['sysdat'];
                        $description = $_row['description'];
+                       if (strlen($description) > 50){
+                               $description = substr($description, 0, 
49)."...";
+                       }
+                       
+                       $delete = "<a 
href=\"bugreportdelete.php?bugid=".$bug_auto_id."\">Delete</a>";
+                       $view = "<a 
href=\"bugreport.php?id=".$bug_auto_id."\">View</a>";
+                       
                        $lastModified = $_row['editdat'];
                                
                        ?>
                        <div class="bugreportrow">
                                <div class="id"><?php echo $bug_auto_id; 
?></div>                       
                                <div class="name"><?php echo $name; ?></div>
+                               
                                <div class="date"><?php echo $date; ?></div>
                                <div class="description"><?php echo 
$description; ?></div>
-                               <div class="delete"><?php echo "Delete"; 
?></div>
+                               <div class="view"><?php echo $view; ?></div>
+                               <div class="delete"><?php echo $delete; ?></div>
+                               <!-- 
                                <div class="lastmodified"><?php echo 
$lastModified; ?></div>    
+                        -->
                        </div>
                        <?php
                        
@@ -56,7 +70,7 @@
        }
        
 ?>
-
+<div id="seperator"></div>
 <?php 
        showPageTail(); 
        ///////////////////// End of page ////////////////////////////////////

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to