| Index
» Projekty
» phpMyEdit
» Fórum
» push button on the edit page to fire any procedure |
 |
carsten
Založený: 22.03.2004
Príspevky: 2
Zaslal: 2004-03-22 17:19
Návrat hore
Odpovedať s citátom
|
hi, i am very new to phpmyedit ...
ok, want i want to do :
i need to add a push button on the edit page to fire any procedure for example "approve order".
after pushing the button, the procedure should set any field from example status WA to AP, refresh screen and show up the edit page where started.
the issue is how to fetch the current record and how to refresh edit page !
any ideas ?
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-03-22 21:10
Návrat hore
Odpovedať s citátom
|
if i understand right, you might want to use thing described in 'click to add' bug.
maybe set the second page to be the first page with special variables set.
|
carsten
Založený: 22.03.2004
Príspevky: 2
Zaslal: 2004-03-22 22:03
Návrat hore
Odpovedať s citátom
|
OK so far I solved the issue on my own :
...
// Now important call to phpMyEdit
require_once 'phpMyEdit.class.php';
new phpMyEdit($opts);
?>
<p>
<p>
<form name="Test" action="doit.php" method="post">
rec : <?PHP echo @$HTTP_GET_VARS['rec']; ?>
<p>
operation : <?PHP echo @$HTTP_GET_VARS['operation']; ?>
<p>
<?PHP
IF (@$HTTP_GET_VARS['operation'] == 'Ändern')
{
echo ' <select name="function" size="1"> ';
echo ' <option>PRINT</option> ';
echo ' <option>APPROVE</option> ';
echo ' </select> ';
echo '<p> ';
echo '<input type="text" name="record" value=""> ';
echo '<p> ';
echo '<input type="submit" value="doit" onClick="this.form.record.value=phpMyEdit_form.wonum.value"> ';
}
?>
<p>
</form>
... means only in operation-mode "change" at the bottom of the table we will see some fields. Here you can choose PRINT or APPROVE and call the doit.php
It works well !
Feel free to use it
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|