103 |
- |
1 |
<?php
|
|
|
2 |
echo showSectionHead($spTextPanel["Proxy Perfomance"]);
|
|
|
3 |
$searchFun = "scriptDoLoadPost('proxy.php', 'listform', 'content')";
|
|
|
4 |
?>
|
|
|
5 |
<form name="listform" id="listform" onsubmit="<?php echo $searchFun?>">
|
|
|
6 |
<input type="hidden" name="sec" value="perfomance">
|
|
|
7 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="search">
|
|
|
8 |
<tr>
|
|
|
9 |
<th><?php echo $spText['button']['Search']?>: </th>
|
|
|
10 |
<td><input type="text" name="keyword" value="<?php echo htmlentities($keyword, ENT_QUOTES)?>" onblur="<?php echo $searchFun?>"></td>
|
|
|
11 |
<th><?php echo $spText['common']['Period']?>:</th>
|
|
|
12 |
<td>
|
|
|
13 |
<input type="text" value="<?php echo $fromTime?>" name="from_time"/>
|
|
|
14 |
<input type="text" value="<?php echo $toTime?>" name="to_time"/>
|
|
|
15 |
<script>
|
|
|
16 |
$(function() {
|
|
|
17 |
$( "input[name='from_time'], input[name='to_time']").datepicker({dateFormat: "yy-mm-dd"});
|
|
|
18 |
});
|
|
|
19 |
</script>
|
|
|
20 |
</td>
|
|
|
21 |
<th><?php echo $spText['label']['Order By']?>: </th>
|
|
|
22 |
<td>
|
|
|
23 |
<select name="order_by" onchange="<?php echo $searchFun?>">
|
|
|
24 |
<?php
|
|
|
25 |
$inactCheck = $actCheck = "";
|
|
|
26 |
if ($statVal == 'success') {
|
|
|
27 |
$actCheck = "selected";
|
|
|
28 |
} elseif($statVal == 'fail') {
|
|
|
29 |
$inactCheck = "selected";
|
|
|
30 |
}
|
|
|
31 |
?>
|
|
|
32 |
<option value="success" <?php echo $actCheck?> ><?php echo $spText['label']["Success"]?></option>
|
|
|
33 |
<option value="fail" <?php echo $inactCheck?> ><?php echo $spText['label']["Fail"]?></option>
|
|
|
34 |
</select>
|
|
|
35 |
</td>
|
|
|
36 |
<td>
|
|
|
37 |
<a href="javascript:void(0);" onclick="<?php echo $searchFun?>" class="actionbut"><?php echo $spText['button']['Search']?></a>
|
|
|
38 |
</td>
|
|
|
39 |
</tr>
|
|
|
40 |
</table>
|
|
|
41 |
<?php echo $pagingDiv?>
|
|
|
42 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
|
|
|
43 |
<tr class="listHead">
|
|
|
44 |
<td class="leftid"><input type="checkbox" id="checkall" onclick="checkList('checkall')"></td>
|
|
|
45 |
<td><?php echo $spText['common']['Id']?></td>
|
|
|
46 |
<td><?php echo $spText['label']['Proxy']?></td>
|
|
|
47 |
<td><?php echo $spTextProxy['Request Count']?></td>
|
|
|
48 |
<td><?php echo $spText['label']['Success']?></td>
|
|
|
49 |
<td class="right"><?php echo $spText['label']['Fail']?></td>
|
|
|
50 |
</tr>
|
|
|
51 |
<?php
|
|
|
52 |
$colCount = 6;
|
|
|
53 |
if (count($list) > 0) {
|
|
|
54 |
$catCount = count($list);
|
|
|
55 |
foreach ($list as $i => $listInfo) {
|
|
|
56 |
$class = ($i % 2) ? "blue_row" : "white_row";
|
|
|
57 |
if ($catCount == ($i + 1)) {
|
|
|
58 |
$leftBotClass = "tab_left_bot";
|
|
|
59 |
$rightBotClass = "tab_right_bot";
|
|
|
60 |
} else {
|
|
|
61 |
$leftBotClass = "td_left_border td_br_right";
|
|
|
62 |
$rightBotClass = "td_br_right";
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
$logLink = scriptAJAXLinkHrefDialog('proxy.php', 'content', "sec=edit&proxyId=".$listInfo['proxy_id'], $listInfo['proxy'].":".$listInfo['port']);
|
|
|
66 |
$countLink = scriptAJAXLinkHrefDialog('log.php', 'content', "sec=crawl_log"."$urlParams&status=&proxy_id=".$listInfo['proxy_id'], $listInfo['count'], '', 'OnClick', 1000);
|
|
|
67 |
$successLink = scriptAJAXLinkHrefDialog('log.php', 'content', "sec=crawl_log"."$urlParams&status=success&proxy_id=".$listInfo['proxy_id'], $listInfo['success'], '', 'OnClick', 1000);
|
|
|
68 |
$failLink = scriptAJAXLinkHrefDialog('log.php', 'content', "sec=crawl_log"."$urlParams&status=fail&proxy_id=".$listInfo['proxy_id'], $listInfo['fail'], '', 'OnClick', 1000);
|
|
|
69 |
?>
|
|
|
70 |
<tr class="<?php echo $class?>">
|
|
|
71 |
<td class="<?php echo $leftBotClass?>"><input type="checkbox" name="ids[]" value="<?php echo $listInfo['id']?>"></td>
|
|
|
72 |
<td class="td_br_right"><?php echo $listInfo['proxy_id']?></td>
|
|
|
73 |
<td class="td_br_right left"><?php echo $logLink?></td>
|
|
|
74 |
<td class="td_br_right"><?php echo $countLink?></td>
|
|
|
75 |
<td class="td_br_right"><?php echo $successLink?></td>
|
|
|
76 |
<td class="<?php echo $rightBotClass?>"><?php echo $failLink?></td>
|
|
|
77 |
</tr>
|
|
|
78 |
<?php
|
|
|
79 |
}
|
|
|
80 |
} else {
|
|
|
81 |
echo showNoRecordsList($colCount-2);
|
|
|
82 |
}
|
|
|
83 |
?>
|
|
|
84 |
<tr class="listBot">
|
|
|
85 |
<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
|
|
|
86 |
<td class="right"></td>
|
|
|
87 |
</tr>
|
|
|
88 |
</table>
|
|
|
89 |
</form>
|