Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
foreach($html->getElementsByTagName("tr") as $tr){
$temp = $tr->nodeValue;
if(strpos($temp,"Бавария"))
{
$tr->setAttribute("class","highlight");
}
}
if (!$tpl->result['football_list']) {
$oldTeamNames = array('Bayern Munchen', 'FC Koln', 'Wolfsburg', 'Hertha Berlin', 'Bor. Monchengladbach', 'Bor. Dortmund', 'Eintracht Frankfurt', 'RasenBallsport Leipzig', 'Hoffenheim', 'Ingolstadt', 'Hamburger SV', 'Freiburg', 'Bayer Leverkusen', 'Mainz 05', 'Schalke 04', 'Darmstadt', 'Augsburg', 'Werder Bremen');
$newTeamNames = array('Бавария', 'Келн', 'Вольфсбург', 'Герта', 'Гладбах', 'Дортмунд', 'Айнтрахт', 'Лайпциг', 'Хоффенхайм', 'Ингольштадт', 'Гамбург', 'Фрайбург', 'Леверкузен', 'Майнц 05', 'Шалке 04', 'Дармштадт', 'Аугсбург', 'Вердер');
include_once('simple_html_dom.php');
$html = file_get_html('http://www.tablesleague.com/iframe?width=285&height=419&font_name=Tahoma&position=1&font_size=12&team_link=0&link_color=404040&games=1&wins=0&draws=0&lost=0&goals=0&goals_against=0&gd=0&points=1&next=0&form=0&font_size=12&font_color=000000&bg_color=FFFFFF&header_font_color=FFFFFF&header_bg_color=1fb9e4&bg_col=1fb9e4&font_color_col=FFFFFF&highlight=e3e3e3&hover=fff6bf&league_header=0&league=l_179&team=&timezone=4&language=2&team_flags=0');
foreach($html->find('div.table div.row') as $v) {
if($v->find('div.cell', 0)->plaintext == '#') {
continue;
}
$tpl->load_template('football_block_row.tpl');
$tpl->set('{id}', $v->find('div.cell', 0)->plaintext);
$tpl->set('{team_name}', str_replace($oldTeamNames,$newTeamNames,$v->find('div.cell', 1)->plaintext));
$tpl->set('{m}', $v->find('div.cell', 2)->plaintext);
$tpl->set('{pts}', $v->find('div.cell', 3)->plaintext);
$tpl->compile('football_list');
}
foreach($html->getElementsByTagName("tr") as $tr){
$temp = $tr->nodeValue;
if(strpos($temp,"Бавария"))
{
$tr->setAttribute("class","highlight");
}
}
}
if (!$tpl->result['football_list']) {
$oldTeamNames = array('Bayern Munchen', 'FC Koln', 'Wolfsburg', 'Hertha Berlin', 'Bor. Monchengladbach', 'Bor. Dortmund', 'Eintracht Frankfurt', 'RasenBallsport Leipzig', 'Hoffenheim', 'Ingolstadt', 'Hamburger SV', 'Freiburg', 'Bayer Leverkusen', 'Mainz 05', 'Schalke 04', 'Darmstadt', 'Augsburg', 'Werder Bremen');
$newTeamNames = array('Бавария', 'Келн', 'Вольфсбург', 'Герта', 'Гладбах', 'Дортмунд', 'Айнтрахт', 'Лайпциг', 'Хоффенхайм', 'Ингольштадт', 'Гамбург', 'Фрайбург', 'Леверкузен', 'Майнц 05', 'Шалке 04', 'Дармштадт', 'Аугсбург', 'Вердер');
$classes = array('Бавария' => 'highlight');
include_once('simple_html_dom.php');
$html = file_get_html('http://www.tablesleague.com/iframe?width=285&height=419&font_name=Tahoma&position=1&font_size=12&team_link=0&link_color=404040&games=1&wins=0&draws=0&lost=0&goals=0&goals_against=0&gd=0&points=1&next=0&form=0&font_size=12&font_color=000000&bg_color=FFFFFF&header_font_color=FFFFFF&header_bg_color=1fb9e4&bg_col=1fb9e4&font_color_col=FFFFFF&highlight=e3e3e3&hover=fff6bf&league_header=0&league=l_179&team=&timezone=4&language=2&team_flags=0');
foreach($html->find('div.table div.row') as $v) {
if($v->find('div.cell', 0)->plaintext == '#') {
continue;
}
$team_name = str_replace($oldTeamNames,$newTeamNames,$v->find('div.cell', 1)->plaintext);
array_key_exists($team_name,$classes) ? $tpl->set('{class}', ' class="' . $classes[$team_name] . '"') : $tpl->set('{class}', '');
$tpl->load_template('football_block_row.tpl');
$tpl->set('{id}', $v->find('div.cell', 0)->plaintext);
$tpl->set('{team_name}', $team_name);
$tpl->set('{m}', $v->find('div.cell', 2)->plaintext);
$tpl->set('{pts}', $v->find('div.cell', 3)->plaintext);
$tpl->compile('football_list');
}
}