Edit this Record link displayed when in Details View -- HOW TO

D

Debbie S

Guest
Just in case anyone is interested in this .....

I had a request from one of my users to make this available so I thought I'd post it here in case someone else may benefit from it also.

The users of this particular database wanted an "Edit this Record" link displayed on the record details page so that if they were viewing a record and then saw something that needed to be changed, they could just use the edit link rather than going back and remembering which record and then selecting the edit button.

Here's how:

open index.php (line numbers shown between colon marks):

::531:: txt_out("<h3>".$normal_messages_ar["details_of_record"]."</h3>");
::532::
::533:: if ($enable_edit == "1") { // display the edit icon
::534:: txt_out("     <a class=\"onlyscreen\" target=\"_".$edit_target_window."\" href=\"".$dadabik_main_file."?table_name=".urlencode($table_name)."&function=edit&where_field=".urlencode($where_field)."&where_value=".urlencode($where_value)."\"><img border=\"0\" src=\"".$edit_icon."\" alt=\"".$submit_buttons_ar["edit"]."\" title=\"".$submit_buttons_ar["edit"]."\"> Edit this Record</a><p>");
::535::}

Of course, you can change this link to read/display whatever you want depending on your user requirements.


Debbie
(Latest version of DaDaBIK when this message was posted: 3.1 Beta)
 
Top