<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<div class="toolbar-box">
<div class="toolbar-pad">
<div class="toolbar" id="toolbar">
</div>
<div class="header icon-48-browser">
<?php echo _T( 'SEO_CHECK' )
?>
</div>
<div class="clr">
</div>
</div>
<div class="clr">
</div>
</div>
</td>
</tr>
</table>
<div class="spacer"></div>
<div class="element-box">
<div class="element-pad">
<table class="" width="100%">
<tr>
<?php if (empty( $this->show ) || $this->show == 'seo') : ?>
<p>
<table class="adminlist" width="100%">
<tr>
<th class="title">
<?php echo _T( 'SEO_CHECK' )
?>
</th>
</tr>
<tr>
<td width="100%" align="left">
<p>
<b><?php echo _T( 'SEO_TITLE_SUB' ) ?></b>
<br>
<ul>
<li>
<b><?php echo _T( 'SEO_HEADING_TITLE_POSITION' ) ?></b> <?php echo _T( 'SEO_TEXT_POSITION' ) ?>
</li>
<li>
<b><?php echo _T( 'SEO_HEADING_TITLE_RANK' ) ?></b> <?php echo _T( 'SEO_TEXT_RANK' ) ?>
</li>
<li>
<b><?php echo _T( 'SEO_HEADING_TITLE_LINKPOP' ) ?></b> <?php echo _T( 'SEO_TEXT_LINKPOP' ) ?>
</li>
<li>
<b><?php echo _T( 'SEO_HEADING_TITLE_DENSITY' ) ?></b> <?php echo _T( 'SEO_TEXT_DENSITY' ) ?>
</li>
<li>
<b><?php echo _T( 'SEO_HEADING_TITLE_CHECK_LINKS' ) ?></b> <?php echo _T( 'SEO_TEXT_CHECK_LINKS' ) ?>
</li>
<li>
<b><?php echo _T( 'METATAG_G' ) ?></b> <?php echo _T( 'METATAG_G_DESC' ) ?>
</li>
</ul>
<p>
</td>
</tr>
</table>
<?php endif; /* default .. !$this->show || $this->show == 'seo' */ ?>
<?php if ($this->show == 'searchgg') : ?>
<p>
<!-- BEGIN GOOGLE CODE -->
<form action="index2.php?option=com_sef&act=seo&show=searchgg" method="post" name="adminForm">
<table class="adminlist" width="100%">
<tr>
<th class="title">
<?php echo _T( 'SEO_HEADING_TITLE_POSITION' ) ?>
</th>
</tr>
<tr>
<td style="BACKGROUND-COLOR: #f1f3f5">
<?php echo _T( 'SEO_TEXT_POSITION' ) ?>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="2" cellpadding="2">
<tr>
<td colspan="2"><b>
<?php echo _T('SEO_SHOW_RESULTS'); ?><input type="checkbox" name="show_links" value="1" <?= $this->showlinks=='0' ? '' : 'checked' ?> />
Check Google: <input type="checkbox" name="check_google" value="1" <?= $this->check_google=='0' ? '' : 'checked' ?> />
Check Yahoo: <input type="checkbox" name="check_yahoo" value="1" <?= $this->check_yahoo=='0' ? '' : 'checked' ?> />
</b></td>
</tr>
<tr>
<td><?php echo _T('SEO_ENTER_SEARCHES') ?></td>
<td>
<?php $this->plugin( 'input', 'text', 'search_total', ($this->searchtotal?$this->searchtotal:'10'), 'style="width: 80%;"' ); ?>
</td>
</tr>
<tr>
<td><?php echo _T('SEO_ENTER_TERM'); ?></td>
<td>
<?php $this->plugin( 'input', 'text', 'search_term', ($this->searchterm?$this->searchterm:''), 'style="width: 80%;"' ); ?>
</td>
</tr>
<tr>
<td><?php echo _T('SEO_ENTER_URL'); ?></td>
<td>
<?php $this->plugin( 'input', 'text', 'search_url', ($this->searchurl?$this->searchurl:''), 'style="width: 100%;"' ); ?>
</td>
</tr>
<tr>
<td colspan="2">
<input type="button" value="<?php echo _T( 'SEARCH' ) ?>" style="width: 85px" onclick="submitbutton('searchgg');" />
</td>
</tr>
</table>
</td>
</tr>
<?php
if($this->check_google) {
?>
<!-- BEGIN GOOGLE RESULTS //-->
<tr>
<th class="title">
<?php echo _T( 'SEO_HEADING_TITLE_GOOGLE' );
?>
</th>
</tr>
<tr>
<td>
<?php print($this->result_google); ?>
</td>
</tr>
<?php if ($this->showlinks && count($this->siteresults_google) ) { ?>
<tr>
<td>
<?php
for ($i = 0; $i < count($this->siteresults_google)-1; $i++) {
if(!empty($this->siteresults_google[$i]))
echo $this->siteresults_google[$i]."<br/> \n";
} /* end for */
?>
</td>
</tr>
<?php } /* end if */ ?>
<?php
} /* end if $this->check_google */
?>
<?php
if($this->check_yahoo) {
?>
<!-- BEGIN YAHOO RESULTS //-->
<tr>
<th class="title">
<?php echo _T( 'SEO_HEADING_TITLE_YAHOO' );
?>
</th>
</tr>
<tr>
<td>
<?php print($this->result_yahoo); ?>
</td>
</tr>
<?php if ($this->showlinks && count($this->siteresults_yahoo) ) { ?>
<tr>
<td>
<?php
for ($i = 0; $i < count($this->siteresults_yahoo)-1; $i++) {
if(!empty($this->siteresults_yahoo[$i]))
echo $this->siteresults_yahoo[$i]."<br/> \n";
} /* end for */
?>
</td>
</tr>
<?php } /* end if */ ?>
<?php
} /* end if $this->check_yahoo */
?>
</table>
<input type="hidden" name="option" value="<?php echo $this->option ?>" />
<input type="hidden" name="act" value="<?php echo $this->act ?>">
<input type="hidden" name="show" value="<?php echo $this->show ?>" />
<input type="hidden" name="task" value="<?php echo $this->task ?>" />
<input type="hidden" name="boxchecked" value="0" />
</form>
<?php endif; /* $this->show == 'searchgg' */ ?>
<?php if ($this->show == 'pagerank') : ?>
<p>
<!-- BEGIN RANK CODE -->
<form action="index2.php?option=com_sef&act=seo&show=pagerank" method="post" name="adminForm">
<table class="adminlist" width="100%">
<tr>
<th class="title" >
<?php echo _T( 'SEO_HEADING_TITLE_RANK' )
?>
</th>
</tr>
<tr>
<td style="BACKGROUND-COLOR: #f1f3f5">
<?php echo _T( 'SEO_TEXT_RANK' );
?>
</td>
</tr>
<tr>
<td>
<table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td>
<?php echo _T('SEO_ENTER_URL') ?>
</td>
</tr>
<tr>
<td>
<input type="hidden" name="checkPr" value="1">
<textarea rows="6" name="rank_urls" cols="50" nowrap><?php
if (@$this->checkPr == 1)
echo $this->rank_urls;
else
echo "http://www.joomlasef.org\nhttp://www.joomla.org\nhttp://www.hotscripts.com\nhttp://www.google.com";
?></textarea><br>
<input type="checkbox" value="1" name="useCache" <?=@$this->useCache==1?"CHECKED":""?> disabled> Use caching<br>
<input type="button" value="<?php echo _T( 'SEARCH' ) ?>" style="width: 85px" onclick="submitbutton('searchrank');" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<?php
if( count($this->pagerank) ) {
?>
<table class="adminlist" width="100%">
<tr>
<th class="title" colspan="5">
<?php echo _T( 'SEO_HEADING_TITLE_RANK' ) ?>
</th>
</tr>
<?php foreach( $this->pagerank AS $rankResult ) { ?>
<tr>
<td>
<a href="<?= $rankResult['url'] ?>" target="_blank"><?= $rankResult['url'] ?></a>
</td>
<td>
<?= $rankResult['image'] ?>
</td>
<td>
<b><font face="Arial" size="1"><?= $rankResult['rank'] ?>/10</font></b>
</td>
<td>
<?php echo $this->prrating[(int)$rankResult['rank']-1] ?>
</td>
<td>
<?= round($rankResult['time'],6) ?> sec(s)
</td>
</tr>
<?php } ?>
</table>
<?php
} else {
echo "Please Specify URL(s) to Process for Google Page Ranking";
}
?>
</td>
</tr>
</table>
<input type="hidden" name="option" value="<?php echo $this->option ?>" />
<input type="hidden" name="act" value="<?php echo $this->act ?>">
<input type="hidden" name="show" value="<?php echo $this->show ?>" />
<input type="hidden" name="task" value="<?php echo $this->task ?>" />
<input type="hidden" name="boxchecked" value="0" />
</form>
<!-- END RANK CODE -->
<?php endif; /* $this->show == 'pagerank' */ ?>
<?php if ($this->show == 'linkpop') : ?>
<p>
<!-- BEGIN RANK CODE -->
<form action="index2.php?option=com_sef&act=seo&show=linkpop" method="post" name="adminForm">
<table class="adminlist" width="100%">
<tr>
<th class="title" >
<?php echo _T( 'SEO_HEADING_TITLE_LINKPOP' )
?>
</th>
</tr>
<tr>
<td style="BACKGROUND-COLOR: #f1f3f5">
<?php echo _T( 'SEO_TEXT_LINKPOP' );
?>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="2" cellpadding="2">
<tr>
<td>
<?php echo _T('SEO_ENTER_URL') ?>
</td>
<td>
<?php $this->plugin( 'input', 'text', 'linkpop_url',$this->searchurl, 'style="width: 100%;"' );
?>
</td>
</tr>
<tr>
<td>
<?php echo _T('SEO_COMPARE') ?>
</td>
<td>
<?php $this->plugin( 'input', 'text', 'linkpop_2_url',$this->link_2_url, 'style="width: 100%;"' );
?>
</td>
</tr>
<tr>
<td colspan="2">
<input type="button" value="<?php echo _T( 'SEARCH' ) ?>" style="width: 85px" onclick="submitbutton('linkpop');" />
</td>
</tr>
</table>
</td>
</tr>
<?php if ($this->total_pop_links) {
?>
<tr>
<td height="5">
<!-- SPACER -->
</td>
</tr>
<tr>
<td>
<table class="smallText" border="1" cellpadding="2" cellspacing="0" width="100%">
<tr>
<th class="smallText" align="left" width="30%">
<?php echo "DOMAIN";
?>
</th>
<th class="smallText" align="center" width="35%">
<?php echo $this->link_1_url;
?>
</th>
<?php if ($this->show_second_link) {
?>
<th class="smallText" align="center" width="35%">
<?php echo @$this->link_2_url;
?>
</th>
<?php }
?>
</tr>
<tr>
<td >
Alexa Traffic Ranking
</td>
<td align='right'>
<? echo "{$this->results['alexa'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results['alexa'][1]}"; ?>'>view</a>)
</td>
<?php if ($this->show_second_link) {
?>
<td align='right'>
<? echo "{$this->results_2['alexa'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results_2['alexa'][1]}"; ?>'>view</a>)
</td>
<?php }
?>
</tr>
<tr>
<td>
Present in DMOZ
</td>
<td align='right'>
<? echo "{$this->results['dmoz'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results['dmoz'][1]}"; ?>'>view</a>)
</td>
<?php if ($this->show_second_link) {
?>
<td align='right'>
<? echo "{$this->results_2['dmoz'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results_2['dmoz'][1]}"; ?>'>view</a>)
</td>
<?php }
?>
</tr>
<tr>
<td>
Present in Zeal
</td>
<td align='right'>
<? echo "{$this->results['zeal'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results['zeal'][1]}"; ?>'>view</a>)
</td>
<?php if ($this->show_second_link) {
?>
<td align='right'>
<? echo "{$this->results_2['zeal'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results_2['zeal'][1]}"; ?>'>view</a>)
</td>
<?php }
?>
</tr>
<tr>
<td colspan=3 height=5 bgcolor="#FF0000">
<!-- SPACER -->
</td>
</tr>
<tr>
<td>
AlltheWeb
</td>
<td align='right'>
<? echo "{$this->results['alltheweb'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results['alltheweb'][1]}"; ?>'>view</a>)
</td>
<?php if ($this->show_second_link) {
?>
<td align='right'>
<? echo "{$this->results_2['alltheweb'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results_2['alltheweb'][1]}"; ?>'>view</a>)
</td>
<?php }
?>
</tr>
<tr>
<td>
AltaVista
</td>
<td align='right'>
<? echo "{$this->results['altavista'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results['altavista'][1]}"; ?>'>view</a>)
</td>
<?php if ($this->show_second_link) {
?>
<td align='right'>
<? echo "{$this->results_2['altavista'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results_2['altavista'][1]}"; ?>'>view</a>)
</td>
<?php }
?>
</tr>
<tr>
<td>
Google
</td>
<td align='right'>
<? echo "{$this->results['google'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results['google'][1]}"; ?>'>view</a>)
</td>
<?php if ($this->show_second_link) {
?>
<td align='right'>
<? echo "{$this->results_2['google'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results_2['google'][1]}"; ?>'>view</a>)
</td>
<?php }
?>
</tr>
<tr>
<td>
HotBot
</td>
<td align='right'>
<? echo "{$this->results['hotbot'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results['hotbot'][1]}"; ?>'>view</a>)
</td>
<?php if ($this->show_second_link) {
?>
<td align='right'>
<? echo "{$this->results_2['hotbot'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results_2['hotbot'][1]}"; ?>'>view</a>)
</td>
<?php }
?>
</tr>
<tr>
<td>
MSN Search
</td>
<td align='right'>
<? echo "{$this->results['msn'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results['msn'][1]}"; ?>'>view</a>)
</td>
<?php if ($this->show_second_link) {
?>
<td align='right'>
<? echo "{$this->results_2['msn'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results_2['msn'][1]}"; ?>'>view</a>)
</td>
<?php }
?>
</tr>
<tr>
<td>
Yahoo!
</td>
<td align='right'>
<? echo "{$this->results['yahoo'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results['yahoo'][1]}"; ?>'>view</a>)
</td>
<?php if ($this->show_second_link) {
?>
<td align='right'>
<? echo "{$this->results_2['yahoo'][0]}";
?>
(<a target="_blank" href='<? echo "{$this->results_2['yahoo'][1]}"; ?>'>view</a>)
</td>
<?php }
?>
</tr>
<tr>
<td>
<b>Total</b>
</td>
<td align='right'>
<b><? echo number_format($this->total); ?></b>
</td>
<?php if ($this->show_second_link) {
?>
<td align='right'>
<b><? echo number_format($this->total_2); ?></b>
</td>
<?php }
?>
</tr>
</table>
<?php }
?>
</td>
</tr>
</table>
<input type="hidden" name="option" value="<?php echo $this->option ?>" />
<input type="hidden" name="act" value="<?php echo $this->act ?>">
<input type="hidden" name="show" value="<?php echo $this->show ?>" />
<input type="hidden" name="task" value="<?php echo $this->task ?>" />
<input type="hidden" name="boxchecked" value="0" />
</form>
<!-- END RANK CODE -->
<?php endif; /* $this->show == 'linkpop' */ ?>
<?php if ($this->show == 'kwdensity') : ?>
<p>
<!-- BEGIN RANK CODE -->
<form action="index2.php?option=com_sef&act=seo&show=kwdensity" method="post" name="adminForm">
<table class="adminlist" width="100%">
<tr>
<th class="title" >
<?php echo _T( 'SEO_HEADING_TITLE_DENSITY' )
?>
</th>
</tr>
<tr>
<td style="BACKGROUND-COLOR: #f1f3f5">
<?php echo _T( 'SEO_TEXT_DENSITY' );
?>
</td>
</tr>
<tr>
<td>
<table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td>
<?php echo _T('SEO_ENTER_URL') ?>
</td>
<td>
<?php $this->plugin( 'input', 'text', 'density_url',$this->searchurl, 'style="width: 100%;"' );
?>
</td>
<td>
<input type="button" value="<?php echo _T( 'SEARCH' ) ?>" style="width: 85px" onclick="submitbutton('kwdensity');" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="2" cellpadding="2">
<tr>
<td>
<?php echo _T('SEO_INC_METATAG') ?>
</td>
<td>
<input class="text_area" type="checkbox" name="use_meta_tags">
</td>
<td>
</td>
<td>
<?php echo _T('SEO_USE_PART') ?>
</td>
<td>
<input class="text_area" type="checkbox" name="use_partial_total">
</td>
</tr>
</table>
</td>
</tr>
</tr>
<?php if (! empty($this->dens[1])) {
?>
<tr>
<td>
<?php echo 'Total words: ' . $this->ttl_words;
?>
</td>
</tr>
<tr>
<td>
<table style="BORDER-RIGHT: #ccc 1px solid; BORDER-TOP: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; BORDER-BOTTOM: #ccc 1px solid" border="0" width="100%" cellspacing="0" cellpadding="0">
<th class="smallText" align="center" >
<?php echo "Single Word";
?>
</th>
<th class="smallText" align="center" >
<?php echo "Count";
?>
</th>
<th class="smallText" align="center" >
<?php echo "Density (%)";
?>
</th>
<th class="smallText" align="center" >
<?php echo "Double Word";
?>
</th>
<th class="smallText" align="center" >
<?php echo "Count";
?>
</th>
<th class="smallText" align="center" >
<?php echo "Density (%)";
?>
</th>
<th class="smallText" align="center" >
<?php echo "Triple Word";
?>
</th>
<th class="smallText" align="center" >
<?php echo "Count";
?>
</th>
<th class="smallText" align="center" >
<?php echo "Density (%)";
?>
</th>
<?php
$cnt2=0; $cnt3=0;
$row=0;
while (list($key, $val) = each($this->dens[1])) {
$row++;
?>
<tr <?php if($row%2==1)echo 'style="background-color: #F5F5F5;"'; else echo 'style="background-color: #FFF;"'; ?>>
<td>
<?php echo $key;
?>
</td>
<td>
<?php echo $this->dens[$key];
?>
</td>
<td >
<?php echo $val;
?>
</td>
<?php
if ($cnt2 < count($this->dens[2])) {
while (list($key2, $val2) = each($this->dens[2])) {
?>
<td>
<?php echo $key2;
?>
</td>
<td>
<?php echo $this->dens[$key2];
?>
</td>
<td >
<?php echo $val2;
?>
</td>
<?php
if ($cnt2 < count($this->dens[3])) {
while (list($key3, $val3) = each($this->dens[3])) {
?>
<td>
<?php echo $key3;
?>
</td>
<td>
<?php echo $this->dens[$key3];
?>
</td>
<td >
<?php echo $val3;
?>
</td>
<?php
break;
}
} else {
?>
<td>
</td>
<td>
</td>
<td>
</td>
<?php
}
break;
}
} else {
?>
<td>
</td>
<td>
</td>
<td>
</td>
<?php if ($cnt3 < count($this->dens[1])) {
?>
<td>
</td>
<td>
</td>
<td>
</td>
<?php
}
}
$cnt2++;
$cnt3++;
?>
</tr>
<?php }
?>
</table>
</td>
</tr>
<?php }
?>
</td>
</tr>
</table>
<input type="hidden" name="option" value="<?php echo $this->option ?>" />
<input type="hidden" name="act" value="<?php echo $this->act ?>">
<input type="hidden" name="show" value="<?php echo $this->show ?>" />
<input type="hidden" name="task" value="<?php echo $this->task ?>" />
<input type="hidden" name="boxchecked" value="0" />
</form>
<!-- END RANK CODE -->
<?php endif; /* $this->show == 'kwdensity' */ ?>
<?php if($this->show == 'checklinks') : ?>
<p>
<!-- BEGIN RANK CODE -->
<form action="index2.php?option=com_sef&act=seo&show=checklinks" method="post" name="adminForm">
<table class="adminlist" width="100%">
<tr>
<th class="title" >
<?php echo _T( 'SEO_HEADING_TITLE_CHECK_LINKS' )
?>
</th>
</tr>
<tr>
<td style="BACKGROUND-COLOR: #f1f3f5">
<?php echo _T( 'SEO_TEXT_CHECK_LINKS' );
?>
</td>
</tr>
<tr>
<td>
<table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td>
<?php echo _T('SEO_ENTER_URL') ?>
</td>
<td>
<?php $this->plugin( 'input', 'text', 'check_page',$this->searchurl, 'style="width: 100%;"' );
?>
</td>
<td>
<input type="button" value="<?php echo _T( 'SEARCH' ) ?>" style="width: 85px" onclick="submitbutton('checklinks');" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<?php if (count(@$this->badlinks) > 0) {
?>
<tr>
<th class="title" >
Found<?php echo count($this->badlinks);
?>
suspected bad link(s) out of a total of <?php echo $this->totallinks;
?>
</th>
</tr>
<tr>
<td>
<table border="1" width="100%">
<?php } for ($idx = 0; $idx < count(@$this->badlinks); $idx++) {
?>
<tr>
<td width="15%">
<b>Broken Link:</b>
</td>
<td>
<?php echo $this->badlinks[$idx];
?>
</td>
</tr>
<?php }
?>
</td>
</tr>
</table>
<input type="hidden" name="option" value="<?php echo $this->option ?>" />
<input type="hidden" name="act" value="<?php echo $this->act ?>">
<input type="hidden" name="show" value="<?php echo $this->show ?>" />
<input type="hidden" name="task" value="<?php echo $this->task ?>" />
<input type="hidden" name="boxchecked" value="0" />
</form>
<!-- END RANK CODE -->
<?php endif; /* $this->show == 'checklinks' */ ?>
</td>
</tr>
</table>
</div>
</div>