Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  push button on the edit page to fire any procedure

phpMyEdit General     push button on the edit page to fire any procedure
Post new topic   Reply to topic    
 
carsten     Joined: 22 Mar 2004   Posts: 2  
Post Posted: 2004-03-22 17:19
Back to top  Reply with quote     

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     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-03-22 21:10
Back to top  Reply with quote     

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     Joined: 22 Mar 2004   Posts: 2  
Post Posted: 2004-03-22 22:03
Back to top  Reply with quote     

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

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy