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  »  Don't return to the table view after an operation?

phpMyEdit General     Don't return to the table view after an operation?
Post new topic   Reply to topic    
 
jim2point0     Joined: 31 Jul 2008   Posts: 8  
Post Posted: 2008-09-02 15:38
Back to top  Reply with quote     

Hi. I would like to modify phpMyEdit in such a way that if a user modifies a record, phpMyEdit will not redirect them to the table view. It always returns to page 1 of the table view and thats inconvenient. Some of our tables have 200+ pages (depending on the # of records per page). So if someone modifies a record on page 13, they are returned to page 13. Or the record itself.

But... for starters... is this even possible?

 
jim2point0     Joined: 31 Jul 2008   Posts: 8  
Post Posted: 2008-09-04 14:44
Back to top  Reply with quote     

So I need to create that triggers file and put in the code you put there? Where does that file go?

 
jim2point0     Joined: 31 Jul 2008   Posts: 8  
Post Posted: 2008-09-04 16:34
Back to top  Reply with quote     

Alright. I did get them working... or at least I got them being accessed.

The problem I think I'm having is that... what happens when someone is on page 34, views a record, cancels, but wants to go back to page 34? I know the trigger I would need to do... should be...

Code:
$opts['triggers']['select']['cancel']


But for the actual script, I'm not sure how to return to the same EXACT view that they had on the table. That is more important than returning to the view or change operation, but those will come in handy too.

 
david803     Joined: 10 May 2010   Posts: 6  
Post Posted: 2010-07-31 16:37
Back to top  Reply with quote     

if ($this->operation == $this->labels['Add']) {
$this->rec = mysql_insert_id();
}
echo '<script type="text/javascript">alert("Success!");</script>';
$this->operation = $this->labels['View'];
$this->recreate_fdd();
$this->recreate_displayed();
return true;

 
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