.
PREMIUM FEATURES
Bookmark player Roster player Stats Card Export Player

David Petrasek

HV71 / SHL - 14/15
  • Position
    D
  • Height
    6'1" / 186 cm
  • Weight
    207 lbs / 94 kg
  • Shoots
    R
  • Status
    Retired

David Petrasek was always known as a strong, physical defenseman in his own zone. Somewhat of latebloomer offensively, his booming shot and fine passing ability allowed him to set the Swedish Hockey League scoring record for defensemen in 2009-10.
- Erik K. Piri, Elite Prospects

IFRAME (simple)

Example use
- Blogs
- Articles
- Team websites

Implementation
Insert the code at the location where you wish the player statistics to show.

Regular season + playoffs
Preview

HTML Code

<iframe src="https://www.eliteprospects.com/iframe_player_stats.php?player=201" width="100%" height="925" scrolling="no" frameborder="0"></iframe>
Only Regular season

If Regular season + playoffs is too wide.

Preview

HTML Code

<iframe src="https://www.eliteprospects.com/iframe_player_stats_small.php?player=201" width="100%" height="925" scrolling="no" frameborder="0"></iframe>
RSS (advanced)

Example use
- Team websites

Implementation
Depending on the technical environment on your server, your programming language etc, you can read/include the statistics in many different ways. Below is an example on how you can include the statistics using PHP.

Note that the first box holds the code for an RSS feed with EP layout, while the second box is unformatted and possible to style after your own preferences using CSS.

EP layout
RSS-feed
https://www.eliteprospects.com/rss_player_stats.php?player=201
<?php
$rss = new SimpleXMLElement('https://www.eliteprospects.com/rss_player_stats.php?player=201', null, true);
foreach($rss->xpath('channel/item') as $item) {
    echo utf8_decode($item->description);
}
?>
No layout
RSS-feed
https://www.eliteprospects.com/rss_player_stats2.php?player=201
<?php
$rss = new SimpleXMLElement('https://www.eliteprospects.com/rss_player_stats2.php?player=201', null, true);
foreach($rss->xpath('channel/item') as $item) {
    echo utf8_decode($item->description);
}
?>

To customize the layout of "no layout" option, specify the following following CSS classes on your site:

CSS class to create      HTML tag affected
p_stats <p>
a_stats <a href>
table_stats <table>
tdh_stats <th> (heading)
tr_stats_odd <tr> (odd row)
tr_stats_even <tr> (even row)
td_stats_odd <td> (odd row)
td_stats_even <td> (even row)