Add results_tl and handling in different files
This commit is contained in:
@@ -389,7 +389,6 @@ while ($row = $db->sql_fetchrow($result))
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$sidename = sprintf($user->lang['RESULTS']);
|
||||
switch ($league_info['bet_ko_type'])
|
||||
{
|
||||
case BET_KO_90:
|
||||
@@ -410,8 +409,21 @@ switch ($league_info['bet_ko_type'])
|
||||
break;
|
||||
}
|
||||
|
||||
// set correct display for usage in menu template
|
||||
if($side == 'results')
|
||||
{
|
||||
$display_results = true;
|
||||
$sidename = sprintf($user->lang['RESULTS']);
|
||||
}
|
||||
if($side == 'results_tl')
|
||||
{
|
||||
$display_results_tl = true;
|
||||
$sidename = sprintf($user->lang['RESULTS']);
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_RESULTS' => true,
|
||||
'S_DISPLAY_RESULTS' => $display_results,
|
||||
'S_DISPLAY_RESULTS_TL' => $display_results_tl,
|
||||
'S_EXTRA_RESULTS' => $extra_results,
|
||||
'S_SIDENAME' => $sidename,
|
||||
'RESULT_EXPLAIN' => $result_explain,
|
||||
|
||||
@@ -932,6 +932,7 @@ class main
|
||||
{
|
||||
include($this->football_root_path . 'block/table.' . $this->php_ext);
|
||||
}
|
||||
elseif ($league > 50) {/* do nothing */}
|
||||
else
|
||||
{
|
||||
include($this->football_root_path . 'block/rank_matchday.' . $this->php_ext);
|
||||
@@ -941,7 +942,9 @@ class main
|
||||
//*****************************************************************************
|
||||
|
||||
// Start total list
|
||||
include($this->football_root_path . 'block/rank_total.' . $this->php_ext);
|
||||
if($league < 50) {
|
||||
include($this->football_root_path . 'block/rank_total.' . $this->php_ext);
|
||||
}
|
||||
// End total list
|
||||
|
||||
//*****************************************************************************
|
||||
|
||||
@@ -219,8 +219,9 @@ class main_listener implements EventSubscriberInterface
|
||||
'S_FOOTBALL_HEADER_ENABLED' => $this->config['football_header_enable'] ? $in_football_ext : false,
|
||||
'U_FOOTBALL' => $this->controller_helper->route('football_main_controller', array('side' => 'bet')),
|
||||
'U_BET' => $this->controller_helper->route('football_main_controller', array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday)),
|
||||
'U_ALL_BETS' => $this->controller_helper->route('football_main_controller', array('side' => 'all_bets', 's' => $season, 'l' => $league, 'm' => $matchday)),
|
||||
'U_RESULTS' => $this->controller_helper->route('football_main_controller', array('side' => 'results', 's' => $season, 'l' => $league, 'm' => $matchday)),
|
||||
'U_ALL_BETS' => $this->controller_helper->route('football_main_controller', array('side' => 'all_bets', 's' => $season, 'l' => $league, 'm' => $matchday)),
|
||||
'U_RESULTS' => $this->controller_helper->route('football_main_controller', array('side' => 'results', 's' => $season, 'l' => $league, 'm' => $matchday)),
|
||||
'U_RESULTS_TL' => $this->controller_helper->route('football_main_controller', array('side' => 'results_tl', 's' => $season, 'l' => $league, 'm' => $matchday)),
|
||||
'U_TABLE' => $this->controller_helper->route('football_main_controller', array('side' => 'table', 's' => $season, 'l' => $league, 'm' => $matchday)),
|
||||
'U_RANKS_TOTAL' => $this->controller_helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday)),
|
||||
'U_RANKS_MATCHDAY' => $this->controller_helper->route('football_main_controller', array('side' => 'ranks_matchday', 's' => $season, 'l' => $league, 'm' => $matchday)),
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<li class="tab <!-- IF S_DISPLAY_BET -->activetab<!-- ENDIF -->"><a href="{U_BET}"><span><i class="icon fa-futbol-o fa-fw"></i>{L_BET}</span></a></li>
|
||||
<li class="tab <!-- IF S_DISPLAY_ALL_BETS -->activetab<!-- ENDIF -->"><a href="{U_ALL_BETS}"><span><i class="icon fa-group fa-fw"></i>{L_ALL_BETS}</span></a></li>
|
||||
<li class="tab <!-- IF S_DISPLAY_RESULTS -->activetab<!-- ENDIF -->"><a href="{U_RESULTS}"><span><i class="icon fa-check-square-o fa-fw"></i>{L_RESULTS}</span></a></li>
|
||||
<li class="tab <!-- IF S_DISPLAY_RESULTS_TL -->activetab<!-- ENDIF -->"><a href="{U_RESULTS_TL}"><span><i class="icon fa-check-square-o fa-fw"></i>{L_RESULTS_TL}</span></a></li>
|
||||
<li class="tab <!-- IF S_DISPLAY_RANKS_MATCHDAY -->activetab<!-- ENDIF -->"><a href="{U_RANKS_MATCHDAY}"><span><i class="icon fa-trophy fa-fw"></i>{L_RANK_MATCHDAY}</span></a></li>
|
||||
<li class="tab <!-- IF S_DISPLAY_TABLE -->activetab<!-- ENDIF -->"><a href="{U_TABLE}"><span><i class="icon fa-list-ol fa-fw"></i>{L_TABLE}</span></a></li>
|
||||
<li class="tab"><a href="{U_RULES}" target="popup" onclick="popup('{U_RULES}', 625,625);return false;"><span><i class="icon fa-paragraph fa-fw"></i>{L_RULES}</span></a></li>
|
||||
@@ -122,7 +123,7 @@
|
||||
<!-- INCLUDE all_bets.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_RESULTS -->
|
||||
<!-- IF S_DISPLAY_RESULTS or S_DISPLAY_RESULTS_TL-->
|
||||
<!-- INCLUDE results.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- IF S_DATA_RESULTS -->
|
||||
<!-- IF S_DATA_RESULTS or S_DATA_RESULTS_TL -->
|
||||
<!-- IF S_EDIT_MODE -->
|
||||
<br />
|
||||
<form method="post" action="{S_FORM_ACTION_RESULT}" name="resultform">
|
||||
|
||||
Reference in New Issue
Block a user