<?php
/**
* iLP System Template: Statistiken
*
* Autor: Florian "ApoY2k" Peschka
* Projekt: iLP System
* Paket: apoy2k.ilp.wrynn
* Lizenz: CreativeCommons (by-nc-sa)
* Kontakt: hide@address.com
* Version: 2.2
*/
echo '<h1>'.$lang['statistics']['header'].'</h1>
<p>
'.$lang['statistics']['text'].'
</p>
<form method="post" action="?ilp='.ilpUrlEncode('statistics').'" id="statisticsdateform">
<fieldset>
<legend><img src="images/icons/chart_bar.png" alt="icon" /> '.$lang['statistics']['daterange'].'</legend>
<p>
'.$lang['statistics']['datetext'].'
</p>
<div class="inputGroup">
<div class="inputName">
<label for="statistics_date_start">
'.$lang['statistics']['datestart'].'
</label>
</div>
<div class="inputField">
<input type="text" name="statistics_date_start" id="statistics_date_start" value="'.$tpl['date_start'].'" />
<div class="inputDesc">
<label for="statistics_date_start">
'.$lang['statistics']['datenote'].'
</label>
</div>
</div>
</div>
<div class="inputGroup">
<div class="inputName">
<label for="statistics_date_end">
'.$lang['statistics']['dateend'].'
</label>
</div>
<div class="inputField">
<input type="text" name="statistics_date_end" id="statistics_date_end" value="'.$tpl['date_end'].'" />
<div class="inputDesc">
<label for="statistics_date_end">
'.$lang['statistics']['datenote'].'
</label>
</div>
</div>
</div>
</fieldset>
<div>
<input type="submit" value="'.$lang['statistics']['daterange'].'" />
</div>
</form>
<br />
<table cellspacing="1" cellpadding="0" class="statistics sortable">
<thead>
<tr>
<th>
'.$lang['list']['player'].'
</th>
<th>
'.$lang['statistics']['attendance'].'
</th>
<th>
'.$lang['statistics']['ninja'].'
</th>
<th>
'.$lang['statistics']['tea'].'
</th>
</tr>
</thead>
<tbody>';
foreach ($tpl['users'] as $row)
{
echo '<tr>
<td>
<img src="images/icons/'.$row['char']['class'].'.png" alt="wowicon" /><img src="images/icons/'.$row['char']['class'].$row['char']['spec'].'.png" alt="wowicon" /> <a href="?ilp='.ilpUrlEncode('search;user;'.$row['user_id']).'" rel="'.getSafeURL('http://armorylite.com/'.$_SESSION['config']['guild_region'].'/'.$_SESSION['config']['guild_realm'].'/'.$row['char']['name']).'" class="class-'.$row['char']['class'].'">'.$row['char']['name'].'</a>
</td>
<td>
<span class="percent ';
if (33 >= $row['attendance']) {echo 'low';}
elseif (66 >= $row['attendance']) {echo 'middle';}
else {echo 'high';}
echo '">'.getProgressBar(120, $row['attendance']).' '.$row['attendance'].'%</span>
</td>
<td>
<span class="percent ';
if (33 >= $row['ninja']) {echo 'low';}
elseif (66 >= $row['ninja']) {echo 'middle';}
else {echo 'high';}
echo '">'.getProgressBar(120, $row['ninja']).' '.$row['ninja'].'%</span>
</td>
<td>
<span class="percent ';
if (33 >= $row['tea']) {echo 'low';}
elseif (66 >= $row['tea']) {echo 'middle';}
else {echo 'high';}
echo '">'.getProgressBar(120, $row['tea']).' '.$row['tea'].'%</span>
</td>
</tr>';
}
echo '
</tbody>
</table>';
?>