Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 26. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Don't return to the table view after an operation?

phpMyEdit General     Don't return to the table view after an operation?
Odoslať novú tému   Odpovedať na tému    
 
jim2point0     Založený: 31.07.2008   Príspevky: 8  
Príspevok Zaslal: 2008-09-02 15:38
Návrat hore  Odpovedať s citátom     

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     Založený: 31.07.2008   Príspevky: 8  
Príspevok Zaslal: 2008-09-04 14:44
Návrat hore  Odpovedať s citátom     

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

 
jim2point0     Založený: 31.07.2008   Príspevky: 8  
Príspevok Zaslal: 2008-09-04 16:34
Návrat hore  Odpovedať s citátom     

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...

Kód:
$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     Založený: 10.05.2010   Príspevky: 6  
Príspevok Zaslal: 2010-07-31 16:37
Návrat hore  Odpovedať s citátom     

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;

 
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