download->fields); $body = "
"; $max = 0; $total = 1; $dl = 0; foreach ($Download as $line) { $file = dbfields($line); if ($max < $file['cnt']) { $max = $file['cnt']; $midx = $total; } $dl += $file['cnt']; $total++; } $i = 1; foreach ($Download as $line) { $file = dbfields($line); $bgcolor = "#fff"; $w = "0px;"; $v = " "; if ($file['cnt']) { $midx == $i && $bgcolor = "#f88"; $w = 1000 - $file['cnt'] / $dl * 400 - 4; $v = "". sprintf("%2.2f", $file['cnt'] / $dl * 100). "%"; $w .= "px"; } $file['cnt'] = comma($file['cnt']); $body .= " "; $i++; } $body .= "
    "; $Language->download->notes = str_replace("\t", "", $Language->download->notes); $note = split("\n", $Language->download->notes); foreach ($note as $line) { $line = str_replace("<", "<", $line); $line = str_replace(">", ">", $line); $line = str_replace('\n', "
    ", $line); $body .= "
  • $line
  • "; } $body .= "
$fields[0] $fields[1] $fields[2] $fields[3] $fields[4] $fields[5]
$i ". $file['path']. " ". $file['cnt']. " $v ". $file['date']. " 削除...
". $Language->download->total. " $dl    
"; $client = new window; $client->name = 'client'; $client->width = "100%"; $client->display = 'block'; $client->caption = $Language->download->caption; $client->drag = false; $client->resize = false; $client->closebutton = true; $client->closeFunc = ''; $client->smallbutton = true; $client->height = ''; $client->border = false; $client->bgcolor = ''; $client->statusbar = false; $client->date = false; $client->time = false; $client->copy = false; $client->help = $help->$_REQUEST['cmd']; $client->Lang = $Language; $client->body = $body; $html .= $client->show(); $javascript .= " function del(path) { document.getElementById('confirmdialog').innerHTML= '". $Language->download->delconfirm. "'; $(function() { $('#confirmdialog').dialog({ title: '". $Language->caption->confirm. "', resizable: false, width:400, height:200, modal: true, buttons: { ". $Language->button->save. ": function() { $(this).dialog('close'); location.href='ctrl.php?cmd=". $_REQUEST['cmd']. "&action=del&path='+path; }, ". $Language->button->cancel. ": function() { $(this).dialog('close'); } } }); }); } function show_help() { if ($('#localhelp').css('display') == 'none') { $('#localhelp').css('display', 'block'); document.getElementById('helpimg').src='images/help_open.png'; } else { $('#localhelp').css('display', 'none'); document.getElementById('helpimg').src='images/help_close.png'; } } function windowGoResize() { var h = $(window).height(); document.getElementById('scroolBody').style.height=h-55+'px'; } windowGoResize(); window.onresize=windowGoResize;"; ?>