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

phpMyEdit Configuration     Filter or TAB?
Odoslať novú tému   Odpovedať na tému    
 
dglp     Založený: 09.11.2014   Príspevky: 2  
Príspevok Zaslal: 2014-11-09 11:07
Návrat hore  Odpovedať s citátom     

I'm just setting up an instance ot phpMyEdit, and am wondering whether it's simpler to display a subset of columns using a filter, or the TAB functions.

I've got a table (projectdetails) of 30 columns and 200 records I want to show just three columns of the main table (id, name, mapit), as an index of sorts.

I am thinking the filter option requires defining a WHERE clause that includes evey record of the three columns. Not sure how I'd do that.

So perhaps the TAB function would be easier? I'm looking for examples.

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2014-11-09 18:04
Návrat hore  Odpovedať s citátom     

Set 'options' for id, name, mapit to ACPVDFL and set the other columns to ACPVD

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.permission-options.html

 
dglp     Založený: 09.11.2014   Príspevky: 2  
Príspevok Zaslal: 2014-11-09 20:45
Návrat hore  Odpovedať s citátom     

Very nice! Thank You!
So, for example, project_name options look like this:

Kód:
$opts['fdd']['project_name'] = array(
  'nowrap' => 'true',
  'name'     => 'Project name',
  'select'   => 'T',
  'options'  => 'ACPVDFL',
  'maxlen'   => 65535,
  'textarea' => array(
    'rows' => 5,
    'cols' => 50),
  'sort'     => true
);


And the main page is clean aside from the columns I want.

*A further question?*
Can the navigation links be assigned to the project name field? So that I can click on the name to view the detail page...

 
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