I work at a research institute, and we need to customize NagiosQL for a company. I noticed that nagiosQL menu comes from a mySQL database, so I added the new entries there and everything`s working. The problem is that I don`t want the new link just to redirect to the same page, leaving nagiosQL, I want it to open a popup with the destiny I set in the "link" field of tbl_submenu. I tried and tried editing nag_class.php, made loads of changes, and nagiosQL seems to ignore my changes, I tried even to comment all href to avoid the menu to link to anywhere, but it magically continued working. I feel that i`m editing the wrong file or I don`t know what to edit there. I added the new entry with id 33 in tbl_submenu, using main_id 6. Could anyone help me telling me where to go to put an if that opens a popup if tbl_submenu id = 33?
PS: I created some if's to open a javascript alert to see if each menu entry accessed were related to an id from mysql table is working properly, and all menu ids that I set in my if generated an alert, maybe because they redirect the page into nagiosQL template, but my desired link is external, and only when I use it's id nothing happens

, it's only redirected to self page, with no nagiosQL template(of course because I didn`t find a working way to send a page into the main frame of nagiosQL).
Any help would be great.
Thanks
Fábio