Beasley22
Založený: 30.06.2011
Príspevky: 2
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)
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
|
|
|