103 |
- |
1 |
<form name="listform" id="listform">
|
|
|
2 |
<?php echo showSectionHead($spTextTools['Auditor Projects']); ?>
|
|
|
3 |
<?php if(!empty($isAdmin)){ ?>
|
|
|
4 |
<table width="50%" border="0" cellspacing="0" cellpadding="0" class="search">
|
|
|
5 |
<tr>
|
|
|
6 |
<th><?php echo $spText['common']['User']?>: </th>
|
|
|
7 |
<td>
|
|
|
8 |
<select name="userid" id="userid" onchange="doLoad('userid', 'siteauditor.php', 'content')">
|
|
|
9 |
<option value="">-- <?php echo $spText['common']['Select']?> --</option>
|
|
|
10 |
<?php foreach($userList as $userInfo){?>
|
|
|
11 |
<?php if($userInfo['id'] == $userId){?>
|
|
|
12 |
<option value="<?php echo $userInfo['id']?>" selected><?php echo $userInfo['username']?></option>
|
|
|
13 |
<?php }else{?>
|
|
|
14 |
<option value="<?php echo $userInfo['id']?>"><?php echo $userInfo['username']?></option>
|
|
|
15 |
<?php }?>
|
|
|
16 |
<?php }?>
|
|
|
17 |
</select>
|
|
|
18 |
</td>
|
|
|
19 |
</tr>
|
|
|
20 |
</table>
|
|
|
21 |
<?php } ?>
|
|
|
22 |
<?php echo $pagingDiv?>
|
|
|
23 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
|
|
|
24 |
<tr class="listHead">
|
|
|
25 |
<td class="leftid"><input type="checkbox" id="checkall" onclick="checkList('checkall')"></td>
|
|
|
26 |
<td><?php echo $spText['common']['Id']?></td>
|
|
|
27 |
<td><?php echo $spText['common']['Website']?></td>
|
|
|
28 |
<?php if(!empty($isAdmin)){ ?>
|
|
|
29 |
<td><?php echo $spText['common']['User']?></td>
|
|
|
30 |
<?php } ?>
|
|
|
31 |
<td><?php echo $spTextSA['Maximum Pages']?></td>
|
|
|
32 |
<td><?php echo $spTextSA['Pages Found']?></td>
|
|
|
33 |
<td><?php echo $spTextSA['Crawled Pages']?></td>
|
|
|
34 |
<td><?php echo $spText['label']['Cron']?></td>
|
|
|
35 |
<td><?php echo $spText['label']['Score']?></td>
|
|
|
36 |
<td><?php echo $spText['label']['Updated']?></td>
|
|
|
37 |
<td><?php echo $spText['common']['Status']?></td>
|
|
|
38 |
<td class="right"><?php echo $spText['common']['Action']?></td>
|
|
|
39 |
</tr>
|
|
|
40 |
<?php
|
|
|
41 |
$colCount = empty($isAdmin) ? 11 : 12;
|
|
|
42 |
if(count($list) > 0){
|
|
|
43 |
$catCount = count($list);
|
|
|
44 |
foreach($list as $i => $listInfo){
|
|
|
45 |
$class = ($i % 2) ? "blue_row" : "white_row";
|
|
|
46 |
if($catCount == ($i + 1)){
|
|
|
47 |
$leftBotClass = "tab_left_bot";
|
|
|
48 |
$rightBotClass = "tab_right_bot";
|
|
|
49 |
}else{
|
|
|
50 |
$leftBotClass = "td_left_border td_br_right";
|
|
|
51 |
$rightBotClass = "td_br_right";
|
|
|
52 |
}
|
|
|
53 |
$websiteLink = scriptAJAXLinkHref('siteauditor.php', 'content', "sec=edit&project_id={$listInfo['id']}", "{$listInfo['name']}")
|
|
|
54 |
?>
|
|
|
55 |
<tr class="<?php echo $class?>">
|
|
|
56 |
<td class="<?php echo $leftBotClass?>"><input type="checkbox" name="ids[]" value="<?php echo $listInfo['id']?>"></td>
|
|
|
57 |
<td class="td_br_right"><?php echo $listInfo['id']?></td>
|
|
|
58 |
<td class="td_br_right left"><?php echo $websiteLink?></td>
|
|
|
59 |
<?php if(!empty($isAdmin)){ ?>
|
|
|
60 |
<td class="td_br_right left"><?php echo $listInfo['username']?></td>
|
|
|
61 |
<?php } ?>
|
|
|
62 |
<td class="td_br_right"><?php echo $listInfo['max_links']?></td>
|
|
|
63 |
<td class="td_br_right"><?php echo $listInfo['total_links']?></td>
|
|
|
64 |
<td class="td_br_right"><?php echo $listInfo['crawled_links']?></td>
|
|
|
65 |
<td class="td_br_right"><?php echo $listInfo['cron'] ? $spText['common']['Yes'] : $spText['common']['No']; ?></td>
|
|
|
66 |
<td class="td_br_right">
|
|
|
67 |
<?php
|
|
|
68 |
if ($listInfo['score'] < 0) {
|
|
|
69 |
$scoreClass = 'minus';
|
|
|
70 |
$listInfo['score'] = $listInfo['score'] * -1;
|
|
|
71 |
} else {
|
|
|
72 |
$scoreClass = 'plus';
|
|
|
73 |
}
|
|
|
74 |
for($b=0;$b<=$listInfo['score'];$b++) echo "<span class='$scoreClass'> </span>";
|
|
|
75 |
?>
|
|
|
76 |
</td>
|
|
|
77 |
<td class="td_br_right bold"><?php echo $listInfo['last_updated']?></td>
|
|
|
78 |
<td class="td_br_right"><?php echo $listInfo['status'] ? $spText['common']["Active"] : $spText['common']["Inactive"]; ?></td>
|
|
|
79 |
<td class="<?php echo $rightBotClass?>" width="100px">
|
|
|
80 |
<?php
|
|
|
81 |
if($listInfo['status']){
|
|
|
82 |
$statVal = "Inactivate";
|
|
|
83 |
$statLabel = $spText['common']["Inactivate"];
|
|
|
84 |
}else{
|
|
|
85 |
$statVal = "Activate";
|
|
|
86 |
$statLabel = $spText['common']["Activate"];
|
|
|
87 |
}
|
|
|
88 |
?>
|
|
|
89 |
<select style="width: 110px;" name="action" id="action<?php echo $listInfo['id']?>" onchange="doAction('siteauditor.php', 'content', 'project_id=<?php echo $listInfo['id']?>&pageno=<?php echo $pageNo?>', 'action<?php echo $listInfo['id']?>')">
|
|
|
90 |
<option value="select">-- <?php echo $spText['common']['Select']?> --</option>
|
|
|
91 |
<?php if ($listInfo['status']) {?>
|
|
|
92 |
<?php if ($listInfo['max_links'] > $listInfo['crawled_links']) {?>
|
|
|
93 |
<option value="showrunproject"><?php echo $spTextSA['Run Project']?></option>
|
|
|
94 |
<?php }?>
|
|
|
95 |
<?php if ($listInfo['total_links'] > 0) {?>
|
|
|
96 |
<option value="viewreports"><?php echo $spText['label']['View Reports']?></option>
|
|
|
97 |
<option value="recheckreport"><?php echo $spTextSA['Recheck Pages']?></option>
|
|
|
98 |
<?php }?>
|
|
|
99 |
<?php } ?>
|
|
|
100 |
<option value="<?php echo $statVal?>"><?php echo $statLabel?></option>
|
|
|
101 |
<option value="edit"><?php echo $spText['common']['Edit']?></option>
|
|
|
102 |
<option value="delete"><?php echo $spText['common']['Delete']?></option>
|
|
|
103 |
</select>
|
|
|
104 |
</td>
|
|
|
105 |
</tr>
|
|
|
106 |
<?php
|
|
|
107 |
}
|
|
|
108 |
}else{
|
|
|
109 |
echo showNoRecordsList($colCount-2);
|
|
|
110 |
}
|
|
|
111 |
?>
|
|
|
112 |
<tr class="listBot">
|
|
|
113 |
<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
|
|
|
114 |
<td class="right"></td>
|
|
|
115 |
</tr>
|
|
|
116 |
</table>
|
|
|
117 |
<?php
|
|
|
118 |
if (SP_DEMO) {
|
|
|
119 |
$actFun = $inactFun = $delFun = "alertDemoMsg()";
|
|
|
120 |
} else {
|
|
|
121 |
$actFun = "confirmSubmit('siteauditor.php', 'listform', 'content', '&sec=activateall&pageno=$pageNo')";
|
|
|
122 |
$inactFun = "confirmSubmit('siteauditor.php', 'listform', 'content', '&sec=inactivateall&pageno=$pageNo')";
|
|
|
123 |
$delFun = "confirmSubmit('siteauditor.php', 'listform', 'content', '&sec=deleteall&pageno=$pageNo')";
|
|
|
124 |
}
|
|
|
125 |
?>
|
|
|
126 |
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
|
|
|
127 |
<tr>
|
|
|
128 |
<td style="padding-top: 6px;">
|
|
|
129 |
<a onclick="scriptDoLoad('siteauditor.php', 'content', 'sec=new')" href="javascript:void(0);" class="actionbut">
|
|
|
130 |
<?php echo $spTextPanel['New Project']?>
|
|
|
131 |
</a>
|
|
|
132 |
<a onclick="<?php echo $actFun?>" href="javascript:void(0);" class="actionbut">
|
|
|
133 |
<?php echo $spText['common']["Activate"]?>
|
|
|
134 |
</a>
|
|
|
135 |
<a onclick="<?php echo $inactFun?>" href="javascript:void(0);" class="actionbut">
|
|
|
136 |
<?php echo $spText['common']["Inactivate"]?>
|
|
|
137 |
</a>
|
|
|
138 |
<a onclick="<?php echo $delFun?>" href="javascript:void(0);" class="actionbut">
|
|
|
139 |
<?php echo $spText['common']['Delete']?>
|
|
|
140 |
</a>
|
|
|
141 |
</td>
|
|
|
142 |
</tr>
|
|
|
143 |
</table>
|
|
|
144 |
</form>
|