diff --git a/admin/registration_list.php b/admin/registration_list.php index f3c2283..63ac346 100644 --- a/admin/registration_list.php +++ b/admin/registration_list.php @@ -31,13 +31,11 @@ else $wherestatus=""; registrations.num AS reg_num, registrations.status, projects.title, - projectcategories.category, - projectdivisions.division + projects.projectcategories_id, + projects.projectdivisions_id FROM registrations left outer join projects on projects.registrations_id=registrations.id - left outer join projectcategories on projects.projectcategories_id=projectcategories.id - left outer join projectdivisions on projects.projectdivisions_id=projectdivisions.id WHERE 1 $wherestatus @@ -46,6 +44,7 @@ else $wherestatus=""; projects.title "); echo mysql_error(); + echo "
".i18n("Status")." | "; @@ -72,8 +71,17 @@ else $wherestatus=""; echo "$status_text | "; echo "$r->reg_num | "; echo "$r->title | "; - echo "".i18n("$r->category")." | "; - echo "".i18n("$r->division")." | "; + + + //now get thh category and division + $catq=mysql_query("SELECT category FROM projectcategories WHERE year='".$config['FAIRYEAR']."' AND id='".$r->projectcategories_id."'"); + $catr=mysql_fetch_object($catq); + $divq=mysql_query("SELECT division FROM projectdivisions WHERE year='".$config['FAIRYEAR']."' AND id='".$r->projectdivisions_id."'"); + $divr=mysql_fetch_object($divq); + + echo "".i18n("$catr->category")." | "; + + echo "".i18n("$divr->division")." | "; $sq=mysql_query("SELECT students.firstname, students.lastname,
---|