Commit 92d2e07f authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent be729628
......@@ -38,12 +38,9 @@ $(function () {
} else if ($(":checked[id^=chk_sample_]").size() == 1) {
$("#img_dialog").dialog("option", "title", "nG6 - " + $("#analyse_name").val());
$("#img_dialog").dialog("option", "width", 850);
$("#img_dialog").dialog("option", "height", 450);
$("#img_dialog").html('<div id="highcharts_container"></div>').dialog("open");
var index = $(":checked[id^=chk_sample_]").attr("id").split("_").slice(2).join("_");
alert(index);
$("#img_dialog").dialog("option", "height", 600);
var webPAth = $("#analysis_directory").val() + $(":checked[id^=chk_sample_]").attr("id").split("_").slice(2).join("_") + ".krona.html";
$("#img_dialog").html('<iframe width="830px" frameborder="0" height="600px" src="' + webPAth + '"></iframe>').dialog("open");
} else {
$("#user_information_dialog").dialog("option", "title", $("#information_error_title").val());
$("#user_information_dialog").html("<div class='tx-nG6-pi1-error'>" + $("#information_dialog_multiple_check").val() + "</div>").dialog("open");
......
......@@ -18,7 +18,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{extends file='BasicAnalyse.tpl'}
{block name=results}
<div id="user_information_dialog" title=""></div>
<input type="hidden" id="ok_btn_label" value="{$llang.ok_btn_label}"/>
<input type="hidden" id="information_error_title" value="{$llang.information_error_title}"/>
<input type="hidden" id="information_dialog_multiple_check" value="{$llang.information_dialog_multiple_check}"/>
<input type="hidden" id="information_dialog_zero_check" value="{$llang.information_dialog_zero_check}"/>
<input type="hidden" id="analysis_directory" value="{(('fileadmin'|cat:$analyse.directory)|cat:'/')|cat:$file}"/>
{* First find out all databse used *}
{assign var="database" value=array()}
{foreach from=$analyse_results key=sample item=sample_results}
......@@ -95,4 +100,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</tr>
</tfoot>
</table>
{/block}
{block name=download}
<h3> {$llang.Analyse_archives_title} </h3>
<div class="underline"> </div>
<p><ul>
{$dir=$data_folder|cat:$analyse.directory}
{assign var="nb_files" value=0}
{foreach $dir|scandir as $file}
{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png" and ($file|substr:-strlen(".html")) != ".html"}
{$link=(('fileadmin'|cat:$analyse.directory)|cat:'/')|cat:$file}
<li><a href="{$link}">{$file}</a> </li>
{$nb_files = $nb_files + 1}
{/if}
{/foreach}
</ul></p>
{if $nb_files == 0}
<p>{$llang.not_synchro}</p>
{/if}
{/block}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment