Location: PHPKode > projects > web-cp - Web Hosting Control Panel > webcp/web/domain/domaininfo.phps
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" class="tblbg">
	<tr>
		<td>
		<table border="0" cellspacing="1">
			<tr>
				<td colspan="2" class="tbltop">&nbsp;<?=$T[$cp][$url];?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Domain Name'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<a href="http://<?=$domaindata['host'].".".$domaindata['domain'];?>/" target="_blank"><?=$domaindata['host'].".".$domaindata['domain'];?></a>&nbsp;</td>
			</tr>
			<tr>
			<?
				$aliases = str_replace(" ", ", ", $domaindata['aliases']);
				if (!$aliases)
					$aliases = $T['none'];
			?>
			
				<td class="row1"><b>&nbsp;<?=$T['Hostname Aliases'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$aliases;?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['IP Address'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$domaindata['ip'];?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Domain Contact'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<a href="mailto:<?=$domaindata['email'];?>"><?=$domaindata['email'];?></a>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Hard Disk Usage'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$domaindata['hd_used'];?> / <?=$domaindata['hd'];?> <?=$T['mb'];?> (<?=(round($domaindata['hd_used'] / $domaindata['hd'] * 100,2));?>%)&nbsp;</td>
			</tr>
			<tr><? $tmp = fetchdata("users","total",$domaindata['id']); $tmp = intval($tmp['users']);?>
				<td class="row1"><b>&nbsp;<?=$T['Users'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<?=$tmp;?> / <?=$domaindata['users'];?> (<?=(round($tmp / $domaindata['users'] * 100,2));?>%)&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Data Transfer'];?>&nbsp;</b></td>
				<? $tmp = fetchdata("transfer","total",$domaindata['id']); ?>
				<td class="row2">&nbsp;<?=round($tmp['transfer'],2);?> / <?=$domaindata['transfer'];?> <?=$T['gb'];?> (<?=(round($tmp['transfer'] / $domaindata['transfer'] * 100,2));?>%)&nbsp;<br>
				<?
				$dbp1 = mysql_query("SELECT host,domain,transfer_used FROM domains WHERE owner = ".$domaindata['id']." ORDER BY transfer_used DESC");
				// show domain transfer only if there are sub/pointers to list
				if (mysql_num_rows($dbp1))
					echo "&nbsp;".$domaindata['host'].".".$domaindata['domain'].":&nbsp;&nbsp;".round($domaindata['transfer_used'],2)."&nbsp;".$T['gb']."<br>\n";
				//show sub/pointer transfer
				while ($tmp = mysql_fetch_array($dbp1))
					echo "<div class='small'>&nbsp;&nbsp;&nbsp;".$tmp['host'].".".$tmp['domain'].":&nbsp;&nbsp;".round($tmp['transfer_used'],2)."&nbsp;".$T['gb']."</div>\n";
				?>
				</td>
			</tr>
			<tr><? $tmp = fetchdata("subdomains","total",$domaindata['id']); $tmp = intval($tmp['subdomains']);?>
				<td class="row1"><b>&nbsp;<?=$T['Subdomains'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<? if ($domaindata['subdomains']) { echo $tmp.' / '.$domaindata['subdomains'].' ('.round($tmp / $domaindata['subdomains'] * 100,2).'%)'; } else echo $T['none'];?>&nbsp;</td>
			</tr>
			<tr><? $tmp = fetchdata("pointers","total",$domaindata['id']); $tmp = intval($tmp['pointers']);?>
				<td class="row1"><b>&nbsp;<?=$T['Dom Pointers'];?>&nbsp;</b></td>
				<td class="row2">&nbsp;<? if ($domaindata['pointers']) { echo $tmp.' / '.$domaindata['pointers'].' ('.round($tmp / $domaindata['pointers'] * 100,2).'%)'; } else echo $T['none'];?>&nbsp;</td>
			</tr>
			<tr>
				<td class="row1"><b>&nbsp;<?=$T['Server Side Options'];?>&nbsp;</b></td>
				<td class="row2">
				<table border="0" cellpadding="0" summary="">
				<?
				if (strstr($cfg['sslang'],",")) $sslang = explode(",",$cfg['sslang']);
				else $sslang[0] = $cfg['sslang'];
				
				$j = 0;
				unset($tmpdata);
				while ($sslang[$j]) { 
					if (!$domaindata['serverside'][trim($sslang[$j])])
						$domaindata['serverside'][trim($sslang[$j])] = "na";
					?>
					<tr>
						<td class="row2">&nbsp;<?=$T['ss'][trim($sslang[$j])];?>&nbsp;</td>
						<td class="row2">&nbsp;<?=$T[$domaindata['serverside'][trim($sslang[$j])]];?>&nbsp;</td>
					</tr>
				<? ++$j; } ?>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</div>
Return current item: web-cp - Web Hosting Control Panel