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

phpMyEdit General     Initial sort and remove sort
Odoslať novú tému   Odpovedať na tému    
 
albo     Založený: 12.08.2004   Príspevky: 1  
Príspevok Zaslal: 2004-08-12 11:55
Návrat hore  Odpovedať s citátom     

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:

Kód:
// 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:

Kód:
// 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:
Kód:
$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.

 
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