Example #1
0
}
?>
<tr>
<td><b><?php 
echo $strDate;
?>
:&nbsp;</b></td>
<td><?php 
echo date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], get_time($content['udate']));
?>
</td>
</tr>
<?php 
if ($account['type'] == "imap" && !$print) {
    echo '<tr><td nowrap><b>' . $ml_folder . ':&nbsp;</b></td><td>';
    if ($email->get_all_folders($account['id'], true) > 0) {
        $dropbox = new dropbox();
        $dropbox->add_value('INBOX', $ml_inbox);
        while ($email->next_record()) {
            if (!($email->f('attributes') & LATT_NOSELECT)) {
                $dropbox->add_value($email->f('name'), str_replace('INBOX' . $email->f('delimiter'), '', $email->f('name')));
            }
        }
        $dropbox->print_dropbox('move_to_mailbox', $mailbox, 'onchange="javascript:move_mail()"');
    }
}
echo '</td></tr>';
?>
</table>
</td>
</tr>
Example #2
0
$dropbox->add_value('cc', $ml_cc_is);
$dropbox->print_dropbox('field', $field);
?>
</td>
<td>
<input type="text" name="keyword" size="30" class="textbox" />
</td>
</tr>
<tr>
<td colspan="2">

<?php 
$folder = isset($_POST['folder']) ? $_POST['folder'] : '';
$dropbox = new dropbox();
$dropbox->add_value('', $ml_move_to);
$email->get_all_folders($id, true);
while ($email->next_record()) {
    if (!($email->f('attributes') & LATT_NOSELECT)) {
        $dropbox->add_value($email->f('name'), str_replace('INBOX' . $email->f('delimiter'), '', $email->f('name')));
    }
}
$dropbox->print_dropbox('folder', $folder);
?>
</td>
</tr>
<tr>
<td colspan="2">
<br />
<?php 
$button = new button($cmdOk, 'javascript:save_filter()');
echo '&nbsp;&nbsp;';
Example #3
0
echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '" name="email_client">';
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="account_id" value="' . $account_id . '" />';
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
echo '<input type="hidden" name="link_back" value="' . $link_back . '" />';
$tabtable = new tabtable('filters_list', $ml_filters, '600', '300', '100', '', true);
$tabtable->print_head();
echo '<table border="0" cellpadding="0" cellspacing="8" class="normal"><tr><td>';
if (isset($_REQUEST['delete_filter'])) {
    $email->delete_filter($_REQUEST['delete_filter']);
}
if (isset($_REQUEST['move_up_id']) && $_REQUEST['move_dn_id'] != 0) {
    $email->move_up($_REQUEST['move_up_id'], $_REQUEST['move_dn_id'], $_REQUEST['move_up_pr'], $_REQUEST['move_dn_pr']);
}
if ($email->get_all_folders($account_id, true) > 0) {
    echo '<a class="normal" href="filter.php?id=' . $account_id . '">' . $cmdAdd . '</a><br /><br />';
    $count = $email->get_filters($account_id);
    if ($count > 0) {
        echo '<table border="0" cellpadding="2" cellspacing="0"><tr>';
        echo '<td><h3>' . $ml_field . '</h3></td>';
        echo '<td><h3>' . $ml_contains . '</h3></td>';
        echo '<td><h3>' . $ml_folder . '</h3></td>';
        echo '<td>&nbsp;</td>';
        echo '<td>&nbsp;</td>';
        echo '<td>&nbsp;</td></tr>';
        $last_id = 0;
        $last_pr = 0;
        while ($email->next_record()) {
            switch ($email->f("field")) {
                case "sender":
Example #4
0
    echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
    echo '<input type="hidden" name="link_back" value="' . $link_back . '" />';
    echo '<input type="hidden" name="account_id" value="' . $account_id . '" />';
    $tabtable = new tabtable('folders_list', $ml_folders, '100%', '300', '100', '', true);
    $tabtable->print_head();
    //synchronise Group-Office with the IMAP server
    $subscribed = $mail->get_subscribed($account['mbroot']);
    $mailboxes = $mail->get_mailboxes($account['mbroot']);
    $email->synchronise($account['id'], $mailboxes, $subscribed);
    //get all the folders and the subscribed folders as an array
    //and add all missing subscribed folders to Group-Office
    $mailboxes = array();
    $mailboxes = $mail->get_mailboxes($account['mbroot']);
    //get all the Group-Office folders as an array
    $account = $email->get_account($account['id']);
    $email->get_all_folders($account['id']);
    $go_mailboxes = array();
    while ($email->next_record()) {
        $go_mailboxes[] = $email->Record;
        $delimiter = $email->f('delimiter');
    }
    $mcount = count($go_mailboxes);
    ?>
	<table border="0" cellpadding="0" cellspacing="8" class="normal">
	<tr>
		<td>
		<?php 
    if (isset($feedback)) {
        echo $feedback;
    }
    ?>