Пример #1
0
    return $times[$index];
}
if (isset($_GET['table']) && AJAX_request()) {
    $html = '<div class="table-responsive"><table class="table table-hover ' . $table_fixed . '"><thead><tr>';
    if ($table_fixed == '') {
        $html .= '<th class="col-md-4">' . $lang[5] . '</th><th class="hidden-xs col-md-2">' . $lang[6] . '</th><th class="hidden-xs col-md-2">' . $lang[7] . '</th><th class="hidden-xs col-md-2">' . $lang[28] . '</th>';
    } else {
        $html .= '<th class="col-xs-12 col-sm-6">' . $lang[5] . '</th><th class="hidden-xs col-xs-2 col-sm-2 col-md-2">' . $lang[6] . '</th><th class="hidden-xs col-xs-2 col-sm-2 col-md-2">' . $lang[7] . '</th>';
    }
    $html .= '<th class="hidden-xs col-md-2">' . $lang[8] . '</th></tr></thead><tbody>';
    //output appropriate items
    if (is_array($files) || is_object($files)) {
        foreach ($files as $index => $file) {
            $html .= '<tr>';
            if ($table_fixed == '') {
                $html .= '<td class="col-md-3">' . showfile($file) . '</td><td class="hidden-xs col-md-2">' . file_size($file) . '</td><td class="hidden-xs col-md-2">' . extension($file) . '</td><td class="hidden-xs col-md-2">' . fileTime($index, $file) . '</td>';
            } else {
                $html .= '<td class="col-xs-12 col-sm-5">' . showfile($file) . '</td><td class="hidden-xs col-xs-2 col-sm-2 col-md-2">' . file_size($file) . '</td><td class="hidden-xs col-xs-2 col-sm-2 col-md-2"><span class="label label-default">' . extension($file) . '</span></td>';
            }
            $html .= '<td class="hidden-xs col-xs-3 col-sm-3 col-md-3">' . action($file) . '</td></tr>';
        }
    }
    $html .= '<tr>';
    if ($table_fixed == '') {
        $html .= '<td colspan="5" class="col-xs-12 col-sm-12 col-md-12">';
    } else {
        $html .= '<td colspan="4" class="col-xs-12 col-sm-12 col-md-12">';
    }
    $html .= $lang[9] . ' : <mark>' . $page . '</mark> ' . $lang[10] . ' : <mark>' . $total_files . '</mark></td></tr></tbody></table></div>';
    if ($alert_msg != '') {
        $alert_msg = alert($alert_msg);
Пример #2
0
    return $times[$index];
}
if (isset($_GET['table']) && AJAX_request()) {
    $html = '<div class="well table-responsive"><table class="table table-hover ' . $table_fixed . '"><thead><tr>';
    if ($table_fixed == '') {
        $html .= '<th class="col-md-4">' . $lang[5] . '</th><th class="hidden-xs col-md-2">' . $lang[6] . '</th><th class="hidden-xs col-md-2">' . $lang[7] . '</th><th class="hidden-xs col-md-2">' . $lang[28] . '</th>';
    } else {
        $html .= '<th class="col-xs-12 col-sm-6">' . $lang[5] . '</th><th class="hidden-xs col-xs-2 col-sm-2 col-md-2">' . $lang[6] . '</th><th class="hidden-xs col-xs-2 col-sm-2 col-md-2">' . $lang[7] . '</th>';
    }
    $html .= '<th class="hidden-xs col-md-2">' . $lang[8] . '</th></tr></thead><tbody>';
    //output appropriate items
    if (is_array($files) || is_object($files)) {
        foreach ($files as $index => $file) {
            $html .= '<tr>';
            if ($table_fixed == '') {
                $html .= '<td class="col-md-3">' . showfile($file) . '</td><td class="hidden-xs col-md-2">' . file_size($file) . '</td><td class="hidden-xs col-md-2"><span class="label label-default">' . extension($file) . '</span></td><td class="hidden-xs col-md-2">' . fileTime($index, $file) . '</td>';
            } else {
                $html .= '<td class="col-xs-12 col-sm-5">' . showfile($file) . '</td><td class="hidden-xs col-xs-2 col-sm-2 col-md-2">' . file_size($file) . '</td><td class="hidden-xs col-xs-2 col-sm-2 col-md-2"><span class="label label-default">' . extension($file) . '</span></td>';
            }
            $html .= '<td class="hidden-xs col-xs-3 col-sm-3 col-md-3">' . action($file) . '</td></tr>';
        }
    }
    $html .= '<tr>';
    if ($table_fixed == '') {
        $html .= '<td colspan="5" class="col-xs-12 col-sm-12 col-md-12">';
    } else {
        $html .= '<td colspan="4" class="col-xs-12 col-sm-12 col-md-12">';
    }
    $html .= $lang[9] . ' : <span class="text-warning">' . $page . '</span> ' . $lang[10] . ' : <span class="text-warning">' . $total_files . '</span></td></tr></tbody></table></div>';
    if ($alert_msg != '') {
        $alert_msg = alert($alert_msg);