<? I18N znc-webadmin ?>
<? INC Header.tmpl ?>

<div class="textsection">

<div class="section">
	<h3><? FORMAT "Information" ?></h3>
	<div class="sectionbg">
		<div class="sectionbody">
			<table>
				<tbody>
					<tr class="oddrow">
						<th><? FORMAT "Uptime" ?></th>
						<td><? VAR Uptime ?></td>
					</tr>
				<? IF IsAdmin ?>
					<tr class="evenrow">
						<th><? FORMAT "Total users" ?></th>
						<td><? VAR TotalUsers ?></td>
					</tr>
                    <tr class="oddrow">
						<th><? FORMAT "Total networks" ?></th>
						<td><? VAR TotalNetworks ?></td>
					</tr>
					<tr class="evenrow">
						<th><? FORMAT "Attached networks" ?></th>
						<td><? VAR AttachedNetworks ?></td>
					</tr>
					<tr class="oddrow">
						<th><? FORMAT "Total client connections" ?></th>
						<td><? VAR TotalCConnections ?></td>
					</tr>
					<tr class="evenrow">
						<th><? FORMAT "Total IRC connections" ?></th>
						<td><? VAR TotalIRCConnections ?></td>
					</tr>
				<? ELSE ?>
					<tr class="evenrow">
						<th><? FORMAT "Networks" ?></th>
						<td><? VAR TotalNetworks ?></td>
					</tr>
					<tr class="oddrow">
						<th><? FORMAT "Attached networks" ?></th>
						<td><? VAR AttachedNetworks ?></td>
					</tr>
					<tr class="evenrow">
						<th><? FORMAT "Client Connections" ?></th>
						<td><? VAR TotalCConnections ?></td>
					</tr>
					<tr class="oddrow">
						<th><? FORMAT "IRC Connections" ?></th>
						<td><? VAR TotalIRCConnections ?></td>
					</tr>
				<? ENDIF ?>
				</tbody>
			</table>
		</div>
	</div>
</div>

<? IF IsAdmin ?>
<div class="section">
	<h3><? FORMAT "Total" ?></h3>
	<div class="sectionbg">
		<div class="sectionbody">
			<table>
				<thead>
					<tr>
						<td></td>
						<th><? FORMAT CTX="Traffic" "In" ?></th>
						<th><? FORMAT CTX="Traffic" "Out" ?></th>
						<th><? FORMAT "Total" ?></th>
					</tr>
				</thead>
				<tbody>
					<tr class="evenrow">
						<td><? FORMAT "Users" ?></td>
						<td><? VAR UserIn TOP ?></td>
						<td><? VAR UserOut TOP ?></td>
						<td><? VAR UserTotal TOP ?></td>
					</tr>
					<tr class="oddrow">
						<td>ZNC</td>
						<td><? VAR ZNCIn TOP ?></td>
						<td><? VAR ZNCOut TOP ?></td>
						<td><? VAR ZNCTotal TOP ?></td>
					</tr>
					<tr class="evenrow">
						<td><? FORMAT "Total" ?></td>
						<td><? VAR AllIn TOP ?></td>
						<td><? VAR AllOut TOP ?></td>
						<td><? VAR AllTotal TOP ?></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
<? ENDIF ?>

<? IF TrafficLoop ?>
<div class="section">
	<? IF IsAdmin ?>
	<h3><? FORMAT "Users" ?></h3>
	<? ELSE ?>
	<h3><? FORMAT "Traffic" ?></h3>
	<? ENDIF ?>
	<div class="sectionbg">
		<div class="sectionbody">
			<table>
				<thead>
					<tr>
						<th><? FORMAT "User" ?></th>
						<th><? FORMAT "Network" ?></th>
						<th><? FORMAT CTX="Traffic" "In" ?></th>
						<th><? FORMAT CTX="Traffic" "Out" ?></th>
						<th><? FORMAT "Total" ?></th>
					</tr>
				</thead>
				<tbody>
				<? LOOP TrafficLoop ?>
					<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
						<td><? VAR Username ?></td>
						<td><? VAR Network ?></td>
						<td><? VAR In ?></td>
						<td><? VAR Out ?></td>
						<td><? VAR Total ?></td>
					</tr>
				<? ENDLOOP ?>
				</tbody>
			</table>
		</div>
	</div>
</div>
<? ENDIF ?>

</div>

<? INC Footer.tmpl ?>
