90 lines
2.5 KiB
PHP
90 lines
2.5 KiB
PHP
<?php
|
|
session_start();
|
|
include ("../Config.php");
|
|
include_once('protect.php');
|
|
checkCanEnter('adminpanelRoles');
|
|
|
|
$webmasterid = 8221;
|
|
$webmaster = Webmaster::get($webmasterid);
|
|
|
|
$config = DB::getOne('chat_config', "where webmasterid=$webmasterid");
|
|
$webmaster = Webmaster::get($webmasterid);
|
|
$chatType = $config->chatType;
|
|
|
|
|
|
include("xcrud/xcrud.php");
|
|
include ("lng/language.php");
|
|
!empty($_GET['lang']) ? $lng = new Language($_GET['lang']) : $lng = new Language();
|
|
$lng = $lng->getData();
|
|
$lngPage = $lng['rooms'];
|
|
|
|
$xcrud = Xcrud::get_instance();
|
|
$table = 'chat_credits';
|
|
$xcrud->table($table);
|
|
$xcrud->pass_var('webmasterid', $webmasterid);
|
|
$xcrud->where('webmasterid =', $webmasterid);
|
|
|
|
$xcrud->columns('username, credits, role');
|
|
$xcrud->fields('username, credits, role', false, 'Global');
|
|
$xcrud->button('conferenceReportsDetail.php?userid={userid}', 'details', 'icon-link');
|
|
|
|
|
|
|
|
//view, edit, remove, duplicate, add, csv, print, save_new, save_edit, save_return, return.
|
|
$xcrud->hide_button('save_new');
|
|
//$xcrud->hide_button('save_return');
|
|
$xcrud->hide_button('return');
|
|
$xcrud->unset_add();
|
|
//$xcrud->unset_search();
|
|
$xcrud->unset_remove();
|
|
|
|
//$xcrud->unset_list();
|
|
//$xcrud->unset_title();
|
|
//$xcrud->unset_view();
|
|
//$xcrud->unset_csv();
|
|
$xcrud->unset_limitlist();
|
|
$xcrud->unset_numbers();
|
|
//$xcrud->unset_print();
|
|
$xcrud->unset_sortable();
|
|
|
|
// $xcrud->emails_label(' email');
|
|
//$xcrud->show_primary_ai_column(true);
|
|
?>
|
|
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
<meta name=viewport content="width=device-width, initial-scale=1">
|
|
<?php include('css.php');?>
|
|
<?php include('js.php');?>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../css/common.css">
|
|
|
|
<title>Credits</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="panel panel-default admin-panel">
|
|
<div class="panel-heading">
|
|
<Button class="btn a-header-btn" id="logout"><i class="fa fa-sign-out"></i> <?php echo $lng['menu']['logout']; ?></Button>
|
|
<ul class="breadcrumb">
|
|
<li><a href="loggedon.php"><?php echo $lng['menu']['loggedon']; ?></a></li>
|
|
<li class="active">Credtis</li>
|
|
</ul>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="flex-property adition-box margin-btm">
|
|
<?php include('freeAccount.php');?>
|
|
</div>
|
|
<div class="admin-table rooms-table">
|
|
<?php echo $xcrud->render($webmasterid); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php include ('footer.php');?>
|
|
|
|
</body>
|
|
|
|
</html>
|