2007-10-10 19:15:47 +04:00
|
|
|
<?php
|
|
|
|
/*
|
2009-06-04 02:44:32 +04:00
|
|
|
* This file is part of Mibew Messenger project.
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2009-06-04 02:44:32 +04:00
|
|
|
* Copyright (c) 2005-2009 Mibew Messenger Community
|
2009-08-04 19:03:27 +04:00
|
|
|
* All rights reserved. The contents of this file are subject to the terms of
|
|
|
|
* the Eclipse Public License v1.0 which accompanies this distribution, and
|
|
|
|
* is available at http://www.eclipse.org/legal/epl-v10.html
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2009-08-04 17:38:37 +04:00
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* the GNU General Public License Version 2 or later (the "GPL"), in which case
|
|
|
|
* the provisions of the GPL are applicable instead of those above. If you wish
|
|
|
|
* to allow use of your version of this file only under the terms of the GPL, and
|
|
|
|
* not to allow others to use your version of this file under the terms of the
|
|
|
|
* EPL, indicate your decision by deleting the provisions above and replace them
|
|
|
|
* with the notice and other provisions required by the GPL.
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2007-10-10 19:15:47 +04:00
|
|
|
* Contributors:
|
|
|
|
* Evgeny Gryaznov - initial API and implementation
|
|
|
|
*/
|
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
require_once("inc_menu.php");
|
|
|
|
$page['title'] = getlocal("topMenu.admin");
|
|
|
|
$page['menuid'] = "main";
|
2008-09-30 03:07:06 +04:00
|
|
|
|
2009-08-11 13:41:13 +04:00
|
|
|
function tpl_header() { global $page, $webimroot, $jsver;
|
2009-03-17 01:36:26 +03:00
|
|
|
if(isset($page) && isset($page['localeLinks'])) {
|
2009-03-14 02:46:25 +03:00
|
|
|
?>
|
|
|
|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/jquery-1.3.2.min.js"></script>
|
2009-08-11 13:41:13 +04:00
|
|
|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/<?php echo $jsver ?>/locale.js"></script>
|
2009-03-14 02:46:25 +03:00
|
|
|
<?php
|
2009-03-17 01:36:26 +03:00
|
|
|
}
|
2009-03-14 02:46:25 +03:00
|
|
|
}
|
|
|
|
|
2009-03-16 03:43:24 +03:00
|
|
|
function menuseparator() {
|
|
|
|
global $menuItemsCount;
|
|
|
|
$menuItemsCount++;
|
|
|
|
if(($menuItemsCount%3) == 0) { echo "</tr><tr>"; }
|
|
|
|
}
|
|
|
|
|
|
|
|
function tpl_content() { global $page, $webimroot, $current_locale, $menuItemsCount;
|
2009-03-12 04:07:35 +03:00
|
|
|
?>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-14 02:46:25 +03:00
|
|
|
<br/>
|
2009-02-04 03:31:26 +03:00
|
|
|
<?php if( $page['needUpdate'] ) { ?>
|
|
|
|
<div id="formmessage"><?php echo getlocal2("install.updatedb",array($page['updateWizard'])) ?></div>
|
|
|
|
<br/>
|
|
|
|
<?php } ?>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-14 02:46:25 +03:00
|
|
|
<table id="dashboard">
|
|
|
|
<tr>
|
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/visitors.gif" alt=""/>
|
2009-03-12 04:07:35 +03:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/users.php'>
|
|
|
|
<?php echo getlocal('topMenu.users') ?></a>
|
|
|
|
<?php echo getlocal('page_client.pending_users') ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
</td>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-14 02:46:25 +03:00
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/history.gif" alt=""/>
|
2009-03-12 04:07:35 +03:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/history.php'>
|
|
|
|
<?php echo getlocal('page_analysis.search.title') ?></a>
|
|
|
|
<?php echo getlocal('content.history') ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
</td>
|
2009-03-16 03:43:24 +03:00
|
|
|
<?php
|
|
|
|
$menuItemsCount = 2;
|
|
|
|
?>
|
2009-03-22 05:22:34 +03:00
|
|
|
|
|
|
|
<?php if($page['showstat']) { ?>
|
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/stat.gif" alt=""/>
|
2009-03-22 05:22:34 +03:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/statistics.php'>
|
|
|
|
<?php echo getlocal('statistics.title') ?></a>
|
|
|
|
<?php echo getlocal('statistics.description') ?>
|
|
|
|
</td>
|
|
|
|
<?php menuseparator(); ?>
|
|
|
|
<?php } ?>
|
2009-04-10 18:12:57 +04:00
|
|
|
|
|
|
|
<?php if( $page['showban'] ) { ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/blocked.gif" alt=""/>
|
2009-03-12 04:07:35 +03:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/blocked.php'>
|
|
|
|
<?php echo getlocal('menu.blocked') ?></a>
|
|
|
|
<?php echo getlocal('content.blocked') ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
</td>
|
2009-03-16 03:43:24 +03:00
|
|
|
<?php menuseparator(); ?>
|
2009-04-10 18:12:57 +04:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/canned.gif" alt=""/>
|
2009-04-10 18:12:57 +04:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/canned.php'>
|
|
|
|
<?php echo getlocal('menu.canned') ?></a>
|
|
|
|
<?php echo getlocal('canned.descr') ?>
|
|
|
|
</td>
|
|
|
|
<?php menuseparator(); ?>
|
|
|
|
|
|
|
|
<?php if( $page['showadmin'] ) { ?>
|
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/getcode.gif" alt=""/>
|
2009-04-10 18:12:57 +04:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/getcode.php'>
|
|
|
|
<?php echo getlocal('leftMenu.client_gen_button') ?></a>
|
|
|
|
<?php echo getlocal('admin.content.client_gen_button') ?>
|
|
|
|
</td>
|
|
|
|
<?php menuseparator(); ?>
|
2009-03-16 03:43:24 +03:00
|
|
|
|
2009-03-14 02:46:25 +03:00
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/operators.gif" alt=""/>
|
2009-03-12 04:07:35 +03:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/operators.php'>
|
|
|
|
<?php echo getlocal('leftMenu.client_agents') ?></a>
|
|
|
|
<?php echo getlocal('admin.content.client_agents') ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
</td>
|
2009-03-16 03:43:24 +03:00
|
|
|
<?php menuseparator(); ?>
|
2009-03-17 00:49:45 +03:00
|
|
|
|
2009-03-23 00:22:51 +03:00
|
|
|
<?php if($page['showgroups']) { ?>
|
2009-03-17 00:49:45 +03:00
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/dep.gif" alt=""/>
|
2009-03-23 00:22:51 +03:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/groups.php'>
|
|
|
|
<?php echo getlocal('menu.groups') ?></a>
|
|
|
|
<?php echo getlocal('menu.groups.content') ?>
|
2009-03-17 00:49:45 +03:00
|
|
|
</td>
|
|
|
|
<?php menuseparator(); ?>
|
|
|
|
<?php } ?>
|
2009-03-12 04:07:35 +03:00
|
|
|
|
2009-03-14 02:46:25 +03:00
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/settings.gif" alt=""/>
|
2009-03-12 04:07:35 +03:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/settings.php'>
|
|
|
|
<?php echo getlocal('leftMenu.client_settings') ?></a>
|
|
|
|
<?php echo getlocal('admin.content.client_settings') ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
</td>
|
2009-03-16 03:43:24 +03:00
|
|
|
<?php menuseparator(); ?>
|
2008-12-09 02:47:40 +03:00
|
|
|
<?php } ?>
|
2008-09-30 03:07:06 +04:00
|
|
|
|
2009-04-10 18:12:57 +04:00
|
|
|
<?php if(isset($page['currentopid']) && $page['currentopid']) {?>
|
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/profile.gif" alt=""/>
|
2009-04-10 18:12:57 +04:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/operator.php?op=<?php echo $page['currentopid'] ?>'>
|
|
|
|
<?php echo getlocal('menu.profile') ?></a>
|
|
|
|
<?php echo getlocal('menu.profile.content') ?>
|
|
|
|
</td>
|
|
|
|
<?php menuseparator(); ?>
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-03-17 01:36:26 +03:00
|
|
|
<?php if(isset($page) && isset($page['localeLinks'])) { ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/locale.gif" alt=""/>
|
2009-03-14 02:46:25 +03:00
|
|
|
<a href='#' id="changelang">
|
|
|
|
<?php echo getlocal('menu.locale') ?></a>
|
|
|
|
<?php echo getlocal('menu.locale.content') ?>
|
|
|
|
</td>
|
2009-03-16 03:43:24 +03:00
|
|
|
<?php menuseparator(); ?>
|
2009-03-17 01:36:26 +03:00
|
|
|
<?php } ?>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-04-10 01:43:25 +04:00
|
|
|
<?php if( $page['showadmin'] ) { ?>
|
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/updates.gif" alt=""/>
|
2009-04-10 01:43:25 +04:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/updates.php'>
|
|
|
|
<?php echo getlocal('menu.updates') ?></a>
|
|
|
|
<?php echo getlocal('menu.updates.content') ?>
|
|
|
|
</td>
|
|
|
|
<?php menuseparator(); ?>
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-03-14 02:46:25 +03:00
|
|
|
<td class="dashitem">
|
2009-04-24 02:39:41 +04:00
|
|
|
<img src="<?php echo $webimroot ?>/images/dash/exit.gif" alt=""/>
|
2009-03-12 04:07:35 +03:00
|
|
|
<a href='<?php echo $webimroot ?>/operator/logout.php'>
|
|
|
|
<?php echo getlocal('topMenu.logoff') ?></a>
|
|
|
|
<?php echo getlocal('content.logoff') ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-17 01:36:26 +03:00
|
|
|
<?php if(isset($page) && isset($page['localeLinks'])) { ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
<div id="dashlocalesPopup">
|
2009-04-24 02:39:41 +04:00
|
|
|
<a href="#" id="dashlocalesPopupClose"><img src="<?php echo $webimroot ?>/images/dash/close.gif" alt="X"/></a>
|
|
|
|
<h2><img src="<?php echo $webimroot ?>/images/dash/locale.gif" alt=""/>
|
2009-03-14 02:46:25 +03:00
|
|
|
<b><?php echo getlocal("lang.choose") ?></b></h2>
|
|
|
|
<ul class="locales">
|
|
|
|
<?php foreach($page['localeLinks'] as $id => $title) { ?>
|
|
|
|
<li<?php echo $current_locale == $id ? " class=\"active\"" : "" ?> ><a href='?locale=<?php echo $id ?>'><?php echo $title ?></a></li>
|
|
|
|
<?php } ?>
|
|
|
|
</ul>
|
2009-03-12 04:07:35 +03:00
|
|
|
</div>
|
2009-03-14 02:46:25 +03:00
|
|
|
<div id="backgroundPopup"></div>
|
2009-03-17 01:36:26 +03:00
|
|
|
<?php } ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
<?php
|
|
|
|
} /* content */
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-12 04:07:35 +03:00
|
|
|
require_once('inc_main.php');
|
|
|
|
?>
|