Exemple #1
0
     </thead>
     <script>
         function GOFormatter(value) {
             return '<a target="_blank" title="Open in new window" data-toggle="tooltip" href="http://amigo.geneontology.org/amigo/term/'+
                 value+'">'+value+'</a>';
         }
     </script>
     <tbody>
         <?php 
 $acc_array = array();
 while ($row = $query->fetch_array()) {
     $id = $row['acc'];
     echo '<tr>';
     echo '<td></td>';
     echo '<td>', $id, '</td>';
     echo '<td>', highlighter_text($row['name'], $search_info), '</td>';
     // check whether it is in cotton
     $check_sql = "SELECT id FROM gene2GO WHERE GO_acc='{$id}' AND species='{$species}'";
     $check_query = $connect->query($check_sql);
     $check_num = $check_query->num_rows;
     if ($check_num > 0) {
         echo '<td>Yes</td>';
     } else {
         echo '<td>No</td>';
     }
     // check finished
     echo '</tr>';
     echo "\n";
 }
 ?>
     </tbody>
Exemple #2
0
                 return '<a target="_blank" title="Open in new window" data-toggle="tooltip" href="'+url+id+'">'+value+'</a>';                    
             }
             else {
                 return id;
             }
         }
     </script>
     <tbody>
         <?php 
 $acc_array = array();
 while ($row = $query->fetch_array()) {
     $id = $row['domain_acc'];
     echo '<tr>';
     echo '<td></td>';
     echo '<td>', $id, '</td>';
     echo '<td>', highlighter_text($row['description'], $search_info), '</td>';
     // check whether it is in cotton
     $check_sql = "SELECT id FROM gene2domain WHERE domain_acc='{$id}' AND species='{$species}'";
     $check_query = $connect->query($check_sql);
     $check_num = $check_query->num_rows;
     if ($check_num > 0) {
         echo '<td>Yes</td>';
     } else {
         echo '<td>No</td>';
     }
     // check finished
     echo '</tr>';
     echo "\n";
 }
 ?>
     </tbody>