while ($content = SQL_FETCHARRAY($result)) {
$value = '';
- if ($content['field_required'] == 'Y') $value = "<div class=\\\"guest_failed\\\"> (*)</div>";
+ if ($content['field_required'] == 'Y') $value = "<span class=\\\"guest_failed\\\"> (*)</span>";
// @TODO Rewrite these constants
$eval = "define('MUST_".strtoupper($content['field_name'])."', \"".$value."\");";
eval($eval);
// Also fill other constants
// @TODO Rewrite these constants, too
- define('MUST_GENDER', "<div class=\"guest_failed\"> (*)</div>");
- define('MUST_ADDY' , "<div class=\"guest_failed\"> (*)</div>");
- define('MUST_BIRTH' , "<div class=\"guest_failed\"> (*)</div>");
- define('MUST_MARKER', "<div class=\"guest_failed\"> (*)</div>");
+ define('MUST_GENDER', "<span class=\"guest_failed\"> (*)</span>");
+ define('MUST_ADDY' , "<span class=\"guest_failed\"> (*)</span>");
+ define('MUST_BIRTH' , "<span class=\"guest_failed\"> (*)</span>");
+ define('MUST_MARKER', "<span class=\"guest_failed\"> (*)</span>");
}
//
// Look for categories
$result = SQL_QUERY("SELECT `id`, `cat`, `visible` FROM `{!_MYSQL_PREFIX!}_cats` ".$AND." ORDER BY `sort` ASC",
- __FUNCTION__, __LINE__);
+ __FUNCTION__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// List alle visible modules (or all to the admin)
// Is the array element not set?
if (!REQUEST_ISSET_POST('cat', $content['id'])) {
// Then set it
- REQUEST_SET_POST(array('cat', $content['id']), '');
+ REQUEST_SET_POST('cat', array($content['id'] => ''));
} // END - if
// Prepare array for the template