AnalysisTemplate.tpl 3.76 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{*
Copyright (C) 2009 INRA
 
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*}

<input type="hidden" id="analyse_name" value="{$analyse.name}"/>

{block name=description}
	<div class="sub-content sc-top">
		<div class="ng6-content-header-left analysis">
			<h2>Analysis <small>{$analyse.name}</small></h2>
		</div>
		<div class="ng6-content-header-right">
			{$analyse.description}
			<br />
			All data related to this analysis use <strong> {$analyse_size} </strong> on the hard drive.
		</div>
		<div style="clear:both"></div>
	</div>
{/block}

<div class="sub-content sc-bottom">
	{block name=content}
	<ul id="myTab" class="nav nav-tabs">
		<li class="active"><a href="#results" data-toggle="tab">{block name=results_title} Results {/block}</a></li>
		{if $analyse.params != ""}
		<li><a href="#parameters" data-toggle="tab">{block name=params_title} Parameters {/block}</a></li>
		{/if}
		<li><a href="#downloads" data-toggle="tab">{block name=downloads_title} Downloads {/block}</a></li>
	</ul>
	
	<div id="myTabContent" class="tab-content">
		<div class="tab-pane fade in active" id="results">
			{block name=results}{/block}
		</div>
		{if $analyse.params != ""}
		<div class="tab-pane fade" id="parameters">
			{block name=params}
				{block name=params_content}
				<ul>
					<li class="parameter">{$analyse.params}</li>
				</ul>
				{/block}
			{/block}
		</div>
		{/if}
		<div class="tab-pane fade" id="downloads">
			{block name=download}
				{assign var="nb_files" value=0}
				{$dir=$data_folder|cat:$analyse.directory}
				{foreach $dir|scandir as $file}
					{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png"}
						{$nb_files = $nb_files + 1}
					{/if}
				{/foreach}
				{if $nb_files == 0} 
					<div class="alert alert-info">
						Results folder not synchronized yet...
					</div>
				{else}
					<ul>
						{foreach $dir|scandir as $file}
						{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png"}
							{$link=(('fileadmin'|cat:$analyse.directory)|cat:'/')|cat:$file}
							<li class="filelist"><a href="{$link}">{$file}</a> </li>
						{/if}
						{/foreach}
					</ul>
				{/if}
			{/block}
		</div>
	</div>
	{/block}
</div>

{* Modal initialization *}
{* Global tmpl *}
<div id="ng6modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modal-label-tmpl" aria-hidden="true">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
		<h3 id="modal-label-tmpl">Modal header</h3>
	</div>
	<div id="modal-body-tmpl" class="modal-body"></div>
	<div id="modal-foot-tmpl" class="modal-footer"></div>
</div>

{* Error only 1 raw modal *}
<div id="ng6modal-1raw" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modalLabel-1raw" aria-hidden="true">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
		<h3>Error</h3>
	</div>
	<div class="modal-body">
		<div class='tx-nG6-pi1-error'>Only one row should be selected to access this fonctionality.</div>
	</div>
	<div class="modal-footer">
		<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>
	</div>
</div>