Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 18.117.119.34
<?php
$system_show_events = 1;
if ($system_show_events == 1) { ?>
<div class="row">
<div class="col-sm-12">
<?php @include($system_main_file); ?>
<?php //include("eventcolumn3.php"); ?>
<?php @include('footer.php'); ?>
</div>
</div>
<?php } else { ?>
<div class="row">
<div class="col-sm-12">
<?// include teams/team.php?>
<?php @include($system_main_file); ?>
<?php @include('footer.php'); ?>
</div>
</div>
<?php } ?>
<?php
function walk_returnoptions($nodes, $id_equipe) {
//Setup
$return_arr = array();
//Loop the nodes passed
foreach ($nodes as $node) {
if (isset($node['sys_struct_data']) && isset($node['sys_node_data']))
{
if ($node['sys_struct_data']['struct_type'] == STRUCT_LIGUE_LEAGUE_NODE)
{
$return_arr = array_merge($return_arr, walk_returnoptions($node, $id_equipe));
}
else if ($node['sys_struct_data']['struct_type'] == STRUCT_LIGUE_CONF_NODE || $node['sys_struct_data']['struct_type'] == STRUCT_LIGUE_DIV_NODE)
{
$return_arr = array_merge($return_arr, walk_returnoptions($node, $id_equipe));
}
else if ($node['sys_struct_data']['struct_type'] == STRUCT_LIGUE_TEAM_NODE)
{
$return_arr[$node['sys_node_data']['hist_city']] = $node['sys_node_data']['hist_parent'];
}
}
}
return $return_arr;
}
?>
|