Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Initial sort and remove sort

phpMyEdit General     Initial sort and remove sort
Post new topic   Reply to topic    
 
albo     Joined: 12 Aug 2004   Posts: 1  
Post Posted: 2004-08-12 11:55
Back to top  Reply with quote     

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.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy