<!DOCTYPE html>


<html>
<head>
{% load static %}
{% load static %}
{% get_static_prefix as STATIC_PREFIX %}
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}" />

</head>
<body>

{% include "chlamdb/user.html" %}
{% include "chlamdb/menu.html" %}



<!--
{% load static %}
<img src="{% static 'im_1.jpg' %}" alt="Mon image" />
-->

<section id="head_section">



<form action="{% url "search_taxonomy" %}" method="post">{% csrf_token %}

<table>
<tr>
  <td>{% include "chlamdb/taxonomy_chlamydia_03_15.html" %}</td>
</tr>

<tr>
  <td><input type="submit" value="Submit" /></td>
</tr>
</table>

</form>



{% if envoi %}

    <table>
    {% for key, value in classif_table.items %}


    <tr><th id="entete_classification"">{{ key }}</th><td>{{ value }}</td></tr>

    {% endfor %}
    </table>


    <div id="export_bouttons">
    <a download="biodb_search.xls" href="#" onclick="return ExcellentExport.excel(this, 'search_table', 'search');" style="background-color:#DCFFF0;color:black;padding:2px;border:1px solid black;">Export to Excel</a>

    <a download="biodb_search.csv" href="#" onclick="return ExcellentExport.csv(this, 'search_table');" style="background-color:#DCFFF0;color:black;padding:2px;border:1px solid black;"">Export to CSV</a>
    <br/>
    </div>





    <table id="search_table" class="sortable">
    <thead>
    <tr>
<!--
t1.locus_tag, ' \
                          ' t2.subject_taxon_id,' \
                          ' t4.nr_hit_id,' \
                          ' t1.subject_accession, ' \
                          ' t3.kingdom, ' \
                          ' t3.phylum, ' \
                          ' t3.order, ' \
                          ' t3.family, ' \
                          ' t3.genus, ' \
                          ' t3.species, ' \
                          ' t4.evalue, ' \
                          ' t4.percent_identity, ' \
                          ' t4.query_start, ' \
                          ' t4.query_end ' \
                          ' t1.subject_title' \
-->
    <th id="entete_n"></th>
    <th id="entete_locus">locus tag</th>
    <th>hit accession</th>
    <th>kingdom</th>
    <th>phylum</th>
    <th>order</th>
    <th>family</th>
    <th>genus</th>
    <th>species</th>
    <th>evalue</th>
    <th>ID(%)</th>
    <th>query start</th>
    <th>query end</th>
    <th id="entete_organism">description</th>
    <th>taxon_id</th>
    </tr>
    </thead>
    <tbody>
    {% for values in data %}
        <tr>
        <td>{{values.16}}</td>
        <td>{{values.0}}</td>
	    <td><a href="http://www.ncbi.nlm.nih.gov/protein/{{values.3}}">{{values.3}}</td>
	    <td>{{values.4}}</td>
        <td>{{values.5}}</td>
        <td>{{values.6}}</td>
	    <td>{{values.7}}</td>
	    <td>{{values.8}}</td>
        <td>{{values.9}}</td>
        <td>{{values.10}}</td>
        <td>{{values.11}}</td>
        <td>{{values.12}}</td>
        <td>{{values.13}}</td>
        <td>{{values.14}}</td>
        <td><a href="http://www.ncbi.nlm.nih.gov/taxonomy/{{values.15}}">{{values.15}}</a></td>

        </tr>
    {% endfor %}
    </tbody>
    </table>

</section>
{% endif %}


<script>

$("#superkingdom").chained("#genome");
$("#phylum").chained("#superkingdom");

</script>

</body>
</html>
