mail_count = $sql->db_Select_gen($qry))) return FALSE;
$this->mail_read = 0;
return $this->mail_count;
}
// Return an email address to add. Return FALSE if no more addresses to add
// Returns an array with appropriate elements defined:
// 'user_id' - non-zero if a registered user, zero if a non-registered user. (Always non-zero from this class)
// 'user_name' - user name
// 'user_email' - email address to use
// 'user_signup' - signup link (zero if not applicable)
function select_add()
{
global $sql;
if (!($row = $sql->db_Fetch())) return FALSE;
$ret = array('user_id' => $row['user_id'],
'user_name' => $row['user_name'],
'user_email' => $row['user_email'],
'user_signup' => $row['user_sess']
);
$this->mail_read++;
// echo "Return value: ".$row['user_name']."
";
return $ret;
}
// Called once all email addresses read, to do any housekeeping needed
function select_close()
{
// Nothing to do here
}
// Called to show current selection criteria, and optionally allow edit
// Returns HTML which is displayed in a table cell. Typically we return a complete table
// $allow_edit is TRUE to allow user to change the selection; FALSE to just display current settings
function show_select($allow_edit = FALSE)
{
global $sql;
$ret = "
".LAN_MAILOUT_03.": | ".userclasses("email_to", $_POST['email_to'])." |
".LAN_MAILOUT_46." ".LAN_MAILOUT_47." | |
".LAN_MAILOUT_46.ret_extended_field_list('extended_1_name', TRUE).LAN_MAILOUT_48." | |
".LAN_MAILOUT_46.ret_extended_field_list('extended_2_name', TRUE).LAN_MAILOUT_48." | |
".LAN_MAILOUT_03." | ".$_to." "; if($_POST['email_to'] == "self"){ $text .= "<".USEREMAIL.">"; } $ret .= " |
".$_POST['user_search_name']." | ".$_POST['user_search_value']." |
".$_POST['extended_1_name']." | ".$_POST['extended_1_value']." |
".$_POST['extended_2_name']." | ".$_POST['extended_2_value']." |