<!-- outer compose page div --> <div id="compose_page<?php if ($pd->pd['new_window']) { echo '_win'; } ?> "><?php echo do_display_hook('compose_top'); ?> <form enctype="multipart/form-data" method="post" action="?page=compose&compose_session=<?php echo $pd->pd['compose_session']; ?> &mailbox=<?php echo urlencode($pd->pd['mailbox']) . $pd->pd['new_window_arg']; ?> "> <!-- compose form --> <?php echo $pd->print_compose_form(); ?> </form> <?php echo do_display_hook('compose_bottom'); ?> </div>
<?php echo do_display_hook('existing_contacts_top'); ?> <table id="contacts_table" cellpadding="0" cellspacing="0"> <?php echo $pd->print_contact_list(); ?> </table> <?php echo do_display_hook('existing_contacts_bottom'); ?> <!-- Import contacts form --> <?php echo $pd->print_import_contact(); ?> <!-- Add/edit contact form --> <?php echo $pd->print_vcard_form(); ?> <?php echo do_display_hook('contacts_page_bottom'); ?> </div>
<!-- search form --> <?php echo $pd->print_mailbox_search() . do_display_hook('mailbox_search'); ?> <div id="track_folder"><?php echo $pd->print_track_mailbox_link(); ?> </div> </div> </div> </div> <?php echo do_display_hook('mailbox_bottom'); ?> </form> <!-- Links to Mailbox pages if any --> <div id="page_links"> <?php echo $pd->pd['page_links']; ?> </div> <?php } else { /* empty mailbox */
<?php if (!$pd->user->logged_in) { echo '</td></tr></table>'; } ?> </div> <!-- page footer --> <div id="footer"> <?php echo '<div id="top_link">' . $pd->pd['top_link'] . '</div>'; ?> <?php echo do_display_hook("footer"); ?> <complex-<?php echo $page_id; ?> >© Hastymail Development Group 2010</complex-<?php echo $page_id; ?> > </div> <?php echo $pd->print_inline_js(); ?> </body> </html>
<?php } ?> <div id="search_res"> <?php echo $pd->print_search_res(); ?> </div> <?php echo do_display_hook('search_result_bottom'); ?> </form> <div id="search_form"> <form method="post" action="?page=search"> <?php echo do_display_hook('search_form_top'); ?> <?php echo $pd->print_search_form(); ?> <?php echo do_display_hook('search_form_bottom'); ?> </form> </div> </div> <?php echo do_display_hook('search_page_bottom'); ?> </div>
echo $pd->user->str[256]; ?> </th><th><?php echo $pd->user->str[257]; ?> <a style="padding-left: 5px;" href="javascript:toggle_all(false, false, 'hidden_')">X</a></th> <th><?php echo $pd->user->str[258]; ?> <a style="padding-left: 5px;" href="javascript:toggle_all(false, false, 'check_for_new_')">X</a></th> <th><?php echo $pd->user->str[259]; ?> </th></tr> <?php echo $pd->print_folder_page_options(); ?> <tr><td colspan="4" align="right"><input type="submit" value="<?php echo $pd->user->str[193]; ?> " name="update_folder_options" /></td></tr> </table> <?php echo do_display_hook('folder_options_bottom'); ?> </form> <?php echo do_display_hook('folders_page_bottom'); ?> </div>
function print_vcard_form() { global $address_types; global $address_dsp_types; global $phone_types; global $phone_dsp_types; $a_email = ''; $b_email = ''; $c_email = ''; $d_email = ''; $n_family = ''; $n_given = ''; $n_middle = ''; $n_prefix = ''; $n_suffix = ''; $adr_poaddr = ''; $adr_extaddr = ''; $adr_street = ''; $adr_locality = ''; $adr_region = ''; $adr_postalcode = ''; $adr_countryname = ''; $adr_type = ''; $tz = ''; $geo = ''; $a_tel_type = ''; $a_tel = ''; $fn = ''; $b_tel_type = ''; $b_tel = ''; $c_tel_type = ''; $c_tel = ''; $org_name = ''; $org_unit = ''; $org_title = ''; $groups = array(); if (isset($this->user->form_vals['card_id'])) { $label = 'Edit Contact'; if (!empty($this->user->form_vals)) { foreach ($this->user->form_vals as $i => $v) { ${$i} = $this->user->htmlsafe($v); } } $this->pd['card_id'] = $card_id; $form = '<form method="post" action="?page=contacts&mailbox=' . urlencode($this->pd['mailbox']) . '&anchor=contactform#contactform">'; $button = '<input type="hidden" name="card_id" value="' . $this->pd['card_id'] . '" /><input type="submit" value="' . $this->user->str[193] . '" name="update_vcard" />  <input type="submit" name="delete_vcard" value="' . $this->user->str[59] . '" onclick="return hm_confirm(\'' . $this->user->str[426] . ');" />   <a href="?page=contacts&mailbox=' . urlencode($this->pd['mailbox']) . '">' . $this->user->str[62] . '</a>'; } elseif (isset($this->pd['edit_vals'])) { $form = '<form method="post" action="?page=contacts&mailbox=' . urlencode($this->pd['mailbox']) . '&anchor=contactform#contactform">'; foreach ($this->pd['edit_vals'] as $atts) { $name = ''; if (isset($atts['group']) && $atts['group']) { $name .= strtolower($atts['group']) . '_'; } if (isset($atts['name'])) { $name .= strtolower($atts['name']); } if ($name == 'b_tel' || $name == 'a_tel' || $name == 'c_tel') { if (isset($atts['properties'][0]) && $atts['properties'][0]) { ${$name . '_type'} = $atts['properties'][0]; } } if ($atts['group'] == 'ADR') { if ($atts['properties'][0]) { $adr_type = $atts['properties'][0]; } } if ($atts['name'] == 'GROUP') { $groups[] = $atts['value']; } else { ${$name} = $this->user->htmlsafe($atts['value']); } } $label = $this->user->str[159]; $button = '<input type="hidden" name="card_id" value="' . $this->pd['card_id'] . '" /><input type="submit" value="' . $this->user->str[193] . '" name="update_vcard" />  <input type="submit" name="delete_vcard" value="' . $this->user->str[59] . '" onclick="return hm_confirm(\'Are you sure you want to remove this contact?\');" />   <a href="?page=contacts&mailbox=' . urlencode($this->pd['mailbox']) . '">' . $this->user->str[62] . '</a>'; } else { $form = '<form method="post" action="?page=contacts&mailbox=' . urlencode($this->pd['mailbox']) . '&anchor=contactform#contactform">'; $label = $this->user->str[158]; $button = '<input type="submit" name="add_vcard" value="' . $this->user->str[147] . '" />'; if (isset($this->pd['import_vals'])) { foreach ($this->pd['import_vals'] as $atts) { $name = ''; if (isset($atts['group']) && $atts['group']) { $name .= strtolower($atts['group']) . '_'; } if (isset($atts['name'])) { $name .= strtolower($atts['name']); } if ($name == 'b_tel' || $name == 'a_tel' || $name == 'c_tel') { if (isset($atts['properties'][0]) && $atts['properties'][0]) { ${$name . '_type'} = $atts['properties'][0]; } } if ($atts['group'] == 'ADR') { if (isset($atts['properties'][0]) && $atts['properties'][0]) { $adr_type = $atts['properties'][0]; } } ${$name} = $this->user->htmlsafe($atts['value']); } } elseif (isset($this->pd['message_contact'])) { $a_email = $this->user->htmlsafe($this->pd['message_contact']); } elseif (!empty($this->user->form_vals)) { foreach ($this->user->form_vals as $i => $v) { ${$i} = $this->user->htmlsafe($v); } } } $data = '<a name="contactform"></a>'; if (strstr($this->user->page_anchor, 'contactform')) { $data .= '<div class="notices">' . $this->print_notices() . '</div>'; } $data .= '<h4>' . $label . '</h4><div id="contact_form">' . $form . ' <div class="edit_buttons">' . $button . '</div><h5>' . $this->user->str[16] . '</h5><table cellpadding="0" cellspacing="0"> <tr><td class="contacts_leftcol"><b>' . $this->user->str[162] . ' *</b></td><td><input type="text" size="32" name="a_email" value="' . $a_email . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[163] . '</td><td><input size="32" type="text" name="b_email" value="' . $b_email . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[164] . '</td><td><input size="32" type="text" name="c_email" value="' . $c_email . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[165] . '</td><td><input size="32" type="text" name="d_email" value="' . $d_email . '" /></td></tr> ' . do_display_hook('add_contact_email_table') . '</table><h5>' . $this->user->str[143] . '</h5><table cellpadding="0" cellspacing="0"> <tr><td class="contacts_leftcol">' . $this->user->str[166] . ':</td><td><input name="fn" type="text" size="32" maxlength="64" value="' . $fn . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[150] . ':</td><td><input name="n_family" type="text" size="32" maxlength="64" value="' . $n_family . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[151] . ':</td><td><input name="n_given" type="text" size="32" maxlength="64" value="' . $n_given . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[167] . ':</td><td><input name="n_middle" type="text" size="32" maxlength="64" value="' . $n_middle . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[168] . ':</td><td><input name="n_prefix" type="text" size="32" maxlength="64" value="' . $n_prefix . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[169] . ':</td><td><input name="n_suffix" type="text" size="32" maxlength="64" value="' . $n_suffix . '" /></td></tr> ' . do_display_hook('add_contact_name_table') . '</table><h5>' . $this->user->str[182] . '</h5><table cellpadding="0" cellspacing="0"> <tr><td class="contacts_leftcol">' . $this->user->str[170] . ':</td><td><input name="adr_poaddr" type="text" size="32" maxlength="64" value="' . $adr_poaddr . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[171] . ':</td><td><input name="adr_extaddr" type="text" size="32" maxlength="64" value="' . $adr_extaddr . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[172] . ':</td><td><input name="adr_street" type="text" size="62" maxlength="128" value="' . $adr_street . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[173] . ':</td><td><input name="adr_locality" type="text" size="16" maxlength="32" value="' . $adr_locality . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[174] . ':</td><td><input name="adr_region" type="text" size="16" maxlength="32" value="' . $adr_region . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[175] . ':</td><td><input name="adr_postalcode" type="text" size="16" maxlength="32" value="' . $adr_postalcode . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[176] . ':</td><td><input name="adr_countryname" type="text" size="16" maxlength="32" value="' . $adr_countryname . '" /></td></tr> <tr><td class="contacts_leftcol">' . $this->user->str[177] . '</td><td><select name="adr_type">'; foreach ($address_types as $i => $v) { $data .= '<option '; if ($adr_type == $i || strtoupper($adr_type) == strtoupper($v)) { $data .= 'selected="selected" '; } $data .= 'value="' . $i . '">' . $this->user->str[$address_dsp_types[$v]] . '</option>'; } $data .= '</select></td></tr>' . do_display_hook('add_contact_address_table') . '</table><h5>' . $this->user->str[178] . '</h5><table cellpadding="0" cellspacing="0"><tr>'; $data .= '<td class="contacts_leftcol">' . $this->user->str[179] . '</td><td><select name="a_tel_type">'; foreach ($phone_types as $i => $v) { $data .= '<option '; if ($a_tel_type == $i || strtoupper($a_tel_type) == strtoupper($v)) { $data .= 'selected="selected" '; } $data .= 'value="' . $i . '">' . $this->user->str[$phone_dsp_types[$v]] . '</option>'; } $data .= '</select>  <input type="text" name="a_tel" size="20" maxlength="40" value="' . $a_tel . '" /></td></tr><tr><td class="contacts_leftcol">' . $this->user->str[180] . '</td><td>' . '<select name="b_tel_type">'; foreach ($phone_types as $i => $v) { $data .= '<option '; if ($b_tel_type == $i || strtoupper($b_tel_type) == strtoupper($v)) { $data .= 'selected="selected" '; } $data .= 'value="' . $i . '">' . $this->user->str[$phone_dsp_types[$v]] . '</option>'; } $data .= '</select>  <input type="text" name="b_tel" size="20" maxlength="40" value="' . $b_tel . '" /></td></tr><tr><td class="contacts_leftcol">' . $this->user->str[181] . '</td><td> <select name="c_tel_type">'; foreach ($phone_types as $i => $v) { $data .= '<option '; if ($c_tel_type == $i || strtoupper($c_tel_type) == strtoupper($v)) { $data .= 'selected="selected" '; } $data .= 'value="' . $i . '">' . $this->user->str[$phone_dsp_types[$v]] . '</option>'; } $data .= '</select>  <input type="text" name="c_tel" size="20" maxlength="40" value="' . $c_tel . '" /></td></tr>'; $data .= do_display_hook('add_contact_phone_table') . ' </table><h5>' . $this->user->str[145] . '</h5><table cellpadding="0" cellspacing="0"><tr><td class="contacts_leftcol">' . $this->user->str[183] . ':</td><td><input name="org_name" type="text" ' . 'size="32" maxlength="64" value="' . $org_name . '" /></td></tr><tr><td class="contacts_leftcol">' . $this->user->str[184] . ':</td><td><input name="org_unit" type="text" size="32" ' . 'maxlength="64" value="' . $org_unit . '" /></td></tr><tr><td class="contacts_leftcol">' . $this->user->str[185] . ':</td><td><input name="org_title" type="text" size="32" maxlength="64" ' . 'value="' . $org_title . '" /></td></tr>' . do_display_hook('add_contact_org_table'); $data .= '</table><h5>' . $this->user->str[512] . '</h5><table cellpadding="0" cellspacing="0">'; $data .= '<tr><td class="contacts_leftcol"></td><td>'; $grp_cnt = count($groups) - 1; foreach ($groups as $grp_i => $grp_v) { $data .= '<a href="?page=contact_groups&mailbox=' . $this->user->htmlsafe($this->pd['mailbox']) . '&edit_group=' . $this->user->htmlsafe($grp_v) . '">' . $grp_v . '</a>'; if ($grp_cnt != $grp_i) { $data .= ', '; } } $data .= '</td></tr>'; $data .= '</table><div class="edit_buttons">' . $button . '</div></form></div>'; return $data; }
function print_part_headers() { global $page_id; global $max_header_length; global $sticky_url; $data = '<simple-' . $page_id . '><tr><td><br /></td></tr></simple-' . $page_id . '>' . do_display_hook('message_part_headers_top') . '<complex-' . $page_id . '>'; $rows = ''; foreach ($this->pd['message_part_headers'] as $i => $vals) { $name = $this->user->htmlsafe($vals[0], $this->pd['charset'], true); $val = $this->user->htmlsafe($vals[1], $this->pd['charset'], true); if ($this->pd['full_part_header'] == $i) { $val .= '  <a href="' . preg_replace('/\\&full_part_header\\=\\d+/', '', $sticky_url) . '">' . $this->user->str[522] . '</a>'; } elseif (htmlstrlen($val) > $max_header_length) { $val = trim_htmlstr($val, $max_header_length) . '  <a href="' . preg_replace('/\\&full_part_header\\=\\d+/', '', $sticky_url) . '&full_part_header=' . $i . '">' . $this->user->str[521] . '</a>'; } $rows .= '<tr><th>' . $name . ': </th><td '; if (strtolower($vals[0]) == 'subject') { $rows .= 'class="subject_cell" '; } if (strtolower($vals[0]) == 'date' && $vals[1] && !$this->pd['show_full_headers']) { $rows .= '>' . date('r', strtotime(trim($val))); $rows .= '    (' . print_time(strtotime($vals[1]), $vals[1]) . ')'; } else { $rows .= '>' . $val; } $rows .= '<br /></td></tr>'; } if ($rows) { $data .= '<table width="100%" cellpadding="0" cellspacing="0">' . $rows . '</table>'; } if (isset($this->pd['part_nav_list']) && count($this->pd['part_nav_list']) > 1) { $data .= '<div id="prev_next_part">' . $this->print_message_prev_next_part() . '</div>'; } $data .= do_display_hook('message_part_headers_bottom') . '</complex-' . $page_id . '>'; return $data; }
function update_mailbox_page($pd, $mailbox_page, $mailbox, $page_id, $sort_by, $filter_by, $show_all, $force) { global $user; global $conf; if ($user->logged_in) { if ($show_all && $show_all != 'false') { $show_all_msg = 1; } else { $show_all_msg = 0; } $user->user_action->url_action_mailbox(array('show_all_msg' => $show_all_msg, 'mailbox' => $mailbox, 'mailbox_page' => $mailbox_page, 'sort_by' => $sort_by, 'filter_by' => $filter_by)); $meta = $pd->pd['mailbox_dsp'] . ' <span id="mailbox_meta">' . $pd->pd['frozen_dsp'] . ' ' . $pd->user->str[41] . ': ' . $pd->pd['mailbox_total'] . ', ' . $pd->user->str[40] . ': ' . $pd->pd['mailbox_page'] . ' (' . $pd->pd['mailbox_range'] . ')<span class="folder_unread"> ' . $pd->user->str[34] . ' ' . $pd->pd['folder_unread'] . '</span></span>' . do_display_hook('mailbox_meta'); $pre = '<table cellpadding="0" id="mbx_table" cellspacing="0" width="100%" >'; if (!isset($disable_list_heading) || $disable_list_heading == true) { $pre .= ' <tr>' . $pd->print_mailbox_list_headers() . '</tr>'; } return array($meta, $pre . $pd->print_mailbox_list() . '</table>'); } }
<!-- message parts section --> <div id="message_parts"> <a name="parts"></a> <h4 id="parts_heading"> Message Parts </h4> <table cellpadding="0" cellspacing="0"> <?php echo $pd->print_message_parts(); ?> </table> </div> <!-- links to pages of the mailbox --> <?php if ($pd->pd['new_window']) { echo '</div>'; } ?> <?php echo do_display_hook('message_bottom'); if (!$pd->pd['new_window']) { echo '</div>'; } ?>
function print_mailbox_options() { $vals = $this->pd['settings']; $data = '<tr><td class="opt_leftcol">' . $this->user->str[222] . '</td><td><input name="mailbox_per_page_count" size="3" type="text" value="' . $vals['mailbox_per_page_count'] . '" /></td></tr>'; $data .= '<tr><td class="opt_leftcol">' . $this->user->str[223] . '</td><td><input name="mailbox_controls_bottom" type="checkbox" '; if (isset($vals['mailbox_controls_bottom']) && $vals['mailbox_controls_bottom']) { $data .= 'checked="checked" '; } $data .= 'value="1" /></td></tr>'; $data .= '<tr><td class="opt_leftcol">' . $this->user->str[224] . '</td><td><input name="mailbox_freeze" type="checkbox" '; if (isset($vals['mailbox_freeze']) && $vals['mailbox_freeze']) { $data .= 'checked="checked" '; } $data .= 'value="1" /></td></tr>'; $data .= '<tr><td class="opt_leftcol">' . $this->user->str[423] . '</td><td><input name="always_expunge" type="checkbox" '; if (isset($vals['always_expunge']) && $vals['always_expunge']) { $data .= 'checked="checked" '; } $data .= 'value="1" /></td></tr>'; $data .= '<tr><td class="opt_leftcol">' . $this->user->str[424] . '</td><td><input name="selective_expunge" type="checkbox" '; if (isset($vals['selective_expunge']) && $vals['selective_expunge']) { $data .= 'checked="checked" '; } $data .= 'value="1" /></td></tr>'; $data .= '<tr><td class="opt_leftcol">' . $this->user->str[435] . '</td><td><input name="top_page_links" type="checkbox" '; if (isset($vals['top_page_links']) && $vals['top_page_links']) { $data .= 'checked="checked" '; } $data .= 'value="1" /></td></tr>'; $data .= '<tr><td class="opt_leftcol">' . $this->user->str[461] . '</td><td><input name="full_mailbox_option" type="checkbox" '; if (isset($vals['full_mailbox_option']) && $vals['full_mailbox_option']) { $data .= 'checked="checked" '; } $data .= 'value="1" /></td></tr>'; $data .= '<tr><td class="opt_leftcol">' . $this->user->str[497] . ' <span class="js1">*</span>' . '</td><td><input name="mailbox_update" type="checkbox" '; if (isset($vals['mailbox_update']) && $vals['mailbox_update']) { $data .= 'checked="checked" '; } $data .= 'value="1" /></td></tr>'; $data .= '<tr><td class="opt_leftcol">' . $this->user->str[518] . '</td><td><input name="trim_from_fld" size="2" type="text" '; if (isset($vals['trim_from_fld']) && intval($vals['trim_from_fld'])) { $data .= 'value="' . intval($vals['trim_from_fld']) . '" '; } else { $data .= 'value="0" '; } $data .= '/></td></tr>'; $data .= '<tr><td class="opt_leftcol">' . $this->user->str[523] . '</td><td><input name="trim_subject_fld" size="2" type="text" '; if (isset($vals['trim_subject_fld']) && intval($vals['trim_subject_fld'])) { $data .= 'value="' . intval($vals['trim_subject_fld']) . '" '; } else { $data .= 'value="0" '; } $data .= '/></td></tr>'; $data .= do_display_hook('mailbox_options_table'); $data .= '<tr><td colspan="4" class="opt_leftcol"><br /><input type="submit" name="update_settings" value="' . $this->user->str[193] . '" /><br /><br /></td></tr>'; return $data; }
function print_mailbox_list_rows($cols, $rows, $onclick, $mailbox, $n = 1, $ignore_sent = false) { global $page_id; $data = ''; $search_res = array(); $date_format_2 = false; $c_start = '<complex-' . $page_id . '>'; $c_end = '</complex-' . $page_id . '>'; $td_end = $c_start . '</td>' . $c_end; $s_start = '<simple-' . $page_id . '>'; $s_end = '</simple-' . $page_id . '>'; if (isset($this->pd['settings']['mailbox_date_format'])) { $date_format = $this->pd['settings']['mailbox_date_format']; if ($date_format != 'r' && $date_format != 'h') { if (isset($this->pd['settings']['mailbox_date_format_2'])) { $date_format_2 = $this->pd['settings']['mailbox_date_format_2']; } } elseif ($date_format == 'h') { $date_format = false; } } else { $date_format = false; } if (!$this->user->use_cookies) { $sid = '&PHPSESSID=' . session_id(); } else { $sid = ''; } if ($this->dsp_page != 'search' && isset($this->pd['search_results'][$mailbox])) { $search_res = $this->pd['search_results'][$mailbox]; } if (!isset($this->pd['mailbox_page'])) { $this->pd['mailbox_page'] = ''; } if (!isset($this->pd['filter_by'])) { $this->pd['filter_by'] = ''; } $list_count = count($rows); if (isset($_SESSION['toggle_uids'])) { $toggle_uids = $_SESSION['toggle_uids']; } else { $toggle_uids = array(); } if (isset($_SESSION['toggle_all'])) { $toggle_all = $_SESSION['toggle_all']; } else { $toggle_all = false; } if (isset($_SESSION['toggle_boxes'])) { $toggle_boxes = $_SESSION['toggle_boxes']; } else { $toggle_boxes = array(); } foreach ($rows as $vals) { if (isset($this->pd['settings']['hide_deleted_messages']) && $this->pd['settings']['hide_deleted_messages'] && stristr($vals['flags'], 'deleted')) { continue; } $vals['mailbox'] = $mailbox; $message_url = '?page=message' . $sid . '&uid=' . $vals['uid'] . '&mailbox_page=' . $this->pd['mailbox_page'] . '&sort_by=' . $this->pd['sort_by'] . '&filter_by=' . $this->pd['filter_by'] . '&mailbox=' . urlencode($mailbox); $new_window = ''; if ($onclick) { if (isset($this->pd['settings']['message_window']) && $this->pd['settings']['message_window']) { $js = 'onclick="open_window(\'' . $message_url . '&new_window=1&parent_refresh=1' . $sid . '\', 1024, 900, ' . $vals['uid'] . '); return false;" onmouseover="this.style.cursor=\'pointer\'"'; } else { $js = 'onclick="document.location.href=\'' . $message_url . '\';" onmouseover="this.style.cursor=\'pointer\'"'; } } else { $js = false; if (isset($this->pd['settings']['message_window']) && $this->pd['settings']['message_window']) { $new_window = 'onclick="open_window(\'' . $message_url . '&new_window=1&parent_refresh=1' . $sid . '\', 1024, 900, ' . $vals['uid'] . '); return false;"'; } } if (!$ignore_sent && (isset($this->pd['settings']['sent_folder']) && $mailbox == $this->pd['settings']['sent_folder'] || isset($this->pd['settings']['draft_folder']) && $mailbox == $this->pd['settings']['draft_folder'])) { $from = clean_from($vals['to']); $full_from = $vals['to']; } else { $from = clean_from($vals['from']); $full_from = $vals['from']; } if (isset($this->pd['settings']['trim_subject_fld']) && $this->pd['settings']['trim_subject_fld']) { $subject_len = $this->pd['settings']['trim_subject_fld']; } else { $subject_len = 0; } if (isset($this->pd['settings']['trim_from_fld']) && $this->pd['settings']['trim_from_fld']) { $trim_len = $this->pd['settings']['trim_from_fld']; } else { $trim_len = 0; } $xtra_class = ''; if (!empty($search_res) && in_array($vals['uid'], $search_res)) { $xtra_class = 'search_res '; } if (stristr($vals['flags'], 'seen')) { $class_prefix = 'mbx_'; } else { $class_prefix = 'mbx_unseen_'; } if ($n == $list_count) { $xtra_class .= ' last_row '; } if (!trim($vals['subject'])) { $vals['subject'] = $this->user->str[524]; } $indicators = '  '; if (stristr($vals['content-type'], 'multipart') && !stristr($vals['content-type'], 'alternative')) { $indicators .= '<span class="multi_ind">+ </span>'; } if (stristr($vals['flags'], 'answered')) { $indicators .= '<span class="reply_ind">r  </span>'; } if (stristr($vals['flags'], 'flagged')) { $indicators .= '<span class="flag_ind">f  </span>'; $xtra_class .= ' flagged '; } if (trim($vals['x-priority']) == '1') { $indicators .= '<span class="important_ind">!  </span>'; } if (!empty($search_res) && in_array($vals['uid'], $search_res)) { $indicators .= '<span class="search_ind">*  </span>'; } if ($indicators) { $indicators = '<span class="' . $xtra_class . 'indicators">' . $indicators . '</span>'; } $subj_post = ''; $subj_pre = ''; if (isset($this->pd['thread_data'][$vals['uid']])) { $ind = $this->pd['thread_data'][$vals['uid']]['level'] - 1; $subj_pre = str_repeat(' ', 5 * $ind); /*if (!$this->pd['thread_data'][$vals['uid']]['parent']) { if (isset($this->pd['thread_data'][$vals['uid']]['reply_count'])) { $subj_post .= ' <span class="reply_count">replies: <b>'.$this->pd['thread_data'][$vals['uid']]['reply_count'].'</b></span>'; } else { $subj_post .= ' <span class="reply_count">replies: 0</span>'; } }*/ } if (stristr($vals['flags'], 'deleted')) { $subj_post .= '</div>'; $subj_pre .= '<div class="deleted_message">'; } $indicators_cell = ''; $image_cell = ''; $subject_cell = ''; $from_cell = ''; $date_cell = ''; $size_cell = ''; $checkbox_cell = ''; $data .= $c_start . '<tr class="mbx_row">' . $c_end; $indicators_cell = $c_start . '<td ' . $js . ' class="' . $xtra_class . $class_prefix . 'indicators">'; $indicators_cell .= $indicators . $c_end . $td_end; $checkbox_cell = $c_start . '<td class="' . $xtra_class . $class_prefix . 'checkbox">'; $image_cell = $c_start . '<td class="' . $xtra_class . $class_prefix . 'image_cell">'; if (!isset($this->pd['settings']['disable_list_icons']) || !$this->pd['settings']['disable_list_icons']) { $image_cell .= '<div></div>'; } if (!isset($this->pd['settings']['message_window']) || !$this->pd['settings']['message_window']) { if (isset($this->pd['settings']['new_window_icon']) && $this->pd['settings']['new_window_icon']) { $image_cell .= '<a href="' . $message_url . '" onclick="open_window(\'' . $message_url . '&new_window=1&parent_refresh=1\', 1024, 900, ' . $vals['uid'] . '); return false;" ' . 'title="' . $this->user->str[530] . '"><span class="new_window_icon"></span></a> '; } } $image_cell .= '</td>' . $c_end; if (isset($this->pd['last_message_read'][$mailbox]) && $this->pd['last_message_read'][$mailbox] == $vals['uid']) { $checkbox_cell .= '<span class="last_read">></span>'; } else { $checkbox_cell .= '<span class="last_read_hidden">></span>'; } $checkbox_cell .= $c_end . '<input type="hidden" id="mailboxes-' . $vals['uid'] . '" name="mailboxes[' . $vals['uid'] . ']" value="' . $this->user->htmlsafe($mailbox, false, false, true) . '" /><input type="checkbox" '; if ($toggle_all && !in_array($vals['uid'], $toggle_uids) && isset($toggle_boxes[$vals['uid']]) && $toggle_boxes[$vals['uid']] == $mailbox) { $checkbox_cell .= 'checked="checked" '; } elseif (isset($_GET['toggle_folder']) && $_GET['toggle_folder'] == $mailbox) { $checkbox_cell .= 'checked="checked" '; } $checkbox_cell .= 'id="message_' . $n . '" name="uids[]" value="' . $vals['uid'] . '" onclick="save_checked_state(' . $n . ');" /><input type="hidden" name="mailboxes[' . $vals['uid'] . ']" value="' . $this->user->htmlsafe($mailbox, false, false, true) . '" />' . $td_end; $subject_cell = $c_start . '<td class="' . $xtra_class . $class_prefix . 'subject">'; $subject_cell .= '<div ' . $js . ' class="sub_div">' . $c_end . $subj_pre . '<a title="' . $this->user->htmlsafe($vals['subject'], $vals['charset'], true) . '" ' . $new_window . ' href="' . $message_url . '">' . trim_htmlstr($this->user->htmlsafe($vals['subject'], $vals['charset'], true), $subject_len) . '</a>' . $subj_post . $c_start . '</div>' . $c_end . $td_end . $s_start . '<br />' . $s_end; $plugin_cell = $c_start . '<td class="' . $xtra_class . $class_prefix . 'plugin_cell">' . $c_end . '<div>' . do_display_hook('msglist_after_subject', $vals) . '</div>' . $c_start . '</td>' . $c_end; $from_cell = $c_start . '<td ' . $js . ' class="' . $xtra_class . $class_prefix . 'from">' . $c_end . '<div title="' . $this->user->htmlsafe($full_from, $vals['charset'], true, false, false, false, true) . '" class="from_inner">' . trim_htmlstr($this->user->htmlsafe($from, $vals['charset'], true, false, false, false, true), $trim_len) . '</div>' . $td_end . $s_start . '<br />' . $s_end; $date_cell = $c_start . '<td ' . $js . ' class="' . $xtra_class . $class_prefix . 'date" >' . $c_end . print_time2($vals['date'], $date_format, $date_format_2) . $td_end . $s_start . '<br /><br />' . $s_end; $size_cell = $c_start . '<td ' . $js . ' class="' . $xtra_class . $class_prefix . 'size">' . format_size($vals['size'] / 1024) . '</td>' . $c_end; $folder_cell = $c_start . '<td ' . $js . ' class="' . $xtra_class . $class_prefix . 'folder">' . $this->user->htmlsafe($mailbox) . '</td>' . $c_end; foreach ($cols as $v) { if (isset(${$v})) { $data .= ${$v}; } } $data .= $c_start . '</tr>' . $c_end; $n++; } return $data; }
</table> <!-- compose page options --> <h4><?php echo $pd->user->str[192]; ?> </h4> <table cellpadding="0" cellspacing="0" class="options_table"> <?php echo $pd->print_compose_options(); ?> </table> </form> <div id="footnote"> <span class="js1">*</span>    <?php echo $pd->user->str[194]; ?> <br /> <span class="js2">**</span> <?php echo $pd->user->str[195]; ?> <br /> </div> </div> <?php echo do_display_hook('options_page_bottom'); ?> </div>
<!-- Message controls --> <form method="post" id="msg_controls_form1" action="?page=new" > <div id="new_page_controls"> <div class="message_controls"> <?php echo do_display_hook('new_page_controls') . $pd->print_message_controls(); ?> </div> </div> <!-- main news page table of messages --> <div id="new_page"> <div><div id="new_page_inner"> <div><?php echo $pd->print_new_content(); ?> </div> </div></div> </div> <?php echo do_display_hook('new_page_bottom'); ?> </form> </div> </div>
} ?> <!-- Main contacts page div and heading --> <div id="contacts_page"><?php echo do_display_hook('contacts_page_top'); ?> <div id="contact_links"> <a href="?page=contacts&mailbox=<?php echo urlencode($pd->pd['mailbox']); ?> "><?php echo 'Back to contacts'; ?> </a> <?php echo do_display_hook('contacts_quick_links'); ?> </div> <!-- Existing contact groups --> <?php echo $pd->print_existing_contact_groups(); ?> <!-- Manage groups --> <?php echo $pd->print_manage_contact_groups(); ?> </div>
<td><?php echo $pd->user->htmlsafe($pd->pd['browser']); ?> </td> </tr><tr> <td class="opt_leftcol"><?php echo $pd->user->str[278]; ?> </td> <td><?php echo $pd->user->htmlsafe($pd->pd['ip']); ?> </td></tr> </table> <!-- Image links --> <?php echo do_display_hook('about_table_bottom'); ?> <div id="about_images"> <a href="http://www.php.net" target="_blank"><img src="images/php.png" alt="PHP" /></a> <a href="http://www.w3c.org" target="_blank"><img src="images/w3c_1.png" alt="W3c" /></a> <a href="http://www.w3c.org" target="_blank"><img src="images/w3c_2.png" alt="W3c" /></a> <a href="http://www.sf.net" target="_blank"><img src="images/sf.png" alt="SourceForge" /></a> </div> <?php echo do_display_hook('about_page_bottom'); ?> </div>
global $page_id; echo '<complex-' . $page_id . '> ' . '</complex-' . $page_id . '>'; ?> </th> </tr> </table> <form method="post" id="msg_controls_form1" action="<?php echo $sticky_url; ?> "> <div class="message_controls"> <div class="mc_inner"> <?php echo do_display_hook('mailbox_controls_1') . $pd->print_message_controls(); ?> </div> </div> <div id="mbx_inner"> <table cellpadding="0" id="mbx_table" cellspacing="0" width="100%" > <?php echo $pd->print_mailbox_list(); ?> </table> </div> </form> <div class="btm_row"> </div>