I have install PhpMyEdit rel. 5.4 and I have a table with many columns, the first is the id (auto increment) and after some varchar.
When I call the page the initial sort is always the id and the first column listed after id.
I try to insert or delete the "I" from:
| Code: |
// Options you wish to give the users
// A - add, C - change, P - copy, V - view, D - delete,
// F - filter, I - initial sort suppressed
$opts['options'] = 'ACPVDF'; |
I try to modify the:
| Code: |
// Sorting field(s)
// $opts['sort_field'] = array('idSentenza');
$opts['sort_field'] = array('Tipo, Anno, Pdf'); |
but the sort (effective) is:
Ordinato per: IdSentenza crescente, Tipo crescente
This is my fields section:
| Code: |
$opts['fdd']['idSentenza'] = array(
'name' => 'IdSentenza',
'select' => 'T',
'options' => 'AVCPDR', // auto increment
'maxlen' => 11,
'default' => '0',
'sort' => false
);
$opts['fdd']['idPagina'] = array(
'name' => 'IdPagina',
'select' => 'T',
'options' => 'H',
'maxlen' => 11,
'default' => '1',
'required' => true,
'sort' => false
);
$opts['fdd']['tipo'] = array(
'name' => 'Tipo',
'select' => 'T',
'maxlen' => 11,
'default' => '0',
'required' => true,
'sort' => true
);
$opts['fdd']['anno'] = array(
'name' => 'Anno',
'select' => 'T',
'maxlen' => 4,
'default' => '0',
'required' => true,
'sort' => true
);
$opts['fdd']['pdf'] = array(
'name' => 'Pdf',
'select' => 'T',
'maxlen' => 255,
'required' => true,
'sort' => true
);
$opts['fdd']['ocr'] = array(
'name' => 'Ocr',
'select' => 'T',
'maxlen' => 65535,
'trimlen' => 100,
'textarea' => array(
'rows' => 5,
'cols' => 50),
'required' => true,
'sort' => false
);
$opts['fdd']['abstract'] = array(
'name' => 'Abstract',
'select' => 'T',
'maxlen' => 65535,
'trimlen' => 100,
'textarea' => array(
'rows' => 5,
'cols' => 50),
'required' => false,
'sort' => false
);
$opts['fdd']['keyword'] = array(
'name' => 'Keyword',
'select' => 'T',
'maxlen' => 65535,
'trimlen' => 100,
'textarea' => array(
'rows' => 5,
'cols' => 50),
'required' => false,
'sort' => false
); |
Where I fail in customization?
Thanks in advance.
Albo.
|