// List columns can be fixed width or extensible

This commit is contained in:
tDidierjean
2011-11-03 14:35:15 +00:00
parent 2ec2a3d25f
commit d9c30b9064
3 changed files with 18 additions and 10 deletions
@@ -103,16 +103,25 @@
cellpadding="0" cellspacing="0"
style="width: 100%; margin-bottom:10px;"
>
<col width="10px" />
{foreach $fields_display AS $key => $params}
<col {if isset($params.width) && $params.width != 'auto'}width="{$params.width}px"{/if}/>
{/foreach}
{if $shop_link_type}
<col width="80px" />
{/if}
{if $has_actions}
<col width="52px" />
{/if}
<thead>
<tr class="nodrag nodrop">
<th style="width:10px;">
<th>
{if $has_bulk_actions}
<input type="checkbox" name="checkme" class="noborder" onclick="checkDelBoxes(this.form, '{$table}Box[]', this.checked)" />
{/if}
</th>
{foreach $fields_display AS $key => $params}
<th {if isset($params.widthColumn)} style="width: {if $params.widthColumn == 'auto'}auto{else}{$params.widthColumn}px{/if}"{/if}
{if isset($params.align)} class="{$params.align}"{/if}>
<th {if isset($params.align)} class="{$params.align}"{/if}>
{$params.title}
{if (!isset($params.orderby) || $params.orderby) && !$simple_header}
<br />
@@ -125,9 +134,8 @@
{/if}
</th>
{/foreach}
{if $shop_link_type}
<th style="width: 80px">
<th>
{if $shop_link_type == 'shop'}
{l s='shop'}
{else}
@@ -136,7 +144,7 @@
</th>
{/if}
{if $has_actions}
<th style="width: 52px">{l s='Actions'}</th>
<th>{l s='Actions'}</th>
{/if}
</tr>
{if !$simple_header}