コード例 #1
0
            } else {
                $overhead = '-';
            }
        }
        // end if
    }
    // end if (isset($each_table['TABLE_ROWS'])
    if ($num_columns > 0 && $num_tables > $num_columns && $row_count % $num_columns == 0) {
        $row_count = 1;
        $odd_row = true;
        ?>
    </tr>
</tbody>
</table>
        <?php 
        PMA_TableHeader();
    }
    ?>
<tr class="<?php 
    echo $odd_row ? 'odd' : 'even';
    $odd_row = !$odd_row;
    ?>
">
    <td align="center">
        <input type="checkbox" name="selected_tbl[]"
            value="<?php 
    echo $table_encoded;
    ?>
"
            id="checkbox_tbl_<?php 
    echo $i;
コード例 #2
0
ファイル: db_structure.php プロジェクト: bugyak/phporadmin
    if (PMA_Tracker::isActive()) {
        if (PMA_Tracker::isTracked($GLOBALS["db"], $truename)) {
            $tracking_icon = '<a href="tbl_tracking.php?' . $url_query . '&amp;table=' . $truename . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye.png" alt="' . __('Tracking is active.') . '" title="' . __('Tracking is active.') . '" /></a>';
        } elseif (PMA_Tracker::getVersion($GLOBALS["db"], $truename) > 0) {
            $tracking_icon = '<a href="tbl_tracking.php?' . $url_query . '&amp;table=' . $truename . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye_grey.png" alt="' . __('Tracking is not active.') . '" title="' . __('Tracking is not active.') . '" /></a>';
        }
    }
    if ($num_columns > 0 && $num_tables > $num_columns && $row_count % $num_columns == 0) {
        $row_count = 1;
        $odd_row = true;
        ?>
    </tr>
</tbody>
</table>
        <?php 
        PMA_TableHeader(false, $server_slave_status);
    }
    $ignored = false;
    $do = false;
    if ($server_slave_status) {
        ////////////////////////////////////////////////////////////////
        if (strlen(array_search($truename, $server_slave_Do_Table)) > 0 || strlen(array_search($db, $server_slave_Do_DB)) > 0 || count($server_slave_Do_DB) == 1 && count($server_slave_Ignore_DB) == 1) {
            $do = true;
        }
        foreach ($server_slave_Wild_Do_Table as $db_table) {
            $table_part = PMA_extract_db_or_table($db_table, 'table');
            if ($db == PMA_extract_db_or_table($db_table, 'db') && preg_match("@^" . substr($table_part, 0, strlen($table_part) - 1) . "@", $truename)) {
                $do = true;
            }
        }
        ////////////////////////////////////////////////////////////////////
コード例 #3
0
ファイル: db_structure.php プロジェクト: nhodges/phpmyadmin
     * 1. for views, we don't know the number of rows at this point
     * 2. for tables, another source could have populated them since the
     *    page was generated
     *
     * I could have used the PHP ternary conditional operator but I find
     * the code easier to read without this operator.
     */
    list($browse_table, $search_table, $browse_table_label, $empty_table, $tracking_icon) = PMA_getHtmlForActionLinks($current_table, $table_is_view, $tbl_url_query, $titles, $truename, $db_is_information_schema, $url_query);
    if (!$db_is_information_schema) {
        list($drop_query, $drop_message) = PMA_getTableDropQueryAndMessage($table_is_view, $current_table);
    }
    if ($num_columns > 0 && $num_tables > $num_columns && $row_count % $num_columns == 0) {
        $row_count = 1;
        $odd_row = true;
        $response->addHTML('</tr></tbody></table>');
        $response->addHTML(PMA_TableHeader(false, $server_slave_status));
    }
    list($do, $ignored) = PMA_getServerSlaveStatus($server_slave_status, $truename);
    list($html_output, $odd_row) = PMA_getHtmlForStructureTableRow($i, $odd_row, $table_is_view, $current_table, $checked, $browse_table_label, $tracking_icon, $server_slave_status, $browse_table, $tbl_url_query, $search_table, $db_is_information_schema, $titles, $empty_table, $drop_query, $drop_message, $collation, $formatted_size, $unit, $overhead, isset($create_time) ? $create_time : '', isset($update_time) ? $update_time : '', isset($check_time) ? $check_time : '', $is_show_stats, $ignored, $do, $colspan_for_structure);
    $response->addHTML($html_output);
}
// end foreach
// Show Summary
$response->addHTML('</tbody>');
$response->addHTML(PMA_getHtmlBodyForTableSummary($num_tables, $server_slave_status, $db_is_information_schema, $sum_entries, $db_collation, $is_show_stats, $sum_size, $overhead_size, $create_time_all, $update_time_all, $check_time_all, $sum_row_count_pre));
$response->addHTML('</table>');
//check all
$response->addHTML(PMA_getHtmlForCheckAllTables($pmaThemeImage, $text_dir, $overhead_check, $db_is_information_schema, $hidden_fields));
$response->addHTML('</form>');
//end of form
// display again the table list navigator