// change to tables width

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9848 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-11-03 15:35:19 +00:00
parent 5a397515ab
commit fa4ebdc23c
3 changed files with 21 additions and 19 deletions
@@ -174,8 +174,8 @@
{if isset($params.filter_key)}
<select onchange="$('#submitFilterButton{$table}').focus();$('#submitFilterButton{$table}').click();" name="{$table}Filter_{$params.filter_key}" {if isset($params.width)} style="width:{$params.width}px"{/if}>
<option value="" {if $params.value == 0 && $params.value != ''} selected="selected" {/if}>--</option>
{if isset($params.select) && is_array($params.select)}
{foreach $params.select AS $option_value => $option_display}
{if isset($params.list) && is_array($params.list)}
{foreach $params.list AS $option_value => $option_display}
<option value="{$option_value}" {if $option_display.selected == 'selected'} selected="selected"{/if}>{$option_display}</option>
{/foreach}
{/if}
+14 -12
View File
@@ -54,7 +54,7 @@ class AdminCustomersControllerCore extends AdminController
$genders[$gender->id] = $gender->name;
}
$this->fieldsDisplay = array(
$this->fieldsDisplay = array(
'id_customer' => array(
'title' => $this->l('ID'),
'align' => 'center',
@@ -62,7 +62,7 @@ class AdminCustomersControllerCore extends AdminController
),
'id_gender' => array(
'title' => $this->l('Gender'),
'width' => 30,
'width' => 50,
'align' => 'center',
'icon' => $genders_icon,
'orderby' => false,
@@ -72,31 +72,33 @@ class AdminCustomersControllerCore extends AdminController
),
'lastname' => array(
'title' => $this->l('Last Name'),
'width' => 80
'width' => 'auto'
),
'firstname' => array(
'title' => $this->l('First name'),
'width' => 60
'width' => 'auto'
),
'email' => array(
'title' => $this->l('E-mail address'),
'width' => 120,
'width' => 140,
),
'age' => array(
'title' => $this->l('Age'),
'width' => 30,
'search' => false
'width' => 50,
'search' => false,
'align' => 'center'
),
'active' => array(
'title' => $this->l('Enabled'),
'width' => 25,
'width' => 70,
'align' => 'center',
'active' => 'status',
'type' => 'bool',
'orderby' => false),
'orderby' => false
),
'newsletter' => array(
'title' => $this->l('News.'),
'width' => 25,
'width' => 70,
'align' => 'center',
'type' => 'bool',
'callback' => 'printNewsIcon',
@@ -104,7 +106,7 @@ class AdminCustomersControllerCore extends AdminController
),
'optin' => array(
'title' => $this->l('Opt.'),
'width' => 25,
'width' => 70,
'align' => 'center',
'type' => 'bool',
'callback' => 'printOptinIcon',
@@ -112,7 +114,7 @@ class AdminCustomersControllerCore extends AdminController
),
'date_add' => array(
'title' => $this->l('Registration'),
'width' => 30,
'width' => 70,
'type' => 'date',
'align' => 'right'
),
@@ -51,14 +51,14 @@ class AdminProductsController extends AdminController
$this->fieldsDisplay = array(
'id_product' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 20),
'image' => array('title' => $this->l('Photo'), 'align' => 'center', 'image' => 'p', 'width' => 45, 'orderby' => false, 'filter' => false, 'search' => false),
'name' => array('title' => $this->l('Name'), 'width' => 200, 'filter_key' => 'b!name'),
'reference' => array('title' => $this->l('Reference'), 'align' => 'center', 'width' => 20),
'image' => array('title' => $this->l('Photo'), 'align' => 'center', 'image' => 'p', 'width' => 70, 'orderby' => false, 'filter' => false, 'search' => false),
'name' => array('title' => $this->l('Name'), 'filter_key' => 'b!name'),
'reference' => array('title' => $this->l('Reference'), 'align' => 'center', 'width' => 80),
'name_category' => array('title' => $this->l('Category'), 'width' => 100, 'filter_key' => 'cl!name'),
'price' => array('title' => $this->l('Base price'), 'width' => 70, 'price' => true, 'align' => 'right', 'filter_key' => 'a!price'),
'price_final' => array('title' => $this->l('Final price'), 'width' => 70, 'price' => true, 'align' => 'right', 'havingFilter' => true, 'orderby' => false),
'active' => array('title' => $this->l('Displayed'), 'active' => 'status', 'filter_key' => 'a!active', 'align' => 'center', 'type' => 'bool', 'orderby' => false),
'position' => array('title' => $this->l('Position'), 'width' => 40,'filter_key' => 'cp!position', 'align' => 'center', 'position' => 'position'),
'active' => array('title' => $this->l('Displayed'), 'width' => 70, 'active' => 'status', 'filter_key' => 'a!active', 'align' => 'center', 'type' => 'bool', 'orderby' => false),
'position' => array('title' => $this->l('Position'), 'width' => 70,'filter_key' => 'cp!position', 'align' => 'center', 'position' => 'position'),
);
/* Join categories table */