Change visual of metaconsole

This commit is contained in:
m-lopez-f 2015-07-02 08:54:21 +02:00
parent 2976a794d5
commit d7bd4773db
4 changed files with 15 additions and 23 deletions

View File

@ -151,11 +151,11 @@ if ($create) {
$own_info = get_user_info ($config['id_user']); $own_info = get_user_info ($config['id_user']);
$table->width = '98%'; $table->width = '100%';
$table->border = 0; $table->border = 0;
$table->cellspacing = 3; $table->cellspacing = 0;
$table->cellpadding = 5; $table->cellpadding = 0;
$table->class = "databox"; $table->class = "databox filters";
$table->style[0] = 'vertical-align: top;'; $table->style[0] = 'vertical-align: top;';
$table->valign[1] = 'top'; $table->valign[1] = 'top';
@ -163,8 +163,6 @@ $table->valign[1] = 'top';
if (defined('METACONSOLE')) { if (defined('METACONSOLE')) {
$table->width = '100%'; $table->width = '100%';
$table->border = 0; $table->border = 0;
$table->cellspacing = 3;
$table->cellpadding = 5;
if ($id) { if ($id) {
$table->head[0] = __('Update Filter'); $table->head[0] = __('Update Filter');
} }
@ -174,7 +172,6 @@ if (defined('METACONSOLE')) {
$table->head_colspan[0] = 4; $table->head_colspan[0] = 4;
$table->headstyle[0] = 'text-align: center'; $table->headstyle[0] = 'text-align: center';
$table->class = "databox data";
$table->style[0] = ''; $table->style[0] = '';
$table->valign[1] = ''; $table->valign[1] = '';
} }

View File

@ -100,8 +100,6 @@ else {
$table->width = '100%'; $table->width = '100%';
$table->class = 'databox filters'; $table->class = 'databox filters';
if (defined("METACONSOLE")) { if (defined("METACONSOLE")) {
$table->class = 'databox data';
if ($id_group) if ($id_group)
$table->head[0] = __('Update Group'); $table->head[0] = __('Update Group');
else else
@ -109,6 +107,9 @@ if (defined("METACONSOLE")) {
$table->head_colspan[0] = 4; $table->head_colspan[0] = 4;
$table->headstyle[0] = 'text-align: center'; $table->headstyle[0] = 'text-align: center';
} }
$table->style[0] = 'font-weight: bold';
$table->data = array (); $table->data = array ();
$table->data[0][0] = __('Name'); $table->data[0][0] = __('Name');
$table->data[0][1] = html_print_input_text ('name', $name, '', 35, 100, true); $table->data[0][1] = html_print_input_text ('name', $name, '', 35, 100, true);

View File

@ -251,18 +251,12 @@ else {
} }
$table = null; $table = null;
if (defined('METACONSOLE')) {
$table->cellpadding = 0; $table->cellpadding = 0;
$table->cellspacing = 0; $table->cellspacing = 0;
$table->width = '100%'; $table->width = '100%';
$table->class = "databox"; $table->class = "databox data";
}
else {
$table->cellpadding = 0;
$table->cellspacing = 0;
$table->width = '100%';
$table->class = "databox data";
}
$table->head = array (); $table->head = array ();
$table->data = array (); $table->data = array ();
$table->align = array (); $table->align = array ();
@ -287,7 +281,7 @@ if (!defined('METACONSOLE')) {
$table->size[2] = '150px'; $table->size[2] = '150px';
} }
$table->align[3] = "center"; $table->align[3] = "left";
if (defined('METACONSOLE')) { if (defined('METACONSOLE')) {
$table->size[6] = '110px'; $table->size[6] = '110px';

View File

@ -451,7 +451,7 @@ if (!empty ($table->data)) {
html_print_table ($table); html_print_table ($table);
} }
else { else {
echo '<div class="nf">'.__('This user doesn\'t have any assigned profile/group').'</div>'; ui_print_info_message ( array('no_close'=>true, 'message'=> __('This user doesn\'t have any assigned profile/group.') ) );
} }
enterprise_hook('close_meta_frame'); enterprise_hook('close_meta_frame');