All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
  Print view

adminHeader(), adminFooter()
Author Message
PostPosted: Thu Aug 27, 2015 2:49 pm 
Offline

Joined: Tue Mar 17, 2015 12:24 pm
Posts: 19
Hi,
we have a old atk-version (5.6.) and now we tried to update to vertsion 6.6.
Everything works fine, only one class has problems.
We use adminHeader and Footer for subimt button. Here is the code:
Code:
function adminHeader()
   {
      return '<form name="reserving" method="post" action="'.$_SERVER["PHP_SELF"].'"><input type="hidden" name="atknodetype" value="reservations.reservation"><input type="hidden" name="atkaction" value="reserve">'.session_form();
   }

   function adminFooter()
   {
      $user = getUser();
      $lng = $user["lng"];
      return '<br><input type="submit" value="'.atkText("submit_reservation", "reservations", $lng).'"></form>';
   }

The button in the adminFooter doesn´t work anymore! In the old Version it worked!?
Somebody an idea?
Thanks!


Top
 Profile  
 

Re: adminHeader(), adminFooter()
PostPosted: Tue Feb 09, 2016 10:28 pm 
Regular
User avatar
Offline

Joined: Tue Oct 30, 2012 9:07 am
Posts: 128
Location: Italy
I think you have to use "function getFormButtons($mode, $record)" to customize wich button should appear.

I suppose that adminFooter() has changed and renderes HTML outside of the <form> tag

_________________
My best regards,

Antonio Gallo
Linux, PHP, Perl/Webmin Consultant
http://badpenguin.org
Join the ATK's Linkedin Group https://www.linkedin.com/groups/ATK-Framework-7446956


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group