Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 11. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Javascript pop-up for individual cell

phpMyEdit General     Javascript pop-up for individual cell
Odoslať novú tému   Odpovedať na tému    
 
Beasley22     Založený: 30.06.2011   Príspevky: 2  
Príspevok Zaslal: 2011-07-12 12:26
Návrat hore  Odpovedať s citátom     

i need to allow a field to be edited via clicking on it.
e.g. 'notes' field. i need it to be able to be clicked then a javascript popup appear with the results in a textarea which allows me to edit the database contents and then resumbit / close the popup.

Any ideas? cheers

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2011-07-12 15:18
Návrat hore  Odpovedať s citátom     

Consider making a copy of the original script, remove unwanted fields, save as CopyOfOriginalScript.php, and add a virtual (dummy) field with the edit link.

Kód:
$opts['fdd']['dummy1'] = array (
   'input'   => 'R',
   'name'    => 'Virtual field',
   'sql'     => 'CONCAT("<a href=\"http://foo.com/CopyOfOriginalScript.php?PME_sys_fl=1&PME_sys_fm=0&PME_sys_sfn[0]=2&PME_sys_operation=PME_op_Change&PME_sys_rec=", record_id, "\" target=\"_blank\">Edit in new window</a>")',
   'options' => 'FL',
   'escape'  => false,
   'sort'    => true
);


 
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