15 |
my $dsn = $Conf{SearchDSN}; |
my $dsn = $Conf{SearchDSN}; |
16 |
my $db_user = $Conf{SearchUser} || ''; |
my $db_user = $Conf{SearchUser} || ''; |
17 |
|
|
18 |
my $index_path = $Conf{HyperEstraierIndex}; |
my $hest_index_path = $Conf{HyperEstraierIndex}; |
|
if ($index_path) { |
|
|
$index_path = $TopDir . '/' . $index_path; |
|
|
$index_path =~ s#//#/#g; |
|
|
} |
|
19 |
|
|
20 |
my $dbh; |
my $dbh; |
21 |
|
|
194 |
my $offset = $param->{'offset'} || 0; |
my $offset = $param->{'offset'} || 0; |
195 |
$offset *= $on_page; |
$offset *= $on_page; |
196 |
|
|
197 |
die "no index_path?" unless ($index_path); |
die "no index_path?" unless ($hest_index_path); |
198 |
|
|
199 |
use HyperEstraier; |
use HyperEstraier; |
200 |
|
|
201 |
my ($index_path, $index_node_url) = getHyperEstraier_url($index_path); |
my ($index_path, $index_node_url) = getHyperEstraier_url($hest_index_path); |
202 |
|
|
203 |
# open the database |
# open the database |
204 |
my $db; |
my $db; |
374 |
if (e.checked) |
if (e.checked) |
375 |
{ |
{ |
376 |
var ret = e.name.match("fcb(.*)"); |
var ret = e.name.match("fcb(.*)"); |
377 |
suma += parseInt(eval("document.forma.fss"+ret[1]+".value")); |
suma += parseInt(eval("document.forma.fss"+ret[1]+".value") || 0); |
378 |
|
|
379 |
} |
} |
380 |
} |
} |
422 |
$host = $backup->{'host'}; |
$host = $backup->{'host'}; |
423 |
} |
} |
424 |
my $ftype = ""; |
my $ftype = ""; |
425 |
|
|
426 |
$retHTML .= "<tr" . $color[$i %2 ] . ">"; |
$retHTML .= |
427 |
$retHTML .= '<td class="fview"><input type="checkbox" name="fcb' . |
'<tr' . $color[$i %2 ] . '> |
428 |
$backup->{'hostid'}.'_'.$backup->{'backupnum'} . |
<td class="fview">'; |
429 |
'" value="' . $backup->{'hostid'}.'_'.$backup->{'backupnum'} . |
if (($backup->{'fs_size'} || 0) > 0) { |
430 |
'" onClick="sumiraj();"></td>'; |
$retHTML .= ' |
431 |
|
<input type="checkbox" name="fcb' . |
432 |
|
$backup->{'hostid'}.'_'.$backup->{'backupnum'} . |
433 |
|
'" value="' . $backup->{'hostid'}.'_'.$backup->{'backupnum'} . |
434 |
|
'" onClick="sumiraj();">'; |
435 |
|
} |
436 |
$retHTML .= |
$retHTML .= |
437 |
|
'</td>' . |
438 |
'<td align="right">' . $backup->{'host'} . ':' . $backup->{'share'} . '</td>' . |
'<td align="right">' . $backup->{'host'} . ':' . $backup->{'share'} . '</td>' . |
439 |
'<td align="center">' . $backup->{'backupnum'} . '</td>' . |
'<td align="center">' . $backup->{'backupnum'} . '</td>' . |
440 |
'<td align="center">' . $backup->{'type'} . '</td>' . |
'<td align="center">' . $backup->{'type'} . '</td>' . |
444 |
'<td align="right">' . $backup->{'fs_size'} . |
'<td align="right">' . $backup->{'fs_size'} . |
445 |
'<input type="hidden" name="fss'.$backup->{'hostid'}.'_'.$backup->{'backupnum'} . '"'. |
'<input type="hidden" name="fss'.$backup->{'hostid'}.'_'.$backup->{'backupnum'} . '"'. |
446 |
'value="'. $backup->{'fs_size'} .'"'.'</td>' . |
'value="'. $backup->{'fs_size'} .'"'.'</td>' . |
|
"</tr>\n"; |
|
|
|
|
447 |
|
|
448 |
|
"</tr>\n"; |
449 |
} |
} |
450 |
|
|
451 |
$retHTML .= "</table>"; |
$retHTML .= "</table>"; |