Пример #1
0
            }
            if (!$go_next) {
                continue;
            }
        }
        $subscr_count++;
        echo '<tr>';
        //    echo '<td align="center"><input type="radio" name="default_calendar_id" value="'.$cal->f('id').'"></td>';
        echo '<td nowrap><a href="index.php?calendar_id=' . $cal->f("id") . '" class="normal">' . htmlspecialchars($cal->f("name")) . '</a>&nbsp;</td>';
        echo '<td nowrap>' . show_profile($cal->f("user_id")) . '&nbsp;</td>';
        echo '<td align="center"><input type="checkbox" id="subscribed" name="subscribed[]" value="' . $cal->f('id') . '" ' . $checked . '></td>';
        echo '<td><a href="calendar.php?calendar_id=' . $cal->f("id") . '&return_to=' . rawurlencode($link_back) . '" title="' . $strEdit . ' \'' . htmlspecialchars(addslashes($cal->f("name"))) . '\'"><img src="' . $GO_THEME->images['edit'] . '" border="0" /></a></td>';
        if ($cal->f('user_id') != $GO_SECURITY->user_id) {
            echo "<td>&nbsp;</td></tr>\n";
        } else {
            echo "<td><a href='javascript:delete_calendar(\"" . $cal->f("id") . "\",\"" . div_confirm_id($strDeletePrefix . "'" . addslashes($cal->f("name")) . "'" . $strDeleteSuffix) . "\")' title=\"" . $strDeleteItem . " '" . htmlspecialchars($cal->f("name")) . "'\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td></tr>\n";
        }
    }
}
echo '</table>';
echo '<br /><br />';
$button = new button($cmdOk, "javascript:_save('subscribe', 'true', " . $subscr_count . ", '" . $sc_choice_calendar_msg . "')");
echo '&nbsp;&nbsp;';
$button = new button($cmdApply, "javascript:_save('subscribe', 'false', " . $subscr_count . ", '" . $sc_choice_calendar_msg . "')");
echo '&nbsp;&nbsp;';
$button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
?>
</td>
</tr>
</table>
Пример #2
0
        if ($count_child > 0) {
            $val_child = 0;
            while ($db_child->next_record()) {
                $val_child++;
                $name = $db_child->f('category');
                $id = $db_child->f('category_id');
                $parent = $db_child->f('parent_id');
                $delitem = sprintf($ab_ConfirmDeleteStatus, $name);
                $delitem_hint = "{$strDeleteItem} '{$name}'";
                echo '<tr>';
                echo '<td align="center"></td>';
                echo "<td colspan=\"97\" nowrap><a href='javascript:set_edit({$id}, \"{$name}\", {$value}, 0)'>" . $val_child . "&nbsp;&nbsp;&nbsp;{$name}</a></td>";
                if ($count == 1) {
                    echo '<td width="36" align="center">&nbsp;</a></td>';
                }
                echo "<td><a href='javascript:delete_status(\"" . div_confirm_id($delitem) . "\",{$id})'>{$trash}</a></td>";
                echo '</tr>';
                //    		echo $spliter;
            }
        }
        $value++;
    }
} else {
    echo '<tr><td colspan="99">&nbsp;</td></tr>';
    echo '<tr><td colspan="99" height="1"><img src="' . $GO_THEME->images['cccccc'] . '" border="0" height="1" width="100%" /></td></tr>';
}
echo '<input type="hidden" name="count_child" value="" />';
echo $spliter;
echo '</table></td></tr></table>';
echo '<br />';
/*echo '<table width="100%"  border="0" cellspacing="0" cellpadding="0">';
Пример #3
0
                    break;
                case "subject":
                    $field = $ml_subject;
                    break;
                case "to":
                    $field = $ml_to;
                    break;
                default:
                    $field = $email->f("field");
                    break;
            }
            echo '<tr height="18"><td>' . $field . '&nbsp;&nbsp;</td>';
            echo '<td>' . $email->f("keyword") . '&nbsp;&nbsp;</td>';
            echo '<td>' . $email->f("folder") . '</td>';
            echo '<td>&nbsp;<a href="' . $_SERVER['PHP_SELF'] . '?account_id=' . $account_id . '&return_to=' . urlencode($return_to) . '&move_up_id=' . $email->f("id") . '&move_dn_id=' . $last_id . '&move_dn_pr=' . $email->f("priority") . '&move_up_pr=' . $last_pr . '" title="' . $ml_move_up . '"><img src="' . $GO_THEME->images['up'] . '" border="0"></a></td>';
            echo "<td>&nbsp;<a href='javascript:div_confirm_action(\"" . $_SERVER['PHP_SELF'] . "?account_id=" . $account_id . "&return_to=" . urlencode($return_to) . "&delete_filter=" . $email->f("id") . "\",\"" . div_confirm_id($ml_delete_filter) . "\")' title=\"" . $ml_delete_filter1 . "\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td>";
            echo '</tr>';
            $last_id = $email->f("id");
            $last_pr = $email->f("priority");
        }
        echo "</table>";
    } else {
        echo $ml_no_filters;
    }
} else {
    echo $ml_no_folders;
}
?>
		<br />
		<?php 
$button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
Пример #4
0
if ($admin_sort == "registration_time") {
    echo $image_string;
}
echo "</a></td>\n";
echo "<td class=\"TableHead2\">&nbsp;</td>\n";
echo "</tr>\n";
while ($GO_USERS->next_record()) {
    $middle_name = $GO_USERS->f('middle_name') == '' ? '' : $GO_USERS->f('middle_name') . ' ';
    //  $name = $GO_USERS->f('first_name').' '.$middle_name.$GO_USERS->f('last_name');
    $name = $GO_USERS->f('last_name') . ' ' . $middle_name . $GO_USERS->f('first_name');
    echo '<tr height="18"><td><a class="normal" href="edit_user.php?id=' . $GO_USERS->f("id") . '" title="' . $strEdit . ' ' . $name . '">' . $name . '</a>&nbsp;</td>';
    echo '<td>' . empty_to_stripe($GO_USERS->f("company")) . '&nbsp;</td>';
    echo '<td>' . number_format($GO_USERS->f("logins"), 0, $_SESSION['GO_SESSION']['decimal_seperator'], $_SESSION['GO_SESSION']['thousands_seperator']) . '&nbsp;</td>';
    echo '<td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $GO_USERS->f("lastlogin") + $_SESSION['GO_SESSION']['timezone'] * 3600) . '&nbsp;&nbsp;&nbsp;</td>';
    echo '<td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $GO_USERS->f("registration_time") + $_SESSION['GO_SESSION']['timezone'] * 3600) . '</td>';
    echo "<td>&nbsp;<a href='javascript:div_confirm_action(\"" . $_SERVER['PHP_SELF'] . "?delete_user="******"id") . "\",\"" . div_confirm_id($strDeletePrefix . "'" . $name . "'" . $strDeleteSuffix) . "\")' title=\"" . $strDeleteItem . " '" . $name . "'\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td>";
    echo '<tr><td colspan="99" height="1"><img src="' . $GO_THEME->images['cccccc'] . '" border="0" height="1" width="100%" /></td></tr>';
}
$links = '';
$max_links = 10;
if ($max_rows != 0) {
    if ($count > $max_rows) {
        $links = '<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>';
        $next_start = $first + $max_rows;
        $previous_start = $first - $max_rows;
        if ($first != 0) {
            $links .= '<a href="' . $_SERVER['PHP_SELF'] . '?first=0">&lt&lt</a>&nbsp;';
            $links .= '<a href="' . $_SERVER['PHP_SELF'] . '?first=' . $previous_start . '">' . $cmdPrevious . '</a>&nbsp;';
        } else {
            $links .= '<font color="#cccccc">&lt&lt ' . $cmdPrevious . '</font>&nbsp;';
        }
Пример #5
0
}
if ($account['type'] == "imap" && $account) {
    echo '<td class="ModuleIcons">';
    echo '<a href="folders.php?account_id=' . $account['id'] . '&return_to=' . urlencode($link_back) . '"><img src="' . $GO_THEME->images['folders'] . '" border="0" height="32" width="32" /><br />' . $ml_folders . '</a></td>';
    echo '<td class="ModuleIcons">';
    echo '<a href="filters.php?account_id=' . $account['id'] . '&return_to=' . urlencode($link_back) . '"><img src="' . $GO_THEME->images['filters'] . '" border="0" height="32" width="32" /><br />' . $ml_filters . '</a></td>';
}
if ($account) {
    echo '<td class="ModuleIcons">';
    echo '<a href="search.php?account_id=' . $account['id'] . '&mailbox=' . $mailbox . '"><img src="' . $GO_THEME->images['ml_search'] . '" border="0" height="32" width="32" /><br />' . $ml_search . '</a></td>';
    echo '<td class="ModuleIcons">';
    echo '<a href="' . $_SERVER['PHP_SELF'] . '?account_id=' . $account['id'] . '&mailbox=INBOX"><img src="' . $GO_THEME->images['em_refresh'] . '" border="0" height="32" width="32" /><br />' . $ml_refresh . '</a></td>';
    echo '<td class="ModuleIcons">';
    echo '<a href="javascript:confirm_delete()"><img src="' . $GO_THEME->images['delete_big'] . '" border="0" height="32" width="32" /><br />' . $ml_delete . '</a></td>';
    echo '<td class="ModuleIcons">';
    echo '<a href="javascript:confirm_empty_mailbox(\'' . div_confirm_id($ml_confirm_empty_mailbox) . '\')"><img src="' . $GO_THEME->images['empty_folder'] . '" border="0" height="32" width="32" /><br />' . $ml_empty_mailbox . '</a></td>';
}
if ($GO_MODULES->write_permissions) {
    echo '<td class="ModuleIcons">';
    echo '<a href="configuration.php?return_to=' . urlencode($link_back) . '"><img src="' . $GO_THEME->images['em_settings_admin'] . '" border="0" height="32" width="32" /><br />' . $menu_configuration . '</a></td>';
}
?>
</tr>
</table>
<form method="POST" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" name="email_client">
<input type="hidden" name="empty_mailbox" />
<input type="hidden" name="link_back" value="<?php 
echo $link_back;
Пример #6
0
        echo '<tr><td align="right"><h3>' . $strDefault . '</h3></td>';
        echo '<td><h3>' . $strHost . '</h3></td>';
        echo '<td><h3>' . $strEmail . '</h3></td>';
        echo '<td>&nbsp;</td></tr>';
        while ($email->next_record()) {
            if ($email->f("standard") == "1") {
                $checked = "checked";
            } else {
                $checked = "";
            }
            echo '<tr>';
            echo '<td align="right"><input type="radio" onclick="javascript:document.forms[0].submit()" name="account_id" value="' . $email->f("id") . '" ' . $checked . ' /></td>';
            echo '<td>' . $email->f("host") . '</a></td>';
            echo '<td>' . $email->f('email') . '</td>';
            echo '<td><a href="account.php?account_id=' . $email->f('id') . '&return_to=' . urlencode($link_back) . '" title="' . $strEdit . ' ' . $email->f('host') . '"><img src="' . $GO_THEME->images['edit'] . '" border="0" /></a></td>';
            echo "<td><a href=\"javascript:delete_account('" . $email->f("id") . "','" . div_confirm_id($strDeletePrefix . "'" . $email->f("host") . "'" . $strDeleteSuffix) . "')\" title=\"" . $strDeleteItem . " '" . $email->f("host") . "'\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td>\n";
            echo '</tr>';
        }
    } else {
        echo "<tr><td>" . $ml_no_accounts . "</td></tr>";
    }
    ?>
		</table>
		<br />
		<?php 
    $button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
    ?>
		</td>
	</tr>
	</table>
Пример #7
0
        $feedback = "<P class=\"Error\">" . $strAccessDenied . "</p>";
    }
}
$page_title = $groups_title;
require $GO_THEME->theme_path . "header.inc";
$tabtable = new tabtable('groups', $groups_title, '600', '300');
$tabtable->print_head();
echo '<table cellpadding="4" cellspacing="0" border="0">';
if (isset($feedback)) {
    echo $feedback;
}
echo '<tr height="30"><td colspan="3"><a href="' . $GO_CONFIG->host . 'configuration/groups/group.php" class="normal">' . $cmdAdd . '</a></td></tr>';
echo '<tr><td><h3>' . $strName . '</h3></td>';
echo '<td><h3>' . $strOwner . '</h3></td><td>&nbsp;</td></tr>';
//show the groups the user is in and owns.
$GO_GROUPS->get_authorised_groups($GO_SECURITY->user_id);
while ($GO_GROUPS->next_record()) {
    echo '<tr>';
    echo "<td><a class=\"normal\" href=\"group.php?group_id=" . $GO_GROUPS->f("id") . "&group_name=" . $GO_GROUPS->f("name") . "\">" . $GO_GROUPS->f("name") . "</a></td>\n";
    echo "<td>" . show_profile($GO_GROUPS->f("user_id")) . "</td>\n";
    echo "<td><a href='javascript:div_confirm_action(\"" . $_SERVER['PHP_SELF'] . "?delete_group=" . $GO_GROUPS->f("id") . "\",\"" . div_confirm_id($strDeletePrefix . "'" . $GO_GROUPS->f("name") . "'" . $strDeleteSuffix) . "\")' title=\"" . $strDeleteItem . " '" . $GO_GROUPS->f("name") . "'\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td>\n";
    echo "</tr>";
    if ($GO_GROUPS->f("id") == 2) {
        echo '<tr><td colspan=3><hr></td></tr>';
    }
}
echo '</table>';
echo '<br />';
$button = new button($cmdClose, "javascript:document.location='" . $GO_CONFIG->host . "configuration/'");
$tabtable->print_foot();
require $GO_THEME->theme_path . "footer.inc";
Пример #8
0
$ab1 = new addressbook();
if ($ab_count > 0) {
    while ($ab->next_record()) {
        if ($ab1->is_subscribed($GO_SECURITY->user_id, $ab->f("id"))) {
            $checked = 'checked';
        } else {
            $checked = '';
        }
        $check = $ab->f('id') == $default_ab ? 'checked' : '';
        echo '<tr><td><input type="radio" name="default_addressbook_id" value="' . $ab->f("id") . '" ' . $check . ' /></td>';
        echo '<td nowrap><a href="index.php?post_action=browse&addressbook_id=' . $ab->f("id") . '" class="normal">' . htmlspecialchars($ab->f("name")) . '</a>&nbsp;</td>';
        echo '<td nowrap>' . show_profile($ab->f("user_id")) . '&nbsp;</td>';
        echo '<td align="center">&nbsp;<input type="checkbox" name="subscribed[]" value="' . $ab->f("id") . '" ' . $checked . ' /></td>';
        echo '<td>&nbsp;<a href="addressbook.php?addressbook_id=' . $ab->f("id") . '&return_to=' . urlencode($link_back) . '" title="' . $strEdit . ' \'' . htmlspecialchars($ab->f("name")) . '\'"><img src="' . $GO_THEME->images['edit'] . '" border="0" /></a></td>';
        if ($ab->f('user_id') == $GO_SECURITY->user_id) {
            echo "<td>&nbsp;<a href='javascript:delete_addressbook(\"" . $ab->f("id") . "\",\"" . div_confirm_id($strDeletePrefix . "'" . addslashes($ab->f("name")) . "'" . $strDeleteSuffix) . "\")' title=\"" . $strDeleteItem . " '" . htmlspecialchars($ab->f("name")) . "'\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td>";
        }
        echo "</tr>\n";
    }
}
echo '</table><br />';
$button = new button($cmdOk, "javascript:_save('subscribe', 'true')");
echo '&nbsp;&nbsp;';
$button = new button($cmdApply, "javascript:_save('subscribe', 'false')");
echo '&nbsp;&nbsp;';
$button = new button($cmdClose, "javascript:document.location='" . $return_to . "'");
?>
	</td>
</tr>
</table>
<?php 
Пример #9
0
             echo "<td>&nbsp;" . $folder_name . "</td></tr>";
         }
         if ($go_mailboxes[$a]['attributes'] & LATT_NOSELECT) {
             $disabled = ' disabled';
         } else {
             $disabled = '';
         }
         echo '</table></td>';
         if ($go_mailboxes[$a]['subscribed'] == 1) {
             $checked = 'checked';
         } else {
             $checked = '';
         }
         echo '<td align="center"><input type="checkbox" name="use[]" value="' . $go_mailboxes[$a]['name'] . '" ' . $checked . ' /></td>';
         echo '<td><a href="' . $_SERVER['PHP_SELF'] . '?account_id=' . $account_id . '&return_to=' . urlencode($return_to) . '&link_back=' . urlencode($link_back) . '&edit_name=' . urlencode($go_mailboxes[$a]['name']) . '" title="' . $strEdit . ' ' . $go_mailboxes[$a]['name'] . '"><img src="' . $GO_THEME->images['edit'] . '" border="0" /></a></td>';
         echo "<td><a href='javascript:div_confirm_action(\"" . $_SERVER['PHP_SELF'] . "?account_id=" . $account_id . "&return_to=" . urlencode($return_to) . "&delete_folder=" . urlencode($go_mailboxes[$a]['name']) . "\",\"" . div_confirm_id($strDeletePrefix . "'" . $folder_name . "'" . $strDeleteSuffix) . "\")' title=\"" . $strDeleteItem . " '" . $go_mailboxes[$a]['name'] . "'\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td>";
         echo '</tr>';
         $lastfolder = $go_mailboxes[$a]['name'];
     }
 }
 echo '<tr><td colspan="6"><br />';
 $button = new button($cmdOk, "javascript:_save('save', 'true');");
 echo '&nbsp;&nbsp;';
 $button = new button($cmdApply, "javascript:_save('save', 'false');");
 echo '&nbsp;&nbsp;';
 if ($edit_name != '') {
     $button = new button($cmdCancel, 'javascript:document.location=\'' . $link_back . '\'');
 } else {
     $button = new button($cmdClose, 'javascript:document.location=\'' . $return_to . '\'');
 }
 echo '</td></tr>';
Пример #10
0
    echo $sort_arrow;
}
echo '</td>';
echo '<td class="TableHead2" width="100" nowrap><a class="TableHead2" href="javascript:_sort(\'mtime\',\'' . $new_sort_direction . '\');">' . $strModifiedAt . '</a>';
if ($an_sort_field == 'mtime') {
    echo $sort_arrow;
}
echo '</td>';
echo '<td class="TableHead2">&nbsp;</td></tr>';
if ($count > 0) {
    while ($announcements->next_record()) {
        echo '<tr><td><a class="normal" href="announcement.php?announcement_id=' . $announcements->f('id') . '&return_to=' . rawurlencode($link_back) . '">' . htmlspecialchars($announcements->f('title')) . '</a></td>';
        $due_time = $announcements->f('due_time') > 0 ? date($_SESSION['GO_SESSION']['date_format'], $announcements->f('due_time')) : '';
        echo '<td>' . $due_time . '</td>';
        echo '<td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $announcements->f('mtime') + $_SESSION['GO_SESSION']['timezone'] * 3600) . '</td>';
        echo "<td><a href='javascript:div_confirm_action(\"javascript:delete_announcement(" . $announcements->f('id') . ")\",\"" . div_confirm_id($strDeletePrefix . "'" . htmlspecialchars($announcements->f('title')) . "'" . $strDeleteSuffix) . "\")' title=\"" . $strDeleteItem . " '" . htmlspecialchars($announcements->f('title')) . "'\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td>\n";
        echo '<tr><td colspan="99" height="1"><img src="' . $GO_THEME->images['cccccc'] . '" border="0" height="1" width="100%" /></td></tr>';
    }
    $links = '';
    $max_links = 10;
    if ($max_rows != 0) {
        if ($count > $max_rows) {
            $links = '<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>';
            $next_start = $first + $max_rows;
            $previous_start = $first - $max_rows;
            if ($first != 0) {
                $links .= '<a href="javascript:change_list(0, ' . $max_rows . ');">&lt;&lt;</a>&nbsp;';
                $links .= '<a href="javascript:change_list(' . $previous_start . ', ' . $max_rows . ');">' . $cmdPrevious . '</a>&nbsp;';
            } else {
                $links .= '<font color="#cccccc">&lt;&lt; ' . $cmdPrevious . '</font>&nbsp;';
            }
Пример #11
0
    }
    $title .= '</tr></table>';
    $tabtable = new tabtable('tab_0', $title, '100%', '', '120', '');
    $tabtable->html_title = true;
} else {
    $tabtable = new tabtable('tab_0', $lang_modules['bookmarks'], '100%', '', '120', '');
}
$tabtable->print_head();
if ($bookmark_count = $bookmarks->get_bookmarks($GO_SECURITY->user_id, 0)) {
    echo '<table border="0" width="100%">';
    while ($bookmarks->next_record()) {
        $bookmark_write = $GO_SECURITY->has_permission($GO_SECURITY->user_id, $bookmarks->f('acl_write'));
        $target = $bookmarks->f('new_window') == '1' ? '_blank' : '_self';
        echo '<tr>';
        if ($bookmark_write) {
            echo '<td><input type="checkbox" name="bookmarks[]" value="' . $bookmarks->f('id') . '" id="' . div_confirm_id($bookmarks->f('name')) . '" /></td>';
        } else {
            echo '<td>&nbsp;</td>';
        }
        echo '<td width="100%"><a target="' . $target . '" class="normal" href="' . $bookmarks->f("URL") . '">' . htmlspecialchars($bookmarks->f("name")) . '</a></td>';
        if ($bookmark_write) {
            echo '<td width="16"><a class="normal" href="bookmark.php?bookmark_id=' . $bookmarks->f("id") . '"><img src="' . $GO_THEME->images['edit'] . '" border="0"></a></td>';
        } else {
            echo '<td>&nbsp;</td>';
        }
        echo '</tr>';
    }
    echo '</table>';
} else {
    if ($catagory_count > 0) {
        echo $bm_no_bookmarks_in_catagory;