Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 10. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Setting pixel width of columns

phpMyEdit Configuration     Setting pixel width of columns
Odoslať novú tému   Odpovedať na tému    
 
ChrisF     Založený: 18.12.2015   Príspevky: 2  
Príspevok Zaslal: 2015-12-18 12:46
Návrat hore  Odpovedať s citátom     

Hi,

I am a noobie to phpMyEdit, but finding it extremely useful.

I have a very basic question which I have searched the forum for and not found an answer.

I simply want to know how to define the widths of columns in pixels, but the documented collattr width property (which would have been perfect) just doesnt work for me (or others it seems).

I have tried this in many different ways, with "px" and without, and various different types of quotes.

I have tried many variations of setting a postfix for individual data item, and using css table-layout:fixed; and display: block etc but to no avail.

Can anyone suggest where I may be going wrong as this seems like such a basic thing, and I have spent nearly a week of evenings on this one simple thing.

Maybe I am just overlooking something really simple.

Thanks

Chris

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2015-12-21 17:40
Návrat hore  Odpovedať s citátom     

http://hockinson.us/php_form_generator/colattrs.php?PME_sys_fl=1&PME_sys_fm=0&PME_sys_qfn=

$opts['fdd']['varchar_column'] = array(
'default' => '',
'colattrs' => 'style="background-color:#ffff00;"',
'help|ACP' => 'Limit 255 characters',
'input' => '',
'maxlen|ACP' => 255,
'name' => 'Varchar Column',
'options' => 'ACPVDFL',
'select' => 'T',
'size' => 72,
'sqlw' => 'IF($val_qas = "", NULL, $val_qas)',
'sort' => true
);


$opts['fdd']['email_varchar_column'] = array(
'colattrs' => 'style="width:500px;background-color:#00ffff;"',
'default' => '',
'help|ACP' => 'Limit 255 characters',
'input' => '',
'maxlen|ACP' => 255,
'name' => 'Email Varchar Column',
'options' => 'ACPVDFL',
'select' => 'T',
'size' => 72,
'sqlw' => 'TRIM("$val_as")',
'URL' => 'mailto:$value',
'sort' => true
);

 
ChrisF     Založený: 18.12.2015   Príspevky: 2  
Príspevok Zaslal: 2016-01-01 22:14
Návrat hore  Odpovedať s citátom     

doug Napísal:
http://hockinson.us/php_form_generator/colattrs.php?PME_sys_fl=1&PME_sys_fm=0&PME_sys_qfn=

$opts['fdd']['varchar_column'] = array(
'default' => '',
'colattrs' => 'style="background-color:#ffff00;"',
'help|ACP' => 'Limit 255 characters',
'input' => '',
'maxlen|ACP' => 255,
'name' => 'Varchar Column',
'options' => 'ACPVDFL',
'select' => 'T',
'size' => 72,
'sqlw' => 'IF($val_qas = "", NULL, $val_qas)',
'sort' => true
);


$opts['fdd']['email_varchar_column'] = array(
'colattrs' => 'style="width:500px;background-color:#00ffff;"',
'default' => '',
'help|ACP' => 'Limit 255 characters',
'input' => '',
'maxlen|ACP' => 255,
'name' => 'Email Varchar Column',
'options' => 'ACPVDFL',
'select' => 'T',
'size' => 72,
'sqlw' => 'TRIM("$val_as")',
'URL' => 'mailto:$value',
'sort' => true
);


Thanks for your reply doug,

but a couple of things;

Your link is not working, it was working when I first looked, but not any more.
I did see that it appeared to be what I was looking for , but I have copied your examples into my definition and it makes no difference to my column widths. My problem appears then not to be in the definition, it must be somewhere else, maybe in the surrounding html or in the CSS

I have in any case tries all of the items in your example definitions

Can you post me the source for your example (html, php, css) so that I may see where I am going wrong. Nothing I do will alter the width of my columns. If I could start from an example that does enable column width changes through these definitions, then I can probably find out why mine is not working.

Thanks

Chris

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2016-01-01 22:27
Návrat hore  Odpovedať s citátom     

yes, that link is dead.

'colattrs' => 'style="width:500px;background-color:#00ffff;"',

the above works for me in 3 different browsers, this is all you need, so if it fails then post your entire script and css and everything ... though I don't know that anyone is going to bother to study it in detail since the usage of colattrs is very simple.

have you spelled colattrs correctly?

when you View Source in that page, does the style appear in the source code?

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2016-01-01 23:46
Návrat hore  Odpovedať s citátom     

If you did not grab the latest class files from the CVS then replace what you have with two files found at
http://opensource.platon.org/cvs/cvs.php/phpMyEdit/

I doubt it but "maybe" the newer class files fixed something relating to colattrs

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov