<?php
/************************************************************************
- * MXChange v0.2.1 Start: 07/10/2004 *
- * =============== Last change: 07/10/2004 *
+ * Mailer v0.2.1-FINAL Start: 07/10/2004 *
+ * =================== Last change: 07/10/2004 *
* *
* -------------------------------------------------------------------- *
* File : register_functions.php *
$SW = 2;
$OUT .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n";
while ($content = SQL_FETCHARRAY($result)) {
- // Is the array element not set?
- if (!isPostRequestElementSet('cat', $content['id'])) {
- // Then set it
- setRequestPostElement('cat', array($content['id'] => ''));
- } // END - if
-
// Prepare array for the template
$content = array(
'sw' => $SW,
'id' => $content['id'],
);
+ // Mark categories
if ((postRequestElement('cat', $content['id']) == 'Y') || ((getConfig('register_default') == 'Y') && (!isPostRequestElementSet('cat', $content['id'])))) {
$content['def_y'] = ' checked="checked"';
} else {
$result = SQL_QUERY("SELECT `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC",
__FUNCTION__, __LINE__);
+ // Walk through all entries
while ($row = SQL_FETCHARRAY($result)) {
+ // Must the user fill out this element?
$value = '';
if ($row['field_required'] == 'Y') $value = "<span class=\\\"guest_failed\\\"> (*)</span>";
- // @TODO Rewrite these constants
+
+ // Add it
$content['must_fillout_'.strtolower($row['field_name']).''] = $value;
} // END - while