Commit 9a7be927 authored by Celine Noirot's avatar Celine Noirot

#25 - debug ; add a parameter to a function to get all element

parent f1d1ce12
......@@ -836,7 +836,6 @@ class tx_nG6_eid {
$cumulate = true;
}
print json_encode(tx_nG6_db::select_storage_evolution($values, $by, $role, $get_analyzes, $octet, $cumulate));
} elseif ($type == 'purge_managment_mail') {
$all_projects = trim(t3lib_div::_GP('project'));
print json_encode(tx_nG6_pi6::send_purge_demand_mail($all_projects));
......
......@@ -213,7 +213,7 @@ class tx_nG6_pi1 extends tslib_pibase {
}
$smarty->assign('h_analysis', tx_nG6_utils::trace_hierarchy($project_analysis));
$smarty->assign('project_analysis', $project_analysis);
$smarty->assign('managment_purged_data', tx_nG6_db::select_a_project_retention_data_info($projects[key($projects)]['id']));
$smarty->assign('managment_purged_data', tx_nG6_db::select_a_project_retention_data_info($projects[key($projects)]['id'], TRUE));
$txNG6Utils = new tx_nG6_utils;
//$smarty->register_object('tx_nG6_utils',$txNG6Utils);
$smarty->assign_by_ref('tx_nG6_utils', $txNG6Utils);
......
......@@ -45,14 +45,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<h2>Projet <small>{$projects[key($projects)].name}</small></h2>
</div>
<div class="ng6-content-header-right">
{$projects[key($projects)].description} <br /> <br />
<strong>{$project_runs|@count}</strong> run(s) and
<strong>{$project_analysis|@count}</strong> analyse(s) have been done on the project {$projects[key($projects)].name}.
{assign var="manag_values" value="{$managment_purged_data[$projects[key($projects)].id]}"}
{$projects[key($projects)].description} <br /> <br />
<strong>{$manag_values.nb_runs}</strong> run(s) and
<strong>{$manag_values.nb_analyses}</strong> analyse(s) have been done on the project {$projects[key($projects)].name}.
<br />
{assign var="project_size" value="<span id='size' class='tx-nG6-mini-wait'></span>"}
Raw data and analysis results use <strong>{$project_size}</strong> on the hard drive for the whole project.<br />
<br><label>Data overview</label><br>
{assign var="manag_values" value="{$managment_purged_data[$projects[key($projects)].id]}"}
<table class="table table-striped table-bordered dataTable" id="manag_purged_data_table">
<thead>
<tr>
......
......@@ -361,7 +361,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<p>
Following table contains runs and analysis which can be purged, please alert project managers with button "send mail" after selecting projects.</br>
Then the project will be available for extention or purge in tab "Purge demand management"<br/>
This table contains <b><span id="nb_purgeable_project"></span> </b> corresponding to <b><span id="global_purgeable_size"</span></b>.
This table contains <b><span id="nb_purgeable_project"></span> </b> project corresponding to <b><span id="global_purgeable_size"</span></b>.
</p>
</div>
......
Markdown is supported
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