',$html_content);
$html_content = str_replace('_td ','','',$html_content);
$html_content = str_replace('"_','">',$html_content);
$html_content = str_replace('_ ','> ',$html_content);
$html_content = str_replace('_li>','',$html_content);
$html_content = str_replace('_div ',' ',$html_content);
$html_content = str_replace('_/div',' ',$html_content);
$html_content = str_replace('_/strong_','',$html_content);
$html_content = str_replace('strong_','strong>',$html_content);
$html_content = str_replace('_/strong',''),' ',$html_content);
$html_content = str_replace('_/style','',$html_content);
$html_content = str_replace('_/em',''),'',$html_content);
$html_content = str_replace(array('','','',''),'',$html_content);
$html_content = str_replace(array('',''),'',$html_content);
$html_content = str_replace('"_','">',$html_content);
$html_content = str_replace('_nobr','
' . '' . zen_image(DIR_WS_IMAGES . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT); ?> |
fields['archive_id']; ?> |
|
|
|
fields['email_to_name'] . ' [' . $this_email->fields['email_to_address'] . ']'; ?> |
|
fields['email_from_name'] . ' [' . $this_email->fields['email_from_address'] . ']'; ?> |
|
fields['date_sent']); ?> |
|
fields['email_subject']; ?> |
|
|
|
|
fields['email_text']);
}
?> |
|
|
|
|
|
|
|
' . HEADING_TITLE . ''; ?> |
|
|
|
|
|
' . TEXT_TRIM_ARCHIVE . ''; ?> |
|
';
echo zen_draw_input_field('text');
if (isset($_GET['text']) && zen_not_null($_GET['text'])) {
$keywords = zen_db_input(zen_db_prepare_input($_GET['text']));
echo ' ' . HEADING_SEARCH_TEXT_FILTER . $keywords;
}
?> |
';
echo zen_draw_pull_down_menu('module', $email_module_array, $_GET['module']);
?> |
|
|
|
|
|
|
|
|
|
= '" . $sd_raw . "' ";
if ($search_ed) {
if ($search_sd) $archive_search .= "and ";
$archive_search .= "date_sent <= DATE_ADD('" . $ed_raw . "', INTERVAL 1 DAY) ";
}
if ($search_text) {
if ($search_sd || $search_ed) $archive_search .= "and ";
$keywords = zen_db_input(zen_db_prepare_input($_GET['text']));
$archive_search .= "(email_to_address like '%" . $keywords . "%' or email_subject like '%" . $keywords . "%' or email_html like '%" . $keywords . "%' or email_text like '%" . $keywords . "%' or email_to_name like '%" . $keywords . "%') ";
}
if ($search_module) {
if ($search_sd || $search_ed || $search_text) {
$archive_search .= "and ";
}
$archive_search .= "module = '" . $_GET['module'] . "' ";
}
$archive_search .= "order by archive_id desc";
$email_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS_ORDERS, $archive_search, $email_query_numrows);
// DEBUG
//echo ' ' . $archive_search . ' ';
$email_archive = $db->Execute($archive_search);
while (!$email_archive->EOF) {
if ((!isset($_GET['archive_id']) || (isset($_GET['archive_id']) && ($_GET['archive_id'] == $email_archive->fields['archive_id']))) && !isset($archive)) {
$archive = new objectInfo($email_archive->fields);
}
if (isset($archive) && is_object($archive) && ($email_archive->fields['archive_id'] == $archive->archive_id) && $isForDisplay) {
echo ' ' . "\n";
} else {
echo ' ' . "\n";
}
?>
fields['date_sent']); ?> |
fields['email_to_name']; ?> |
fields['email_to_address']; ?> |
fields['email_subject'], 0, SUBJECT_SIZE_LIMIT) . MESSAGE_LIMIT_BREAK; ?> |
fields['archive_id'] == $archive->archive_id) && $isForDisplay) {
echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
}
else {
if ($email_archive->fields['email_html'] != '') {
echo TABLE_FORMAT_HTML;
}
else {
echo TABLE_FORMAT_TEXT;
}
}
?> |
MoveNext();
}
?>
display_count($email_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_ORDERS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_EMAILS); ?> |
display_links($email_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_ORDERS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], zen_get_all_get_params(array('archive_id', 'page'))); ?> |
|
Execute("select customers_id from " . TABLE_CUSTOMERS . "
where customers_email_address like '" . $archive->email_to_address . "'");
if ($customer->RecordCount() == 1) {
$mail_button = '' . zen_image_button('button_email.gif', IMAGE_EMAIL) . '';
}
else {
$mail_button = '' . zen_image_button('button_email.gif', IMAGE_EMAIL) . '';
}
$heading[] = array('text' => '' . TEXT_ARCHIVE_ID . $archive->archive_id . ' - ' . zen_datetime_short($archive->date_sent) . '');
$contents[] = array('align' => 'center', 'text' => $mail_button . ' ' . zen_image_button('button_resend.gif', IMAGE_ICON_RESEND) . '');
// Delete button
$contents[] = array('align' => 'center', 'text' => '' . zen_image_button('button_delete.gif', IMAGE_ICON_DELETE) . '' . $html_button);
$contents[] = array('align' => 'center', 'text' => '' . zen_image_button('button_prev_text.gif', IMAGE_ICON_TEXT) . '' . $html_button);
if ($archive->email_html != '') {
$contents[] = array('align' => 'center', 'text' => '' . zen_image_button('button_prev_html.gif', IMAGE_ICON_HTML) . '');
}
$contents[] = array('text' => ' ' . zen_draw_separator());
$contents[] = array('text' => ' ' . TEXT_EMAIL_MODULE . ''. $archive->module);
$contents[] = array('text' => ' ' . TEXT_EMAIL_TO . ''. $archive->email_to_name . ' [' . $archive->email_to_address . ']');
$contents[] = array('text' => '' . TEXT_EMAIL_FROM . '' . $archive->email_from_name . ' [' . $archive->email_from_address . ']');
$contents[] = array('text' => '' . TEXT_EMAIL_DATE_SENT . '' . $archive->date_sent);
$contents[] = array('text' => '' . TEXT_EMAIL_SUBJECT . '' . $archive->email_subject);
$contents[] = array('text' => ' ' . TEXT_EMAIL_EXCERPT . '');
$contents[] = array('text' => ' ' . nl2br(substr($archive->email_text, 0, MESSAGE_SIZE_LIMIT)) . MESSAGE_LIMIT_BREAK);
}
// display sidebox
if (zen_not_null($heading) && zen_not_null($contents) && $isForDisplay) {
?>
infoBox($heading, $contents);
?>
|
|
|
|