[Phpmyadmin-devel] AJAXify phpMyAdmin Interface - GSOC 2011 - Add a new user in db-> privileges
Thilanka Kaushalya
lgtkaushalya at gmail.com
Fri May 27 18:34:57 CEST 2011
Hi Marc,
I started working on improving the "*Add a new user in db-> privileges*" by
providing a dialog such as in "*Add a new user in Server->privilege*"
option.
In that case I'm going to reuse the code in "(#fieldset_add_user).click"
action in server_privileges.js file. The only modification I had to do is
add the class="ajax" to link on db->privileges and now it pops up the dialog
box.
The next part is, after adding a new user we have to add that user to the
list table in db->privileges and then sort it according to the alphabetical
order of user names. In server->privileges, "*appendNewUser() in
server_privileges.js" *method has used and it is sorting the rows be
selecting the first character in the label and then according to that. It is
okay because server->privileges table has same type of rows. But in "*
db->privileges*" table it has used two type of rows where one shows columns
related to "global" privileges and other is to database specific privileges
corresponding to each user. So I cannot use the same "*appendNewUser() in
server_privileges.js"* method to add and sort the table. I came up with some
approaches to overcome this problem.
1. Change the table structure where do not use two rows but use same row
and line break to get them down. In this case I'll be able to reuse the same
method where I think more appropriate in this case.
2. Do a refresh to the "*db->privileges*" page so it reloads the table.
3. Keep the table as it is in current and develop a method to sort it.
I'm confused with what method to use. So please can you clarify me on this
problem. Thank you.
Regards,
Thilanka.
--
L G Thilanka Kaushalya
Computer Science & Engineering,
University of Moratuwa,
Sri Lanka
Connect with me at,
Gmail : lgtkaushalya at gmail.com
Twitter : @thilanka_k
Facebook : Thilanka Kaushalya
Yahoo : lgtkaushalya at yahoo.com
Blog : http://coders-view.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20110527/6a90751f/attachment.html>
More information about the Developers
mailing list