// 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)} {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}> <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> <option value="" {if $params.value == 0 && $params.value != ''} selected="selected" {/if}>--</option>
{if isset($params.select) && is_array($params.select)} {if isset($params.list) && is_array($params.list)}
{foreach $params.select AS $option_value => $option_display} {foreach $params.list AS $option_value => $option_display}
<option value="{$option_value}" {if $option_display.selected == 'selected'} selected="selected"{/if}>{$option_display}</option> <option value="{$option_value}" {if $option_display.selected == 'selected'} selected="selected"{/if}>{$option_display}</option>
{/foreach} {/foreach}
{/if} {/if}
+14 -12
View File
@@ -54,7 +54,7 @@ class AdminCustomersControllerCore extends AdminController
$genders[$gender->id] = $gender->name; $genders[$gender->id] = $gender->name;
} }
$this->fieldsDisplay = array( $this->fieldsDisplay = array(
'id_customer' => array( 'id_customer' => array(
'title' => $this->l('ID'), 'title' => $this->l('ID'),
'align' => 'center', 'align' => 'center',
@@ -62,7 +62,7 @@ class AdminCustomersControllerCore extends AdminController
), ),
'id_gender' => array( 'id_gender' => array(
'title' => $this->l('Gender'), 'title' => $this->l('Gender'),
'width' => 30, 'width' => 50,
'align' => 'center', 'align' => 'center',
'icon' => $genders_icon, 'icon' => $genders_icon,
'orderby' => false, 'orderby' => false,
@@ -72,31 +72,33 @@ class AdminCustomersControllerCore extends AdminController
), ),
'lastname' => array( 'lastname' => array(
'title' => $this->l('Last Name'), 'title' => $this->l('Last Name'),
'width' => 80 'width' => 'auto'
), ),
'firstname' => array( 'firstname' => array(
'title' => $this->l('First name'), 'title' => $this->l('First name'),
'width' => 60 'width' => 'auto'
), ),
'email' => array( 'email' => array(
'title' => $this->l('E-mail address'), 'title' => $this->l('E-mail address'),
'width' => 120, 'width' => 140,
), ),
'age' => array( 'age' => array(
'title' => $this->l('Age'), 'title' => $this->l('Age'),
'width' => 30, 'width' => 50,
'search' => false 'search' => false,
'align' => 'center'
), ),
'active' => array( 'active' => array(
'title' => $this->l('Enabled'), 'title' => $this->l('Enabled'),
'width' => 25, 'width' => 70,
'align' => 'center', 'align' => 'center',
'active' => 'status', 'active' => 'status',
'type' => 'bool', 'type' => 'bool',
'orderby' => false), 'orderby' => false
),
'newsletter' => array( 'newsletter' => array(
'title' => $this->l('News.'), 'title' => $this->l('News.'),
'width' => 25, 'width' => 70,
'align' => 'center', 'align' => 'center',
'type' => 'bool', 'type' => 'bool',
'callback' => 'printNewsIcon', 'callback' => 'printNewsIcon',
@@ -104,7 +106,7 @@ class AdminCustomersControllerCore extends AdminController
), ),
'optin' => array( 'optin' => array(
'title' => $this->l('Opt.'), 'title' => $this->l('Opt.'),
'width' => 25, 'width' => 70,
'align' => 'center', 'align' => 'center',
'type' => 'bool', 'type' => 'bool',
'callback' => 'printOptinIcon', 'callback' => 'printOptinIcon',
@@ -112,7 +114,7 @@ class AdminCustomersControllerCore extends AdminController
), ),
'date_add' => array( 'date_add' => array(
'title' => $this->l('Registration'), 'title' => $this->l('Registration'),
'width' => 30, 'width' => 70,
'type' => 'date', 'type' => 'date',
'align' => 'right' 'align' => 'right'
), ),
@@ -51,14 +51,14 @@ class AdminProductsController extends AdminController
$this->fieldsDisplay = array( $this->fieldsDisplay = array(
'id_product' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 20), '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), 'image' => array('title' => $this->l('Photo'), 'align' => 'center', 'image' => 'p', 'width' => 70, 'orderby' => false, 'filter' => false, 'search' => false),
'name' => array('title' => $this->l('Name'), 'width' => 200, 'filter_key' => 'b!name'), 'name' => array('title' => $this->l('Name'), 'filter_key' => 'b!name'),
'reference' => array('title' => $this->l('Reference'), 'align' => 'center', 'width' => 20), 'reference' => array('title' => $this->l('Reference'), 'align' => 'center', 'width' => 80),
'name_category' => array('title' => $this->l('Category'), 'width' => 100, 'filter_key' => 'cl!name'), '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' => 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), '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), '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' => 40,'filter_key' => 'cp!position', 'align' => 'center', 'position' => 'position'), 'position' => array('title' => $this->l('Position'), 'width' => 70,'filter_key' => 'cp!position', 'align' => 'center', 'position' => 'position'),
); );
/* Join categories table */ /* Join categories table */