Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
715b4aa7
Commit
715b4aa7
authored
Jul 21, 2011
by
Jerome Mariette
Browse files
make plugin1 uses smarty
parent
5dacf808
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
ui/nG6/lib/class.tx_nG6_db.php
View file @
715b4aa7
...
...
@@ -112,7 +112,13 @@ class tx_nG6_db {
'LIMIT'
=>
''
);
$res
=
$GLOBALS
[
'TYPO3_DB'
]
->
exec_SELECT_queryArray
(
$queryParts
);
return
$GLOBALS
[
'TYPO3_DB'
]
->
sql_fetch_assoc
(
$res
);
$vals
=
$GLOBALS
[
'TYPO3_DB'
]
->
sql_fetch_assoc
(
$res
);
return
array
(
'id'
=>
$vals
[
'uid'
],
'name'
=>
$vals
[
'name'
],
'hidden'
=>
$vals
[
'hidden'
],
'public'
=>
$vals
[
'public'
],
'group'
=>
$vals
[
'fe_group'
],
'description'
=>
$vals
[
'description'
]);
}
/**
...
...
@@ -476,6 +482,7 @@ class tx_nG6_db {
'tx_nG6_run.sequencer AS run_sequencer, '
.
'tx_nG6_run.type AS run_type, '
.
'tx_nG6_run.full_seq_size, '
.
'tx_nG6_run.hidden AS run_hidden, '
.
'tx_nG6_run.nb_sequences, '
.
'tx_nG6_run.date AS run_date'
,
'FROM'
=>
'tx_nG6_project INNER JOIN ( tx_nG6_project_run INNER JOIN tx_nG6_run ON tx_nG6_project_run.run_id=tx_nG6_run.uid '
.
...
...
@@ -490,17 +497,19 @@ class tx_nG6_db {
$res
=
$GLOBALS
[
'TYPO3_DB'
]
->
exec_SELECT_queryArray
(
$queryParts
);
while
(
$row
=
$GLOBALS
[
'TYPO3_DB'
]
->
sql_fetch_assoc
(
$res
))
{
$result
=
array
(
'id'
=>
$row
[
'run_id'
],
'project_id'
=>
$row
[
'project_id'
],
'project_name'
=>
$row
[
'project_name'
],
'directory'
=>
$row
[
'run_directory'
],
'name'
=>
$row
[
'run_name'
],
'type'
=>
$row
[
'run_type'
],
'sequencer'
=>
$row
[
'run_sequencer'
],
'data_nature'
=>
$row
[
'run_data_nature'
],
'full_seq_size'
=>
$row
[
'full_seq_size'
],
'hidden'
=>
$row
[
'run_hidden'
],
'species'
=>
$row
[
'run_species'
],
'nb_sequences'
=>
$row
[
'nb_sequences'
],
'full_seq_size'
=>
$row
[
'full_seq_size'
],
'date'
=>
$row
[
'run_date'
],
'data_nature'
=>
$row
[
'run_data_nature'
],
'sequencer'
=>
$row
[
'run_sequencer'
],
'type'
=>
$row
[
'run_type'
],
'description'
=>
$row
[
'run_description'
]
);
}
...
...
@@ -1167,7 +1176,7 @@ class tx_nG6_db {
}
else
{
$is_super_user
=
in_array
(
$user_group
,
preg_split
(
"/,/"
,
$effective_supergroups
));
}
return
$is_super_user
;
}
}
...
...
ui/nG6/pi1/class.tx_nG6_pi1.php
View file @
715b4aa7
This diff is collapsed.
Click to expand it.
ui/nG6/pi1/locallang.xml
View file @
715b4aa7
...
...
@@ -7,6 +7,8 @@
<data
type=
"array"
>
<languageKey
index=
"default"
type=
"array"
>
<label
index=
"project"
>
Project
</label>
<label
index=
"run"
>
Run
</label>
<label
index=
"user_login"
>
Login :
</label>
<label
index=
"user_pwd"
>
Password :
</label>
<label
index=
"user_directory"
>
Directory :
</label>
...
...
@@ -15,7 +17,7 @@
<label
index=
"no_raw"
>
Sorry no results to display
</label>
<label
index=
"no_template_found"
>
No template file found for the analyse class ###ANALYSE_CLASS###.
</label>
<label
index=
"runs_done"
>
Runs done :
</label>
<label
index=
"analyzes_done"
>
Analy
ze
s done :
</label>
<label
index=
"analyzes_done"
>
Analy
si
s done :
</label>
<label
index=
"uid"
>
ID
</label>
<label
index=
"date"
>
Date
</label>
<label
index=
"downloads"
>
Downloads
</label>
...
...
@@ -281,6 +283,8 @@
</languageKey>
<languageKey
index=
"fr"
type=
"array"
>
<label
index=
"run"
>
Run
</label>
<label
index=
"project"
>
Projet
</label>
<label
index=
"user_login"
>
Identifiant :
</label>
<label
index=
"user_pwd"
>
Mot de passe :
</label>
<label
index=
"user_directory"
>
Répertoire :
</label>
...
...
ui/nG6/pi1/project_view.tpl
0 → 100644
View file @
715b4aa7
{*
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/>.
*}
<div
id=
"user_information_dialog"
title=
""
></div>
<div
id=
"error_dialog"
title=
""
></div>
<input
type=
"hidden"
id=
"cancel_btn_label"
value=
"
{
$llang.cancel_btn_label
}
"
/>
<input
type=
"hidden"
id=
"ok_btn_label"
value=
"
{
$llang.ok_btn_label
}
"
/>
<input
type=
"hidden"
id=
"yes_btn_label"
value=
"
{
$llang.yes_btn_label
}
"
/>
<input
type=
"hidden"
id=
"no_btn_label"
value=
"
{
$llang.no_btn_label
}
"
/>
<input
type=
"hidden"
id=
"confirmation_dialog_title"
value=
"
{
$llang.confirmation_dialog_title
}
"
/>
<input
type=
"hidden"
id=
"information_error_title"
value=
"
{
$llang.information_error_title
}
"
/>
<input
type=
"hidden"
id=
"hide_dialog_title"
value=
"
{
$llang.hide_dialog_title
}
"
/>
<input
type=
"hidden"
id=
"hide_confirmation_msg"
value=
"
{
$llang.hide_confirmation_msg
}
"
/>
<input
type=
"hidden"
id=
"unhide_dialog_title"
value=
"
{
$llang.unhide_dialog_title
}
"
/>
<input
type=
"hidden"
id=
"unhide_confirmation_msg"
value=
"
{
$llang.unhide_confirmation_msg
}
"
/>
<input
type=
"hidden"
id=
"information_error_msg"
value=
"
{
$llang.information_error_msg
}
"
/>
<input
type=
"hidden"
id=
"information_dialog_zero_check"
value=
"
{
$llang.information_dialog_zero_check
}
"
/>
<input
type=
"hidden"
id=
"delete_confirmation_msg"
value=
"
{
$llang.delete_confirmation_msg
}
"
/>
<input
type=
"hidden"
id=
"deleting_dialog_msg"
value=
"
{
$llang.deleting_dialog_msg
}
"
/>
<input
type=
"hidden"
id=
"delete_authentication_dialog_msg"
value=
"
{
$llang.delete_authentication_dialog_msg
|
replace
:
'###SPAN_SERVER###'
:
$server_name
}
"
/>
<input
type=
"hidden"
id=
"user_login"
value=
"
{
$llang.user_login
}
"
/>
<input
type=
"hidden"
id=
"user_pwd"
value=
"
{
$llang.user_pwd
}
"
/>
<input
type=
"hidden"
id=
"user_group"
value=
"
{
$user_group
}
"
/>
<input
type=
"hidden"
id=
"deleting_dialog_title"
value=
"
{
$llang.deleting_dialog_title
}
"
/>
<input
type=
"hidden"
id=
"delete_success_msg"
value=
"
{
$llang.delete_success_msg
}
"
/>
<input
type=
"hidden"
id=
"delete_dialog_rigth_error"
value=
"
{
$llang.delete_dialog_rigth_error
}
"
/>
<input
type=
"hidden"
id=
"delete_dialog_authentification_error"
value=
"
{
$llang.delete_dialog_authentification_error
}
"
/>
<input
type=
"hidden"
id=
"delete_dialog_connection_error"
value=
"
{
$llang.delete_dialog_connection_error
}
"
/>
<input
type=
"hidden"
id=
"publish_dialog_title"
value=
"
{
$llang.publish_dialog_title
}
"
/>
<input
type=
"hidden"
id=
"publish_confirmation_msg"
value=
"
{
$llang.publish_confirmation_msg
}
"
/>
<input
type=
"hidden"
id=
"unpublish_dialog_title"
value=
"
{
$llang.unpublish_dialog_title
}
"
/>
<input
type=
"hidden"
id=
"unpublish_confirmation_msg"
value=
"
{
$llang.unpublish_confirmation_msg
}
"
/>
<input
type=
"hidden"
id=
"data_folder"
value=
"
{
$data_folder
}
"
/>
{* If no project can be displayed *}
{
if
$projects
|@
count
==
0
}
{
$llang.no_raw
}
{* If a single project has to be displayed *}
{
elseif
$projects
|@
count
==
1
}
<div
class=
"tx-nG6-pi1-singleView"
>
<h2>
{
$llang.project
}
{
$projects
[
key
(
$projects
)].
name
}
:
</h2>
<p><strong>
{
$projects
[
key
(
$projects
)].
description
}
</strong></p>
</div>
<br
/>
{* If there is some runs to display *}
{
if
$project_runs
|@
count
>
0
}
<h3>
{
$llang.runs_done
}
</h3>
<br
/>
{* Find out if the current user is super user of a run *}
{
foreach
from
=
$project_runs
key
=
run_id
item
=
run_values
}
{
if
$run_values.superuser
}
{
assign
var
=
"superuser"
value
=
true
}
{
else
}
{
assign
var
=
"superuser"
value
=
false
}
{/
if
}
{/
foreach
}
<table
class=
"tx-nG6-pi1-listrow"
>
<tr>
{
if
$superuser
&&
$login_user
}
<th><center><input
type=
"checkbox"
id=
"chk_all_run"
></center></th>
{/
if
}
<th>
{
$llang.run_name
}
</th>
<th>
{
$llang.project_name
}
</th>
<th>
{
$llang.date
}
</th>
<th>
{
$llang.species
}
</th>
<th>
{
$llang.data_nature
}
</th>
<th>
{
$llang.type
}
</th>
<th>
{
$llang.nb_sequences
}
</th>
<th>
{
$llang.full_seq_size
}
</th>
<th>
{
$llang.description
}
</th>
<th>
{
$llang.sequencer
}
</th>
</tr>
{
foreach
from
=
$project_runs
key
=
run_id
item
=
run_values
}
<tr>
{
if
$run_values.superuser
}
<td><center><input
type=
"checkbox"
id=
"chk_run_
{
$run_values.id
}
"
value=
"run_
{
$run_values.id
}
"
></center></td>
{/
if
}
{
assign
var
=
"hidden_class"
value
=
"class='tx-nG6-pi1-hidden'"
}
{
if
$run_values.hidden
==
0
}
{
assign
var
=
"hidden_class"
value
=
""
}
{/
if
}
<td
{
$hidden_class
}
>
{
$run_values.href
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.project_name
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.date
|
date_format
:
"%d-%m-%y"
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.species
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.data_nature
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.type
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.nb_sequences
|
number_format
:
0
:
' '
:
' '
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.full_seq_size
|
number_format
:
0
:
' '
:
' '
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.description
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.sequencer
}
</td>
</tr>
{/
foreach
}
</table>
{
if
$superuser
&&
$login_user
}
<div
class=
"tx-nG6-pi1-div-option-menu"
>
{
$llang.toolbar_title
}
<button
id=
"hide_run"
type=
"button"
class=
"btn pill-l"
><span><span>
{
$llang.hide_btn
}
</span></span></button><button
id=
"unhide_run"
type=
"button"
class=
"btn pill-r"
><span><span>
{
$llang.unhide_btn
}
</span></span></button>
<button
id=
"delete_run"
type=
"button"
class=
"btn"
><span><span>
{
$llang.delete_btn
}
</span></span></button>
</div>
{/
if
}
{/
if
}
{* If there is some analysis to display *}
{
if
$project_analysis
|@
count
>
0
}
<h3>
{
$llang.analyzes_done
}
</h3>
<br
/>
{* Find out if the current user is super user of an analysis *}
{
foreach
from
=
$project_analysis
key
=
analysis_id
item
=
analysis_values
}
{
if
$analysis_values.superuser
}
{
assign
var
=
"superuser"
value
=
true
}
{
else
}
{
assign
var
=
"superuser"
value
=
false
}
{/
if
}
{/
foreach
}
<table
class=
"tx-nG6-pi1-listrow"
>
<tr>
{
if
$superuser
&&
$login_user
}
<th><center><input
type=
"checkbox"
id=
"chk_all_analysis"
></center></th>
{/
if
}
<th>
{
$llang.name
}
</th>
<th>
{
$llang.description
}
</th>
<th>
{
$llang.software
}
</th>
<th>
{
$llang.version
}
</th>
</tr>
{
foreach
from
=
$project_analysis
key
=
analysis_id
item
=
analysis_values
}
<tr>
{
if
$analysis_values.superuser
}
<td><center><input
type=
"checkbox"
id=
"chk_analysis_
{
$analysis_values.id
}
"
value=
"analysis_
{
$analysis_values.id
}
"
></center></td>
{/
if
}
{
assign
var
=
"hidden_class"
value
=
"class='tx-nG6-pi1-hidden'"
}
{
if
$analysis_values.hidden
==
0
}
{
assign
var
=
"hidden_class"
value
=
""
}
{/
if
}
<td
{
$hidden_class
}
>
{
$analysis_values.href
}
</td>
<td
{
$hidden_class
}
>
{
$analysis_values.description
}
</td>
<td
{
$hidden_class
}
>
{
$analysis_values.software
}
</td>
<td
{
$hidden_class
}
>
{
$analysis_values.version
}
</td>
</tr>
{/
foreach
}
</table>
{
if
$superuser
&&
$login_user
}
<div
class=
"tx-nG6-pi1-div-option-menu"
>
{
$llang.toolbar_title
}
<button
id=
"hide_analysis"
type=
"button"
class=
"btn pill-l"
><span><span>
{
$llang.hide_btn
}
</span></span></button><button
id=
"unhide_analysis"
type=
"button"
class=
"btn pill-r"
><span><span>
{
$llang.unhide_btn
}
</span></span></button>
<button
id=
"delete_analysis"
type=
"button"
class=
"btn"
><span><span>
{
$llang.delete_btn
}
</span></span></button>
</div>
{/
if
}
{/
if
}
{* If multiple projects have to be displayed *}
{
else
}
{* Find out if the current user is super user of a project *}
{
foreach
from
=
$projects
key
=
project_id
item
=
project_values
}
{
if
$project_values.superuser
}
{
assign
var
=
"superuser"
value
=
true
}
{
else
}
{
assign
var
=
"superuser"
value
=
false
}
{/
if
}
{/
foreach
}
{* Then display the table *}
<table
class=
"tx-nG6-pi1-listrow"
>
<tr>
{
if
$superuser
&&
$login_user
}
<th><center><input
type=
"checkbox"
id=
"chk_all_project"
></center></th>
{/
if
}
<th>
{
$llang.project_name
}
</th>
<th>
{
$llang.description
}
</th>
</tr>
{
foreach
from
=
$projects
key
=
project_id
item
=
project_values
}
{
assign
var
=
"public_class"
value
=
""
}
{
if
$login_user
&&
$project_values.public
==
0
&&
$project_values.superuser
}
{
assign
var
=
"public_class"
value
=
"class='tx-nG6-pi1-public'"
}
{/
if
}
<tr
{
$public_class
}
>
{
if
$project_values.superuser
}
<td><center><input
type=
"checkbox"
id=
"chk_project_
{
$project_values.id
}
"
value=
"project_
{
$project_values.id
}
"
></center></td>
{/
if
}
{
assign
var
=
"hidden_class"
value
=
"class='tx-nG6-pi1-hidden'"
}
{
if
$project_values.hidden
==
0
}
{
assign
var
=
"hidden_class"
value
=
""
}
{/
if
}
<td
{
$hidden_class
}
>
{
$project_values.href
}
</td>
<td
{
$hidden_class
}
>
{
$project_values.description
}
</td>
</tr>
{/
foreach
}
</table>
{
if
$superuser
&&
$login_user
}
<div
class=
"tx-nG6-pi1-div-option-menu"
>
{
$llang.toolbar_title
}
<button
id=
"hide_project"
type=
"button"
class=
"btn pill-l"
><span><span>
{
$llang.hide_btn
}
</span></span></button><button
id=
"unhide_project"
type=
"button"
class=
"btn pill-r"
><span><span>
{
$llang.unhide_btn
}
</span></span></button>
<button
id=
"delete_project"
type=
"button"
class=
"btn"
><span><span>
{
$llang.delete_btn
}
</span></span></button>
<button
id=
"publish_project"
type=
"button"
class=
"btn pill-l"
><span><span>
{
$llang.publish_btn
}
</span></span></button><button
id=
"unpublish_project"
type=
"button"
class=
"btn pill-r"
><span><span>
{
$llang.unpublish_btn
}
</span></span></button>
</div>
{/
if
}
{/
if
}
ui/nG6/pi1/run_view.tpl
0 → 100644
View file @
715b4aa7
{*
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/>.
*}
<div
id=
"user_information_dialog"
title=
""
></div>
<div
id=
"error_dialog"
title=
""
></div>
<input
type=
"hidden"
id=
"cancel_btn_label"
value=
"
{
$llang.cancel_btn_label
}
"
/>
<input
type=
"hidden"
id=
"ok_btn_label"
value=
"
{
$llang.ok_btn_label
}
"
/>
<input
type=
"hidden"
id=
"yes_btn_label"
value=
"
{
$llang.yes_btn_label
}
"
/>
<input
type=
"hidden"
id=
"no_btn_label"
value=
"
{
$llang.no_btn_label
}
"
/>
<input
type=
"hidden"
id=
"confirmation_dialog_title"
value=
"
{
$llang.confirmation_dialog_title
}
"
/>
<input
type=
"hidden"
id=
"information_error_title"
value=
"
{
$llang.information_error_title
}
"
/>
<input
type=
"hidden"
id=
"hide_dialog_title"
value=
"
{
$llang.hide_dialog_title
}
"
/>
<input
type=
"hidden"
id=
"hide_confirmation_msg"
value=
"
{
$llang.hide_confirmation_msg
}
"
/>
<input
type=
"hidden"
id=
"unhide_dialog_title"
value=
"
{
$llang.unhide_dialog_title
}
"
/>
<input
type=
"hidden"
id=
"unhide_confirmation_msg"
value=
"
{
$llang.unhide_confirmation_msg
}
"
/>
<input
type=
"hidden"
id=
"information_error_msg"
value=
"
{
$llang.information_error_msg
}
"
/>
<input
type=
"hidden"
id=
"information_dialog_zero_check"
value=
"
{
$llang.information_dialog_zero_check
}
"
/>
<input
type=
"hidden"
id=
"delete_confirmation_msg"
value=
"
{
$llang.delete_confirmation_msg
}
"
/>
<input
type=
"hidden"
id=
"deleting_dialog_msg"
value=
"
{
$llang.deleting_dialog_msg
}
"
/>
<input
type=
"hidden"
id=
"delete_authentication_dialog_msg"
value=
"
{
$llang.delete_authentication_dialog_msg
|
replace
:
'###SPAN_SERVER###'
:
$server_name
}
"
/>
<input
type=
"hidden"
id=
"user_login"
value=
"
{
$llang.user_login
}
"
/>
<input
type=
"hidden"
id=
"user_pwd"
value=
"
{
$llang.user_pwd
}
"
/>
<input
type=
"hidden"
id=
"user_group"
value=
"
{
$user_group
}
"
/>
<input
type=
"hidden"
id=
"deleting_dialog_title"
value=
"
{
$llang.deleting_dialog_title
}
"
/>
<input
type=
"hidden"
id=
"delete_success_msg"
value=
"
{
$llang.delete_success_msg
}
"
/>
<input
type=
"hidden"
id=
"delete_dialog_rigth_error"
value=
"
{
$llang.delete_dialog_rigth_error
}
"
/>
<input
type=
"hidden"
id=
"delete_dialog_authentification_error"
value=
"
{
$llang.delete_dialog_authentification_error
}
"
/>
<input
type=
"hidden"
id=
"delete_dialog_connection_error"
value=
"
{
$llang.delete_dialog_connection_error
}
"
/>
<input
type=
"hidden"
id=
"data_folder"
value=
"
{
$data_folder
}
"
/>
{* If no runs can be displayed *}
{
if
$runs
|@
count
==
0
}
{
$llang.no_raw
}
{* If a single run has to be displayed *}
{
elseif
$runs
|@
count
==
1
}
<div
class=
"tx-nG6-pi1-singleView"
>
<h2>
{
$llang.run
}
{
$runs
[
$first_id
].
name
}
:
</h2>
<p><strong>
{
$runs
[
$first_id
].
description
}
</strong></p>
</div>
<table
class=
"tx-nG6-pi1-listrow"
>
<tr>
<th
align=
"left"
>
{
$llang.project_name
}
:
</th>
<td
align=
"left"
>
{
$runs
[
$first_id
].
project_name
}
</td>
</tr>
<tr>
<th
align=
"left"
>
{
$llang.date
}
:
</th>
<td
align=
"left"
>
{
$runs
[
$first_id
].
date
|
date_format
:
"%d-%m-%y"
}
</td>
</tr>
<tr>
<th
align=
"left"
>
{
$llang.species
}
:
</th>
<td
align=
"left"
>
{
$runs
[
$first_id
].
species
}
</td>
</tr>
<tr>
<th
align=
"left"
>
{
$llang.type
}
:
</th>
<td
align=
"left"
>
{
$runs
[
$first_id
].
type
}
</td>
</tr>
<tr>
<th
align=
"left"
>
{
$llang.data_nature
}
:
</th>
<td
align=
"left"
>
{
$runs
[
$first_id
].
data_nature
}
</td>
</tr>
<tr>
<th
align=
"left"
>
{
$llang.nb_sequences
}
:
</th>
<td
align=
"left"
>
{
$runs
[
$first_id
].
nb_sequences
|
number_format
:
0
:
' '
:
' '
}
</td>
</tr>
<tr>
<th
align=
"left"
>
{
$llang.full_seq_size
}
:
</th>
<td
align=
"left"
>
{
$runs
[
$first_id
].
full_seq_size
|
number_format
:
0
:
' '
:
' '
}
</td>
</tr>
<tr>
<th
align=
"left"
>
{
$llang.sequencer
}
:
</th>
<td
align=
"left"
>
{
$runs
[
$first_id
].
sequencer
}
</td>
</tr>
<tr>
<th
align=
"left"
>
{
$llang.downloads
}
:
</th>
<td
align=
"left"
>
{
$dir
=
$data_folder
|
cat
:
$runs
[
$first_id
].
directory
}
{
assign
var
=
"nb_files"
value
=
0
}
{
foreach
$dir
|
scandir
as
$file
}
{
if
$file
!=
"."
and
$file
!=
".."
and
(
$file
|
substr
:-
strlen
(
".png"
))
!=
".png"
}
{
$link
=((
'fileadmin'
|
cat
:
$runs
[
$first_id
].
directory
)|
cat
:
'/'
)|
cat
:
$file
}
<a
href=
"
{
$link
}
"
>
{
$file
}
</a>
<br
/>
{
$nb_files
=
$nb_files
+
1
}
{/
if
}
{/
foreach
}
{
if
$nb_files
==
0
}
{
$llang.not_synchro
}
{/
if
}
</td>
</tr>
</table>
<br
/>
{* If there is some analysis to display *}
{
if
$run_analysis
|@
count
>
0
}
<h3>
{
$llang.analyzes_done
}
</h3>
<br
/>
{* Find out if the current user is super user of an analysis *}
{
foreach
from
=
$run_analysis
key
=
analysis_id
item
=
analysis_values
}
{
if
$analysis_values.superuser
}
{
assign
var
=
"superuser"
value
=
true
}
{
else
}
{
assign
var
=
"superuser"
value
=
false
}
{/
if
}
{/
foreach
}
<table
class=
"tx-nG6-pi1-listrow"
>
<tr>
{
if
$superuser
&&
$login_user
}
<th><center><input
type=
"checkbox"
id=
"chk_all_analysis"
></center></th>
{/
if
}
<th>
{
$llang.name
}
</th>
<th>
{
$llang.description
}
</th>
<th>
{
$llang.software
}
</th>
<th>
{
$llang.version
}
</th>
</tr>
{
foreach
from
=
$run_analysis
key
=
analysis_id
item
=
analysis_values
}
<tr>
{
if
$analysis_values.superuser
}
<td><center><input
type=
"checkbox"
id=
"chk_analysis_
{
$analysis_values.id
}
"
value=
"analysis_
{
$analysis_values.id
}
"
></center></td>
{/
if
}
{
assign
var
=
"hidden_class"
value
=
"class='tx-nG6-pi1-hidden'"
}
{
if
$analysis_values.hidden
==
0
}
{
assign
var
=
"hidden_class"
value
=
""
}
{/
if
}
<td
{
$hidden_class
}
>
{
$analysis_values.href
}
</td>
<td
{
$hidden_class
}
>
{
$analysis_values.description
}
</td>
<td
{
$hidden_class
}
>
{
$analysis_values.software
}
</td>
<td
{
$hidden_class
}
>
{
$analysis_values.version
}
</td>
</tr>
{/
foreach
}
</table>
{
if
$superuser
&&
$login_user
}
<div
class=
"tx-nG6-pi1-div-option-menu"
>
{
$llang.toolbar_title
}
<button
id=
"hide_analysis"
type=
"button"
class=
"btn pill-l"
><span><span>
{
$llang.hide_btn
}
</span></span></button><button
id=
"unhide_analysis"
type=
"button"
class=
"btn pill-r"
><span><span>
{
$llang.unhide_btn
}
</span></span></button>
<button
id=
"delete_analysis"
type=
"button"
class=
"btn"
><span><span>
{
$llang.delete_btn
}
</span></span></button>
</div>
{/
if
}
{/
if
}
{* If multiple runs have to be displayed *}
{
else
}
{* Find out if the current user is super user of a run *}
{
foreach
from
=
$runs
key
=
run_id
item
=
run_values
}
{
if
$run_values.superuser
}
{
assign
var
=
"superuser"
value
=
true
}
{
else
}
{
assign
var
=
"superuser"
value
=
false
}
{/
if
}
{/
foreach
}
{* Then display the table *}
<table
class=
"tx-nG6-pi1-listrow"
>
<tr>
{
if
$superuser
&&
$login_user
}
<th><center><input
type=
"checkbox"
id=
"chk_all_run"
></center></th>
{/
if
}
<th>
{
$llang.run_name
}
</th>
<th>
{
$llang.project_name
}
</th>
<th>
{
$llang.date
}
</th>
<th>
{
$llang.species
}
</th>
<th>
{
$llang.data_nature
}
</th>
<th>
{
$llang.type
}
</th>
<th>
{
$llang.nb_sequences
}
</th>
<th>
{
$llang.full_seq_size
}
</th>
<th>
{
$llang.description
}
</th>
<th>
{
$llang.sequencer
}
</th>
</tr>
{
foreach
from
=
$runs
key
=
run_id
item
=
run_values
}
<tr>
{
if
$run_values.superuser
}
<td><center><input
type=
"checkbox"
id=
"chk_run_
{
$run_values.id
}
"
value=
"run_
{
$run_values.id
}
"
></center></td>
{/
if
}
{
assign
var
=
"hidden_class"
value
=
"class='tx-nG6-pi1-hidden'"
}
{
if
$run_values.hidden
==
0
}
{
assign
var
=
"hidden_class"
value
=
""
}
{/
if
}
<td
{
$hidden_class
}
>
{
$run_values.href
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.project_name
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.date
|
date_format
:
"%d-%m-%y"
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.species
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.data_nature
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.type
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.nb_sequences
|
number_format
:
0
:
' '
:
' '
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.full_seq_size
|
number_format
:
0
:
' '
:
' '
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.description
}
</td>
<td
{
$hidden_class
}
>
{
$run_values.sequencer
}
</td>
</tr>
{/
foreach
}
</table>
{
if
$superuser
&&
$login_user
}
<div
class=
"tx-nG6-pi1-div-option-menu"
>
{
$llang.toolbar_title
}
<button
id=
"hide_run"
type=
"button"
class=
"btn pill-l"
><span><span>
{
$llang.hide_btn
}
</span></span></button><button
id=
"unhide_run"
type=
"button"
class=
"btn pill-r"
><span><span>
{
$llang.unhide_btn
}
</span></span></button>
<button
id=
"delete_run"
type=
"button"
class=
"btn"
><span><span>
{
$llang.delete_btn
}
</span></span></button>
</div>
{/
if
}
{/
if
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment