Improve Scenario Test

This commit is contained in:
Dany De Bontridder 2019-10-26 16:33:29 +02:00
parent df3557ac37
commit 9e55774ca3
6 changed files with 43 additions and 15 deletions

View file

@ -65,6 +65,23 @@ if (!file_exists('authorized_debug'))
}
define('ALLOWED', 1);
html_page_start("Classic");
/******************************************************************************************************************/
/* Utilities
/******************************************************************************************************************/
/**
* Return the card this most activities
* @return integer (fiche.f_id)
*/
function get_card_with_activity() {
global $cn;
$card_count=$cn->get_array("select count(*),f_id ".
" from jrnx ".
" where ".
" f_id is not null ".
"group by f_id order by count(*) desc");
return $card_count[0]['f_id'];
}
/*
* Loading of all scenario