forked from science-ation/science-ation
Moved the "new contact" form to the bottom of the accordion for ease of usage
This commit is contained in:
parent
cf2affcc03
commit
562f758c89
@ -225,12 +225,6 @@ function draw_contactsinfo_form($contact = null){
|
||||
// start our accordion
|
||||
echo "<div id=\"levelaccordion\" style=\"width: 75%;\">\n";
|
||||
|
||||
// draw an empty form in which to enter a new user
|
||||
echo "<h3><a href=\"#\">New Contact";
|
||||
echo "</a></h3>\n";
|
||||
echo "<div>\n";
|
||||
draw_contact_form($sponsor_id);
|
||||
echo "</div>\n";
|
||||
|
||||
// loop through each contact and draw a form with their data in it.
|
||||
$query = mysql_query("SELECT * FROM users LEFT JOIN users_sponsor ON users_sponsor.users_id=users.id
|
||||
@ -251,6 +245,13 @@ function draw_contactsinfo_form($contact = null){
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
// draw an empty form in which to enter a new user
|
||||
echo "<h3><a href=\"#\">New Contact";
|
||||
echo "</a></h3>\n";
|
||||
echo "<div>\n";
|
||||
draw_contact_form($sponsor_id);
|
||||
echo "</div>\n";
|
||||
|
||||
// and finally end the accordion
|
||||
echo "</div>\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user