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&sec=showreport&report_type=$repType&pageno=$pageNo".$filter;
|
|
|
13 |
foreach ($headArr as $col => $val) {
|
|
|
14 |
if( ($col == $repType) || ($col == 'count')) {
|
|
|
15 |
$linkName = $col."Link";
|
|
|
16 |
$linkClass = "";
|
|
|
17 |
if ($col == $orderCol) {
|
|
|
18 |
$oVal = ($orderVal == 'DESC') ? "ASC" : "DESC";
|
|
|
19 |
$linkClass .= "sort_".strtolower($orderVal);
|
|
|
20 |
} else {
|
|
|
21 |
$oVal = $orderVal;
|
|
|
22 |
}
|
|
|
23 |
$$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>";
|
|
|
24 |
}
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
if(!empty($pdfVersion) || !empty($printVersion)) {
|
|
|
28 |
|
|
|
29 |
// if pdf report to be generated
|
|
|
30 |
if ($pdfVersion) {
|
|
|
31 |
showPdfHeader($spTextTools['Auditor Reports']);
|
|
|
32 |
$borderCollapseVal = "border-collapse: collapse;";
|
|
|
33 |
$hrefAction = "";
|
|
|
34 |
} else {
|
|
|
35 |
showPrintHeader($spTextTools['Auditor Reports']);
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
} else {
|
|
|
39 |
?>
|
|
|
40 |
<td align="right" valign="bottom">
|
|
|
41 |
<a href="<?php echo $mainLink?>&doc_type=pdf"><img src="<?php echo SP_IMGPATH?>/icon_pdf.png"></a>
|
|
|
42 |
<a href="<?php echo $mainLink?>&doc_type=export"><img src="<?php echo SP_IMGPATH?>/icoExport.gif"></a>
|
|
|
43 |
<a target="_blank" href="<?php echo $mainLink?>&doc_type=print"><img src="<?php echo SP_IMGPATH?>/print_button.gif"></a>
|
|
|
44 |
<?php echo $pagingDiv?>
|
|
|
45 |
</td>
|
|
|
46 |
<?php }?>
|
|
|
47 |
</tr>
|
|
|
48 |
</table>
|
|
|
49 |
<?php $linkLabel = $repType."Link";?>
|
|
|
50 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list" style="<?php echo $borderCollapseVal; ?>">
|
|
|
51 |
<tr class="plainHead">
|
|
|
52 |
<td class="left"><?php echo $spText['common']['No']?></td>
|
|
|
53 |
<td><?php echo $$linkLabel?></td>
|
|
|
54 |
<td width="30%"><?php echo $headArr["page_urls"]?></td>
|
|
|
55 |
<td class="right"><?php echo $countLink?></td>
|
|
|
56 |
</tr>
|
|
|
57 |
<?php
|
|
|
58 |
$colCount = 4;
|
|
|
59 |
if(count($list) > 0){
|
|
|
60 |
$catCount = count($list);
|
|
|
61 |
foreach($list as $i => $listInfo){
|
|
|
62 |
$class = ($i % 2) ? "blue_row" : "white_row";
|
|
|
63 |
if( !$i || ($catCount != ($i + 1)) ){
|
|
|
64 |
$leftBotClass = "td_left_border td_br_right";
|
|
|
65 |
$rightBotClass = "td_br_right";
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
$pageUrls = "";
|
|
|
69 |
foreach($listInfo['page_urls'] as $urlInfo) {
|
|
|
70 |
$pageUrls .= "<a target='_blank' href='{$urlInfo['page_url']}'>{$urlInfo['page_url']}</a><br>";
|
|
|
71 |
}
|
|
|
72 |
?>
|
|
|
73 |
<tr class="<?php echo $class?>">
|
|
|
74 |
<td class="<?php echo $leftBotClass?> left"><?php echo $i+1?></td>
|
|
|
75 |
<td class="td_br_right left"><?php echo $listInfo[$repType]?></td>
|
|
|
76 |
<td class="td_br_right left"><?php echo $pageUrls?></td>
|
|
|
77 |
<td class="<?php echo $rightBotClass?>"><?php echo $listInfo['count']?></td>
|
|
|
78 |
</tr>
|
|
|
79 |
<?php
|
|
|
80 |
}
|
|
|
81 |
}else{
|
|
|
82 |
echo showNoRecordsList($colCount-2, '', true);
|
|
|
83 |
}
|
|
|
84 |
?>
|
|
|
85 |
<tr class="listBot">
|
|
|
86 |
<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
|
|
|
87 |
<td class="right"></td>
|
|
|
88 |
</tr>
|
|
|
89 |
</table>
|
|
|
90 |
<?php
|
|
|
91 |
if(!empty($printVersion) || !empty($pdfVersion)) {
|
|
|
92 |
echo $pdfVersion ? showPdfFooter($spText) : showPrintFooter($spText);
|
|
|
93 |
}
|
|
|
94 |
?>
|