Location: PHPKode > projects > Seo Panel > seopanel/themes/classic/views/user/userhome.ctp.php
<?php 
if(!empty($printVersion)) {
    showPrintHeader($spTextHome['Account Summary']);
} else {
    ?>
	<div class="Center" style='width:100%;'>
	<div class="col" style="">	
    <?php echo getRoundTabTop(); ?>
    <div id="round_content">	
	<div class="SectionHeader">
	<h1 style="text-align:center;border: none;"><?=$spTextHome['Account Summary']?></h1>
	</div>
	<br />
	<div style="float: left;width: 300px;margin: 0px 0px 6px 10px;">
	<?php if(isAdmin()){ ?>
		<form name="acc_form" method="post" action="<?=SP_WEBPATH?>/">
    	<table width="50%" border="0" cellspacing="0" cellpadding="0" class="actionForm">
    		<tr>
    			<th><?=$spText['common']['User']?>: </th>
    			<td>
    				<select name="user_id" id="user_id" onchange="document.acc_form.submit()">
    					<option value="">-- <?=$spText['common']['Select']?> --</option>
    					<?php foreach($userList as $userInfo){?>
    						<?php if($userInfo['id'] == $webUserId){?>
    							<option value="<?=$userInfo['id']?>" selected><?=$userInfo['username']?></option>
    						<?php }else{?>
    							<option value="<?=$userInfo['id']?>"><?=$userInfo['username']?></option>
    						<?php }?>
    					<?php }?>
    				</select>
    			</td>
    			<td>
    				<input class="button" type="submit" name="login" value="<?=$spText['button']['Show Records']?>"/>
				</td>
    		</tr>
    	</table>
    	</form>
    <?php } ?>
	</div>
	<div style="float:right;margin-right: 10px;">
		<a href="<?=SP_WEBPATH?>/index.php?doc_type=export&user_id=<?=$webUserId?>"><img src="<?=SP_IMGPATH?>/icoExport.gif"></a> &nbsp;
		<a target="_blank" href="<?=SP_WEBPATH?>/index.php?doc_type=print&user_id=<?=$webUserId?>"><img src="<?=SP_IMGPATH?>/print_button.gif"></a>
	</div>
<?php }?>

<div class="Block" style="margin-top: 28px;clear: both;">
	<?php
	$colSpan = 11; 
	?>
	<table width="100%" cellspacing="0" cellpadding="0" class="summary">
		<tr><td class="topheader" colspan="<?=$colSpan?>"><?=$spTextHome['Website Statistics']?></td></tr>
		<tr>
			<td class="subheader" style="border: none;" width="5%" rowspan="2"><?=$spText['common']['Id']?></td>
			<td class="subheader" rowspan="2"><?=$spTextHome['SiteNameUrl']?></td>
			<td class="subheaderdark" colspan="2"><?=$spTextHome['Ranks']?></td>
			<td class="subheaderdark" colspan="3"><?=$spTextHome['Backlinks']?></td>
			<td class="subheaderdark" colspan="2"><?=$spTextHome['Pages Indexed']?></td>
			<td class="subheaderdark" colspan="2"><?=$spTextHome['Directory Submission']?></td>
		</tr>		
		<tr>
			<td class="subheader">Google</td>
			<td class="subheader">Alexa</td>
			<td class="subheader">Google</td>
			<td class="subheader">Alexa</td>
			<td class="subheader">Bing</td>			
			<td class="subheader">Google</td>
			<td class="subheader">Bing</td>
			<td class="subheader"><?=$spText['common']['Total']?></td>
			<td class="subheader"><?=$spText['common']['Active']?></td>
		</tr>
		<?php if(count($websiteList) > 0){
		    $mainLink = SP_WEBPATH."/seo-tools.php?menu_sec="; 
		    ?> 
			<?php foreach($websiteList as $websiteInfo){
			    $rankLink = $mainLink."rank-checker&default_args=".urlencode("sec=reports&website_id=".$websiteInfo['id']); 
			    $backlinkLink = $mainLink."backlink-checker&default_args=".urlencode("sec=reports&website_id=".$websiteInfo['id']);
			    $indexedLink = $mainLink."saturation-checker&default_args=".urlencode("sec=reports&website_id=".$websiteInfo['id']);
			    $totaldirLink = $mainLink."directory-submission&default_args=".urlencode("sec=reports&website_id=".$websiteInfo['id']);
			    $activeDirLink = $mainLink."directory-submission&default_args=".urlencode("sec=reports&active=approved&&website_id=".$websiteInfo['id']);
			    ?>
				<tr>
					<td class="content" style="border-left: none;"><?php echo $websiteInfo['id']?></td>
					<td class="content">
						<?php echo $websiteInfo['name'];?><br>
						<a href="<?php echo $websiteInfo['url'];?>" target="_blank"><?php echo $websiteInfo['url'];?></a>
					</td>
					<td class="content"><a href="<?=$rankLink?>"><?php echo $websiteInfo['googlerank'];?></a></td>
					<td class="content"><a href="<?=$rankLink?>"><?php echo $websiteInfo['alexarank'];?></a></td>
					<td class="content"><a href="<?=$backlinkLink?>"><?php echo $websiteInfo['google']['backlinks'];?></a></td>
					<td class="content"><a href="<?=$backlinkLink?>"><?php echo $websiteInfo['alexa']['backlinks'];?></a></td>
					<td class="content"><a href="<?=$backlinkLink?>"><?php echo $websiteInfo['msn']['backlinks'];?></a></td>
					<td class="content"><a href="<?=$indexedLink?>"><?php echo $websiteInfo['google']['indexed'];?></a></td>				
					<td class="content"><a href="<?=$indexedLink?>"><?php echo $websiteInfo['msn']['indexed'];?></a></td>
					<td class="contentmid"><a href="<?=$totaldirLink?>"><?php echo $websiteInfo['dirsub']['total'];?></a></td>					
					<td class="contentmid"><a href="<?=$activeDirLink?>"><?php echo $websiteInfo['dirsub']['active'];?></a></td>
				</tr> 
			<?php } ?>
		<?php }else{ ?>
			<tr><td colspan="<?=$colSpan?>" class="norecord"><?=$spText['common']['nowebsites']?></td></tr>
		<?php } ?>		
	</table>
</div>

<?php 
if(empty($printVersion)) {
    ?>
    </div>
    <?php echo getRoundTabBot(); ?>
    </div>
    </div>
    <?php
} else {
    echo showPrintFooter($spText);    
}
?>
Return current item: Seo Panel