. For more information, visit http://sourceforge.net/projects/ipreg, or contact me at wietsew@users.sourceforge.net *****************************************************************************/ // includes include("includes.php"); // check authorisation $auth = auth("userclassauthadd", $config_auth_userclassauthadd, 0); // start output include("header.php"); // set template $tp = new Template("tpl/userclassauthadd.tpl"); // set language variables $tp->setvars($lang); // get userclass info $result = mysql_query("SELECT userclass_id, userclass_name FROM userclass ORDER BY userclass_name") or die(mysql_error()); for ($i=0;$row=mysql_fetch_object($result);$i++) { $tp->set("userclass_id", $row->userclass_id); $tp->set("userclass_name", $row->userclass_name); $tp->parse("userclassrow"); } if (($i>0) ? $tp->parse("userclass") : $tp->hide("userclass")); // output $tp->parse(); $tp->spit(); include("footer.php"); ?>