103 |
- |
1 |
<table width="98%" border="0" cellspacing="0px" cellpadding="0px" align="center" class="report_head">
|
|
|
2 |
<tr>
|
|
|
3 |
<td align="left" valign="bottom">
|
|
|
4 |
<div><b><?php echo $spTextSA['Project Url']?></b>: <?php echo $projectInfo['url']?></div>
|
|
|
5 |
<div style="margin-bottom: 0px;"><b><?php echo $spText['label']['Updated']?></b>: <?php echo $projectInfo['last_updated']?></div>
|
|
|
6 |
<div style="margin-bottom: 0px;margin-top: 10px;"><b><?php echo $spText['label']['Total Results']?></b>: <?php echo $totalResults?></div>
|
|
|
7 |
</td>
|
|
|
8 |
|
|
|
9 |
<?php
|
|
|
10 |
$borderCollapseVal = "";
|
|
|
11 |
$hrefAction = 'href="javascript:void(0)"';
|
|
|
12 |
$mainLink = SP_WEBPATH."/siteauditor.php?project_id=$projectId&pageno=$pageNo"."$filter";
|
|
|
13 |
foreach ($headArr as $col => $val) {
|
|
|
14 |
$linkName = $col."Link";
|
|
|
15 |
$linkClass = "";
|
|
|
16 |
if ($col == $orderCol) {
|
|
|
17 |
$oVal = ($orderVal == 'DESC') ? "ASC" : "DESC";
|
|
|
18 |
$linkClass .= "sort_".strtolower($orderVal);
|
|
|
19 |
} else {
|
|
|
20 |
$oVal = $orderVal;
|
|
|
21 |
}
|
|
|
22 |
$$linkName = "<a id='sortLink' class='$linkClass' href='javascript:void(0)' onclick=\"scriptDoLoadPost('siteauditor.php', 'search_form', 'subcontent', '&sec=showreport&order_col=$col&order_val=$oVal')\">$val</a>";
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
if(!empty($pdfVersion) || !empty($printVersion)) {
|
|
|
26 |
|
|
|
27 |
// if pdf report to be generated
|
|
|
28 |
if ($pdfVersion) {
|
|
|
29 |
showPdfHeader($spTextTools['Auditor Reports']);
|
|
|
30 |
$borderCollapseVal = "border-collapse: collapse;";
|
|
|
31 |
$hrefAction = "";
|
|
|
32 |
} else {
|
|
|
33 |
showPrintHeader($spTextTools['Auditor Reports']);
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
} else {
|
|
|
37 |
?>
|
|
|
38 |
<td align="right" valign="bottom">
|
|
|
39 |
<a href="<?php echo $mainLink?>&sec=showreport&report_type=rp_links&doc_type=pdf"><img src="<?php echo SP_IMGPATH?>/icon_pdf.png"></a>
|
|
|
40 |
<a href="<?php echo $mainLink?>&sec=showreport&report_type=rp_links&doc_type=export"><img src="<?php echo SP_IMGPATH?>/icoExport.gif"></a>
|
|
|
41 |
<a target="_blank" href="<?php echo $mainLink?>&sec=showreport&report_type=rp_links&doc_type=print"><img src="<?php echo SP_IMGPATH?>/print_button.gif"></a>
|
|
|
42 |
<?php echo $pagingDiv?>
|
|
|
43 |
</td>
|
|
|
44 |
<?php }?>
|
|
|
45 |
</tr>
|
|
|
46 |
</table>
|
|
|
47 |
|
|
|
48 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list" style="<?php echo $borderCollapseVal; ?>">
|
|
|
49 |
<tr class="plainHead">
|
|
|
50 |
<td class="left" style="width: 30%;"><?php echo $page_urlLink?></td>
|
|
|
51 |
<td><?php echo $pagerankLink?></td>
|
|
|
52 |
<td><?php echo $page_authorityLink?></td>
|
|
|
53 |
<td><?php echo $google_backlinksLink?></td>
|
|
|
54 |
<td><?php echo $bing_backlinksLink?></td>
|
|
|
55 |
<td><?php echo $google_indexedLink?></td>
|
|
|
56 |
<td><?php echo $bing_indexedLink?></td>
|
|
|
57 |
<td><?php echo $external_linksLink?></td>
|
|
|
58 |
<td><?php echo $total_linksLink?></td>
|
|
|
59 |
<td><?php echo $scoreLink?></td>
|
|
|
60 |
<td><?php echo $brockenLink?></td>
|
|
|
61 |
<?php if (empty($pdfVersion) && empty($printVersion)) {?>
|
|
|
62 |
<td class="right"><?php echo $spText['common']['Action']?></td>
|
|
|
63 |
<?php }?>
|
|
|
64 |
</tr>
|
|
|
65 |
<?php
|
|
|
66 |
$colCount = 12;
|
|
|
67 |
if(count($list) > 0){
|
|
|
68 |
$catCount = count($list);
|
|
|
69 |
foreach($list as $i => $listInfo){
|
|
|
70 |
$class = ($i % 2) ? "blue_row" : "white_row";
|
|
|
71 |
if( !$i || ($catCount != ($i + 1)) ){
|
|
|
72 |
$leftBotClass = "td_left_border td_br_right";
|
|
|
73 |
$rightBotClass = "td_br_right";
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
$pageLink = scriptAJAXLinkHref('siteauditor.php', 'subcontent', "sec=pagedetails&report_id={$listInfo['id']}&pageno=$pageNo&order_col=$orderCol&order_val=$orderVal", wordwrap($listInfo['page_url'], 100, "<br>", true));
|
|
|
77 |
$pageLink = !empty($pdfVersion) ? str_replace("href='javascript:void(0);'", "", $pageLink) : $pageLink;
|
|
|
78 |
?>
|
|
|
79 |
<tr class="<?php echo $class?>">
|
|
|
80 |
<td class="<?php echo $leftBotClass?> left"><?php echo $pageLink?></td>
|
|
|
81 |
<td class="td_br_right"><?php echo $listInfo['pagerank']?></td>
|
|
|
82 |
<td class="td_br_right"><?php echo $listInfo['page_authority']?></td>
|
|
|
83 |
<td class="td_br_right"><?php echo $listInfo['google_backlinks']?></td>
|
|
|
84 |
<td class="td_br_right"><?php echo $listInfo['bing_backlinks']?></td>
|
|
|
85 |
<td class="td_br_right"><?php echo $listInfo['google_indexed']?></td>
|
|
|
86 |
<td class="td_br_right"><?php echo $listInfo['bing_indexed']?></td>
|
|
|
87 |
<td class="td_br_right"><?php echo $listInfo['external_links']?></td>
|
|
|
88 |
<td class="td_br_right"><?php echo $listInfo['total_links']?></td>
|
|
|
89 |
<td class="td_br_right" style="text-align: right;">
|
|
|
90 |
<?php
|
|
|
91 |
if ($pdfVersion) {
|
|
|
92 |
echo "<b>{$listInfo['score']}</b>";
|
|
|
93 |
} else {
|
|
|
94 |
|
|
|
95 |
if ($listInfo['score'] < 0) {
|
|
|
96 |
$scoreClass = 'minus';
|
|
|
97 |
$listInfo['score'] = $listInfo['score'] * -1;
|
|
|
98 |
} else {
|
|
|
99 |
$scoreClass = 'plus';
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
for($b = 0; $b <= $listInfo['score']; $b++) {
|
|
|
103 |
echo "<span class='$scoreClass'> </span>";
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
}
|
|
|
107 |
?>
|
|
|
108 |
</td>
|
|
|
109 |
<td class="td_br_right">
|
|
|
110 |
<?php echo $listInfo['brocken'] ? $spText['common']['Yes'] : $spText['common']['No']; ?>
|
|
|
111 |
</td>
|
|
|
112 |
<?php if (empty($pdfVersion) && empty($printVersion)) {?>
|
|
|
113 |
<td class="<?php echo $rightBotClass?>">
|
|
|
114 |
<select style="width: 80px;" name="action" id="action<?php echo $listInfo['id']?>" onchange="doAction('siteauditor.php', 'subcontent', 'report_id=<?php echo $listInfo['id']?>&pageno=<?php echo $pageNo?>&order_col=<?php echo $orderCol?>&order_val=<?php echo $orderVal?>', 'action<?php echo $listInfo['id']?>')">
|
|
|
115 |
<option value="select">-- <?php echo $spText['common']['Select']?> --</option>
|
|
|
116 |
<option value="pagedetails"><?php echo $spTextSA['Page Details']?></option>
|
|
|
117 |
<option value="checkscore"><?php echo $spTextSA['Check Score']?></option>
|
|
|
118 |
<option value="deletepage"><?php echo $spText['common']['Delete']?></option>
|
|
|
119 |
</select>
|
|
|
120 |
</td>
|
|
|
121 |
<?php }?>
|
|
|
122 |
</tr>
|
|
|
123 |
<?php
|
|
|
124 |
}
|
|
|
125 |
}else{
|
|
|
126 |
echo showNoRecordsList($colCount-2, '', true);
|
|
|
127 |
}
|
|
|
128 |
?>
|
|
|
129 |
<tr class="listBot">
|
|
|
130 |
<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
|
|
|
131 |
<td class="right"></td>
|
|
|
132 |
</tr>
|
|
|
133 |
</table>
|
|
|
134 |
<?php
|
|
|
135 |
if(!empty($printVersion) || !empty($pdfVersion)) {
|
|
|
136 |
echo $pdfVersion ? showPdfFooter($spText) : showPrintFooter($spText);
|
|
|
137 |
} else if(empty($printVersion)) {?>
|
|
|
138 |
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
|
|
|
139 |
<tr>
|
|
|
140 |
<td style="padding-top: 6px;">
|
|
|
141 |
<a onclick="scriptDoLoad('siteauditor.php?sec=importlinks&project_id=<?php echo $projectId?>', 'content')" href="javascript:void(0);" class="actionbut">
|
|
|
142 |
<?php echo $spTextSA['Import Project Links']?>
|
|
|
143 |
</a>
|
|
|
144 |
</td>
|
|
|
145 |
</tr>
|
|
|
146 |
</table>
|
|
|
147 |
<?php } ?>
|