From 62f60a45ce1ca722030a515a219d9f05300b222b Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 21 Feb 2007 16:52:32 +0000 Subject: [PATCH] First cut of blocks admin page re-styling. MDL-8419 --- admin/blocks.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/admin/blocks.php b/admin/blocks.php index 2a83952674..8ddbc2500b 100644 --- a/admin/blocks.php +++ b/admin/blocks.php @@ -163,13 +163,18 @@ $table = new flexible_table('admin-blocks-compatible'); $table->define_columns(array('name', 'instances', 'version', 'hideshow', 'multiple', 'delete', 'settings')); + $table->column_style('instances', 'text-align', 'center'); + $table->column_style('version', 'text-align', 'center'); + $table->column_style('hideshow', 'text-align', 'center'); + $table->column_style('multiple', 'text-align', 'center'); + $table->column_style('delete', 'text-align', 'center'); + $table->column_style('settings', 'text-align', 'center'); $table->define_headers(array($strname, $strcourses, $strversion, $strhide.'/'.$strshow, $strmultiple, $strdelete, $strsettings)); $table->define_baseurl($CFG->wwwroot.'/'.$CFG->admin.'/blocks.php'); - - $table->set_attribute('cellspacing', '0'); $table->set_attribute('id', 'blocks'); - $table->set_attribute('class', 'generaltable generalbox'); - + $table->set_attribute('class', 'flexible generaltable generalbox'); + $table->set_attribute('style', 'margin:auto;'); + $table->set_attribute('cellpadding', '5'); $table->setup(); foreach ($blockbyname as $blockname => $blockid) { @@ -216,7 +221,7 @@ $table->add_data(array( ''.$blockobject->get_title().'', $blocklist, - $blockobject->get_version(), + ''.$blockobject->get_version().'', $visible, $multiple, $delete, -- 2.39.5