Skip to content
GitLab
Menu
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
eb5cb4fa
Commit
eb5cb4fa
authored
Feb 19, 2014
by
Jerome Mariette
Browse files
add stat administration
parent
db166805
Changes
3
Hide whitespace changes
Inline
Side-by-side
ui/nG6/pi6/administration_view.tpl
View file @
eb5cb4fa
...
...
@@ -37,14 +37,91 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<ul
id=
"myTab"
class=
"nav nav-tabs"
>
<li
class=
"active"
><a
href=
"#wf_monitoring"
data-toggle=
"tab"
>
Workflows monitoring
</a></li>
<li><a
href=
"#runs_size"
data-toggle=
"tab"
>
Runs size
</a></li>
<li><a
href=
"#project_stat"
data-toggle=
"tab"
>
Project statistics
</a></li>
<li><a
href=
"#storage_stat"
data-toggle=
"tab"
>
Storage statistics
</a></li>
</ul>
<div
id=
"myTabContent"
class=
"tab-content"
>
<div
class=
"tab-pane fade in active"
id=
"wf_monitoring"
></div>
<div
class=
"tab-pane fade"
id=
"runs_size"
>
<div
class=
"tab-pane fade"
id=
"project_stat"
>
<div
class=
"accordion"
id=
"stat_menu"
>
<div
class=
"accordion-group"
>
<div
class=
"accordion-heading"
>
<a
class=
"accordion-toggle"
data-toggle=
"collapse"
data-parent=
"#stat_menu"
href=
"#bygroup"
>
By group
</a>
</div>
<div
id=
"bygroup"
class=
"accordion-body collapse in"
>
<div
class=
"accordion-inner"
>
<table
class=
"table table-striped table-bordered dataTable"
id=
"group_data_table"
>
<thead>
<th><center><input
type=
"checkbox"
id=
"chk_all_group"
></center></th>
<th>
Group name
</th>
<th>
Organism
</th>
<th>
Location
</th>
<th>
Number of user in group
</th>
</thead>
<tbody>
<td><center><input
type=
"checkbox"
id=
"chk_group_"
value=
"group_"
></center></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tbody>
</table>
<div
id=
"group_graph"
>
</div>
</div>
</div>
</div>
<div
class=
"accordion-group"
>
<div
class=
"accordion-heading"
>
<a
class=
"accordion-toggle"
data-toggle=
"collapse"
data-parent=
"#stat_menu"
href=
"#byorganism"
>
By organism
</a>
</div>
<div
id=
"byorganism"
class=
"accordion-body collapse"
>
<div
class=
"accordion-inner"
>
Anim pariatur cliche...
</div>
</div>
</div>
<div
class=
"accordion-group"
>
<div
class=
"accordion-heading"
>
<a
class=
"accordion-toggle"
data-toggle=
"collapse"
data-parent=
"#stat_menu"
href=
"#bylocation"
>
By location
</a>
</div>
<div
id=
"bylocation"
class=
"accordion-body collapse"
>
<div
class=
"accordion-inner"
>
Anim pariatur cliche...
</div>
</div>
</div>
<div
class=
"accordion-group"
>
<div
class=
"accordion-heading"
>
<a
class=
"accordion-toggle"
data-toggle=
"collapse"
data-parent=
"#stat_menu"
href=
"#bysequencer"
>
By sequencer
</a>
</div>
<div
id=
"bysequencer"
class=
"accordion-body collapse"
>
<div
class=
"accordion-inner"
>
Anim pariatur cliche...
</div>
</div>
</div>
</div>
</div>
<div
class=
"tab-pane fade"
id=
"storage_stat"
>
<div
id=
"size_chart"
></div>
<div
id=
"chart_options"
class=
"form-inline"
>
<label
class=
"control-label"
for=
"group_list"
style=
"font-size:12px"
>
Select a user group
</label>
...
...
ui/nG6/pi6/class.tx_nG6_pi6.php
View file @
eb5cb4fa
...
...
@@ -63,6 +63,8 @@ class tx_nG6_pi6 extends tslib_pibase {
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/bootstrap.min.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/tx_nG6_pi6.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/highstock.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/DT_bootstrap.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jquery.validate.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jquery.tmpl.min.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jflow-activewf.js"></script>
...
...
@@ -70,6 +72,7 @@ class tx_nG6_pi6 extends tslib_pibase {
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jflow-wfform.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jflow-wfstatus.js"></script>
<link type="text/css" rel="stylesheet" media="screen" href="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/css/bootstrap.min.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/css/DT_bootstrap.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/css/tx_nG6.css"/>'
;
$smarty
=
new
Smarty
();
...
...
ui/nG6/res/js/tx_nG6_pi6.js
View file @
eb5cb4fa
...
...
@@ -31,6 +31,9 @@ $(function () {
$
(
'
#myTab
'
).
tab
();
redraw_chart
();
// Init tables
var
groupTable
=
initGroupTable
();
// group list
$
(
"
select[id=group_list]
"
).
change
(
function
(){
...
...
@@ -46,7 +49,7 @@ $(function () {
$
(
"
#chk_get_cumulative
"
).
change
(
function
(){
redraw_chart
();
});
// lock/unlock chart options fields when ajax request is sent
function
lock_fields
(
lock
){
if
(
lock
==
1
){
...
...
@@ -160,4 +163,9 @@ $(function () {
$
(
'
#statusModal
'
).
modal
();
});
});
\ No newline at end of file
});
function
initGroupTable
()
{
var
groupTable
=
$
(
'
#group_data_table
'
).
dataTable
();
return
groupTable
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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