Moved the "new contact" form to the bottom of the accordion for ease of usage

This commit is contained in:
jacob 2009-10-06 19:12:53 +00:00
parent cf2affcc03
commit 562f758c89

View File

@ -225,12 +225,6 @@ function draw_contactsinfo_form($contact = null){
// start our accordion // start our accordion
echo "<div id=\"levelaccordion\" style=\"width: 75%;\">\n"; 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. // 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 $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"; 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 // and finally end the accordion
echo "</div>\n"; echo "</div>\n";