update: 后台结构和UI调整

This commit is contained in:
Jackson Dou 2023-06-16 00:58:07 +08:00
parent 28c9ef0a2a
commit 517ca3680f
94 changed files with 2379 additions and 6047 deletions

View file

@ -4,13 +4,13 @@ require_once __DIR__ . '/application.php';
$action = get('action', 'list');
if (!in_array($action, array('list', 'add', 'edit', 'view', 'goftp', 'login', 'sync'))) {
if (!in_array($action, array('list', 'add', 'edit', 'details', 'goftp', 'login', 'sync'))) {
$action = 'list';
}
require __DIR__ . '/controllers/accounts/' . $action . '.php';
require __DIR__ . '/views/common/header.php';
require __DIR__ . '/views/common/navbar.php';
require __DIR__ . '/views/common/sidebar.php';
// require __DIR__ . '/views/common/sidebar.php';
require __DIR__ . '/views/accounts/' . $action . '.php';
require __DIR__ . '/views/common/footer.php';

View file

@ -4,13 +4,13 @@ require_once __DIR__ . '/application.php';
$action = get('action', 'list');
if (!in_array($action, array('list', 'add', 'edit', 'view', 'login'))) {
if (!in_array($action, array('list', 'add', 'edit', 'details', 'login'))) {
$action = 'list';
}
require __DIR__ . '/controllers/clients/' . $action . '.php';
require __DIR__ . '/views/common/header.php';
require __DIR__ . '/views/common/navbar.php';
require __DIR__ . '/views/common/sidebar.php';
// require __DIR__ . '/views/common/sidebar.php';
require __DIR__ . '/views/clients/' . $action . '.php';
require __DIR__ . '/views/common/footer.php';

View file

@ -17,7 +17,7 @@ if (empty($AccountInfo)) {
redirect('admin/accounts');
}
$PageInfo['title'] = 'View Account (#' . $account_id . ')';
$PageInfo['title'] = 'Account Details';
$AccountApi = $DB->find('account_api', '*', array('api_key' => $AccountInfo['account_api_key']), null, 1);
$AccountDomainList = $DB->findAll('account_domain', '*', array('domain_account_id' => $account_id));

View file

@ -6,4 +6,4 @@ $account_id = get('account_id');
$AccountInfo = $DB->find('account', '*', array('account_id' => $account_id), null, 1);
$ClientInfo = $DB->find('clients', '*', array('client_id' => $AccountInfo['account_client_id']), null, 1);
$PageInfo['title'] = 'Edit Account #' . $account_id;
$PageInfo['title'] = 'Account Edit';

View file

@ -0,0 +1,4 @@
<?php
require_once ROOT . '/core/library/countries.php';
$PageInfo['title'] = 'Client Add';

View file

@ -0,0 +1,25 @@
<?php
require_once ROOT . '/core/library/countries.php';
$client_id = get('id');
if (empty($client_id)) {
redirect('admin/clients');
}
$ClientInfo = $DB->find('clients', '*', array('client_id' => $client_id), null, 1);
$CountryName = 'Not Defined';
foreach ($countries as $country) {
if ($ClientInfo['client_country'] == $country['code']) {
$CountryName = $country['name'];
break;
}
}
$PageInfo['title'] = 'Client Details';
$count_account = $DB->count('account', array('account_client_id' => $ClientInfo['client_id']));
$count_ssl = $DB->count('ssl', array('ssl_client_id' => $ClientInfo['client_id']));
$count_tickets = $DB->count('tickets', array('ticket_client_id' => $ClientInfo['client_id']));

View file

@ -2,7 +2,7 @@
require_once ROOT . '/core/library/countries.php';
$client_id = get('client_id');
$client_id = get('id');
if (empty($client_id)) {
redirect('admin/clients');
@ -20,7 +20,7 @@ foreach ($countries as $country) {
}
}
$PageInfo['title'] = 'View client (' . $client_id . ')';
$PageInfo['title'] = 'Client Edit';
$count_account = $DB->count('account', array('account_client_id' => $ClientInfo['client_id']));
$count_ssl = $DB->count('ssl', array('ssl_client_id' => $ClientInfo['client_id']));
$count_tickets = $DB->count('tickets', array('ticket_client_id' => $ClientInfo['client_id']));

View file

@ -1,7 +1,14 @@
<?php
$PageInfo['title'] = 'Dashboard';
$count_clients = $DB->count('clients', null);
$count_client = $DB->count('clients', array('client_status' => 1));
$count_clients = $DB->count('clients');
$count_account = $DB->count('account', array('account_status' => 1));
$count_accounts = $DB->count('account');
$count_ssl = $DB->count('ssl');
$count_tickets = $DB->count('tickets', "`ticket_status`=0 OR `ticket_status`=2");
$count_ssls = $DB->count('ssl');
$count_ticket = $DB->count('tickets', "`ticket_status`=0 OR `ticket_status`=2");
$count_tickets = $DB->count('tickets');
$date = date("Y-m-d H:i:s");
$mysqlversion = $DB->getColumn("select VERSION()");

View file

@ -10,12 +10,9 @@ $api_key = get('api_key');
if ($api_id > 0) {
$data = $DB->find('account_api', '*', array('api_id' => $api_id), null, 1);
$api_callback_url = "{$site_url}/callback/{$data['api_key']}/{$data['api_callback_token']}";
$PageInfo = ['title' => 'View Hosting Provider', 'rel' => ''];
} else if (!empty($api_key)) {
$data = $DB->find('account_api', '*', array('api_key' => $api_key), null, 1);
$api_callback_url = "{$site_url}/callback/{$data['api_key']}/{$data['api_callback_token']}";
$PageInfo = ['title' => 'View Hosting Provider', 'rel' => ''];
} else {
$PageInfo = ['title' => 'Unathorized Access', 'rel' => ''];
$data = null;
}

View file

@ -105,7 +105,6 @@ if (isset($_POST['submit'])) {
$id = get('id');
if ($id > 0) {
$data = $DB->find('account_api', '*', array('api_id' => $id), null, 1);
$PageInfo = ['title' => 'Edit Hosting Provider #' . $id, 'rel' => ''];
} else {
setMessage('need field: id', 'danger');
redirect('admin/hosting');

View file

@ -17,6 +17,5 @@ if (isset($_POST['submit'])) {
}
redirect('admin/knowledgebase');
} else {
$PageInfo = ['title' => 'New Knowledgebase', 'rel' => ''];
$load_editor = 1;
}

View file

@ -7,9 +7,7 @@ if (!defined('IN_CRONLITE')) {
$knowledgebase_id = get('id');
if ($knowledgebase_id > 0) {
$PageInfo = ['title' => 'View Knowledgebase #' . $knowledgebase_id, 'rel' => ''];
$Knowledgebase = $DB->find('knowledgebase', '*', array('knowledgebase_id' => $knowledgebase_id), null, 1);
} else {
$PageInfo = ['title' => 'Unathorized Access', 'rel' => ''];
$Knowledgebase = null;
}

View file

@ -35,10 +35,8 @@ if (isset($_POST['submit'])) {
$id = get('id');
$load_editor = 1;
if ($id > 0) {
$PageInfo = ['title' => 'Edit Knowledgebase #' . $id, 'rel' => ''];
$Knowledgebase = $DB->getRow("SELECT * FROM pre_knowledgebase WHERE knowledgebase_id='{$id}' limit 1");
} else {
$PageInfo = ['title' => 'Unathorized Access', 'rel' => ''];
$Knowledgebase = null;
}
}

View file

@ -6,11 +6,9 @@ if (!defined('IN_CRONLITE')) {
$ticket_id = get('ticket_id', 0);
if ($ticket_id > 0) {
$PageInfo['title'] = 'View Ticket #' . $ticket_id;
$TicketInfo = $DB->find('tickets', '*', array('ticket_id' => $ticket_id), null, 1);
$ReplyCount = $DB->count('ticket_replies', array('reply_for' => $ticket_id));
$ReplyInfo = $DB->findAll('ticket_replies', '*', array('reply_for' => $ticket_id), '`reply_id` DESC');
} else {
$PageInfo['title'] = 'Unathorized Access';
$TicketInfo = null;
}

View file

@ -12,7 +12,7 @@ if (!$ticket_id) {
exit('Access Denied');
}
$TicketInfo = $DB->find('tickets', 'ticket_email, ticket_client_id', array('ticket_id' => $ticket_id));
$TicketInfo = $DB->find('tickets', '*', array('ticket_id' => $ticket_id));
if (!$TicketInfo) {
exit('Access Denied');

View file

@ -13,6 +13,6 @@ $PageInfo['title'] = 'Domain Provider ' . ucfirst($action);
require __DIR__ . '/controllers/domain/' . $action . '.php';
require __DIR__ . '/views/common/header.php';
require __DIR__ . '/views/common/navbar.php';
require __DIR__ . '/views/common/sidebar.php';
// require __DIR__ . '/views/common/sidebar.php';
require __DIR__ . '/views/domain/' . $action . '.php';
require __DIR__ . '/views/common/footer.php';

View file

@ -2,6 +2,6 @@
require_once __DIR__ . '/../core/application.php';
require_once __DIR__ . '/controllers/profile/forgetpassword.php';
require_once __DIR__ . '/views/common/header.php';
require_once __DIR__ . '/views/profile/forgetpassword.php';
require_once __DIR__ . '/views/common/footer.php';
require_once __DIR__ . '/views/login/header.php';
require_once __DIR__ . '/views/login/forgetpassword.php';
require_once __DIR__ . '/views/login/footer.php';

View file

@ -4,7 +4,7 @@ require_once __DIR__ . '/application.php';
$action = get('action', 'list');
if (!in_array($action, array('list', 'add', 'edit', 'view'))) {
if (!in_array($action, array('list', 'add', 'edit', 'details'))) {
$action = 'list';
}
@ -13,6 +13,6 @@ $PageInfo['title'] = 'Hosting Provider ' . ucfirst($action);
require __DIR__ . '/controllers/hosting/' . $action . '.php';
require __DIR__ . '/views/common/header.php';
require __DIR__ . '/views/common/navbar.php';
require __DIR__ . '/views/common/sidebar.php';
// require __DIR__ . '/views/common/sidebar.php';
require __DIR__ . '/views/hosting/' . $action . '.php';
require __DIR__ . '/views/common/footer.php';

View file

@ -4,6 +4,6 @@ require_once __DIR__ . '/application.php';
require_once __DIR__ . '/controllers/dashboard/view.php';
require_once __DIR__ . '/views/common/header.php';
require_once __DIR__ . '/views/common/navbar.php';
require_once __DIR__ . '/views/common/sidebar.php';
// require_once __DIR__ . '/views/common/sidebar.php';
require_once __DIR__ . '/views/dashboard/view.php';
require_once __DIR__ . '/views/common/footer.php';

View file

@ -4,7 +4,7 @@ require_once __DIR__ . '/application.php';
$action = get('action', 'list');
if (!in_array($action, array('list', 'add', 'edit', 'view'))) {
if (!in_array($action, array('list', 'add', 'edit', 'details'))) {
$action = 'list';
}
@ -13,6 +13,6 @@ $PageInfo['title'] = 'Knowledgebase ' . ucfirst($action);
require __DIR__ . '/controllers/knowledgebase/' . $action . '.php';
require __DIR__ . '/views/common/header.php';
require __DIR__ . '/views/common/navbar.php';
require __DIR__ . '/views/common/sidebar.php';
// require __DIR__ . '/views/common/sidebar.php';
require __DIR__ . '/views/knowledgebase/' . $action . '.php';
require __DIR__ . '/views/common/footer.php';

View file

@ -9,6 +9,6 @@ if (isset($_SESSION['UIISC_ADMIN'])) {
$PageInfo['title'] = $lang->I18N('login');
$PageInfo['rel'] = '<link href="' . $site_url . '/assets/css/login.css" rel="stylesheet" />';
require_once __DIR__ . '/views/common/header.php';
require_once __DIR__ . '/views/login/header.php';
require_once __DIR__ . '/views/login/login.php';
require_once __DIR__ . '/views/common/footer.php';
require_once __DIR__ . '/views/login/footer.php';

View file

@ -11,6 +11,6 @@ if (!in_array($action, array('list', 'add', 'edit', 'view'))) {
require __DIR__ . '/controllers/news/' . $action . '.php';
require __DIR__ . '/views/common/header.php';
require __DIR__ . '/views/common/navbar.php';
require __DIR__ . '/views/common/sidebar.php';
// require __DIR__ . '/views/common/sidebar.php';
require __DIR__ . '/views/news/' . $action . '.php';
require __DIR__ . '/views/common/footer.php';

View file

@ -11,6 +11,6 @@ if (!in_array($action, array('edit', 'view'))) {
require __DIR__ . '/controllers/profile/' . $action . '.php';
require __DIR__ . '/views/common/header.php';
require __DIR__ . '/views/common/navbar.php';
require __DIR__ . '/views/common/sidebar.php';
// require __DIR__ . '/views/common/sidebar.php';
require __DIR__ . '/views/profile/' . $action . '.php';
require __DIR__ . '/views/common/footer.php';

View file

@ -2,6 +2,6 @@
require_once __DIR__ . '/../core/application.php';
require_once __DIR__ . '/controllers/profile/resetpassword.php';
require_once __DIR__ . '/views/common/header.php';
require_once __DIR__ . '/views/profile/resetpassword.php';
require_once __DIR__ . '/views/common/footer.php';
require_once __DIR__ . '/views/login/header.php';
require_once __DIR__ . '/views/login/resetpassword.php';
require_once __DIR__ . '/views/login/footer.php';

View file

@ -16,7 +16,7 @@ if (!in_array($action, array('edit', 'view'))) {
require __DIR__ . '/controllers/' . $section . '/' . $action . '.php';
require __DIR__ . '/views/common/header.php';
require __DIR__ . '/views/common/navbar.php';
require __DIR__ . '/views/common/sidebar.php';
// require __DIR__ . '/views/common/sidebar.php';
require __DIR__ . '/views/settings/menu.php';
require __DIR__ . '/views/' . $section . '/' . $action . '.php';
require __DIR__ . '/views/common/footer.php';

View file

@ -11,6 +11,6 @@ if (!in_array($action, array('list', 'add', 'edit', 'view'))) {
require __DIR__ . '/controllers/sslcert/' . $action . '.php';
require __DIR__ . '/views/common/header.php';
require __DIR__ . '/views/common/navbar.php';
require __DIR__ . '/views/common/sidebar.php';
// require __DIR__ . '/views/common/sidebar.php';
require __DIR__ . '/views/sslcert/' . $action . '.php';
require __DIR__ . '/views/common/footer.php';

View file

@ -5,15 +5,15 @@ require_once ROOT . '/core/library/tickets.php';
$action = get('action', 'list');
if (!in_array($action, array('list', 'add', 'edit', 'view'))) {
if (!in_array($action, array('list', 'add', 'edit', 'details'))) {
$action = 'list';
}
$PageInfo['title'] = 'Tckets ' . ucfirst($action);
$PageInfo['title'] = 'Ticket ' . ucfirst($action);
require __DIR__ . '/controllers/tickets/' . $action . '.php';
require __DIR__ . '/views/common/header.php';
require __DIR__ . '/views/common/navbar.php';
require __DIR__ . '/views/common/sidebar.php';
// require __DIR__ . '/views/common/sidebar.php';
require __DIR__ . '/views/tickets/' . $action . '.php';
require __DIR__ . '/views/common/footer.php';

View file

@ -0,0 +1,168 @@
<div class="content-wrapper">
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="accounts.php"><?php echo $lang->I18N('Account List'); ?></a></li>
<li class="active"><?php echo $lang->I18N('Account Details'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">
<?php echo $PageInfo['title']; ?>
<span class="label label-default"> ID <?php echo $account_id; ?></span>
</div>
</div>
<div class="panel-body">
<?php if ($AccountInfo['account_status'] == '0'): ?>
<div class="alert alert-secondary col-md-12">This account is inactive.</div>
<?php elseif ($AccountInfo['account_status'] == '2'): ?>
<div class="alert alert-secondary col-md-12">This account has been suspended.</div>
<?php elseif ($AccountInfo['account_status'] == '3'): ?>
<div class="alert alert-secondary col-md-12">This account has been deleted.</div>
<?php endif;?>
<div class="row pb-10">
<div class="col-md-12 pb-10 mb-10">
<div class="row">
<div class="col-md-6 px-5 text-center py-15">
<i class="fa fa-laptop fa-10x"></i>
</div>
<div class="col-md-6 py-5 text-center text-md-right">
<?php if ($AccountInfo['account_status'] == '1'): ?>
<a href="accounts.php?action=login&account_id=<?php echo $account_id; ?>" target="_blank" class="btn btn-success btn-block"><?php echo $lang->I18N('Control Panel'); ?></a>
<a href="accounts.php?action=goftp&account_id=<?php echo $account_id; ?>" target="_blank" class="btn btn-primary btn-block"><?php echo $lang->I18N('File Manager'); ?></a>
<?php endif;?>
<a href="accounts.php?action=edit&account_id=<?php echo $account_id; ?>" class="btn btn-secondary btn-block"><?php echo $lang->I18N('Edit Settings'); ?></a>
</div>
</div>
</div>
<hr />
<div class="col-md-4 col-sm-6">
<div class="m-5">
<b>Control Panel Username:</b>
<span><?php echo $AccountInfo['account_username']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>Control Panel Password:</b>
<span><kbd><?php echo $AccountInfo['account_password']; ?></kbd></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>Main Domain:</b>
<span><?php echo $AccountInfo['account_domain']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>Control Panel Domain:</b>
<span><?php echo $AccountApi['api_cpanel_url']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6 col-md-6">
<div class="d-flex justify-content-between align-items-center">
<b>Status:</b>
<span><?php if ($AccountInfo['account_status'] == '0'): ?>
<span class="label label-info">Inactive</span>
<?php elseif ($AccountInfo['account_status'] == '1'): ?>
<span class="label label-success">Active</span>
<?php elseif ($AccountInfo['account_status'] == '2'): ?>
<span class="label label-warning">Suspended</span>
<?php elseif ($AccountInfo['account_status'] == '3'): ?>
<span class="label label-danger">Deleted</span>
<?php endif; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>Creation Date:</b>
<span><?php echo $AccountInfo['account_date']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>Server IP:</b>
<span><?php echo $AccountApi['api_server_ip']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>Your IP:</b>
<span><?php echo get_client_ip(); ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>FTP Hostname:</b>
<span><?php echo $AccountApi['api_server_ftp_domain']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>FTP Port:</b>
<span>21</span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>MySQL Hostname:</b>
<span><?php echo $AccountInfo['account_sql'] . '.' . $AccountApi['api_server_sql_domain']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>Mysql Port:</b>
<span>3306</span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>Nameserver 1:</b>
<span><?php echo $AccountApi['api_ns_1']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center">
<b>Nameserver 2:</b>
<span><?php echo $AccountApi['api_ns_2']; ?></span>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<?php if ($AccountInfo['account_status'] == '1'): ?>
<a href="accounts.php?action=login&account_id=<?php echo $account_id; ?>" target="_blank" class="btn btn-success"><?php echo $lang->I18N('Control Panel'); ?></a>
<a href="accounts.php?action=goftp&account_id=<?php echo $account_id; ?>" target="_blank" class="btn btn-primary"><?php echo $lang->I18N('File Manager'); ?></a>
<?php endif;?>
<a href="accounts.php?action=edit&account_id=<?php echo $account_id; ?>" class="btn btn-default"><?php echo $lang->I18N('Account Settings'); ?></a>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="accounts.php?action=sync&type=domain&account_id=<?php echo $account_id; ?>" class="btn btn-xs btn-primary">
<i class="fa fa-sync"></i> <?php echo $lang->I18N('Sync'); ?>
</a>
</div>
<span class="panel-title">Account Domains</span>
</div>
<?php if (count($AccountDomainList) > 0): ?>
<ul class="list-group">
<?php foreach ($AccountDomainList as $domain): ?>
<li class="list-group-item">
<span class="pull-right"><a href="accounts.php?action=goftp&account_id=<?php echo $account_id; ?>&domain=<?php echo $domain['domain_name']; ?>" target="_blank"><i class="fa fa-file-import"></i></a></span>
<a href="http://<?php echo $domain['domain_name']; ?>" target="_blank" ref="noreferrer noopener"><?php echo $domain['domain_name']; ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php else: ?>
<div class="panel-body">
<p class='text-center'>No Domain Found</p>
</div>
<?php endif; ?>
</div>
</div>
</div>

View file

@ -1,96 +1,112 @@
<div class="content-wrapper">
<div class="container-fluid">
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h5 class="m-0"><?php echo $lang->I18N('Hosting Account Settings'); ?></h5>
<a href="accounts.php?action=view&account_id=<?php echo $account_id; ?>" class="btn btn-danger btn-sm">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
</div>
<hr />
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Name</label>
<input type="text" value="<?php echo $ClientInfo['client_fname'] . ' ' . $ClientInfo['client_lname']; ?>" class="form-control disabled" readonly>
</div>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="accounts.php"><?php echo $lang->I18N('Account List'); ?></a></li>
<li><a href="accounts.php?action=details&account_id=<?php echo $account_id; ?>"><?php echo $lang->I18N('Account Details'); ?></a></li>
<li class="active"><?php echo $lang->I18N('Account Settings'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="<?php echo setURL('admin/accounts', '', array('action' => 'details', 'account_id' => $account_id)); ?>" class="btn btn-success btn-xs">
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
</a>
<a href="<?php echo setURL('admin/accounts', '', array('action' => 'add')); ?>" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
<a href="<?php echo setURL('admin/accounts', '', array('action' => 'list')); ?>" class="btn btn-info btn-xs">
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
</a>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Email</label>
<input type="text" value="<?php echo $ClientInfo['client_email']; ?>" class="form-control disabled" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required"><?php echo $lang->I18N('Phone Number'); ?></label>
<input type="text" value="<?php echo $ClientInfo['client_phone']; ?>" class="form-control disabled" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Billing Address</label>
<input type="text" value="<?php echo $ClientInfo['client_address']; ?>" class="form-control disabled" readonly>
</div>
<div class="panel-title">
<?php echo $PageInfo['title']; ?>
<span class="label label-default"> ID <?php echo $account_id; ?></span>
</div>
</div>
<div class="col-md-12"><hr /></div>
<?php if ($AccountInfo['account_status'] == '1'): ?>
<form class="row" action="controllers/accounts/password.php" method="post">
<input type="hidden" name="account_id" value="<?php echo $account_id; ?>">
<div class="col-md-6">
<div class="pb-10 px-10">
<label class="form-label required">New Password</label>
<input type="password" name="new_password" placeholder="New password here..." class="form-control">
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Name</label>
<input type="text" value="<?php echo $ClientInfo['client_fname'] . ' ' . $ClientInfo['client_lname']; ?>" class="form-control disabled" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Email</label>
<input type="text" value="<?php echo $ClientInfo['client_email']; ?>" class="form-control disabled" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required"><?php echo $lang->I18N('Phone Number'); ?></label>
<input type="text" value="<?php echo $ClientInfo['client_phone']; ?>" class="form-control disabled" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Billing Address</label>
<input type="text" value="<?php echo $ClientInfo['client_address']; ?>" class="form-control disabled" readonly>
</div>
</div>
</div>
<div class="col-md-6">
<div class="col-md-12"><hr /></div>
<?php if ($AccountInfo['account_status'] == '1'): ?>
<form class="row" action="controllers/accounts/password.php" method="post">
<input type="hidden" name="account_id" value="<?php echo $account_id; ?>">
<div class="col-md-6">
<div class="pb-10 px-10">
<label class="form-label required">New Password</label>
<input type="password" name="new_password" placeholder="New password here..." class="form-control">
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">&nbsp;</label>
<button type="submit" name="submit" class="form-control btn btn-primary btn-sm text-white">Change Password</button>
</div>
</div>
<!-- <div class="col-md-12">
<div class="mb-10 px-10">
<input type="submit" name="submit" value="Change Password" class="btn btn-primary btn-sm text-white">
</div>
</div> -->
</form>
<hr>
<form
action="controllers/accounts/deactivate.php"
method="post"
onsubmit="
var reason = document.getElementsByName('reason')[0].value;
if (reason.length < 8) {
alert('Reason must be 8 characters long...');
return false;
}
return true;
">
<div class="mb-10 px-10">
<label class="form-label">&nbsp;</label>
<button type="submit" name="submit" class="form-control btn btn-primary btn-sm text-white">Change Password</button>
<label class="form-label required">Deacivation Reason</label>
<textarea name="reason" placeholder="Deactivation reason here..." class="form-control" id="reason"></textarea>
<div class="text-muted my-10 alert alert-secondary">Your account will be deleted after 30 days of your account deactivation and all of the account data will be removed completely(This action cannot be undo).</div>
<input type="hidden" name="account_id" value="<?php echo $AccountInfo['account_id']; ?>">
</div>
</div>
<!-- <div class="col-md-12">
<div class="mb-10 px-10">
<input type="submit" name="submit" value="Change Password" class="btn btn-primary btn-sm text-white">
<input type="submit" name="submit" value="Deactivate Account" class="btn btn-danger btn-sm text-white">
</div>
</div> -->
</form>
<hr>
<form
action="controllers/accounts/deactivate.php"
method="post"
onsubmit="
var reason = document.getElementsByName('reason')[0].value;
if (reason.length < 8) {
alert('Reason must be 8 characters long...');
return false;
}
return true;
">
<div class="mb-10 px-10">
<label class="form-label required">Deacivation Reason</label>
<textarea name="reason" placeholder="Deactivation reason here..." class="form-control" id="reason"></textarea>
<div class="text-muted my-10 alert alert-secondary">Your account will be deleted after 30 days of your account deactivation and all of the account data will be removed completely(This action cannot be undo).</div>
<input type="hidden" name="account_id" value="<?php echo $AccountInfo['account_id']; ?>">
</div>
<div class="mb-10 px-10">
<input type="submit" name="submit" value="Deactivate Account" class="btn btn-danger btn-sm text-white">
</div>
</form>
<?php else: ?>
<form class="row" action="controllers/accounts/reactivate.php" method="post">
<input type="hidden" name="account_id" value="<?php echo $account_id; ?>">
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Activate Account</label>
<button type="submit" name="submit" class="btn btn-success text-white btn-block my-5 btn-rounded">Activate Account</button>
</form>
<?php else: ?>
<form class="row" action="controllers/accounts/reactivate.php" method="post">
<input type="hidden" name="account_id" value="<?php echo $account_id; ?>">
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Activate Account</label>
<button type="submit" name="submit" class="btn btn-success text-white btn-block my-5 btn-rounded">Activate Account</button>
</div>
</div>
</div>
</form>
<?php endif;?>
</form>
<?php endif;?>
</div>
</div>
</div>
</div>
</div>

View file

@ -1,58 +1,62 @@
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h3 class="m-0"><?php echo $PageInfo['title']; ?></h3>
<a href="index.php" class="btn text-white btn-danger btn-sm">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
</div>
<hr />
<div class="card-body table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th>ID</th>
<th><?php echo $lang->I18N('Clients'); ?></th>
<th><?php echo $lang->I18N('Provider'); ?></th>
<th><?php echo $lang->I18N('Username'); ?></th>
<th><?php echo $lang->I18N('Domain'); ?></th>
<th><?php echo $lang->I18N('Deploy Date'); ?></th>
<th><?php echo $lang->I18N('Status'); ?></th>
<th><?php echo $lang->I18N('Action'); ?></th>
</thead>
<tbody>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li class="active"><?php echo $lang->I18N('Hosting Accounts'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="accounts.php?action=add" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
</div>
<div class="panel-title">
<?php echo $PageInfo['title']; ?>
</div>
</div>
<div class="table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th>ID</th>
<th><?php echo $lang->I18N('Clients'); ?></th>
<th><?php echo $lang->I18N('Provider'); ?></th>
<th><?php echo $lang->I18N('Username'); ?></th>
<th><?php echo $lang->I18N('Domain'); ?></th>
<th><?php echo $lang->I18N('Deploy Date'); ?></th>
<th><?php echo $lang->I18N('Status'); ?></th>
<th><?php echo $lang->I18N('Action'); ?></th>
</thead>
<tbody>
<?php if ($count > 0): ?>
<?php foreach ($rows as $row): ?>
<tr>
<td><?php echo $row['account_id'];?></td>
<td><?php echo $row['account_client_id']; ?></td>
<td>
<a href="hosting.php?action=view&api_key=<?php echo $row['account_api_key']; ?>">
<a href="hosting.php?action=details&api_key=<?php echo $row['account_api_key']; ?>">
<?php echo $row['account_api_key']; ?>
</a>
</td>
<td><?php echo $row['account_username']; ?></td>
<td><?php echo $row['account_domain']; ?></td>
<td><?php echo $row['account_date']; ?></td>
<td><?php
if ($row['account_status'] == '0') {
$btn = ['danger', 'lock'];
echo '<span class="badge bg-danger text-white border-0">Inactive</span>';
} elseif ($row['account_status'] == '1') {
$btn = ['success', 'globe'];
echo '<span class="badge bg-success border-0 text-white">Active</span>';
} elseif ($row['account_status'] == '2') {
$btn = ['danger', 'lock'];
echo '<span class="badge bg-danger text-white border-0">Suspended</span>';
} elseif ($row['account_status'] == '3') {
$btn = ['danger', 'lock'];
echo '<span class="badge bg-danger text-white border-0">Deleted</span>';
}
?></td>
<td><?php if ($row['account_status'] == '0'): ?>
<span class="label label-info">Inactive</span>
<?php elseif ($row['account_status'] == '1'): ?>
<span class="label label-success">Active</span>
<?php elseif ($row['account_status'] == '2'): ?>
<span class="label label-warning">Suspended</span>
<?php elseif ($row['account_status'] == '3'): ?>
<span class="label label-danger">Deleted</span>
<?php endif; ?></td>
<td>
<a href="accounts.php?action=view&account_id=<?php echo $row['account_id']; ?>" class="btn btn-sm btn-<?php echo $btn[0]; ?> btn-rounded">
<i class="fa fa-<?php echo $btn[1]; ?>"></i> Manage
<a href="accounts.php?action=edit&account_id=<?php echo $row['account_id']; ?>" class="btn btn-success btn-xs">
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
</a>
<a href="accounts.php?action=details&account_id=<?php echo $row['account_id']; ?>" class="btn btn-primary btn-xs">
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
</a>
</td>
</tr>
@ -62,12 +66,12 @@ if ($row['account_status'] == '0') {
<td colspan="6" class="text-center">Nothing found</td>
</tr>
<?php endif;?>
</tbody>
</table>
</div>
<div class="card-footer">
<p class="py-10"><?php echo $count; ?> Records Founds</p>
</tbody>
</table>
</div>
<div class="panel-footer">
<?php echo $count; ?> Records Founds
</div>
</div>
</div>
</div>
</div>

View file

@ -1,171 +0,0 @@
<div class="content-wrapper">
<div class="container-fluid">
<div class="card pt-0">
<div class="card-header d-flex justify-content-between align-items-center pt-15 px-5">
<h5 class="m-0">Viewing Account (# <?php echo $account_id; ?>)</h5>
<a href="accounts.php" class="btn btn-sm btn-danger">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
</div>
<hr />
<div class="card-body">
<?php if ($AccountInfo['account_status'] == '0'): ?>
<div class="alert alert-secondary col-md-12">This account is inactive.</div>
<?php elseif ($AccountInfo['account_status'] == '2'): ?>
<div class="alert alert-secondary col-md-12">This account has been suspended.</div>
<?php elseif ($AccountInfo['account_status'] == '3'): ?>
<div class="alert alert-secondary col-md-12">This account has been deleted.</div>
<?php endif;?>
<div class="row pb-10">
<div class="col-md-12 pb-10 mb-10">
<div class="row">
<div class="col-md-6 px-5 text-center py-15">
<i class="fa fa-laptop fa-10x"></i>
</div>
<div class="col-md-6 py-5 text-center text-md-right">
<?php if ($AccountInfo['account_status'] == '1'): ?>
<a href="accounts.php?action=login&account_id=<?php echo $account_id; ?>" target="_blank" class="btn btn-success text-white btn-block my-5 btn-rounded"><?php echo $lang->I18N('Control Panel'); ?></a>
<a href="accounts.php?action=goftp&account_id=<?php echo $account_id; ?>" target="_blank" class="btn btn-primary text-white btn-block my-5 btn-rounded"><?php echo $lang->I18N('File Manager'); ?></a>
<?php else: ?>
<button class="btn btn-success text-white btn-block my-5 btn-rounded disabled"><?php echo $lang->I18N('Control Panel'); ?></button>
<button class="btn btn-primary text-white btn-block my-5 btn-rounded disabled"><?php echo $lang->I18N('File Manager'); ?></button>
<?php endif;?>
<a href="accounts.php?action=edit&account_id=<?php echo $account_id; ?>" class="btn btn-secondary btn-block my-5 btn-rounded"><?php echo $lang->I18N('Edit Settings'); ?></a>
</div>
</div>
</div>
<hr />
<div class="col-md-4 col-sm-6">
<div class="m-5">
<b>Control Panel Username:</b>
<span><?php echo $AccountInfo['account_username']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>Control Panel Password:</b>
<span><kbd><?php echo $AccountInfo['account_password']; ?></kbd></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>Main Domain:</b>
<span><?php echo $AccountInfo['account_domain']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>Control Panel Domain:</b>
<span><?php echo $AccountApi['api_cpanel_url']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6 col-md-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>Status:</b>
<span>
<?php if ($AccountInfo['account_status'] == '0') {
echo '<span class="badge bg-secondary">Inactive</span>';
} elseif ($AccountInfo['account_status'] == '1') {
echo '<span class="badge bg-success">Active</span>';
} elseif ($AccountInfo['account_status'] == '2') {
echo '<span class="badge bg-danger">Suspend</span>';
} elseif ($AccountInfo['account_status'] == '3') {
echo '<span class="badge bg-danger">Deleted</span>';
} ?>
</span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>Creation Date:</b>
<span><?php echo $AccountInfo['account_date']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>Server IP:</b>
<span><?php echo $AccountApi['api_server_ip']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>Your IP:</b>
<span><?php echo get_client_ip(); ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>FTP Hostname:</b>
<span><?php echo $AccountApi['api_server_ftp_domain']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>FTP Port:</b>
<span>21</span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>MySQL Hostname:</b>
<span><?php echo $AccountInfo['account_sql'] . '.' . $AccountApi['api_server_sql_domain']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>Mysql Port:</b>
<span>3306</span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>Nameserver 1:</b>
<span><?php echo $AccountApi['api_ns_1']; ?></span>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="d-flex justify-content-between align-items-center m-5">
<b>Nameserver 2:</b>
<span><?php echo $AccountApi['api_ns_2']; ?></span>
</div>
</div>
</div>
</div>
<hr />
<div class="card-footer">
<div class="col-md-6">
<?php if ($AccountInfo['account_status'] == '1'): ?>
<a href="accounts.php?action=login&account_id=<?php echo $account_id; ?>" target="_blank" class="btn btn-success text-white m-5 btn-rounded">Control Panel</a>
<a href="accounts.php?action=goftp&account_id=<?php echo $account_id; ?>" target="_blank" class="btn btn-primary text-white m-5 btn-rounded">File Manager</a>
<?php else: ?>
<button class="btn btn-success text-white m-5 btn-rounded disabled">Control Panel</button>
<button class="btn btn-primary text-white m-5 btn-rounded disabled">File Manager</button>
<?php endif;?>
<a href="accounts.php?action=edit&account_id=<?php echo $account_id; ?>" class="btn btn-secondary m-5 btn-rounded">Edit Settings</a>
</div>
</div>
</div>
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0">Account Domains</h5>
<a href="accounts.php?action=sync&type=domain&account_id=<?php echo $account_id; ?>" class="btn btn-sm btn-danger">
<i class="fa fa-sync"></i> <?php echo $lang->I18N('Sync'); ?>
</a>
</div>
<hr />
<div class="mb-10 px-10">
<?php if (count($AccountDomainList) > 0): ?>
<?php foreach ($AccountDomainList as $domain): ?>
<div class='d-flex justify-content-between align-items-center m-5'>
<span><a href="http://<?php echo $domain['domain_name']; ?>" target="_blank" ref="noreferrer noopener"><?php echo $domain['domain_name']; ?></a></span>
<span><a href="accounts.php?action=goftp&account_id=<?php echo $account_id; ?>&domain=<?php echo $domain['domain_name']; ?>" class='btn btn-sm btn-square btn-secondary' target='_blank'><i class='fa fa-file-import'></i></a></span>
</div>
<?php endforeach;?>
<?php else: ?>
<p class='text-center'>No Domain Found</p>
<?php endif;?>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,27 @@
<div class="content-wrapper">
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="clients.php"><?php echo $lang->I18N('Client List'); ?></a></li>
<li class="active"><?php echo $lang->I18N('details'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="<?php echo setURL('admin/clients', '', array('action' => 'list')); ?>" class="btn btn-info btn-xs">
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
</div>
<div class="panel-body">
<div class="row">
</div>
</div>
<div class="panel-footer">
<a href="#" target="_blank" class="btn btn-primary btn-sm"><?php echo $lang->I18N('Save') ?></a>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,78 @@
<div class="content-wrapper">
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="clients.php"><?php echo $lang->I18N('Client List'); ?></a></li>
<li class="active"><?php echo $lang->I18N('details'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="<?php echo setURL('admin/clients', '', array('action' => 'edit', 'id' => $ClientInfo['client_id'])); ?>" class="btn btn-success btn-xs">
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
</a>
<a href="<?php echo setURL('admin/clients', '', array('action' => 'add')); ?>" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
<a href="<?php echo setURL('admin/clients', '', array('action' => 'list')); ?>" class="btn btn-info btn-xs">
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
</a>
</div>
<span class="panel-title">
<?php echo $PageInfo['title']; ?>
<span class="label label-default">ID <?php echo $ClientInfo['client_id']; ?></span>
</span>
</div>
<div class="panel-body">
<table class="table table-stripped table-bordered table-hover">
<tr>
<td width="200"><?php echo $lang->I18N('First Name'); ?></td>
<td><?php echo $ClientInfo['client_fname']; ?></td>
</tr>
<tr>
<td><b><?php echo $lang->I18N('Last Name'); ?></b></td><td><?php echo $ClientInfo['client_lname']; ?></td>
</tr>
<tr>
<td><b><?php echo $lang->I18N('Email Address'); ?></b></td><td><?php echo $ClientInfo['client_email']; ?></td>
</tr>
<tr>
<td><b><?php echo $lang->I18N('Phone Number'); ?></b></td><td><?php echo $ClientInfo['client_phone']; ?></td>
</tr>
<tr>
<td><b><?php echo $lang->I18N('Billing Address'); ?></b></td><td><?php echo $ClientInfo['client_address']; ?></td>
</tr>
<tr>
<td><b><?php echo $lang->I18N('Company'); ?></b></td><td><?php echo $ClientInfo['client_company']; ?></td>
</tr>
<tr>
<td><b><?php echo $lang->I18N('Country'); ?></b></td><td><?php echo $CountryName; ?></td>
</tr>
<tr>
<td><b><?php echo $lang->I18N('City'); ?></b></td><td><?php echo $ClientInfo['client_city']; ?></td>
</tr>
<tr>
<td><b>Postal Code</b></td><td><?php echo $ClientInfo['client_pcode']; ?></td>
</tr>
<tr>
<td><b><?php echo $lang->I18N('Hosting Accounts'); ?></b></td><td><?php echo $count_account; ?></td>
</tr>
<tr>
<td><b><?php echo $lang->I18N('SSL Certificates'); ?></b></td><td><?php echo $count_ssl; ?></td>
</tr>
<tr>
<td><b>Support Tickets</b></td><td><?php echo $count_tickets; ?></td>
</tr>
</table>
</div>
<div class="panel-footer">
<a href="clients.php?action=login&client_id=<?php echo $ClientInfo['client_id'] ?>" target="_blank" class="btn btn-primary btn-sm">Login as <?php echo $ClientInfo['client_fname'] ?></a>
<?php if ($ClientInfo['client_status'] !== '1'): ?>
<a href="controllers/clients/activate.php?client_id=<?php echo $ClientInfo['client_id']; ?>" class="btn btn-success btn-sm">Mark as Active</a>
<?php else: ?>
<a href="controllers/clients/suspend.php?client_id=<?php echo $ClientInfo['client_id']; ?>" class="btn btn-default btn-sm">Mark as Suspended</a>
<?php endif; ?>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,73 @@
<div class="content-wrapper">
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="clients.php"><?php echo $lang->I18N('Client List'); ?></a></li>
<li><a href="<?php echo setURL('admin/clients', '', array('action' => 'details', 'id' => $ClientInfo['client_id'])); ?>"><?php echo $lang->I18N('details'); ?></a></li>
<li class="active"><?php echo $lang->I18N('edit'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="<?php echo setURL('admin/clients', '', array('action' => 'details', 'id' => $ClientInfo['client_id'])); ?>" class="btn btn-success btn-xs">
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
</a>
<a href="<?php echo setURL('admin/clients', '', array('action' => 'add')); ?>" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
<a href="<?php echo setURL('admin/clients', '', array('action' => 'list')); ?>" class="btn btn-info btn-xs">
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
</a>
</div>
<span class="panel-title">
<?php echo $PageInfo['title']; ?>
<span class="label label-default">ID <?php echo $ClientInfo['client_id']; ?></span>
</span>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<label class="form-label required"><?php echo $lang->I18N('First Name'); ?></label>
<input type="text" name="client_fname" value="<?php echo $ClientInfo['client_fname']; ?>" class="form-control" required>
</div>
<div class="col-md-6 mb-10">
<label class="form-label required"><?php echo $lang->I18N('Last Name'); ?></label>
<input type="text" name="client_lname" value="<?php echo $ClientInfo['client_lname']; ?>" class="form-control" required>
</div>
<div class="col-md-6 mb-10">
<label class="form-label required"><?php echo $lang->I18N('Email Address'); ?></label>
<input type="text" name="client_email" value="<?php echo $ClientInfo['client_email']; ?>" class="form-control" required>
</div>
<div class="col-md-6 mb-10">
<label class="form-label required"><?php echo $lang->I18N('Phone Number'); ?></label>
<input type="text" name="client_phone" value="<?php echo $ClientInfo['client_phone']; ?>" class="form-control" required>
</div>
<div class="col-md-6 mb-10">
<label class="form-label required"><?php echo $lang->I18N('Billing Address'); ?></label>
<input type="text" name="client_address" value="<?php echo $ClientInfo['client_address']; ?>" class="form-control" required>
</div>
<div class="col-md-6 mb-10">
<label class="form-label required"><?php echo $lang->I18N('Company'); ?></label>
<input type="text" name="client_company" value="<?php echo $ClientInfo['client_company']; ?>" class="form-control" required>
</div>
<div class="col-md-6 mb-10">
<label class="form-label required"><?php echo $lang->I18N('Country'); ?></label>
<input type="text" name="country_name" value="<?php echo $CountryName; ?>" class="form-control" required>
</div>
<div class="col-md-6 mb-10">
<label class="form-label required"><?php echo $lang->I18N('City'); ?></label>
<input type="text" name="client_city" value="<?php echo $ClientInfo['client_city']; ?>" class="form-control" required>
</div>
<div class="col-md-6 mb-10">
<label class="form-label required"><?php echo $lang->I18N('Postal Code'); ?></label>
<input type="text" name="client_pcode" value="<?php echo $ClientInfo['client_pcode']; ?>" class="form-control" required>
</div>
</div>
</div>
<div class="panel-footer">
<a href="#" target="_blank" class="btn btn-primary btn-sm"><?php echo $lang->I18N('Save'); ?></a>
</div>
</div>
</div>
</div>

View file

@ -1,23 +1,30 @@
<div class="content-wrapper">
<div class="container-fluid">
<div class="card m-20 p-20">
<div class="card-header d-flex justify-content-between align-items-center">
<h3 class="m-0"><?php echo $lang->I18N('Clients List'); ?></h3>
<a href="index.php" class="btn btn-danger btn-sm pull-right"><i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?></a>
</div>
<hr />
<div class="card-body table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th>ID</th>
<th><?php echo $lang->I18N('Name'); ?></th>
<th><?php echo $lang->I18N('Email'); ?></th>
<th><?php echo $lang->I18N('Phone'); ?></th>
<th><?php echo $lang->I18N('Date'); ?></th>
<th><?php echo $lang->I18N('Status'); ?></th>
<th><?php echo $lang->I18N('Action'); ?></th>
</thead>
<tbody>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li class="active"><?php echo $lang->I18N('Clients List'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="<?php echo setURL('admin/clients', '', array('action' => 'add')); ?>" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
</div>
<div class="table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th>ID</th>
<th><?php echo $lang->I18N('Name'); ?></th>
<th><?php echo $lang->I18N('Email'); ?></th>
<th><?php echo $lang->I18N('Phone'); ?></th>
<th><?php echo $lang->I18N('Date'); ?></th>
<th><?php echo $lang->I18N('Status'); ?></th>
<th><?php echo $lang->I18N('Action'); ?></th>
</thead>
<tbody>
<?php if ($count > 0): ?>
<?php foreach ($rows as $value): ?>
<tr>
@ -26,21 +33,20 @@
<td><?php echo $value['client_email']; ?></td>
<td><?php echo $value['client_phone']; ?></td>
<td><?php echo $value['client_date']; ?></td>
<td><?php
if ($value['client_status'] == '0') {
$btn = ['secondary', 'cog'];
echo '<span class="badge bg-secondary badge-pill">Inactive</span>';
} elseif ($value['client_status'] == '1') {
$btn = ['success', 'globe'];
echo '<span class="badge bg-success badge-pill">Active</span>';
} elseif ($value['client_status'] == '2') {
$btn = ['danger', 'lock'];
echo '<span class="badge bg-danger badge-pill">Suspended</span>';
}
?></td>
<td><?php if ($value['client_status'] == '0'): ?>
<span class="label label-warning">Inactive</span>
<?php elseif ($value['client_status'] == '1'): ?>
<span class="label label-success">Active</span>
<?php elseif ($value['client_status'] == '2'): ?>
<span class="label label-danger">Suspended</span>
<?php endif; ?>
</td>
<td>
<a href="clients.php?action=view&client_id=<?php echo $value['client_id']; ?>" class="btn btn-sm btn-<?php echo $btn[0] ?> btn-rounded">
<i class="fa fa-<?php echo $btn[1]; ?>"></i> Manage
<a href="<?php echo setURL('admin/clients', '', array('action' => 'edit', 'id' => $value['client_id'])); ?>" class="btn btn-success btn-xs">
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
</a>
<a href="<?php echo setURL('admin/clients', '', array('action' => 'details', 'id' => $value['client_id'])); ?>" class="btn btn-primary btn-xs">
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
</a>
</td>
</tr>
@ -50,11 +56,10 @@ echo '<span class="badge bg-danger badge-pill">Suspended</span>';
<td colspan="6" class="text-center">Nothing found</td>
</tr>
<?php endif;?>
</tbody>
</table>
</tbody>
</table>
</div>
<div class="panel-footer"><?php echo $count; ?> Records Founds.</div>
</div>
<hr />
<div class="card-footer"><?php echo $count; ?> Records Founds.</div>
</div>
</div>
</div>

View file

@ -1,63 +0,0 @@
<div class="content-wrapper">
<div class="container-fluid">
<div class="card m-20 p-20">
<div class="card-header d-flex justify-content-between align-items-center">
<h3 class="m-0">Client Information</h3>
<a href="clients.php" class="btn btn-danger btn-sm">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
</div>
<hr />
<div class="card-body">
<div class="row">
<div class="col-md-6 mb-10">
<b><?php echo $lang->I18N('First Name'); ?>:</b> <?php echo $ClientInfo['client_fname']; ?>
</div>
<div class="col-md-6 mb-10">
<b><?php echo $lang->I18N('Last Name'); ?>:</b> <?php echo $ClientInfo['client_lname']; ?>
</div>
<div class="col-md-6 mb-10">
<b><?php echo $lang->I18N('Email Address'); ?>:</b> <?php echo $ClientInfo['client_email']; ?>
</div>
<div class="col-md-6 mb-10">
<b><?php echo $lang->I18N('Phone Number'); ?>:</b> <?php echo $ClientInfo['client_phone']; ?>
</div>
<div class="col-md-6 mb-10">
<b><?php echo $lang->I18N('Billing Address'); ?>:</b> <?php echo $ClientInfo['client_address']; ?>
</div>
<div class="col-md-6 mb-10">
<b><?php echo $lang->I18N('Company'); ?>:</b> <?php echo $ClientInfo['client_company']; ?>
</div>
<div class="col-md-6 mb-10">
<b><?php echo $lang->I18N('Country'); ?>:</b> <?php echo $CountryName; ?>
</div>
<div class="col-md-6 mb-10">
<b><?php echo $lang->I18N('City'); ?>:</b> <?php echo $ClientInfo['client_city']; ?>
</div>
<div class="col-md-6 mb-10">
<b>Postal Code:</b> <?php echo $ClientInfo['client_pcode']; ?>
</div>
<div class="col-md-6 mb-10">
<b><?php echo $lang->I18N('Hosting Accounts'); ?>:</b> <?php echo $count_account; ?>
</div>
<div class="col-md-6 mb-10">
<b><?php echo $lang->I18N('SSL Certificates'); ?>:</b> <?php echo $count_ssl; ?>
</div>
<div class="col-md-6 mb-10">
<b>Support Tickets:</b> <?php echo $count_tickets; ?>
</div>
<div class="col-md-12"><hr /></div>
<div class="col-md-12 py-5">
<a href="clients.php?action=login&client_id=<?php echo $ClientInfo['client_id'] ?>" target="_blank" class="btn btn-primary">Login as <?php echo $ClientInfo['client_fname'] ?></a>
<?php if ($ClientInfo['client_status'] !== '1'): ?>
<a href="controllers/clients/activate.php?client_id=<?php echo $ClientInfo['client_id']; ?>" class="btn btn-success text-white">Mark as Active</a>
<?php else: ?>
<a href="controllers/clients/suspend.php?client_id=<?php echo $ClientInfo['client_id']; ?>" class="btn btn-secondary">Mark as Suspended</a>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>

View file

@ -1,10 +1,36 @@
</div>
<footer class="footer navbar navbar-default navbar-fixed-bottom">
<div class="container">
<div class="navbar-inner navbar-content-center" style="padding-top:15px;">
<ul class="navbar-left list-inline text-center text-muted credit">
<li>
<span class="co">&copy;&nbsp;2013-<?php echo date("Y"); ?>&nbsp;<a href="<?php echo $site_url; ?>" target="_blank"><?php echo $SiteConfig['site_brand']; ?></a>&nbsp;</span>
<span class="co">&nbsp;Powered by <a href="https://crogram.org" target="_blank">Crogram</a>&nbsp;</span>
<span class="co">&nbsp;Partnered with <a href="https://ifastnet.com/" name="jump-ifastnet" target="_blank">iFastNet</a>&nbsp;</span>
<span>time: <?php echo get_execution_time();?>s</span>
</li>
</ul>
<ul class="legal navbar-right list-inline text-center">
<li class="dropup">
<div class="dropdown-toggle" id="changelanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="fa fa-language"></span>
<a href="#"><?php echo $lang->get_language_name(); ?></a>
</div>
<ul class="dropdown-menu language-change"><?php echo $lang->get_languages_tags(); ?></ul>
</li>
<li><a href="<?php echo $site_url; ?>/about.php" target="_blank"><?php echo $lang->I18N('about'); ?></a></li>
<li><a href="<?php echo $site_url; ?>/contact.php" target="_blank"><?php echo $lang->I18N('contact'); ?></a></li>
<li><a href="<?php echo $site_url; ?>/news.php" target="_blank"><?php echo $lang->I18N('News'); ?></a></li>
</ul>
</div>
</div>
</footer>
<div id="hidden-area"><?php getMessage(); ?></div>
<script src="<?php echo $site_url; ?>/assets/jquery/jquery.min.js"></script>
<!-- <script src="<?php echo $site_url; ?>/assets/bootstrap/js/bootstrap.min.js?_=<?php echo $static_release; ?>"></script> -->
<script src="<?php echo $site_url; ?>/assets/js/halfmoon.min.js"></script>
<!-- <script src="<?php echo $site_url; ?>/assets/ui/js/main.min.js"></script> -->
<script src="<?php echo $site_url; ?>/assets/bootstrap/js/bootstrap.min.js?_=<?php echo $static_release; ?>"></script>
<script src="//cdn.staticfile.org/layer/3.1.1/layer.js"></script>
<script src="<?php echo $site_url; ?>/assets/js/common.js"></script>
<?php if (!empty($load_editor)): ?>
@ -19,5 +45,5 @@
</script>
<?php endif; ?>
</body>
</body>
</html>

View file

@ -18,21 +18,16 @@
<link rel="icon" type="image/x-icon" href="<?php echo $site_url; ?>/assets/image/favicon.ico">
<link rel="shortcut" type="image/x-icon" href="<?php echo $site_url; ?>/assets/image/favicon.ico">
<?php echo $PageInfo['rel']; ?>
<!-- <link href="<?php echo $site_url; ?>/assets/bootstrap/css/bootstrap.min.css?_=<?php echo $static_release; ?>" rel="stylesheet" /> -->
<link href="<?php echo $site_url; ?>/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="<?php echo $site_url; ?>/assets/css/font-awesome.min.css" rel="stylesheet" />
<!-- <link href="<?php echo $site_url; ?>/assets/ui/css/style.min.css" rel="stylesheet" /> -->
<link href="<?php echo $site_url; ?>/assets/css/halfmoon.min.css" rel="stylesheet" />
<link href="<?php echo $site_url; ?>/assets/css/all.min.css" rel="stylesheet" />
<link href="<?php echo $site_url; ?>/assets/css/style.css" rel="stylesheet" />
<link href="<?php echo $site_url; ?>/assets/css/common.css?_=<?php echo $static_release; ?>" rel="stylesheet" />
<link href="<?php echo $site_url; ?>/assets/css/admin.css" rel="stylesheet" />
<script type="text/javascript">
var site_domain = "<?php echo $site_domain; ?>";
var cur_lang = "<?php echo $lang->language_current; ?>";
var ifastnet_aff = "<?php echo $ifastnet_aff; ?>";
</script>
<?php echo $PageInfo['rel']; ?>
</head>
<body class="with-custom-webkit-scrollbars with-custom-css-scrollbars" data-dm-shortcut-enabled="true" data-sidebar-shortcut-enabled="true" data-set-preferred-theme-onload="true">
<div class="page-wrapper with-navbar with-sidebar" data-sidebar-type="overlayed-sm-and-down">
<body>

View file

@ -1,37 +1,101 @@
<nav class="navbar">
<div class="container-fluid">
<a href="index.php" class="navbar-brand"><?php echo $lang->I18N('Admin Area'); ?></a>
<ul class="navbar-nav ml-auto">
<li class="nav-item nav-height">
<button class="btn btn-sm my-auto" role="button" onclick="halfmoon.toggleDarkMode()">
<i class="fas fa-sun"></i>
<nav class="navbar navbar-fixed-top navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">navbar</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</li>
<!-- 语言 -->
<div class="nav-item nav-height dropdown with-arrow">
<button class="btn" data-toggle="dropdown" type="button" id="language-change-toggle" aria-haspopup="true" aria-expanded="false">
<?php echo $lang->get_language_name(); ?> <i class="fa fa-angle-up ml-5" aria-hidden="true"></i>
</button>
<div class="dropdown-menu language-change" aria-labelledby="language-change-toggle">
<?php echo $lang->get_languages_tags(); ?>
</div>
<a class="navbar-brand" href="./"><?php echo $lang->I18N('Admin Area'); ?></a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="<?php echo checkIfActive('index,') ?>">
<a href="./"><i class="fa fa-home" aria-hidden="true"></i> <?php echo $lang->I18N('home'); ?></a>
</li>
<li class="<?php echo checkIfActive('clients') ?>">
<a href="clients.php"><i class="fa fa-users fa-fw"></i> <?php echo $lang->I18N('Clients List'); ?></a>
</li>
<li class="<?php echo checkIfActive('accounts') ?>">
<a href="accounts.php"><i class="fa fa-server fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('Hosting Accounts'); ?></a>
</li>
<li class="<?php echo checkIfActive('tickets') ?>">
<a href="tickets.php"><i class="fa fa-ticket-alt" aria-hidden="true"></i> <?php echo $lang->I18N('Tickets List'); ?></a>
</li>
<li class="<?php echo checkIfActive('sslcert') ?>">
<a href="sslcert.php"><i class="fa fa-shield-alt" aria-hidden="true"></i> <?php echo $lang->I18N('SSL Certificates'); ?></a>
</li>
<li class="<?php echo checkIfActive('settings'); ?>">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-cog fa-fw"></i> <?php echo $lang->I18N('System Settings'); ?> <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="knowledgebase.php"><i class="fa fa-book fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('Knowledgebase'); ?></a></li>
<li><a href="news.php"><i class="fa fa-newspaper fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('News List'); ?></a></li>
<li><a href="hosting.php"><i class="fa fa-server fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('Hosting Provider'); ?></a></li>
<li><a href="domain.php"><i class="fa fa-globe fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('Domain Provider'); ?></a></li>
<li><a href="settings.php"><i class="fa fa-cog fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('Settings'); ?></a></li>
</ul>
</li>
<li class="<?php echo checkIfActive('profile'); ?>">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-user-cog fa-fw"></i>
<i class="caret"></i>
</a>
<ul class="dropdown-menu">
<li class="disabled">
<a href="#" class="text-center">
<p><img class="img-rounded" src="<?php echo $AdminInfo['avatar']; ?>" height="80px" width="80px"></p>
<!-- <i class="fa fa-user-circle fa-5x"></i> -->
<div><?php echo $AdminInfo['admin_fname'] . " " . $AdminInfo['admin_lname']; ?></div>
</a>
</li>
<li role="separator" class="divider"></li>
<li><a href="profile.php"><i class="fa fa-user-alt fa-fw"></i> <?php echo $lang->I18N('Profile'); ?></a></li>
<li role="separator" class="divider"></li>
<li><a href="<?php echo $site_url; ?>" target="_blank"><i class="fa fa-external-link-alt fa-fw"></i> <?php echo $lang->I18N('home'); ?></a></li>
<li><a href="<?php echo $site_url; ?>/clientarea/" target="_blank"><i class="fa fa-house-user fa-fw"></i> <?php echo $lang->I18N('Client Area'); ?></a></li>
<li role="separator" class="divider"></li>
<li><a href="#" onclick="return logout();"><i class="fa fa-sign-out-alt fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('logout'); ?></a></li>
</ul>
</li>
</ul>
</div>
<li class="nav-item nav-height dropdown with-arrow">
<a class="btn btn-sm m5x" data-toggle="dropdown" id="nav-link-dropdown-toggle">
<i class="fa fa-user"></i>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="nav-link-dropdown-toggle">
<a href="<?php echo $site_url; ?>" class="dropdown-item" target="_blank"><?php echo $lang->I18N('Home'); ?></a>
<div class="dropdown-divider"></div>
<a href="profile.php" class="dropdown-item"><?php echo $lang->I18N('Profile'); ?></a>
<a href="settings.php" class="dropdown-item"><?php echo $lang->I18N('Settings'); ?></a>
<div class="dropdown-divider"></div>
<a href="logout.php" class="dropdown-item"><?php echo $lang->I18N('logout'); ?></a>
</div>
</li>
<li class="nav-item nav-height hidden-on-up">
<button class="btn btn-sm my-auto" onclick="halfmoon.toggleSidebar()"><i class="fa fa-bars"></i></button>
</li>
</div>
</nav>
<script>
function logout() {
layer.confirm('确定退出登录 ', {
icon: 3,
btn: ['确定', '取消']
}, function() {
window.location.href = 'logout.php';
// var ii = layer.load(2);
// $.ajax({
// type: 'GET',
// url: 'ajax.php?act=logout',
// dataType: 'json',
// success: function(data) {
// layer.close(ii);
// if (data.code == 0) {
// layer.alert(data.msg, {
// icon: 1,
// closeBtn: false
// }, function() {
// window.location.href = 'login.php';
// });
// } else {
// layer.alert(data.msg, {
// icon: 2
// });
// }
// },
// error: function(data) {
// layer.close(ii);
// layer.msg('服务器错误');
// }
// });
});
}
</script>

View file

@ -1,126 +1,180 @@
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-6 col-lg-3">
<div class="card text-center bg-matrix-1 m-20 p-0 border-0">
<div class="mx-20 my-15 d-flex justify-content-between align-items-center">
<h3 class="my-0 pt-0 text-white"><?php echo $count_clients; ?></h3>
<i class="fa fa-users fa-3x pt-10 text-white"></i>
</div>
<div class="py-5" style="background: rgba(0,0,0,0.05); border-radius: 0px 0px 10px 10px;">
<a href="clients.php" class="text-white">View Client <i class="fa fa-forward"></i></a>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="card text-center bg-matrix-2 m-20 p-0 border-0">
<div class="mx-20 my-15 d-flex justify-content-between align-items-center">
<h3 class="my-0 pt-0 text-white"><?php echo $count_account; ?></h3>
<i class="fa fa-shopping-cart fa-3x pt-10 text-white"></i>
</div>
<div class="py-5" style="background: rgba(0,0,0,0.05); border-radius: 0px 0px 10px 10px;">
<a href="accounts.php" class="text-white">View Account <i class="fa fa-forward"></i></a>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="card text-center bg-matrix-3 m-20 p-0 border-0">
<div class="mx-20 my-15 d-flex justify-content-between align-items-center">
<h3 class="my-0 pt-0 text-white"><?php echo $count_ssl; ?></h3>
<i class="fa fa-shield-alt fa-3x pt-10 text-white"></i>
</div>
<div class="py-5" style="background: rgba(0,0,0,0.05); border-radius: 0px 0px 10px 10px;">
<a href="myssl.php" class="text-white">View SSL <i class="fa fa-forward"></i></a>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="card text-center bg-matrix-4 m-20 p-0 border-0">
<div class="mx-20 my-15 d-flex justify-content-between align-items-center">
<h3 class="my-0 pt-0 text-white"><?php echo $count_tickets; ?></h3>
<i class="fa fa-ticket-alt fa-3x pt-10 text-white"></i>
</div>
<div class="py-5" style="background: rgba(0,0,0,0.05); border-radius: 0px 0px 10px 10px;">
<a href="tickets.php" class="text-white">View Ticket <i class="fa fa-forward"></i></a>
</div>
</div>
</div>
</div>
<div class="card mx-20 my-10 p-15">
<div class="card-header d-flex justify-content-between align-items-center px-0 pt-0">
<h3 class="m-0">System information</h3>
<a href="settings.php" class="btn btn-danger">Settings</a>
</div>
<hr />
<div class="card-body">
<div class="row">
<div class="col-md-6 col-lg-4">
<p class="mb-0"><b>Version:</b> <?php echo APP_VERSION; ?></p>
</div>
<div class="col-md-6 col-lg-4">
<p class="mb-0"><b>Status:</b> <?php if ($SiteConfig['site_status'] == 1) {echo '<span class="badge badge-success">Live</span>';} elseif ($SiteConfig['site_status'] == 0) {echo '<span class="badge badge-secondary">Maintaince</span>';}?></p>
</div>
<div class="col-md-6 col-lg-4">
<p class="mb-0"><b>Site Name:</b> <?php echo $SiteConfig['site_name']; ?></p>
</div>
<div class="col-md-6 col-lg-4">
<p class="mb-0"><b>Brand Name:</b> <?php echo $SiteConfig['site_brand']; ?></p>
</div>
<div class="col-md-6 col-lg-4">
<p class="mb-0"><b>Company Name:</b> <?php echo $SiteConfig['site_company']; ?></p>
</div>
<div class="col-md-6 col-lg-4">
<p class="mb-0"><b>URI:</b> <?php echo $SiteConfig['site_path']; ?></p>
</div>
<div class="col-md-6 col-lg-4">
<p class="mb-0"><b>Contact Email:</b> <?php echo $SiteConfig['site_email']; ?></p>
</div>
<div class="col-md-6 col-lg-4">
<p class="mb-0"><b>PHP Version:</b> <?php echo PHP_VERSION; ?></p>
</div>
<div class="col-md-6 col-lg-4">
<p class="mb-0"><b>Server Protocol:</b> <?php echo HTTP_PROTOCOL; ?></p>
</div>
<!-- <div class="col-md-12"><hr></div> -->
<div class="col-md-12">
<p class="mb-0"><b>Document Root:</b> <?php echo $_SERVER['DOCUMENT_ROOT'] ?></p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<div class="card mx-20 my-10 p-15">
<div class="card-header">
<h4 class="m-0">Welcome to Dear Admin!</h4>
</div>
<div class="card-body">
<p>
Here you can manage your free hosting clients and free ssl with free support system remember that any action in this system cannot be undo.
</p>
<div class="text-right">
<a href="accounts.php" class="btn btn-default">Getting Started</a>
<div class="container" style="margin-top: 20px;">
<div class="row">
<div class="col-lg-3 col-md-6">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-users fa-5x"></i>
</div>
<div class="col-xs-9 text-right">
<div class="huge">
<span id="count_client"><?php echo $count_client; ?></span>/<span class="count-all" id="count_clients"><?php echo $count_clients; ?></span>
</div>
<div>客户数量</div>
</div>
</div>
</div>
<a href="clients.php">
<div class="panel-footer">
<span class="pull-left"><?php echo $lang->I18N('View details'); ?></span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div>
</a>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="panel panel-yellow">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-server fa-5x"></i>
</div>
<div class="col-xs-9 text-right">
<div class="huge">
<span id="count_account"><?php echo $count_account; ?></span>/<span class="count-all" id="count_accounts"><?php echo $count_accounts; ?></span>
</div>
<div>账户数量</div>
</div>
</div>
</div>
<a href="accounts.php">
<div class="panel-footer">
<span class="pull-left"><?php echo $lang->I18N('View details'); ?></span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div>
</a>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="panel panel-red">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-ticket-alt fa-5x"></i>
</div>
<div class="col-xs-9 text-right">
<div class="huge">
<span id="count_ticket"><?php echo $count_ticket; ?></span>/<span class="count-all" id="count_tickets"><?php echo $count_tickets; ?></span>
</div>
<div>工单数量</div>
</div>
</div>
</div>
<a href="tickets.php">
<div class="panel-footer">
<span class="pull-left"><?php echo $lang->I18N('View details'); ?></span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div>
</a>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="panel panel-green">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-shield-alt fa-5x"></i>
</div>
<div class="col-xs-9 text-right">
<div class="huge">
<span id="count_ssl"><?php echo $count_ssl; ?></span>/<span class="count-all" id="count_ssls"><?php echo $count_ssls; ?></span>
</div>
<div>证书数量</div>
</div>
</div>
</div>
<a href="myssl.php">
<div class="panel-footer">
<span class="pull-left"><?php echo $lang->I18N('View details'); ?></span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div>
</a>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="card mx-20 my-10 p-15">
<div class="card-header">
<h4 class="m-0">Free SSL Available!</h4>
<div class="panel panel-danger">
<div class="list-group">
<div class="list-group-item">
<span class="fa fa-paper-plane fa-fw"></span> <b>快捷操作:</b>
<a href="settings.php" class="btn btn-danger">Settings</a>&nbsp;&nbsp;
<a href="javascript:cleanRecord(1)" class="btn btn-sm btn-danger">删除1天前的记录</a>&nbsp;&nbsp;
<a href="javascript:cleanRecord(30)" class="btn btn-sm btn-danger">删除30天前的发送记录</a>&nbsp;&nbsp;
</div>
<div class="card-body">
<p>
Now generation of free ssl has been allowed in order to provide fast website access and increase the security and protection of your website.
</p>
<div class="text-right">
<a href="ssl.php" class="btn btn-default">Check Now</a>
</div>
</div>
<div class="row">
<div class="col-md-8 col-sm-12">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">服务器信息</h3>
</div>
<ul class="list-group">
<li class="list-group-item">
<b>服务器时间:</b><?php echo $date; ?>
</li>
<li class="list-group-item">
<b>PHP 版本:</b><?php echo PHP_VERSION; ?>-<?php echo ini_get('safe_mode') ? '线程安全' : '非线程安全'; ?>
</li>
<li class="list-group-item">
<b>MySQL 版本:</b><?php echo $mysqlversion ?>
</li>
<li class="list-group-item">
<b>WEB软件</b><?php echo $_SERVER['SERVER_SOFTWARE'] ?>
</li>
<li class="list-group-item">
<b>操作系统:</b><?php echo php_uname(); ?>
</li>
<li class="list-group-item">
<b>POST许可</b><?php echo ini_get('post_max_size'); ?>
</li>
<li class="list-group-item">
<b>文件上传许可:</b><?php echo ini_get('upload_max_filesize'); ?>
</li>
</ul>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">版本信息</h3>
</div>
<ul class="list-group text-dark">
<li class="list-group-item">当前版本V<?php echo APP_VERSION; ?> (Build <?php echo APP_BUILD; ?>, DB <?php echo DB_VERSION; ?></li>
<li class="list-group-item">官网网站:<a href="https://uiisc.org/" target="_blank">https://uiisc.org</a></li>
<li class="list-group-item">Github<a href="https://github.com/uiisc/uiisc/" target="_blank">https://github.com/uiisc/uiisc</a></li>
<li class="list-group-item"><span class="fa fa-copyright fa-fw"></span> Powered by <a href="https://crogram.com/" target="_blank" rel="noopener noreferrer">CROGRAM</a></li>
</ul>
<ul class="list-group text-dark" id="checkupdate"></ul>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">配置信息</h3>
</div>
<ul class="list-group">
<li class="list-group-item"><b><?php echo $lang->I18N('Site Status'); ?></b>&nbsp;:&nbsp;<?php if ($SiteConfig['site_status'] == 1) {echo '<span class="label label-success">Live</span>';} elseif ($SiteConfig['site_status'] == 0) {echo '<span class="label label-danger">Maintaince</span>';}?></li>
<li class="list-group-item"><b><?php echo $lang->I18N('Site Name'); ?></b>&nbsp;:&nbsp;<?php echo $SiteConfig['site_name']; ?></li>
<li class="list-group-item"><b><?php echo $lang->I18N('Brand Name'); ?></b>&nbsp;:&nbsp;<?php echo $SiteConfig['site_brand']; ?></li>
<li class="list-group-item"><b><?php echo $lang->I18N('Company Name'); ?></b>&nbsp;:&nbsp;<?php echo $SiteConfig['site_company']; ?></li>
<li class="list-group-item"><b><?php echo $lang->I18N('Contact Email'); ?></b>&nbsp;:&nbsp;<?php echo $SiteConfig['site_email']; ?></li>
<li class="list-group-item"><b><?php echo $lang->I18N('Server Protocol'); ?></b>&nbsp;:&nbsp;<?php echo strtoupper(HTTP_PROTOCOL); ?></li>
<li class="list-group-item"><b><?php echo $lang->I18N('Site URL'); ?></b>&nbsp;:&nbsp;<?php echo $site_url; ?></li>
<li class="list-group-item"><b><?php echo $lang->I18N('Site Path'); ?></b>&nbsp;:&nbsp;<?php echo $SiteConfig['site_path']; ?></li>
<li class="list-group-item"><b><?php echo $lang->I18N('Site Root'); ?></b>&nbsp;:&nbsp;<?php echo $_SERVER['DOCUMENT_ROOT'] ?></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>

View file

@ -1,113 +1,121 @@
<?php
if (!defined('IN_CRONLITE')) {
exit('Access Denied');
}
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0"><?php echo $PageInfo['title']; ?></h5>
<div>
<a href="hosting.php" class="btn btn-danger btn-sm">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="hosting.php"><?php echo $lang->I18N('Hosting Provider'); ?></a></li>
<li class="active"><?php echo $lang->I18N('add'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="hosting.php" class="btn btn-primary btn-xs">
<i class="fa fa-list"></i> <?php echo $lang->I18N('Hosting Provider'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
</div>
</div>
<hr />
<form class="card-body" action="controllers/hosting/add.php" method="post">
<div class="row">
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required"><?php echo $lang->I18N('Provider Type'); ?></label>
<select name="api_type" class="form-control" required>
<option value="myownfreehost" selected>MyOwnFreeHost</option>
</select>
<form action="controllers/hosting/add.php" method="post">
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required"><?php echo $lang->I18N('Provider Type'); ?></label>
<select name="api_type" class="form-control" required>
<option value="myownfreehost" selected>MyOwnFreeHost</option>
</select>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Hosting Key</label>
<input type="text" name="api_key" class="form-control" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">MOFH API Username</label>
<input type="text" name="api_username" class="form-control" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">MOFH API Password</label>
<input type="text" name="api_password" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Server domain</label>
<input type="text" name="api_server_domain" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Server IP</label>
<input type="text" name="api_server_ip" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">FTP Server</label>
<input type="text" name="api_server_ftp_domain" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">SQL Server</label>
<input type="text" name="api_server_sql_domain" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Control Panel URL</label>
<input type="text" name="api_cpanel_url" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Hosting Package</label>
<input type="text" name="api_package" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Nameserver 1</label>
<input type="text" name="api_ns_1" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Nameserver 2</label>
<input type="text" name="api_ns_2" class="form-control" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">API Callback Token</label>
<input type="text" name="api_callback_token" class="form-control" maxlength="32" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label">API Callback URL</label>
<input type="text" class="form-control" value="<?php echo $site_url ?>/callback/[Hosting Key]/[API Callback Token]" readonly>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Hosting Key</label>
<input type="text" name="api_key" class="form-control" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">MOFH API Username</label>
<input type="text" name="api_username" class="form-control" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">MOFH API Password</label>
<input type="text" name="api_password" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Server domain</label>
<input type="text" name="api_server_domain" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Server IP</label>
<input type="text" name="api_server_ip" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">FTP Server</label>
<input type="text" name="api_server_ftp_domain" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">SQL Server</label>
<input type="text" name="api_server_sql_domain" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Control Panel URL</label>
<input type="text" name="api_cpanel_url" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Hosting Package</label>
<input type="text" name="api_package" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Nameserver 1</label>
<input type="text" name="api_ns_1" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Nameserver 2</label>
<input type="text" name="api_ns_2" class="form-control" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">API Callback Token</label>
<input type="text" name="api_callback_token" class="form-control" maxlength="32" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label">API Callback URL</label>
<input type="text" class="form-control" value="<?php echo $site_url ?>/callback/[Hosting Key]/[API Callback Token]" readonly>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-12">
<div class="panel-footer">
<div class="my-10 px-10">
<button name="submit" class="btn btn-primary"><?php echo $lang->I18N('Save'); ?></button>
</div>
</div>
</div>
</form>
</form>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,124 @@
<?php
if (!defined('IN_CRONLITE')) {
exit('Access Denied');
}
?>
<div class="content-wrapper">
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="hosting.php"><?php echo $lang->I18N('Hosting Provider'); ?></a></li>
<li class="active"><?php echo $lang->I18N('details'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="<?php echo setURL('admin/hosting', '', array('action' => 'edit', 'id' => $data['api_id'])); ?>" class="btn btn-success btn-xs">
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
</a>
<a href="hosting.php?action=add" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?> ID: <?php echo $data['api_id']; ?></span>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label"><?php echo $lang->I18N('Provider Type'); ?></label>
<input type="text" name="api_type" value="<?php echo $data['api_type']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Hosting Key</label>
<input type="text" name="api_key" value="<?php echo $data['api_key']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label">MOFH API Username</label>
<input type="text" name="api_username" value="<?php echo $data['api_username']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label">MOFH API Password</label>
<input type="text" name="api_password" value="<?php echo $data['api_password']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Hosting Server</label>
<input type="text" name="api_server_domain" value="<?php echo $data['api_server_domain']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Server IP</label>
<input type="text" name="api_server_ip" value="<?php echo $data['api_server_ip']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">FTP Server</label>
<input type="text" name="api_server_ftp_domain" value="<?php echo $data['api_server_ftp_domain']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">SQL Server</label>
<input type="text" name="api_server_sql_domain" value="<?php echo $data['api_server_sql_domain']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Control Panel URL</label>
<input type="text" name="api_cpanel_url" value="<?php echo $data['api_cpanel_url']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Hosting Package</label>
<input type="text" name="api_package" value="<?php echo $data['api_package']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Nameserver 1</label>
<input type="text" name="api_ns_1" value="<?php echo $data['api_ns_1']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Nameserver 2</label>
<input type="text" name="api_ns_2" value="<?php echo $data['api_ns_2']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label">API Callback Token</label>
<input type="text" name="api_callback_token" value="<?php echo $data['api_callback_token']; ?>" class="form-control" maxlength="32" readonly>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label">API Callback URL</label>
<input type="text" class="form-control" value="<?php echo $api_callback_url; ?>" readonly>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<div class="row">
<div class="col-md-12">
<div class="mb-20 px-10">
<a href="<?php echo setURL('admin/hosting', '', array('action' => 'edit', 'id' => $data['api_id'])); ?>" class="btn btn-success btn-xs"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View file

@ -1,106 +1,118 @@
<?php
if (!defined('IN_CRONLITE')) {
exit('Access Denied');
}
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0"><?php echo $PageInfo['title']; ?></h5>
<div>
<a href="hosting.php" class="btn btn-danger btn-sm">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="hosting.php"><?php echo $lang->I18N('Hosting Provider'); ?></a></li>
<li><a href="<?php echo setURL('admin/hosting', '', array('action' => 'details', 'id' => $data['api_id'])); ?>"><?php echo $lang->I18N('details'); ?></a></li>
<li class="active"><?php echo $lang->I18N('edit'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="<?php echo setURL('admin/hosting', '', array('action' => 'details', 'id' => $data['api_id'])); ?>" class="btn btn-success btn-xs">
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
</a>
<a href="hosting.php?action=add" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?> ID: <?php echo $data['api_id']; ?></span>
</div>
</div>
<hr />
<form class="card-body" action="controllers/hosting/edit.php" method="post">
<input type="hidden" name="api_id" value="<?php echo $data['api_id']; ?>" style="display:none;">
<div class="row">
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required"><?php echo $lang->I18N('Provider Type'); ?></label>
<input type="text" name="api_type" value="<?php echo $data['api_type']; ?>" class="form-control" required readonly>
<form action="controllers/hosting/edit.php" method="post">
<input type="hidden" name="api_id" value="<?php echo $data['api_id']; ?>" style="display:none;">
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required"><?php echo $lang->I18N('Provider Type'); ?></label>
<input type="text" name="api_type" value="<?php echo $data['api_type']; ?>" class="form-control" required readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Hosting Key</label>
<input type="text" name="api_key" value="<?php echo $data['api_key']; ?>" class="form-control" required readonly>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">MOFH API Username</label>
<input type="text" name="api_username" value="<?php echo $data['api_username']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">MOFH API Password</label>
<input type="text" name="api_password" value="<?php echo $data['api_password']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Server domain</label>
<input type="text" name="api_server_domain" value="<?php echo $data['api_server_domain']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Server IP</label>
<input type="text" name="api_server_ip" value="<?php echo $data['api_server_ip']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">FTP Server</label>
<input type="text" name="api_server_ftp_domain" value="<?php echo $data['api_server_ftp_domain']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">SQL Server</label>
<input type="text" name="api_server_sql_domain" value="<?php echo $data['api_server_sql_domain']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Control Panel URL</label>
<input type="text" name="api_cpanel_url" value="<?php echo $data['api_cpanel_url']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Hosting Package</label>
<input type="text" name="api_package" value="<?php echo $data['api_package']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Nameserver 1</label>
<input type="text" name="api_ns_1" value="<?php echo $data['api_ns_1']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Nameserver 2</label>
<input type="text" name="api_ns_2" value="<?php echo $data['api_ns_2']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">API Callback Token</label>
<input type="text" name="api_callback_token" value="<?php echo $data['api_callback_token']; ?>" class="form-control" maxlength="32" required>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Hosting Key</label>
<input type="text" name="api_key" value="<?php echo $data['api_key']; ?>" class="form-control" required readonly>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">MOFH API Username</label>
<input type="text" name="api_username" value="<?php echo $data['api_username']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">MOFH API Password</label>
<input type="text" name="api_password" value="<?php echo $data['api_password']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Server domain</label>
<input type="text" name="api_server_domain" value="<?php echo $data['api_server_domain']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Server IP</label>
<input type="text" name="api_server_ip" value="<?php echo $data['api_server_ip']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">FTP Server</label>
<input type="text" name="api_server_ftp_domain" value="<?php echo $data['api_server_ftp_domain']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">SQL Server</label>
<input type="text" name="api_server_sql_domain" value="<?php echo $data['api_server_sql_domain']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Control Panel URL</label>
<input type="text" name="api_cpanel_url" value="<?php echo $data['api_cpanel_url']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Hosting Package</label>
<input type="text" name="api_package" value="<?php echo $data['api_package']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Nameserver 1</label>
<input type="text" name="api_ns_1" value="<?php echo $data['api_ns_1']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label required">Nameserver 2</label>
<input type="text" name="api_ns_2" value="<?php echo $data['api_ns_2']; ?>" class="form-control" required>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">API Callback Token</label>
<input type="text" name="api_callback_token" value="<?php echo $data['api_callback_token']; ?>" class="form-control" maxlength="32" required>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-12">
<div class="panel-footer">
<div class="my-10 px-10">
<button name="submit" class="btn btn-primary"><?php echo $lang->I18N('Save'); ?></button>
</div>
</div>
</div>
</form>
</form>
</div>
</div>
</div>
</div>

View file

@ -1,45 +1,55 @@
<?php
if (!defined('IN_CRONLITE')) {
exit('Access Denied');
}
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0">Hosting Provider</h5>
<a href="hosting.php?action=add" class="btn btn-primary btn-sm">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li class="active"><?php echo $lang->I18N('Hosting Provider'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="hosting.php?action=add" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
</div>
<div class="table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th>Key</th>
<th>Type</th>
<th>Panel URL</th>
<th>Package</th>
<th width="160">Action</th>
</thead>
<tbody>
<?php if ($count > 0): ?>
<?php foreach ($rows as $value): ?>
<tr>
<td><?php echo $value['api_key']; ?></td>
<td><?php echo $value['api_type']; ?></td>
<td><?php echo $value['api_cpanel_url']; ?></td>
<td><?php echo $value['api_package']; ?></td>
<td>
<a href="hosting.php?action=edit&id=<?php echo $value['api_id']; ?>" class="btn btn-success btn-xs"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
<a href="hosting.php?action=details&id=<?php echo $value['api_id']; ?>" class="btn btn-primary btn-xs"><i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?></a>
</td>
</tr>
<?php endforeach;?>
<?php else: ?>
<tr>
<td colspan="5" class="text-center">Nothing found</td>
</tr>
<?php endif;?>
</tbody>
</table>
</div>
<div class="panel-footer"><?php echo $count; ?> Records Found</div>
</div>
<hr>
<div class="table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th>Key</th>
<th>Type</th>
<th>Panel URL</th>
<th>Package</th>
<th>Action</th>
</thead>
<tbody>
<?php if ($count > 0): ?>
<?php foreach ($rows as $value): ?>
<tr>
<td><?php echo $value['api_key']; ?></td>
<td><?php echo $value['api_type']; ?></td>
<td><?php echo $value['api_cpanel_url']; ?></td>
<td><?php echo $value['api_package']; ?></td>
<td>
<a href="hosting.php?action=edit&id=<?php echo $value['api_id']; ?>" class="btn btn-sm btn-secondary mx-5 btn-rounded"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
<a href="hosting.php?action=view&id=<?php echo $value['api_id']; ?>" class="btn btn-sm btn-secondary mx-5 btn-rounded"><i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?></a>
</td>
</tr>
<?php endforeach;?>
<?php else: ?>
<tr>
<td colspan="5" class="text-center">Nothing found</td>
</tr>
<?php endif;?>
</tbody>
</table>
</div>
<p class="pb-10"><?php echo $count; ?> Records Found</p>
</div>
</div>
</div>

View file

@ -1,117 +0,0 @@
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0"><?php echo $PageInfo['title']; ?></h5>
<div>
<a href="hosting.php" class="btn btn-sm btn-danger">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
<a href="<?php echo setURL('admin/hosting', '', array('action' => 'edit', 'id' => $data['api_id'])); ?>" class="btn btn-sm btn-success">
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
</a>
<a href="hosting.php?action=add" class="btn btn-sm btn-primary">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
</div>
</div>
<hr />
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label"><?php echo $lang->I18N('Provider Type'); ?></label>
<input type="text" name="api_type" value="<?php echo $data['api_type']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Hosting Key</label>
<input type="text" name="api_key" value="<?php echo $data['api_key']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label">MOFH API Username</label>
<input type="text" name="api_username" value="<?php echo $data['api_username']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label">MOFH API Password</label>
<input type="text" name="api_password" value="<?php echo $data['api_password']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Hosting Server</label>
<input type="text" name="api_server_domain" value="<?php echo $data['api_server_domain']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Server IP</label>
<input type="text" name="api_server_ip" value="<?php echo $data['api_server_ip']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">FTP Server</label>
<input type="text" name="api_server_ftp_domain" value="<?php echo $data['api_server_ftp_domain']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">SQL Server</label>
<input type="text" name="api_server_sql_domain" value="<?php echo $data['api_server_sql_domain']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Control Panel URL</label>
<input type="text" name="api_cpanel_url" value="<?php echo $data['api_cpanel_url']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Hosting Package</label>
<input type="text" name="api_package" value="<?php echo $data['api_package']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Nameserver 1</label>
<input type="text" name="api_ns_1" value="<?php echo $data['api_ns_1']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-6">
<div class="mb-10 px-10">
<label class="form-label">Nameserver 2</label>
<input type="text" name="api_ns_2" value="<?php echo $data['api_ns_2']; ?>" class="form-control" readonly>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label">API Callback Token</label>
<input type="text" name="api_callback_token" value="<?php echo $data['api_callback_token']; ?>" class="form-control" maxlength="32" readonly>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label">API Callback URL</label>
<input type="text" class="form-control" value="<?php echo $api_callback_url; ?>" readonly>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-12">
<div class="mb-20 px-10">
<a href="<?php echo setURL('admin/hosting', '', array('action' => 'edit', 'id' => $data['api_id'])); ?>" class="btn btn-sm btn-secondary mx-5 btn-rounded"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View file

@ -1,34 +1,51 @@
<?php
if (!defined('IN_CRONLITE')) {
exit('Access Denied');
}
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0">New Knowledgebase</h5>
<a href="knowledgebase.php" class="btn btn-sm btn-danger">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
</div>
<hr>
<form action="controllers/knowledgebase/add.php" method="post">
<div class="row pb-20">
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="input_subject">Subject</label>
<input type="text" name="subject" id="input_subject" placeholder="knowledgebase subject..." class="form-control">
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">Content</label>
<textarea name="editor" id="content" placeholder="Enter ticket content..." class="form-control" style="height: 200px;"></textarea>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<button name="submit" class="btn btn-sm btn-primary">Create Knowledgebase</button>
</div>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="knowledgebase.php"><?php echo $lang->I18N('Knowledgebase'); ?></a></li>
<li class="active"><?php echo $lang->I18N('add'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="knowledgebase.php" class="btn btn-primary btn-xs">
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
</div>
</form>
<form action="controllers/knowledgebase/add.php" method="post">
<div class="panel-body">
<div class="row pb-20">
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="input_subject">Subject</label>
<input type="text" name="subject" id="input_subject" placeholder="knowledgebase subject..." class="form-control">
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">Content</label>
<textarea name="editor" id="content" placeholder="Enter ticket content..." class="form-control" style="height: 200px;"></textarea>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<div class="row pb-20">
<div class="col-md-12">
<div class="mb-10 px-10">
<button name="submit" class="btn btn-sm btn-primary">Create Knowledgebase</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,46 @@
<?php
if (!defined('IN_CRONLITE')) {
exit('Access Denied');
}
?>
<div class="content-wrapper">
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="knowledgebase.php"><?php echo $lang->I18N('Knowledgebase'); ?></a></li>
<li class="active"><?php echo $lang->I18N('details'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="knowledgebase.php?action=edit&id=<?php echo $knowledgebase_id; ?>" class="btn btn-success btn-xs"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
<a href="knowledgebase.php?action=add" class="btn btn-info btn-xs"><i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?></a>
<a href="knowledgebase.php" class="btn btn-primary btn-xs"><i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?></a>
</div>
<div class="panel-title">
<?php echo $PageInfo['title']; ?>
<span class="label label-default"> ID <?php echo $knowledgebase_id; ?></span>
</div>
</div>
<div class="panel-body">
<div class="page-header">
<div class="row">
<div class="col-md-6">
<b>Subject :</b>
<span><?php echo $Knowledgebase['knowledgebase_subject']; ?></span>
</div>
<div class="col-md-6">
<b>Date :</b>
<span><?php echo $Knowledgebase['knowledgebase_date']; ?></span>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?php echo htmlspecialchars_decode($Knowledgebase['knowledgebase_content']); ?>
</div>
</div>
</div>
</div>
</div>
</div>

View file

@ -1,37 +1,56 @@
<?php
if (!defined('IN_CRONLITE')) {
exit('Access Denied');
}
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0">Edit Knowledgebase</h5>
<a href="knowledgebase.php" class="btn btn-sm btn-danger">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
</div>
<hr>
<form action="controllers/knowledgebase/edit.php" method="post">
<div class="row pb-20">
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">Knowledgebase Subject</label>
<input type="text" name="subject" placeholder="knowledgebase subject..." value="<?php echo $Knowledgebase['knowledgebase_subject'];?>" class="form-control">
</div>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="knowledgebase.php"><?php echo $lang->I18N('Knowledgebase'); ?></a></li>
<li><a href="knowledgebase.php?action=details&id=<?php echo $id; ?>"><?php echo $lang->I18N('details'); ?></a></li>
<li class="active"><?php echo $lang->I18N('edit'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="knowledgebase.php?action=details&id=<?php echo $id; ?>" class="btn btn-success btn-xs"><i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?></a>
<a href="knowledgebase.php?action=add" class="btn btn-info btn-xs"><i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?></a>
<a href="knowledgebase.php" class="btn btn-primary btn-xs"><i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?></a>
</div>
<input type="hidden" name="id" value="<?php echo $_GET['id'];?>">
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">Knowledgebase Content</label>
<textarea name="editor" id="content" placeholder="Enter ticket content..." class="form-control" style="height: 200px;"><?php echo $Knowledgebase['knowledgebase_content'];?></textarea>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<button name="submit" class="btn btn-sm btn-primary">Update</button>
<a href="knowledgebase.php?action=view&id=<?php echo $Knowledgebase['knowledgebase_id'];?>" target="_blank" class="btn btn-sm btn-success">Preview</a>
</div>
<div class="panel-title">
<?php echo $PageInfo['title']; ?> <span class="label label-default"> ID <?php echo $id; ?></span>
</div>
</div>
</form>
<form action="controllers/knowledgebase/edit.php" method="post">
<div class="panel-body">
<div class="row pb-20">
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">Knowledgebase Subject</label>
<input type="text" name="subject" placeholder="<?php echo $lang->I18N('Enter knowledgebase subject'); ?>" value="<?php echo $Knowledgebase['knowledgebase_subject']; ?>" class="form-control">
</div>
</div>
<input type="hidden" name="id" value="<?php echo $id; ?>">
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required">Knowledgebase Content</label>
<textarea name="editor" id="content" placeholder="<?php echo $lang->I18N('Enter Knowledgebase Content'); ?>" class="form-control" style="height: 200px;"><?php echo $Knowledgebase['knowledgebase_content']; ?></textarea>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<div class="row">
<div class="col-md-12">
<div class="mb-10 px-10">
<button name="submit" class="btn btn-sm btn-primary"><?php echo $lang->I18N('Save'); ?></button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

View file

@ -1,43 +1,53 @@
<?php
if (!defined('IN_CRONLITE')) {
exit('Access Denied');
}
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0">Knowledgebase</h5>
<a href="knowledgebase.php?action=add" class="btn btn-success btn-sm">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li class="active"><?php echo $lang->I18N('Knowledgebase'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="knowledgebase.php?action=add" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
</div>
<div class="table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th>ID</th>
<th>Subject</th>
<th width="160">Date</th>
<th width="150">Action</th>
</thead>
<tbody>
<?php if ($count > 0): ?>
<?php foreach ($rows as $value): ?>
<tr>
<td><?php echo $value['knowledgebase_id']; ?></td>
<td><?php echo $value['knowledgebase_subject']; ?></td>
<td><?php echo $value['knowledgebase_date']; ?></td>
<td>
<a href="knowledgebase.php?action=edit&id=<?php echo $value['knowledgebase_id']; ?>" class="btn btn-success btn-xs"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
<a href="knowledgebase.php?action=details&id=<?php echo $value['knowledgebase_id']; ?>" class="btn btn-primary btn-xs"><i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?></a>
</td>
</tr>
<?php endforeach;?>
<?php else: ?>
<tr>
<td colspan="5" class="text-center">Nothing found</td>
</tr>
<?php endif;?>
</tbody>
</table>
</div>
<div class="panel-footer"><?php echo $count; ?> Records Found</div>
</div>
<hr>
<div class="table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th width="5%">ID</th>
<th width="75%">Subject</th>
<th width="10%">Date</th>
<th width="10%">Action</th>
</thead>
<tbody>
<?php if ($count > 0): ?>
<?php foreach ($rows as $value): ?>
<tr>
<td>#<?php echo $value['knowledgebase_id']; ?></td>
<td><?php echo $value['knowledgebase_subject']; ?></td>
<td><?php echo $value['knowledgebase_date']; ?></td>
<td>
<a href="knowledgebase.php?action=edit&id=<?php echo $value['knowledgebase_id']; ?>" class="btn btn-sm btn-secondary mx-5 btn-rounded"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
<a href="knowledgebase.php?action=view&id=<?php echo $value['knowledgebase_id']; ?>" class="btn btn-sm btn-secondary mx-5 btn-rounded"><i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?></a>
</td>
</tr>
<?php endforeach;?>
<?php else: ?>
<tr>
<td colspan="5" class="text-center">Nothing found</td>
</tr>
<?php endif;?>
</tbody>
</table>
</div>
<p class="pb-10"><?php echo $count; ?> Records Found</p>
</div>
</div>
</div>

View file

@ -0,0 +1,171 @@
<div class="container" style="padding-top:70px;">
<div class="col-xs-12 center-block" style="float: none;">
<div id="searchToolbar">
<form onsubmit="return searchSubmit()" method="GET" class="form-inline">
<input type="hidden" name="did">
<div class="form-group">
<label>搜索</label>
<input type="text" class="form-control" name="appid" placeholder="应用ID" style="width: 80px;" />
</div>
<div class="form-group">
<input type="text" class="form-control" name="smtp_id" placeholder="服务ID" style="width: 80px;" />
</div>
<div class="form-group">
<input type="text" class="form-control" name="mail_to" placeholder="接收人" style="width: 120px;" />
</div>
<div class="form-group">
<input type="text" class="form-control" name="mail_subject" placeholder="主题">
</div>
<div class="form-group">
<input type="text" class="form-control" name="mail_from" placeholder="发信人" style="width: 120px;" />
</div>
<div class="form-group">
<button class="btn btn-primary" type="submit"><i class="fa fa-search"></i> 搜索</button>&nbsp;
<a href="javascript:searchClear()" class="btn btn-default" title="刷新记录列表"><i class="fa fa-repeat"></i> 重置</a>&nbsp;
</div>
</form>
</div>
<table id="listTable"></table>
</div>
</div>
<script src="<?php echo $site_url; ?>/assets/jquery/jquery.min.js"></script>
<script src="<?php echo $site_url; ?>/assets/bootstrap/js/bootstrap.min.js?_=<?php echo $static_release; ?>"></script>
<script src="<?php echo $site_url; ?>/assets/js/common.js"></script>
<script src="//cdn.staticfile.org/layer/3.1.1/layer.js"></script>
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/bootstrap-table.min.js"></script>
<script src="//cdn.staticfile.org/bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
<script src="../assets/js/custom.js"></script>
<script>
$(document).ready(function() {
updateToolbar();
const defaultPageSize = 15;
const pageNumber = typeof window.$_GET['pageNumber'] != 'undefined' ? parseInt(window.$_GET['pageNumber']) : 1;
const pageSize = typeof window.$_GET['pageSize'] != 'undefined' ? parseInt(window.$_GET['pageSize']) : defaultPageSize;
$("#listTable").bootstrapTable({
url: 'api/tickets/?act=list',
pageNumber: pageNumber,
pageSize: pageSize,
classes: 'table table-striped table-hover table-bordered',
columns: [{
field: 'id',
title: 'ID',
formatter: function(value, row, index) {
return '<b>' + value + '</b>';
}
},
{
field: 'appid',
title: 'AppID',
formatter: function(value, row, index) {
return '<a href="app.php?id=' + row.appid + '">' + row.appid + '</a>';
}
},
{
field: 'smtp_id',
title: '服务ID',
formatter: function(value, row, index) {
return '<a href="smtp.php?id=' + row.smtp_id + '">' + row.smtp_id + '</a>';
}
},
{
field: 'mail_to',
title: '接收人'
},
{
field: 'mail_subject',
title: '主题'
},
{
field: 'mail_from',
title: '发送人'
},
// {
// field: 'ip',
// title: 'IP',
// formatter: function(value, row, index) {
// return '<a href="https://m.ip138.com/iplookup.asp?ip=' + value + '" target="_blank" rel="noreferrer">' + value + '</a>';
// }
// },
{
field: 'mail_date',
title: '发送时间'
},
{
field: 'status',
title: '回调结果',
formatter: function(value, row, index) {
return value == 1 ? '<span class="label label-success">成功</span>' : '<span class="label label-default">失败</span>';
}
},
{
field: '',
title: '操作',
formatter: function(value, row, index) {
var html = '<a href="javascript:viewEmail(' + row.id + ')" class="btn btn-info btn-xs">预览</a>';
return html;
}
}
]
})
});
function viewEmail(id) {
layer.open({
type: 2,
area: ['60%', '500px'],
closeBtn: 2,
title: '查看邮件内容',
content: 'view.php?id=' + id
});
// var ii = layer.load(2);
// $.ajax({
// type: 'GET',
// url: 'ajax_record.php',
// data: {
// act: 'info',
// id: id
// },
// dataType: 'json',
// success: function(data) {
// layer.close(ii);
// if (data.code == 0) {
// layer.open({
// type: 1,
// area: ['100%'],
// closeBtn: 2,
// title: '查看邮件内容',
// content: data.data.mail_body
// })
// } else {
// layer.alert(data.msg, {
// icon: 2
// })
// }
// },
// error: function(data) {
// layer.close(ii);
// layer.msg('服务器错误');
// }
// });
};
</script>
<?php if (!empty($load_editor)): ?>
<script src="<?php echo $site_url; ?>/assets/nicedit/nicedit.js"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function(){
new nicEditor({
iconsPath : '<?php echo $site_url; ?>/assets/nicedit/nicEditorIcons.gif'
}).panelInstance('content');
});
</script>
<?php endif; ?>
</body>
</html>

View file

@ -1,40 +0,0 @@
<?php
if (!$Knowledgebase) {
include __DIR__ . '/../common/404.php';
exit();
}
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0">Viewing Knowledgebase #<?php echo $knowledgebase_id; ?></h5>
<a href="<?php echo $SiteConfig['site_path']; ?>admin/knowledgebase.php" class="btn btn-sm btn-danger">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
</div>
<hr />
<div class="mb-20">
<div class="row">
<div class="col-md-6">
<div class="d-flex justify-content-between align-items-center mx-10 my-5">
<b>Subject:</b>
<span><?php echo $Knowledgebase['knowledgebase_subject']; ?></span>
</div>
</div>
<div class="col-md-6">
<div class="d-flex justify-content-between align-items-center mx-10 my-5">
<b>Date:</b>
<span><?php echo $Knowledgebase['knowledgebase_date']; ?></span>
</div>
</div>
</div>
</div>
</div>
<div class="card py-0">
<div class="mx-10 py-15">
<div><?php echo htmlspecialchars_decode($Knowledgebase['knowledgebase_content']); ?></div>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,33 @@
<footer class="footer navbar navbar-default navbar-fixed-bottom">
<div class="container">
<div class="navbar-inner navbar-content-center" style="padding-top:15px;">
<ul class="navbar-left list-inline text-center text-muted credit">
<li>
<span class="co">&copy;&nbsp;2013-<?php echo date("Y"); ?>&nbsp;<a href="<?php echo $site_url; ?>" target="_blank"><?php echo $SiteConfig['site_brand']; ?></a>&nbsp;</span>
<span class="co">&nbsp;Powered by <a href="https://crogram.org" target="_blank">Crogram</a>&nbsp;</span>
</li>
</ul>
<ul class="legal navbar-right list-inline text-center">
<li><a href="<?php echo $site_url; ?>" target="_blank"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="<?php echo $site_url; ?>/about.php" target="_blank"><?php echo $lang->I18N('about'); ?></a></li>
<li class="dropup">
<div class="dropdown-toggle" id="changelanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="fa fa-language"></span>
<a href="#"><?php echo $lang->get_language_name(); ?></a>
</div>
<ul class="dropdown-menu language-change"><?php echo $lang->get_languages_tags(); ?></ul>
</li>
</ul>
</div>
</div>
</footer>
<div id="hidden-area"><?php getMessage(); ?></div>
<script src="<?php echo $site_url; ?>/assets/jquery/jquery.min.js"></script>
<script src="<?php echo $site_url; ?>/assets/bootstrap/js/bootstrap.min.js?_=<?php echo $static_release; ?>"></script>
<script src="//cdn.staticfile.org/layer/3.1.1/layer.js"></script>
<script src="<?php echo $site_url; ?>/assets/js/common.js"></script>
</body>
</html>

View file

@ -0,0 +1,20 @@
<div class="container" id="login">
<div class="row">
<div class="col-md-offset-4 col-md-4 col-sm-offset-3 col-sm-6">
<form action="controllers/profile/forgetpassword.php" method="post">
<h3 class="m-0 text-center"><?php echo $lang->I18N('Forget Password'); ?></h3>
<hr />
<div class="form-group mb-10">
<label class="form-label required"><?php echo $lang->I18N('Email Address'); ?></label>
<input type="email" name="email" class="form-control" placeholder="<?php echo $lang->I18N('input_email'); ?>">
</div>
<div class="form-group mb-10">
<button class="btn btn-primary btn-block" name="reset"><?php echo $lang->I18N('Reset Password'); ?></button>
</div>
</form>
<div class="nav-links">
<a href="login.php"><?php echo $lang->I18N('login'); ?></a>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="<?php echo $lang->language_current; ?>">
<head>
<!-- Meta tags -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="robots" content="noindex,nofollow">
<meta name="format-detection" content="telephone=no,email=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="description" content="UIISC is a free of cost we hosting and SSL management software allow you to manage your clients and accounts from a single place!" />
<meta name="keywords" content="<?php echo $page_keywords; ?>" />
<meta name="author" content="UIISC" />
<meta name="copyright" content="® CROGRAM" />
<title><?php echo $PageInfo['title']; ?> - <?php echo $lang->I18N('AdminArea'); ?> - <?php echo $SiteConfig['site_name']; ?></title>
<link rel="icon" type="image/x-icon" href="<?php echo $site_url; ?>/assets/image/favicon.ico">
<link rel="shortcut" type="image/x-icon" href="<?php echo $site_url; ?>/assets/image/favicon.ico">
<link href="<?php echo $site_url; ?>/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="<?php echo $site_url; ?>/assets/css/font-awesome.min.css" rel="stylesheet" />
<link href="<?php echo $site_url; ?>/assets/css/common.css?_=<?php echo $static_release; ?>" rel="stylesheet" />
<!-- <link href="<?php echo $site_url; ?>/assets/css/admin.css" rel="stylesheet" /> -->
<script type="text/javascript">
var site_domain = "<?php echo $site_domain; ?>";
var cur_lang = "<?php echo $lang->language_current; ?>";
var ifastnet_aff = "<?php echo $ifastnet_aff; ?>";
</script>
<?php echo $PageInfo['rel']; ?>
</head>
<body>

View file

@ -1,31 +1,27 @@
<div class="container-fluid" id="login">
<div class="container" id="login">
<div class="row">
<div class="m-auto" style="width: 400px;">
<div class="card mx-30" style="opacity: 80%">
<form action="controllers/login/login.php" method="post">
<h5 class="m-0 text-center"><?php echo $lang->I18N('login'); ?></h5><hr>
<div class="mb-10">
<label class="form-label required"><?php echo $lang->I18N('email'); ?></label>
<input type="email" name="email" class="form-control" placeholder="<?php echo $lang->I18N('input_email'); ?>">
</div>
<div class="mb-10">
<label class="form-label required"><?php echo $lang->I18N('password'); ?></label>
<input type="password" name="password" class="form-control" placeholder="<?php echo $lang->I18N('input_password'); ?>">
</div>
<div class="form-group">
<div class="custom-switch">
<input type="checkbox" name="remember" value="1" id="remember-my-information">
<label for="remember-my-information"><?php echo $lang->I18N('Remember me'); ?></label>
</div>
</div>
<div class="mb-10 d-grid">
<button class="btn btn-primary btn-block" name="login"><?php echo $lang->I18N('login'); ?></button>
</div>
</form>
<div class="nav-links">
<a href="forgetpassword.php"><?php echo $lang->I18N('password_lost'); ?></a>
<div class="col-md-offset-4 col-md-4 col-sm-offset-3 col-sm-6">
<form action="controllers/login/login.php" method="post">
<h3 class="m-0 text-center"><?php echo $lang->I18N('login'); ?></h3>
<hr />
<div class="form-group mb-10">
<label class="form-label required"><?php echo $lang->I18N('email'); ?></label>
<input type="email" name="email" class="form-control" placeholder="<?php echo $lang->I18N('input_email'); ?>">
</div>
<div class="form-group mb-10">
<label class="form-label required"><?php echo $lang->I18N('password'); ?></label>
<input type="password" name="password" class="form-control" placeholder="<?php echo $lang->I18N('input_password'); ?>">
</div>
<div class="form-group">
<input type="checkbox" name="remember" value="1" id="remember-my-information">
<label for="remember-my-information"><?php echo $lang->I18N('Remember me'); ?></label>
</div>
<div class="mb-10 d-grid">
<button class="btn btn-primary btn-block" name="login"><?php echo $lang->I18N('login'); ?></button>
</div>
</form>
<div class="nav-links">
<a href="forgetpassword.php"><?php echo $lang->I18N('password_lost'); ?></a>
</div>
</div>
</div>

View file

@ -0,0 +1,36 @@
<div class="container" id="login">
<div class="row">
<div class="col-md-offset-4 col-md-4 col-sm-offset-3 col-sm-6">
<form action="controllers/profile/resetpassword.php" method="post" onsubmit="
var password = document.getElementById('password').value;
var cpassword = document.getElementById('cpassword').value;
if(password != cpassword){
alert('Password not match');
return false;
}
return true;
">
<h3 class="m-0 text-center"><?php echo $lang->I18N('Reset Password'); ?></h3><hr>
<div class="form-group">
<label class="form-label required"><?php echo $lang->I18N('Reset Token'); ?></label>
<input type="text" name="token" class="form-control" placeholder="<?php echo $lang->I18N('Input Reset Token'); ?>">
</div>
<div class="form-group">
<label class="form-label required"><?php echo $lang->I18N('Password'); ?></label>
<input type="password" name="password" id="password" class="form-control" placeholder="<?php echo $lang->I18N('input_password'); ?>">
</div>
<div class="form-group">
<label class="form-label required"><?php echo $lang->I18N('Confirm Password'); ?></label>
<input type="password" name="cpassword" id="cpassword" class="form-control" placeholder="<?php echo $lang->I18N('Input Confirm Password'); ?>">
</div>
<div class="form-group">
<button class="btn btn-primary btn-block" name="reset"><?php echo $lang->I18N('Reset Password'); ?></button>
</div>
</form>
<div class="nav-links">
<a href="login.php"><?php echo $lang->I18N('login'); ?></a>
</div>
</div>
</div>
</div>
</div>

View file

@ -5,44 +5,53 @@ if (!defined('IN_CRONLITE')) {
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0"><?php echo $PageInfo['title']; ?></h5>
<a href="news.php" class="btn btn-sm btn-danger"><i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?></a>
</div>
<hr>
<form action="controllers/news/add.php" method="post">
<div class="row pb-20">
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="subject">Subject</label>
<input type="text" name="subject" id="subject" class="form-control" placeholder="news subject..." maxlength="255">
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="status">Status</label>
<select name="status" id="status" class="form-control">
<?php foreach ($status_types as $key => $value): ?>
<option value="<?php echo $key; ?>"><?php echo $value; ?></option>
<?php endforeach;?>
</select>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="content">Content</label>
<textarea name="content" id="content" class="form-control" rows="10" maxlength="5000" placeholder="Enter news content..."></textarea>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<button name="submit" class="btn btn-sm btn-primary">Create News</button>
</div>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="news.php"><?php echo $lang->I18N('News List'); ?></a></li>
<li class="active"><?php echo $lang->I18N('add'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="news.php" class="btn btn-primary btn-xs">
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
</div>
</form>
<form action="controllers/news/add.php" method="post">
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="subject">Subject</label>
<input type="text" name="subject" id="subject" class="form-control" placeholder="news subject..." maxlength="255">
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="status">Status</label>
<select name="status" id="status" class="form-control">
<?php foreach ($status_types as $key => $value): ?>
<option value="<?php echo $key; ?>"><?php echo $value; ?></option>
<?php endforeach;?>
</select>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="content">Content</label>
<textarea name="content" id="content" class="form-control" rows="10" maxlength="5000" placeholder="Enter news content..."></textarea>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<button name="submit" class="btn btn-sm btn-primary">Create News</button>
</div>
</form>
</div>
</div>
</div>
</div>

View file

@ -5,52 +5,61 @@ if (!defined('IN_CRONLITE')) {
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0"><?php echo $PageInfo['title']; ?></h5>
<div>
<a href="news.php" class="btn btn-sm btn-danger">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
<a href="<?php echo setURL('admin/news', '', array('action' => 'view', 'id' => $id)); ?>" class="btn btn-sm btn-success">
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
</a>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="news.php"><?php echo $lang->I18N('News List'); ?></a></li>
<li><a href="<?php echo setURL('admin/news', '', array('action' => 'view', 'id' => $id)); ?>"><?php echo $lang->I18N('details'); ?></a></li>
<li class="active"><?php echo $lang->I18N('edit'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="<?php echo setURL('admin/news', '', array('action' => 'view', 'id' => $id)); ?>" class="btn btn-success btn-xs">
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
</a>
<a href="news.php?action=add" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
<a href="news.php?action=list" class="btn btn-primary btn-xs">
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?> ID:<?php echo $id; ?></span>
</div>
</div>
<hr>
<form action="controllers/news/edit.php" method="post">
<input type="hidden" name="id" value="<?php echo $news['news_id']; ?>">
<div class="row pb-20">
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="subject">Subject</label>
<input type="text" name="subject" id="subject" class="form-control" value="<?php echo $news['news_subject']; ?>" placeholder="news subject..." maxlength="255">
<div class="panel-body">
<div class="row pb-20">
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="subject">Subject</label>
<input type="text" name="subject" id="subject" class="form-control" value="<?php echo $news['news_subject']; ?>" placeholder="news subject..." maxlength="255">
</div>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="status">Status</label>
<select name="status" id="status" class="form-control">
<?php foreach ($status_types as $key => $value): ?>
<option value="<?php echo $key; ?>" <?php echo $key == $news['news_status'] ? 'selected' : ''; ?> ><?php echo $value; ?></option>
<?php endforeach;?>
</select>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="status">Status</label>
<select name="status" id="status" class="form-control">
<?php foreach ($status_types as $key => $value): ?>
<option value="<?php echo $key; ?>" <?php echo $key == $news['news_status'] ? 'selected' : ''; ?> ><?php echo $value; ?></option>
<?php endforeach;?>
</select>
</div>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="content">Content</label>
<textarea name="content" id="content" class="form-control" rows="10" maxlength="5000" placeholder="Enter news content..."><?php echo $news['news_content']; ?></textarea>
</div>
</div>
<div class="col-md-12">
<div class="mb-10 px-10">
<button name="submit" class="btn btn-sm btn-primary">Update</button>
<div class="col-md-12">
<div class="mb-10 px-10">
<label class="form-label required" for="content">Content</label>
<textarea name="content" id="content" class="form-control" rows="10" maxlength="5000" placeholder="Enter news content..."><?php echo $news['news_content']; ?></textarea>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<button name="submit" class="btn btn-sm btn-primary">Update</button>
</div>
</form>
</div>
</div>
</div>
</div>

View file

@ -5,47 +5,53 @@ if (!defined('IN_CRONLITE')) {
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0"><?php echo $PageInfo['title']; ?></h5>
<a href="news.php?action=add" class="btn text-white btn-success btn-sm">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li class="active"><?php echo $lang->I18N('News List'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="news.php?action=add" class="btn btn-success btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
</div>
<div class="table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th width="100">ID</th>
<th><?php echo $lang->I18N('Title'); ?></th>
<th><?php echo $lang->I18N('Status'); ?></th>
<th style="width: 150px;"><?php echo $lang->I18N('Date'); ?></th>
<th><?php echo $lang->I18N('Action'); ?></th>
</thead>
<tbody>
<?php if ($count > 0): ?>
<?php foreach ($rows as $value): ?>
<tr>
<td><?php echo $value['news_id']; ?></td>
<td><?php echo $value["news_subject"]; ?></td>
<td><?php echo $status_types[$value['news_status']]; ?></td>
<td style="width: 150px;"><?php echo $value["news_date"]; ?></td>
<td style="width: 150px;">
<a href="news.php?action=edit&id=<?php echo $value['news_id']; ?>" class="btn btn-success btn-xs"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
<a href="news.php?action=view&id=<?php echo $value['news_id']; ?>" class="btn btn-primary btn-xs"><i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?></a>
</td>
</tr>
<?php endforeach;?>
<?php else: ?>
<tr>
<td colspan="5" class="text-center">Nothing found</td>
</tr>
<?php endif;?>
</tbody>
</table>
</div>
<div class="panel-footer"><?php echo $count; ?> Records Found, Page 1 of 1</div>
</div>
<hr>
<div class="table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th width="5%">ID</th>
<th><?php echo $lang->I18N('Title'); ?></th>
<th><?php echo $lang->I18N('Status'); ?></th>
<th style="width: 150px;"><?php echo $lang->I18N('Date'); ?></th>
<th><?php echo $lang->I18N('Action'); ?></th>
</thead>
<tbody>
<?php if ($count > 0): ?>
<?php foreach ($rows as $value): ?>
<tr>
<td>#<?php echo $value['news_id']; ?></td>
<td><?php echo $value["news_subject"]; ?></td>
<td><?php echo $status_types[$value['news_status']]; ?></td>
<td style="width: 150px;"><?php echo $value["news_date"]; ?></td>
<td style="width: 150px;">
<a href="news.php?action=edit&id=<?php echo $value['news_id']; ?>" class="btn btn-sm btn-secondary mx-5 btn-rounded"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
<a href="news.php?action=view&id=<?php echo $value['news_id']; ?>" class="btn btn-sm btn-secondary mx-5 btn-rounded"><i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?></a>
</td>
</tr>
<?php endforeach;?>
<?php else: ?>
<tr>
<td colspan="5" class="text-center">Nothing found</td>
</tr>
<?php endif;?>
</tbody>
</table>
</div>
<p class="pb-10"><?php echo $count; ?> Records Found, Page 1 of 1</p>
</div>
</div>
</div>

View file

@ -1,51 +1,42 @@
<?php
if (!defined('IN_CRONLITE')) {
// exit('禁止访问');
header("Location: ../../admin.php");
exit;
}
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card py-0">
<div class="d-flex justify-content-between align-items-center pt-15">
<h5 class="m-0"><?php echo $PageInfo['title']; ?> #<?php echo $id; ?></h5>
<div>
<a href="news.php" class="btn btn-sm btn-danger">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
<a href="<?php echo setURL('admin/news', '', array('action' => 'edit', 'id' => $id)); ?>" class="btn btn-sm btn-success">
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
</a>
<a href="news.php?action=add" class="btn btn-sm btn-success">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
</div>
</div>
<hr />
<div class="mb-20">
<div class="row">
<div class="col-md-6">
<div class="d-flex justify-content-between align-items-center mx-10 my-5">
<b>Subject:</b>
<span><?php echo $data['news_subject']; ?></span>
</div>
<div class="content-wrapper">
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="news.php"><?php echo $lang->I18N('News List'); ?></a></li>
<li class="active"><?php echo $lang->I18N('details'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="<?php echo setURL('admin/news', '', array('action' => 'edit', 'id' => $id)); ?>" class="btn btn-success btn-xs">
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
</a>
<a href="news.php?action=add" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a>
<a href="news.php?action=list" class="btn btn-primary btn-xs">
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
</a>
</div>
<div class="col-md-6">
<div class="d-flex justify-content-between align-items-center mx-10 my-5">
<b>Date:</b>
<span><?php echo $data['news_date']; ?></span>
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?> ID:<?php echo $id; ?></span>
</div>
<div class="panel-body">
<div class="page-header text-center">
<h2><?php echo $data['news_subject']; ?></h2>
<p><?php echo $data['news_date']; ?></p>
</div>
<div class="news-content">
<?php echo htmlspecialchars_decode($data['news_content']); ?>
</div>
</div>
</div>
</div>
<div class="card py-0">
<div class="mx-10 py-15">
<?php echo htmlspecialchars_decode($data['news_content']); ?>
</div>
</div>
</div>
</div>

View file

@ -1,22 +0,0 @@
<div class="container-fluid" id="login">
<div class="row">
<div class="m-auto" style="width: 400px;">
<div class="card mx-30" style="opacity: 80%">
<form action="controllers/profile/forgetpassword.php" method="post">
<h5 class="m-0 text-center">Forget Password</h5><hr>
<div class="mb-10">
<label class="form-label required">Email Address</label>
<input type="email" name="email" class="form-control" placeholder="Email Address...">
</div>
<div class="mb-10 d-grid">
<button class="btn btn-primary btn-block" name="reset">Reset Password</button>
</div>
</form>
<div class="nav-links">
<a href="login.php"><?php echo $lang->I18N('login'); ?></a>
</div>
</div>
</div>
</div>
</div>

View file

@ -1,37 +0,0 @@
<div class="content-wrapper">
<div class="container-fluid" id="login">
<div class="row">
<div class="col-md-6 col-md-offset-2 col-lg-4 offset-lg-4">
<div class="card mx-30" style="opacity: 80%">
<form action="controllers/profile/resetpassword.php" method="post" onsubmit="
var password = document.getElementById('password').value;
var cpassword = document.getElementById('cpassword').value;
if(password != cpassword){
alert('Password not match');
return false;
}
return true;
">
<h5 class="m-0 text-center">Reset Password</h5><hr>
<div class="mb-10">
<label class="form-label required">Reset Token</label>
<input type="text" name="token" class="form-control" placeholder="Eeset token here...">
</div>
<div class="mb-10">
<label class="form-label required">Password</label>
<input type="password" name="password" id="password" class="form-control" placeholder="Password...">
</div>
<div class="mb-20">
<label class="form-label required">Confirm Password</label>
<input type="password" name="cpassword" id="cpassword" class="form-control" placeholder="Confirm Password...">
</div>
<div class="mb-10 d-grid">
<button class="btn btn-primary btn-block" name="reset">Reset Password</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,92 @@
<?php
if (!defined('IN_CRONLITE')) {
exit('Access Denied');
}
?>
<div class="content-wrapper">
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li><a href="tickets.php"><?php echo $lang->I18N('Tickets List'); ?></a></li>
<li class="active"><?php echo $lang->I18N('Tickets Details'); ?></li>
</ol>
<div class="panel panel-info">
<div class="panel-heading">
<div class="pull-right">
<?php if ($TicketInfo['ticket_status'] != '3'): ?>
<a href="controllers/tickets/close.php?ticket_id=<?php echo $ticket_id; ?>" class="btn btn-danger btn-xs"><?php echo $lang->I18N('close'); ?></a>
<?php endif; ?>
<!-- <a href="tickets.php?action=add" class="btn btn-info btn-xs"><i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?></a> -->
<a href="tickets.php" class="btn btn-primary btn-xs"><i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?></a>
</div>
<div class="panel-title">
<?php echo $PageInfo['title']; ?>
<span class="label label-default"> ID <?php echo $ticket_id; ?></span>
</div>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-6 mb-10">
<b>Subject:</b>
<span><?php echo $TicketInfo['ticket_subject']; ?></span>
</div>
<div class="col-md-6 mb-10">
<b>Status:</b>
<span><?php echo get_ticket_status_span($TicketInfo['ticket_status']); ?></span>
</div>
<div class="col-md-6 mb-10">
<b>Department:</b>
<span><?php echo get_ticket_department($TicketInfo['ticket_department']); ?></span>
</div>
<div class="col-md-6 mb-10">
<b>Date:</b>
<span><?php echo $TicketInfo['ticket_date']; ?></span>
</div>
</div>
<!-- <hr /> -->
<p><b>Ticket content :</b></p>
<?php echo $TicketInfo['ticket_content']; ?>
</div>
</div>
<?php if ($ReplyCount > 0): ?>
<?php foreach ($ReplyInfo as $value): ?>
<div class="panel <?php echo $value['reply_from'] == 999999 ? 'panel-default' : 'panel-success'; ?>">
<div class="panel-heading">
<strong><?php echo $value['reply_from'] == 999999 ? 'Support Staff' : 'Client Reply'; ?></strong>
<span><?php echo $value['reply_date']; ?></span>
</div>
<div class="panel-body">
<?php echo $value['reply_content']; ?>
</div>
</div>
<?php endforeach;?>
<?php else: ?>
<div class="panel panel-default">
<div class="panel-body text-center">No replies to this ticket yet.</div>
</div>
<?php endif;?>
<?php if ($TicketInfo['ticket_status'] == '3'): ?>
<div class="panel panel-default">
<div class="panel-body text-center">You can't reply to this ticket anymore open new ticket for any further questions.</div>
</div>
<?php else: ?>
<form action="controllers/tickets/reply.php" method="post">
<input type="hidden" name="ticket_id" value="<?php echo $TicketInfo['ticket_id']; ?>">
<input type="hidden" name="ticket_email" value="<?php echo $TicketInfo['ticket_email']; ?>">
<div class="panel panel-default" id="reply">
<div class="panel-heading">
Reply content
</div>
<div class="panel-body">
<textarea class="form-control" name="content" id="content"></textarea>
</div>
<div class="panel-footer">
<button class="btn btn-sm btn-primary" name="submit">Add Reply</button>
<a href="controllers/tickets/close.php?ticket_id=<?php echo $ticket_id; ?>" class="btn btn-danger btn-sm">Close Ticket</a>
</div>
</div>
</form>
<?php endif;?>
</div>
</div>

View file

@ -1,35 +1,40 @@
<div class="content-wrapper">
<div class="container-fluid">
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h3 class="m-0"><?php echo $lang->I18N('Tickets List'); ?></h3>
<a href="index.php" class="btn text-white btn-danger btn-sm">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
</div>
<hr />
<div class="card-body table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th>ID</th>
<th>Subject</th>
<th>Department</th>
<th>Client Email</th>
<th>Date</th>
<th>Status</th>
<th>Action</th>
</thead>
<tbody>
<?php if ($count > 0): ?>
<?php foreach ($rows as $value): ?>
<tr>
<td>#<?php echo $value['ticket_id']; ?></td>
<td><?php echo $value['ticket_subject']; ?></td>
<td><?php echo get_ticket_department($value['ticket_department']); ?></td>
<td><?php echo $value['ticket_email']; ?></td>
<td><?php echo $value['ticket_date']; ?></td>
<td><?php echo get_ticket_status_span($value['ticket_status']);
<div class="container">
<ol class="breadcrumb page-breadcrumb">
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
<li class="active"><?php echo $lang->I18N('Tickets List'); ?></li>
</ol>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<!-- <a href="<?php echo setURL('admin/clients', '', array('action' => 'add')); ?>" class="btn btn-primary btn-xs">
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
</a> -->
</div>
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
</div>
<div class="table-responsive">
<table class="table table-stripped table-bordered table-hover">
<thead>
<th>ID</th>
<th>Subject</th>
<th>Department</th>
<th>Client Email</th>
<th>Date</th>
<th>Status</th>
<th>Action</th>
</thead>
<tbody>
<?php if ($count > 0): ?>
<?php foreach ($rows as $value): ?>
<tr>
<td><?php echo $value['ticket_id']; ?></td>
<td><?php echo $value['ticket_subject']; ?></td>
<td><?php echo get_ticket_department($value['ticket_department']); ?></td>
<td><?php echo $value['ticket_email']; ?></td>
<td><?php echo $value['ticket_date']; ?></td>
<td><?php echo get_ticket_status_span($value['ticket_status']);
if ($value['ticket_status'] == '0') {
$btn = ['secondary', 'clock'];
} elseif ($value['ticket_status'] == '1') {
@ -40,25 +45,24 @@ $btn = ['primary', 'comment'];
$btn = ['danger', 'lock'];
}
?></td>
<td>
<a href="tickets.php?action=view&ticket_id=<?php echo $value['ticket_id']; ?>#reply" class="btn btn-sm btn-<?php echo $btn[0]; ?> btn-rounded">
<i class="fa fa-<?php echo $btn[1]; ?>"></i> Manage
</a>
</td>
</tr>
<?php endforeach;?>
<?php else: ?>
<tr>
<td colspan="5" class="text-center">Nothing found</td>
</tr>
<?php endif;?>
</tbody>
</table>
</div>
<hr />
<div class="card-footer">
<p class="pb-10"><?php echo $count; ?> Records Founds</p>
<td>
<a href="tickets.php?action=details&ticket_id=<?php echo $value['ticket_id']; ?>#reply" class="btn btn-primary btn-xs">
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
</a>
</td>
</tr>
<?php endforeach;?>
<?php else: ?>
<tr>
<td colspan="5" class="text-center">Nothing found</td>
</tr>
<?php endif;?>
</tbody>
</table>
</div>
<div class="panel-footer">
<p class="pb-10"><?php echo $count; ?> Records Founds</p>
</div>
</div>
</div>
</div>
</div>

View file

@ -1,92 +0,0 @@
<?php
if (!$TicketInfo) {
include __DIR__ . '/../common/404.php';
exit();
}
?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h5 class="m-0"><?php echo $lang->I18N('Tickets Details'); ?> (#<?php echo $ticket_id; ?>)</h5>
<a href="tickets.php" class="btn btn-sm btn-danger">
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
</a>
</div>
<hr />
<div class="card-body">
<div class="row">
<div class="col-md-6">
<b>Subject:</b>
<span><?php echo $TicketInfo['ticket_subject']; ?></span>
</div>
<div class="col-md-6">
<b>Status:</b>
<span><?php echo get_ticket_status_span($TicketInfo['ticket_status']); ?></span>
</div>
<div class="col-md-6">
<b>Department:</b>
<span><?php echo get_ticket_department($TicketInfo['ticket_department']); ?></span>
</div>
<div class="col-md-6">
<b>Date:</b>
<span><?php echo $TicketInfo['ticket_date']; ?></span>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<strong>Client Reply</strong>
<span><?php echo $TicketInfo['ticket_date']; ?></span>
</div>
<hr />
<div class="card-body">
<?php echo $TicketInfo['ticket_content']; ?>
</div>
</div>
<?php if ($ReplyCount > 0): ?>
<?php foreach ($ReplyInfo as $value): ?>
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<strong><?php echo $value['reply_from'] == 999999 ? 'Support Staff' : 'Client Reply'; ?></strong>
<span><?php echo $value['reply_date']; ?></span>
</div>
<hr />
<div class="card-body m-5">
<?php echo $value['reply_content']; ?>
</div>
</div>
<?php endforeach;?>
<?php else: ?>
<div class="card">
<div class="card-body text-center">No replies to this ticket yet.</div>
</div>
<?php endif;?>
<?php if ($TicketInfo['ticket_status'] == '3'): ?>
<div class="card">
<div class="card-body text-center">You can't reply to this ticket anymore open new ticket for any further questions.</div>
</div>
<?php else: ?>
<div class="card" id="reply">
<form action="controllers/tickets/reply.php" method="post">
<label class="card-header form-label required" for="content">Reply content</label>
<div class="card-body">
<div class="form-group mb-10">
<textarea class="form-control" name="content" id="content"></textarea>
<input type="hidden" name="ticket_id" value="<?php echo $TicketInfo['ticket_id']; ?>">
<input type="hidden" name="ticket_email" value="<?php echo $TicketInfo['ticket_email']; ?>">
</div>
<div class="form-group">
<button class="btn btn-sm btn-primary" name="submit">Add Reply</button>
<a href="controllers/tickets/close.php?ticket_id=<?php echo $ticket_id; ?>" class="btn btn-danger btn-sm">Close Ticket</a>
<a href="tickets.php" class="btn btn-sm btn-danger pull-right"><i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?></a>
</div>
</div>
</form>
<?php endif;?>
</div>
</div>
</div>

153
src/assets/css/admin.css Executable file
View file

@ -0,0 +1,153 @@
body {
padding-top: 51px;
padding-bottom: 60px;
}
.badge,
.badge-pill,
.btn-rounded {
border-radius: 4px !important;
border: none;
}
#hidden-area {
position: fixed;
bottom: 10px;
right: 10px;
max-width: 350px;
display: block;
}
.nolink:hover {
text-decoration: none;
}
.fw-bold {
font-weight: 600 !important;
}
/* nav tabs */
.tabs {
overflow: hidden;
background-color: transparent;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.tab-item {
margin-right: 5px;
}
.tab-item:hover {
border-color: rgba(0, 0, 0, 0.02);
}
.btn.tab-item.active {
border-color: #199de9;
box-shadow: none;
outline: none;
}
.tab-hover.active {
background-color: rgba(0, 0, 0, 0.05);
}
.tab-content {
display: none;
padding: 0.5rem 0;
border-top: none;
-webkit-animation: fadeEffect 1s;
animation: fadeEffect 1s;
}
@-webkit-keyframes fadeEffect {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeEffect {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
pre {
overflow-x: auto;
}
@media only screen and (min-width: 992px) {
.hidden-on-up {
display: none;
}
.m5x {
margin-right: 0px;
}
}
.huge {
font-size: 40px;
}
.huge .count-all {
font-size: 20px;
}
.panel-green {
border-color: #5cb85c;
}
.panel-green .panel-heading {
border-color: #5cb85c;
color: #fff;
background-color: #5cb85c;
}
.panel-green a {
color: #5cb85c;
}
.panel-green a:hover {
color: #3d8b3d;
}
.panel-red {
border-color: #d9534f;
}
.panel-red .panel-heading {
border-color: #d9534f;
color: #fff;
background-color: #d9534f;
}
.panel-red a {
color: #d9534f;
}
.panel-red a:hover {
color: #b52b27;
}
.panel-yellow {
border-color: #f0ad4e;
}
.panel-yellow .panel-heading {
border-color: #f0ad4e;
color: #fff;
background-color: #f0ad4e;
}
.panel-yellow a {
color: #f0ad4e;
}
.panel-yellow a:hover {
color: #df8a13;
}

File diff suppressed because one or more lines are too long

View file

@ -11,6 +11,11 @@ body {
overflow-y: auto;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6,
body, html, input, button, textarea, span, p {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
input {
border: 0;
outline-width: 0 !important;
@ -24,6 +29,18 @@ button {
margin-top: 20px;
}
.breadcrumb {
border: 1px solid #ddd;
}
.page-breadcrumb {
margin-top: 20px;
}
.mb-10 {
margin-bottom: 10px;
}
.section-wrap {
padding: 10px 0;
}

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,3 @@
body {
background-image: linear-gradient(45deg, orange, skyblue) !important;
}
.icon-text {
background-image: linear-gradient(-45deg, orange, skyblue) !important;
background-clip: text;
@ -17,9 +13,8 @@ body {
margin-top: 8%;
}
.card {
opacity: 80% !important;
border-radius: 15px !important;
.nav-links {
margin-top: 20px;
}
@media only screen and (max-width: 768px) {

File diff suppressed because it is too large Load diff

View file

@ -1,145 +0,0 @@
jQuery(function () {
$('body').on('click', '[data-stopPropagation]', function (e) {
e.stopPropagation()
})
// 滚动条
// const ps = new PerfectScrollbar('.lyear-layout-sidebar-scroll', {
// swipeEasing: false,
// suppressScrollX: true
// })
// 侧边栏
$('.lyear-aside-toggler').bind('click', function () {
$('.lyear-layout-sidebar').toggleClass('lyear-aside-open')
$('body').toggleClass('lyear-layout-sidebar-close')
if ($('.lyear-mask-modal').length == 0) {
$('<div class="lyear-mask-modal"></div>').prependTo('body')
} else {
$('.lyear-mask-modal').remove()
}
$('.lyear-mask-modal').on('click', function () {
$(this).remove()
$('.lyear-layout-sidebar').toggleClass('lyear-aside-open')
$('body').toggleClass('lyear-layout-sidebar-close')
})
})
// 侧边栏导航
$('.nav-item-has-subnav > a').on('click', function () {
$subnavToggle = jQuery(this)
$navHasSubnav = $subnavToggle.parent()
$topHasSubNav = $subnavToggle.parents('.nav-item-has-subnav').last()
$subnav = $navHasSubnav.find('.nav-subnav').first()
$viSubHeight = $navHasSubnav.siblings().find('.nav-subnav:visible').outerHeight()
$scrollBox = $('.lyear-layout-sidebar-scroll')
$navHasSubnav.siblings().find('.nav-subnav:visible').slideUp(500).parent().removeClass('open')
$subnav.slideToggle(300, function () {
$navHasSubnav.toggleClass('open')
// 新增滚动条处理
var scrollHeight = 0
;(pervTotal = $topHasSubNav.prevAll().length),
(boxHeight = $scrollBox.outerHeight()),
(innerHeight = $('.sidebar-main').outerHeight()),
(thisScroll = $scrollBox.scrollTop()),
(thisSubHeight = $(this).outerHeight()),
(footHeight = 121)
if (footHeight + innerHeight - boxHeight >= pervTotal * 48) {
scrollHeight = pervTotal * 48
}
if ($subnavToggle.parents('.nav-item-has-subnav').length == 1) {
$scrollBox.animate({ scrollTop: scrollHeight }, 300)
} else {
// 子菜单操作
if (typeof $viSubHeight != 'undefined' && $viSubHeight != null) {
scrollHeight = thisScroll + thisSubHeight - $viSubHeight
$scrollBox.animate({ scrollTop: scrollHeight }, 300)
} else {
if (thisScroll + boxHeight - $scrollBox[0].scrollHeight == 0) {
scrollHeight = thisScroll - thisSubHeight
$scrollBox.animate({ scrollTop: scrollHeight }, 300)
}
}
}
})
})
// 提示
if ($('[data-toggle="tooltip"]')[0]) {
$('[data-toggle="tooltip"]').tooltip({
container: 'body'
})
}
// 弹出框
if ($('[data-toggle="popover"]')[0]) {
$('[data-toggle="popover"]').popover()
}
// 标签
if ($('.js-tags-input')[0]) {
$('.js-tags-input').tagsInput({
height: '36px',
width: '100%',
defaultText: $('.js-tags-input').attr('placeholder'),
removeWithBackspace: true,
delimiter: [',']
})
}
// 时间选择
jQuery('.js-datetimepicker').each(function () {
var $input = jQuery(this)
$input.datetimepicker({
format: $input.data('format') ? $input.data('format') : false,
useCurrent: $input.data('use-current') ? $input.data('use-current') : false,
locale: moment.locale('' + ($input.data('locale') ? $input.data('locale') : '') + ''),
showTodayButton: $input.data('show-today-button') ? $input.data('show-today-button') : false,
showClear: $input.data('show-clear') ? $input.data('show-clear') : false,
showClose: $input.data('show-close') ? $input.data('show-close') : false,
sideBySide: $input.data('side-by-side') ? $input.data('side-by-side') : false,
inline: $input.data('inline') ? $input.data('inline') : false
})
})
// 日期选择
jQuery('.js-datepicker').each(function () {
var $input = jQuery(this)
$input.datepicker({
weekStart: 1,
autoclose: true,
todayHighlight: true,
language: 'zh-CN'
})
})
// 颜色选取
jQuery('.js-colorpicker').each(function () {
var $colorpicker = jQuery(this)
var $colorpickerMode = $colorpicker.data('colorpicker-mode') ? $colorpicker.data('colorpicker-mode') : 'hex'
var $colorpickerinline = $colorpicker.data('colorpicker-inline') ? true : false
$colorpicker.colorpicker({
format: $colorpickerMode,
inline: $colorpickerinline
})
})
// 复选框全选
$('#check-all').change(function () {
$("input[type='checkbox']").prop('checked', $(this).prop('checked'))
})
// 设置主题配色
setTheme = function (input_name, data_name) {
$("input[name='" + input_name + "']").click(function () {
$('body').attr(data_name, $(this).val())
})
}
setTheme('site_theme', 'data-theme')
setTheme('logo_bg', 'data-logobg')
setTheme('header_bg', 'data-headerbg')
setTheme('sidebar_bg', 'data-sidebarbg')
})

BIN
src/assets/webfonts/fa-brands-400.eot Executable file → Normal file

Binary file not shown.

82
src/assets/webfonts/fa-brands-400.svg Executable file → Normal file
View file

@ -2,11 +2,11 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<metadata>
Created by FontForge 20201107 at Tue Mar 16 10:15:04 2021
Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021
By Robert Madole
Copyright (c) Font Awesome
</metadata>
<!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><defs>
<!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><defs>
<font id="FontAwesome5Brands-Regular" horiz-adv-x="448" >
<font-face
font-family="Font Awesome 5 Brands Regular"
@ -957,14 +957,6 @@ l19.2002 -19.2002l128 128l-128 128l-51.5 -51.5l77.1006 -76.5l-25.6006 -25.5996l-
<glyph glyph-name="gg-circle" unicode="&#xf261;" horiz-adv-x="512"
d="M257 440c137 0 248 -111 248 -248s-111 -248 -248 -248s-248 111 -248 248s111 248 248 248zM207.5 65.2002l75 75.2002l-77.2002 77.1992l-24.3994 -24.3994l53.0996 -52.9004l-26.5996 -26.5996l-77.2002 77.2002l77.2002 77.1992l11.0996 -11.0996l24.2002 24.2002
l-35.2002 35.3994l-125.7 -125.699zM306.5 67.4004l125.7 125.6l-125.7 125.7l-75 -75l77.2002 -77.2002l24.3994 24.4004l-53.0996 52.8994l26.5 26.5l77.2002 -77.2002l-77.2002 -77.1992l-11.0996 11.0996l-24.1006 -24.4004z" />
<glyph glyph-name="tripadvisor" unicode="&#xf262;" horiz-adv-x="576"
d="M528.91 269.18c28.8652 -26.2666 46.9404 -64.1113 46.9404 -106.176c0 -0.0615234 -0.000976562 -0.12207 -0.000976562 -0.183594h0.0302734c-0.00195312 -79.4414 -64.5479 -143.928 -143.989 -143.928c-37.7363 0 -72.0996 14.5527 -97.7803 38.3477
l-46.1104 -50.1699l-46.1396 50.1992c-25.6064 -23.4443 -59.8145 -37.7793 -97.2334 -37.7793c-79.4268 0 -143.911 64.4844 -143.911 143.911c0 41.8076 17.8662 79.4756 46.374 105.778l-47.0898 51.2402h104.66c52.2266 35.5498 115.938 56.3369 183.822 56.3369
s130.95 -20.7871 183.178 -56.3369h104.34zM144.06 65.4297c53.751 0 97.3906 43.6396 97.3906 97.3906s-43.6396 97.3896 -97.3906 97.3896s-97.3896 -43.6387 -97.3896 -97.3896s43.6387 -97.3906 97.3896 -97.3906zM288 165.63c0 64.0801 46.6104 119.07 108.08 142.59
c-33.2285 13.8467 -70.0527 21.4941 -108.272 21.4941c-38.2207 0 -74.6689 -7.64746 -107.897 -21.4941c61.4697 -23.5098 108.09 -78.5 108.09 -142.59zM431.88 65.4297c53.7568 0.00292969 97.4004 43.6475 97.4004 97.4053c0 53.7598 -43.6455 97.4053 -97.4053 97.4053
c-53.7588 0 -97.4053 -43.6455 -97.4053 -97.4053c0 -53.7578 43.6436 -97.4023 97.4004 -97.4053h0.00976562zM144.06 213.88c0.0175781 0 0.0332031 -0.000976562 0.0507812 -0.000976562c28.1299 0 50.9717 -22.8242 51 -50.9492v-0.109375
c0 -28.1807 -22.8799 -51.0605 -51.0605 -51.0605s-51.0596 22.8799 -51.0596 51.0605s22.8789 51.0596 51.0596 51.0596h0.00976562zM431.88 213.88c28.1807 0 51.0605 -22.8789 51.0605 -51.0596s-22.8799 -51.0605 -51.0605 -51.0605s-51.0596 22.8799 -51.0596 51.0605
s22.8789 51.0596 51.0596 51.0596z" />
<glyph glyph-name="odnoklassniki" unicode="&#xf263;" horiz-adv-x="320"
d="M275.1 114c-27.3994 -17.4004 -65.0996 -24.2998 -90 -26.9004l20.9004 -20.5996l76.2998 -76.2998c27.9004 -28.6006 -17.5 -73.2998 -45.7002 -45.7002c-19.0996 19.4004 -47.0996 47.4004 -76.2998 76.5996l-76.2998 -76.5
c-28.2002 -27.5 -73.5996 17.6006 -45.4004 45.7002c19.4004 19.4004 47.1006 47.4004 76.3008 76.2998l20.5996 20.6006c-24.5996 2.59961 -62.9004 9.09961 -90.5996 26.8994c-32.6006 21 -46.9004 33.3008 -34.3008 59c7.40039 14.6006 27.7002 26.9004 54.6006 5.7002
@ -1241,11 +1233,10 @@ d="M256 440c136.9 0 248 -111.1 248 -248s-111.1 -248 -248 -248s-248 111.1 -248 24
h-116.9v-42.6006h70.1006c-5.2002 -34.2002 -37.5 -53.2998 -70.1006 -53.2998c-43 0 -77.2002 35.5 -77.2002 78.0996c0 42.6006 34.3008 78.1006 77.2002 78.1006c18.1006 0 36.2002 -6.2002 49.4004 -19.1006l33.5996 32.6006
c-22.8994 21.2998 -51.7002 32.2998 -83 32.2998c-68.4375 0 -124 -55.5625 -124 -124s55.5625 -124 124 -124zM415.5 174.2h35.2002v35.5h-35.2002v35.5h-35.5v-35.5h-35.5v-35.5h35.5v-35.5h35.5v35.5z" />
<glyph glyph-name="font-awesome" unicode="&#xf2b4;"
d="M397.8 416c27.5 0 50.2002 -22.7002 50.2002 -50.2002v-347.6c0 -27.5 -22.7002 -50.2002 -50.2002 -50.2002h-347.6c-27.5 0 -50.2002 22.7002 -50.2002 50.2002v347.6c0 27.5 22.7002 50.2002 50.2002 50.2002h347.6zM352.4 131.7h0.0996094v140.3
c0 4.2002 -4.2002 7.7998 -9 7.7998c-6 0 -31.0996 -16.0996 -53.7998 -16.0996c-4.7002 0 -8.90039 0.599609 -13.1006 2.39941c-20.2998 7.7002 -38.1992 13.7002 -60.8994 13.7002c-20.9004 0 -43 -6.5 -61.5 -14.2998
c-1.7998 -1.2002 -3.60059 -1.7998 -5.40039 -2.40039v18.5c8.2998 6 13.1006 15.5 13.1006 26.3008c0 18.5996 -15 33.5 -33.5 33.5c-18.6006 0 -33.5 -15 -33.5 -33.5c0 -10.8008 5.2998 -20.3008 13.0996 -26.3008v-218.6c0 -11.2998 9 -20.2998 20.2998 -20.2998
c8.90039 0 16.7002 5.89941 19.1006 14.2998v1.2002c0.599609 1.2002 0.599609 3 0.599609 4.7998v45.4004c1.2002 0.599609 2.40039 0.599609 3.59961 1.19922c19.7002 8.90039 44.2002 17.3008 67.5 17.3008c32.3008 0 44.8008 -16.7002 71.7002 -16.7002
c19.2002 0 37.1006 6.5 53.7998 13.7002c4.2002 1.7998 7.80078 3.59961 7.80078 7.7998z" />
d="M400 416c26.4922 0 48 -21.5078 48 -48v-352c0 -26.4922 -21.5078 -48 -48 -48h-352c-26.4922 0 -48 21.5078 -48 48v352c0 26.4922 21.5078 48 48 48h352zM336 136v160c-31.5996 -11.2002 -41.2002 -16 -59.7998 -16c-31.4004 0 -43.4004 16 -74.6006 16
c-25.3994 0 -37.3994 -10.4004 -57.5996 -14.4004v6.40039c0 8.83105 -7.16895 16 -16 16s-16 -7.16895 -16 -16v-192c0 -8.83105 7.16895 -16 16 -16s16 7.16895 16 16v153.6c20.2002 4 32.2002 14.4004 57.5996 14.4004c31.4004 0 43.2002 -16 74.6006 -16
c10.2002 0 17.7998 1.40039 27.7998 4.59961v-96c-10 -3.19922 -17.5996 -4.59961 -27.7998 -4.59961c-31.4004 0 -43.4004 16 -74.6006 16c-8.91309 -0.0322266 -17.5195 -1.44336 -25.5996 -4v-32c7.86035 2.58398 16.2559 4.00195 24.9756 4.00195
c0.208008 0 0.416016 0 0.624023 -0.00195312c31.4004 0 43.2002 -16 74.6006 -16c18.5996 0 28.2002 4.7998 59.7998 16z" />
<glyph glyph-name="linode" unicode="&#xf2b8;"
d="M437.4 221.7c0.599609 -2 -8.80078 -66.2998 -9.7002 -72.7998c0 -0.900391 -0.5 -1.7002 -1.10059 -2l-54.5996 -43.7002c-1.09961 -0.900391 -2.59961 -0.900391 -3.7002 0l-20.2998 14l-2.2998 -33.4004c0 -0.899414 -0.200195 -1.7002 -1.10059 -2.2998
l-66.8994 -53.4004c-1.10059 -0.899414 -2.90039 -0.899414 -4 0l-28 23.7002l2 -46c0 -0.899414 -0.200195 -1.7002 -1.10059 -2.2998l-83.6992 -66.9004c-0.600586 -0.299805 -1.10059 -0.599609 -1.7002 -0.599609c-0.900391 0.299805 -1.7002 0.299805 -2.2998 0.900391
@ -1340,12 +1331,11 @@ c5.7002 -3.09961 6.90039 -9.40039 6 -15.0996c-1.09961 -9.7002 -28 -70.9004 -28.8
c3.10059 0 8.30078 -0.900391 7.10059 -10.9004c-1.40039 -9.39941 -35.1006 -72.2998 -38.9004 -87.6992c-4.59961 -20.6006 6.60059 -41.4004 24.9004 -50.6006c11.3994 -5.7002 62.5 -15.7002 58.5 11.1006zM376.4 3.09961c10.5996 7.5 24.8994 4.60059 32.2998 -6
c7.09961 -10.5996 4.59961 -25.1992 -6 -32.5996c-10.6006 -7.09961 -24.9004 -4.59961 -32 6c-7.2002 10.5996 -4.60059 25.2002 5.7002 32.5996z" />
<glyph glyph-name="font-awesome-alt" unicode="&#xf35c;"
d="M339.3 276.8c5.40039 0 9.5 -3 7.7002 -7.09961v-134.4c0 -4.2002 -3 -6 -7.2002 -7.7998c-15.5996 -7.09961 -33.5 -13.7002 -52 -13.7002c-26.2998 0 -38.2002 16.1006 -69.2998 16.1006c-22.7002 0 -46 -8.30078 -65.7002 -16.7002
c-0.599609 -0.600586 -1.7998 -1.2002 -3 -1.2002v-44.2002c0 -1.7998 0 -3 -0.599609 -4.7998v-1.2998c-2.40039 -7.7002 -9.5 -13.7002 -18.5 -13.7002c-10.7002 0 -19.7002 8.90039 -19.7002 19.7002v212.1c-7.7002 6 -12.5 15.5 -12.5 25.7002
c0 18 14.2998 32.2998 32.2998 32.2998s32.2998 -14.3994 32.2998 -32.2998c0 -10.7998 -4.69922 -19.7002 -12.5 -25.7002v-17.8994c1.2002 0.599609 3 1.19922 4.80078 1.7998c17.8994 7.09961 39.3994 13.7002 59.6992 13.7002
c22.1006 0 39.4004 -5.90039 59.1006 -13.7002c4.09961 -1.7998 8.2998 -2.40039 12.5 -2.40039c22.7002 0 46.5996 15.5 52.5996 15.5zM397.8 416c27.5 0 50.2002 -22.7002 50.2002 -50.2002v-347.6c0 -27.5 -22.7002 -50.2002 -50.2002 -50.2002h-347.6
c-27.5 0 -50.2002 22.7002 -50.2002 50.2002v347.6c0 27.5 22.7002 50.2002 50.2002 50.2002h347.6zM412.1 18.2998v347.601c0 7.69922 -6.5 14.2998 -14.2998 14.2998v-0.100586h-347.6c-7.7002 0 -14.2998 -6.5 -14.2998 -14.2998v-347.5
c0 -7.7002 6.5 -14.2998 14.2998 -14.2998h347.6c7.7002 0 14.2998 6.5 14.2998 14.2998z" />
d="M400 416c26.4922 0 48 -21.5078 48 -48v-352c0 -26.4922 -21.5078 -48 -48 -48h-352c-26.4922 0 -48 21.5078 -48 48v352c0 26.4922 21.5078 48 48 48h352zM416 16v352c0 8.83105 -7.16895 16 -16 16h-352c-8.83105 0 -16 -7.16895 -16 -16v-352
c0 -8.83105 7.16895 -16 16 -16h352c8.83105 0 16 7.16895 16 16zM201.6 296c31.2002 0 43.2002 -16 74.6006 -16c18.5996 0 28.2002 4.7998 59.7998 16v-160c-31.5996 -11.2002 -41.2002 -16 -59.7998 -16c-31.4004 0 -43.2002 16 -74.6006 16
c-0.208008 0.00195312 -0.415039 -0.0175781 -0.623047 -0.0175781c-8.7207 0 -17.1162 -1.39844 -24.9766 -3.98242v32c8.08008 2.55664 16.6865 3.96777 25.5996 4c31.2002 0 43.2002 -16 74.6006 -16c10.2002 0 17.7998 1.40039 27.7998 4.59961v96
c-10 -3.19922 -17.5996 -4.59961 -27.7998 -4.59961c-31.4004 0 -43.2002 16 -74.6006 16c-25.3994 0 -37.3994 -10.4004 -57.5996 -14.4004v-153.6c0 -8.83105 -7.16895 -16 -16 -16s-16 7.16895 -16 16v192c0 8.83105 7.16895 16 16 16s16 -7.16895 16 -16v-6.40039
c20.2002 4 32.2002 14.4004 57.5996 14.4004z" />
<glyph glyph-name="accessible-icon" unicode="&#xf368;"
d="M423.9 192.2l-12.9004 -157.3c-3.2998 -40.7002 -63.9004 -35.1006 -60.5996 4.89941l10 122.5l-41.1006 -2.2998c10.1006 -20.7002 15.7998 -43.9004 15.7998 -68.5c0 -41.2002 -16.0996 -78.7002 -42.2998 -106.5l-39.2998 39.2998
c57.9004 63.7002 13.0996 167.2 -74 167.2c-25.9004 0 -49.5 -9.90039 -67.2002 -26l-39.2998 39.2998c22 20.7002 50.0996 35.1006 81.4004 40.2002l75.2998 85.7002l-42.6006 24.7998l-51.5996 -46c-30 -26.7998 -70.5996 18.5 -40.5 45.4004l68 60.6992
@ -1590,14 +1580,18 @@ c13.2998 45.5 -42.2002 71.7002 -64 29.2998z" />
d="M87 -33.7998v73.5996h73.7002v-73.5996h-73.7002zM25.4004 101.4h61.5996v-61.6006h-61.5996v61.6006zM491.6 271.1c53.2002 -170.3 -73 -327.1 -235.6 -327.1v95.7998h0.299805v0.299805c101.7 0.200195 180.5 101 141.4 208
c-14.2998 39.6006 -46.1006 71.4004 -85.7998 85.7002c-107.101 38.7998 -208.101 -39.8994 -208.101 -141.7h-95.7998c0 162.2 156.9 288.7 327 235.601c74.2002 -23.2998 133.6 -82.4004 156.6 -156.601zM256.3 40.0996h-0.299805v-0.299805h-95.2998v95.6006h95.5996
v-95.3008z" />
<glyph glyph-name="discord" unicode="&#xf392;"
d="M297.216 204.8c0 -15.6162 -11.5195 -28.416 -26.1123 -28.416c-14.3359 0 -26.1113 12.7998 -26.1113 28.416s11.5195 28.416 26.1113 28.416c14.5928 0 26.1123 -12.7998 26.1123 -28.416zM177.664 233.216c14.5918 0 26.3682 -12.7998 26.1123 -28.416
c0 -15.6162 -11.5205 -28.416 -26.1123 -28.416c-14.3359 0 -26.1123 12.7998 -26.1123 28.416s11.5205 28.416 26.1123 28.416zM448 395.264v-459.264c-64.4941 56.9941 -43.8682 38.1279 -118.784 107.776l13.5684 -47.3604h-290.304
c-28.9287 0 -52.4805 23.5518 -52.4805 52.7363v346.111c0 29.1846 23.5518 52.7363 52.4805 52.7363h343.039c28.9287 0 52.4805 -23.5518 52.4805 -52.7363zM375.04 152.576c0 82.4316 -36.8643 149.248 -36.8643 149.248
c-36.8643 27.6475 -71.9355 26.8799 -71.9355 26.8799l-3.58398 -4.0957c43.5195 -13.3125 63.7441 -32.5127 63.7441 -32.5127c-60.8115 33.3291 -132.244 33.335 -191.232 7.42383c-9.47168 -4.35156 -15.1035 -7.42383 -15.1035 -7.42383
s21.2471 20.2246 67.3271 33.5361l-2.55957 3.07227s-35.0723 0.767578 -71.9355 -26.8799c0 0 -36.8643 -66.8164 -36.8643 -149.248c0 0 21.5039 -37.1201 78.0801 -38.9121c0 0 9.47168 11.5195 17.1514 21.248c-32.5117 9.72754 -44.7998 30.208 -44.7998 30.208
c3.7666 -2.63574 9.97656 -6.05273 10.4961 -6.40039c43.21 -24.1973 104.588 -32.126 159.744 -8.95996c8.95996 3.32812 18.9443 8.19238 29.4395 15.1045c0 0 -12.7998 -20.9922 -46.3359 -30.4639c7.68066 -9.72852 16.8965 -20.7363 16.8965 -20.7363
c56.5762 1.79199 78.3359 38.9121 78.3359 38.9121z" />
<glyph glyph-name="discord" unicode="&#xf392;" horiz-adv-x="640"
d="M524.531 378.164c66.4014 -97.6289 99.1973 -207.758 86.9336 -334.541c-0.0498047 -0.554688 -0.338867 -1.04102 -0.764648 -1.35156c-43.8203 -32.4541 -93.7129 -57.8623 -147.062 -74.1865c-0.171875 -0.0527344 -0.354492 -0.0830078 -0.543945 -0.0830078
c-0.625977 0 -1.18066 0.308594 -1.51855 0.783203c-11.1562 15.4766 -21.1797 31.7598 -30.0146 48.8145c-0.131836 0.256836 -0.208984 0.549805 -0.208984 0.858398c0 0.799805 0.50293 1.48438 1.20898 1.75293c15.916 5.9834 31.3828 13.3604 45.8906 21.8301
c0.550781 0.329102 0.918945 0.928711 0.918945 1.61621c0 0.617188 -0.297852 1.16602 -0.756836 1.50977c-3.10547 2.30859 -6.18848 4.73438 -9.13184 7.16016c-0.3125 0.254883 -0.713867 0.407227 -1.14844 0.407227
c-0.277344 0 -0.541016 -0.0625 -0.776367 -0.174805c-95.0898 -43.917 -199.271 -43.917 -295.5 0c-0.226562 0.101562 -0.480469 0.15918 -0.744141 0.15918c-0.438477 0 -0.84082 -0.15625 -1.15527 -0.415039c-2.94336 -2.42578 -6.02734 -4.82812 -9.10938 -7.13672
c-0.453125 -0.344727 -0.74707 -0.886719 -0.74707 -1.5c0 -0.692383 0.375 -1.29883 0.932617 -1.62598c14.5459 -8.40234 30 -15.7812 45.8672 -21.8525c0.712891 -0.261719 1.21973 -0.946289 1.21973 -1.74902c0 -0.301758 -0.0722656 -0.586914 -0.200195 -0.839844
c-8.69238 -17.1572 -18.7334 -33.4609 -30.0371 -48.8418c-0.34668 -0.459961 -0.896484 -0.755859 -1.5166 -0.755859c-0.19043 0 -0.373047 0.0283203 -0.546875 0.0800781c-53.25 16.3789 -103.055 41.7812 -146.824 74.1895
c-0.419922 0.327148 -0.706055 0.817383 -0.765625 1.375c-10.2441 109.663 10.6387 220.702 86.8672 334.54c0.185547 0.300781 0.459961 0.537109 0.788086 0.676758c37.3066 17.1338 78.0146 29.9219 119.688 37.1064
c0.0957031 0.015625 0.191406 0.0253906 0.292969 0.0253906c0.694336 0 1.30176 -0.375977 1.63086 -0.935547c5.56348 -9.8418 10.6553 -20.126 15.1348 -30.5996c22.0664 3.34961 43.7744 5.08691 66.7705 5.08691c22.9951 0 45.5889 -1.7373 67.6553 -5.08691
c4.44727 10.4414 9.46191 20.7285 14.9004 30.5996c0.308594 0.5625 0.90332 0.941406 1.58887 0.941406c0.114258 0 0.225586 -0.0107422 0.333984 -0.03125c41.666 -7.19922 82.373 -19.9863 119.686 -37.1055c0.331055 -0.135742 0.601562 -0.384766 0.764648 -0.700195z
M222.491 110.42c29.4326 0 52.8428 26.5869 52.8428 59.2412c0.462891 32.4189 -23.1777 59.2393 -52.8428 59.2393c-29.4355 0 -52.8438 -26.5898 -52.8438 -59.2412c0 -32.6523 23.8711 -59.2393 52.8438 -59.2393zM417.871 110.42
c29.667 0 52.8438 26.5869 52.8438 59.2412c0.462891 32.4189 -23.1768 59.2393 -52.8438 59.2393c-29.4346 0 -52.8428 -26.5898 -52.8428 -59.2412c0 -32.6523 23.8721 -59.2393 52.8428 -59.2393z" />
<glyph glyph-name="discourse" unicode="&#xf393;"
d="M225.9 416c122.699 0 222.1 -102.3 222.1 -223.9c0 -121.6 -99.4004 -223.899 -222.1 -223.899l-225.801 -0.200195s-0.0996094 224 -0.0996094 227.9c0 121.6 103.3 220.1 225.9 220.1zM224 64c70.7002 0 128 57.2998 128 128s-57.2998 128 -128 128
s-128 -57.2998 -128 -128c0 -22.0996 5.59961 -42.9004 15.4004 -61l-22.9004 -75l81.0996 20.0996c16.5 -7.7998 35 -12.0996 54.4004 -12.0996z" />
@ -2461,10 +2455,11 @@ c13.7002 9.39941 16.4004 24.3994 9.10059 31.3994c-7.2002 6.90039 -28.2002 -7 -29
c12.5996 33.0996 -3.59961 45.5 -3.59961 45.5s-23.4004 12.9004 -33.3008 -20.2002c-9.89941 -33.0996 -6.39941 -44.8994 -6.39941 -44.8994s30.7002 -13.4004 43.2998 19.5996zM442.1 188.1c0 0 15.7002 -1.09961 26.4004 14.2002s1.2998 25.5 1.2998 25.5
s-8.59961 11.1006 -19.5996 -9.09961c-11.1006 -20.1006 -8.10059 -30.6006 -8.10059 -30.6006z" />
<glyph glyph-name="font-awesome-flag" unicode="&#xf425;"
d="M444.373 88.5762c0 -7.16797 -6.14453 -10.2402 -13.3125 -13.3125c-28.6719 -12.2881 -59.3916 -23.5518 -92.1592 -23.5518c-46.0801 0 -67.584 28.6719 -122.88 28.6719c-39.9365 0 -81.9209 -14.3359 -115.713 -29.6953
c-2.04785 -1.02441 -4.0957 -1.02441 -6.14355 -2.04883v-77.8232c0 -21.4053 -16.1221 -34.8164 -33.792 -34.8164c-19.4561 0 -34.8164 15.3604 -34.8164 34.8164v374.783c-13.3115 10.2402 -22.5273 26.624 -22.5273 45.0566c0 31.7441 25.5996 57.3438 57.3438 57.3438
s57.3438 -25.5996 57.3438 -57.3438c0 -18.4326 -8.19141 -34.8164 -22.5273 -45.0566v-31.7432c4.12402 1.37402 58.7676 28.6719 114.688 28.6719c65.2705 0 97.6758 -27.6484 126.976 -27.6484c38.9121 0 81.9209 27.6484 92.1602 27.6484
c8.19238 0 15.3604 -6.14453 15.3604 -13.3125v-240.64z" />
d="M448 400v-336c-63 -23 -82 -32 -119 -32c-63 0 -87 32 -150 32c-20 0 -36 -4 -51 -8v64c15 4 31 8 51 8c63 0 87 -32 150 -32c20 0 35 3 55 9v208c-20 -6 -35 -9 -55 -9c-63 0 -87 32 -150 32c-51 0 -75 -21 -115 -29v-307
c0.00195312 -0.136719 0.00292969 -0.273438 0.00292969 -0.410156c0 -17.4404 -14.1602 -31.5996 -31.6006 -31.5996c-0.136719 0 -0.265625 0.0078125 -0.402344 0.00976562c-0.136719 -0.00195312 -0.273438 -0.00292969 -0.410156 -0.00292969
c-17.4404 0 -31.5996 14.1602 -31.5996 31.6006c0 0.136719 0.0078125 0.265625 0.00976562 0.402344v384c-0.00195312 0.136719 -0.00292969 0.273438 -0.00292969 0.410156c0 17.4404 14.1602 31.5996 31.6006 31.5996
c0.136719 0 0.265625 -0.0078125 0.402344 -0.00976562c0.136719 0.00195312 0.273438 0.00292969 0.410156 0.00292969c17.4404 0 31.5996 -14.1602 31.5996 -31.6006c0 -0.136719 -0.0078125 -0.265625 -0.00976562 -0.402344v-13c40 8 64 29 115 29c63 0 87 -32 150 -32
c37 0 56 9 119 32z" />
<glyph glyph-name="gitter" unicode="&#xf426;" horiz-adv-x="384"
d="M66.4004 125.5h-50.4004v322.5h50.4004v-322.5zM166.9 371.9v-435.9h-50.4004v435.9h50.4004zM267.5 371.9v-435.9h-50.4004v435.9h50.4004zM368 372v-247h-50.4004v247h50.4004z" />
<glyph glyph-name="hooli" unicode="&#xf427;" horiz-adv-x="640"
@ -3425,9 +3420,13 @@ M353.9 173.3c3.55273 2.83594 6.87891 5.7998 10.0996 9l-34.9004 35c-3.18457 -3.22
c2.53027 3.79688 4.77832 7.81738 6.7002 12l-39.5 39.7998c-0.374023 -5.3252 -1.63574 -10.4893 -3.59961 -15.2002zM391.6 230.8l-53.0996 53.4004c4.25977 -7.79688 6.82422 -16.7627 7.09961 -26.2002l41.3008 -41.5c1.7959 4.61523 3.39258 9.46387 4.69922 14.2998z
M392.6 236.4c1.25586 5.3623 2.04199 10.9189 2.30078 16.5996l-64.3008 64.7002c-2.61426 -3.74805 -5.95898 -6.85938 -9.89941 -9.2002z" />
<glyph glyph-name="figma" unicode="&#xf799;" horiz-adv-x="384"
d="M277 277.3h-85.4004v-256c-0.0273438 -47.082 -38.2617 -85.2998 -85.3506 -85.2998c-47.1055 0 -85.3496 38.2441 -85.3496 85.3496c0 47.1064 38.2441 85.3506 85.3496 85.3506h0.0507812c-47.1055 0 -85.3496 38.2441 -85.3496 85.3496
c0 47.1064 38.2441 85.3506 85.3496 85.3506c-47.0781 0 -85.2998 38.2217 -85.2998 85.2998s38.2217 85.2998 85.2998 85.2998h170.7c47.1055 0 85.3496 -38.2441 85.3496 -85.3496c0 -47.1064 -38.2441 -85.3506 -85.3496 -85.3506zM277 277.3
c47.0762 -0.00488281 85.2949 -38.2236 85.2998 -85.2998c0 -47.0781 -38.2217 -85.2998 -85.2998 -85.2998s-85.2998 38.2217 -85.2998 85.2998s38.2217 85.2998 85.2998 85.2998z" />
d="M14 352.208c0 52.9043 42.8877 95.792 95.793 95.792h164.368c52.9053 0 95.793 -42.8877 95.793 -95.792c0 -33.5 -17.1963 -62.9844 -43.2432 -80.1055c26.0469 -17.1211 43.2432 -46.6045 43.2432 -80.1045c0 -52.9053 -42.8877 -95.793 -95.793 -95.793h-2.08008
c-24.8018 0 -47.4033 9.42578 -64.415 24.8906v-88.2627c0 -53.6104 -44.0088 -96.833 -97.3574 -96.833c-52.7725 0 -96.3086 42.7568 -96.3086 95.793c0 33.498 17.1943 62.9805 43.2393 80.1016c-26.0449 17.1221 -43.2393 46.6055 -43.2393 80.1035
c0 33.5 17.1963 62.9834 43.2422 80.1045c-26.0459 17.1211 -43.2422 46.6055 -43.2422 80.1055zM176.288 256.413h-66.4951c-35.5762 0 -64.415 -28.8398 -64.415 -64.415c0 -35.4385 28.6172 -64.1924 64.0029 -64.4141
c0.136719 0.000976562 0.274414 0.000976562 0.412109 0.000976562h66.4951v128.828zM207.666 191.998c0 -35.5752 28.8389 -64.415 64.415 -64.415h2.08008c35.5762 0 64.415 28.8398 64.415 64.415s-28.8389 64.415 -64.415 64.415h-2.08008
c-35.5762 0 -64.415 -28.8398 -64.415 -64.415zM109.793 96.2051c-0.137695 0 -0.275391 0.000976562 -0.412109 0.000976562c-35.3857 -0.220703 -64.0029 -28.9746 -64.0029 -64.4131c0 -35.4453 29.2246 -64.415 64.9307 -64.415
c36.2822 0 65.9795 29.4365 65.9795 65.4551v63.3721h-66.4951zM109.793 416.622c-35.5762 0 -64.415 -28.8398 -64.415 -64.4141c0 -35.5762 28.8389 -64.415 64.415 -64.415h66.4951v128.829h-66.4951zM207.666 287.793h66.4951c35.5762 0 64.415 28.8389 64.415 64.415
c0 35.5742 -28.8389 64.4141 -64.415 64.4141h-66.4951v-128.829z" />
<glyph glyph-name="intercom" unicode="&#xf7af;"
d="M392 416c30.9004 0 56 -25.0996 56 -56v-336c0 -30.9004 -25.0996 -56 -56 -56h-336c-30.9004 0 -56 25.0996 -56 56v336c0 30.9004 25.0996 56 56 56h336zM283.7 333.9v-199.5c0 -19.8008 29.8994 -19.8008 29.8994 0v199.5c0 19.7998 -29.8994 19.7998 -29.8994 0z
M209.1 341.4v-216.5c0 -19.8008 29.9004 -19.8008 29.9004 0v216.5c0 19.7998 -29.9004 19.7998 -29.9004 0zM134.4 333.9v-199.5c0 -19.8008 29.8994 -19.8008 29.8994 0v199.5c0 19.7998 -29.8994 19.7998 -29.8994 0zM59.7002 304v-134.3
@ -3553,11 +3552,12 @@ c30.4102 17.9199 81.0498 55.6504 132.75 115.92c14.9697 -9 16.1494 -11.71 16.5098
c-0.860352 -1.67969 -20.0303 -21.6797 -63.2803 -20.4092c5.5 -12.9404 10.9902 -25.0908 16.5 -36.4404zM306.579 337c-1.58008 2.4502 -39.5801 58.8496 -56.4805 54.6104c-16.8994 1.09961 -36.21 -22.9805 -38.21 -75.2803
c21.1104 13.2402 50.1299 22.3301 94.6904 20.6699zM175.929 333.9c-3.7998 6.68945 -8.66992 12.4795 -14.4297 13.5693h-0.0898438c-24.79 1.41016 -24.75 -52.8301 -24.6699 -49.5898c13.6602 -0.00976562 27.8496 -0.410156 42.3994 -1.25977
c-1.62012 12.6602 -2.72949 25.1699 -3.20996 37.2803zM147.869 171.9c-30.7998 -61.5098 -19.8701 -76.6104 -19.6699 -76.8203c7.38965 -15.4902 38.1299 -20.25 84.9199 4.50977c-21.9502 11.7402 -44.4902 32.6104 -65.25 72.3105zM357.929 97.0996z" />
<glyph glyph-name="bootstrap" unicode="&#xf836;"
d="M292.3 136.07c0 -42.4102 -39.7197 -41.4307 -43.9199 -41.4307h-80.8896v81.6904h80.8896c42.5605 0 43.9199 -31.9004 43.9199 -40.2598zM242.15 209.2h-74.6602v72.1797h74.6602c34.9297 0 38.4395 -20.3496 38.4395 -35.8701
c0 -37.3096 -37.7695 -36.3096 -38.4395 -36.3096zM448 341.33v-298.66c-0.121094 -41.1553 -33.5146 -74.5488 -74.6699 -74.6699h-298.66c-41.1553 0.121094 -74.5488 33.5146 -74.6699 74.6699v298.66c0.121094 41.1553 33.5146 74.5488 74.6699 74.6699h298.66
c41.1553 -0.121094 74.5488 -33.5146 74.6699 -74.6699zM338.05 130.14c0 21.5703 -6.64941 58.29 -49.0498 67.3506v0.729492c22.9102 9.78027 37.3398 28.25 37.3398 55.6406c0 7 2 64.7793 -77.5996 64.7793h-127v-261.33c128.229 0 139.87 -1.67969 163.6 5.70996
c14.21 4.4209 52.71 17.9805 52.71 67.1201z" />
<glyph glyph-name="bootstrap" unicode="&#xf836;" horiz-adv-x="576"
d="M333.5 246.6c0 -23.5996 -18.0996 -36.7998 -50.9004 -36.8994h-42.5v71.2002h50.4004c27.4004 0 43 -12.2002 43 -34.3008zM517 259.4c9.5 -31 25.7002 -50.6006 52 -53.1006v-28.5c-26.4004 -2.5 -42.5 -22.0996 -52.0996 -53.0996
c-9.5 -30.9004 -10.8008 -68.7998 -9.80078 -98.1006c1.10059 -30.3994 -22.5996 -58.5 -54.6992 -58.5h-328.7c-32 0 -55.7998 28 -54.7002 58.5c1.09961 29.3008 -0.299805 67.2002 -9.7998 98.1006c-9.60059 31 -25.7998 50.5996 -52.2002 53.0996v28.5
c26.5 2.5 42.5996 22.1006 52.2002 53.1006c9.5 30.8994 10.7998 68.7998 9.7998 98.0996c-1.09961 30.4004 22.5996 58.5 54.7002 58.5h328.8c32 0 55.7998 -28 54.7002 -58.5c-1.10059 -29.2998 0.299805 -67.2002 9.7998 -98.0996zM300.2 72.9004
c51.8994 0 83.2002 25.3994 83.2002 67.5c0 31.6992 -22.3008 54.6992 -55.5 58.2998v1.2998c24.3994 3.90039 43.5 26.5 43.5 51.7998c0 36 -28.4004 59.4004 -71.7002 59.4004h-97.4004v-238.3h97.9004zM290.2 181.6c35.8994 0 54.5 -13.1992 54.5 -38.8994
c0 -25.7998 -18.1006 -39.5 -52.2998 -39.5h-52.3008v78.3994h50.1006z" />
<glyph glyph-name="buffer" unicode="&#xf837;"
d="M427.84 67.3301l-196.5 -97.8203c-2.24707 -0.963867 -4.72266 -1.49805 -7.32129 -1.49805s-5.10156 0.53418 -7.34863 1.49805l-196.51 97.8203c-4 2 -4 5.28027 0 7.29004l47.0596 23.3799c2.25098 0.964844 4.72949 1.49805 7.33203 1.49805
c2.60156 0 5.10742 -0.533203 7.3584 -1.49805l134.76 -67c2.24609 -0.969727 4.72168 -1.50684 7.32129 -1.50684s5.10254 0.537109 7.34863 1.50684l134.76 67c2.24902 0.964844 4.72656 1.49902 7.32715 1.49902s5.10449 -0.53418 7.35352 -1.49902l47.0596 -23.4297

Before

Width:  |  Height:  |  Size: 730 KiB

After

Width:  |  Height:  |  Size: 730 KiB

BIN
src/assets/webfonts/fa-brands-400.ttf Executable file → Normal file

Binary file not shown.

BIN
src/assets/webfonts/fa-brands-400.woff Executable file → Normal file

Binary file not shown.

BIN
src/assets/webfonts/fa-brands-400.woff2 Executable file → Normal file

Binary file not shown.

BIN
src/assets/webfonts/fa-regular-400.eot Executable file → Normal file

Binary file not shown.

4
src/assets/webfonts/fa-regular-400.svg Executable file → Normal file
View file

@ -2,11 +2,11 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<metadata>
Created by FontForge 20201107 at Tue Mar 16 10:15:04 2021
Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021
By Robert Madole
Copyright (c) Font Awesome
</metadata>
<!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><defs>
<!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><defs>
<font id="FontAwesome5Free-Regular" horiz-adv-x="512" >
<font-face
font-family="Font Awesome 5 Free Regular"

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 141 KiB

BIN
src/assets/webfonts/fa-regular-400.ttf Executable file → Normal file

Binary file not shown.

BIN
src/assets/webfonts/fa-regular-400.woff Executable file → Normal file

Binary file not shown.

BIN
src/assets/webfonts/fa-regular-400.woff2 Executable file → Normal file

Binary file not shown.

BIN
src/assets/webfonts/fa-solid-900.eot Executable file → Normal file

Binary file not shown.

4
src/assets/webfonts/fa-solid-900.svg Executable file → Normal file
View file

@ -2,11 +2,11 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<metadata>
Created by FontForge 20201107 at Tue Mar 16 10:15:04 2021
Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021
By Robert Madole
Copyright (c) Font Awesome
</metadata>
<!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><defs>
<!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><defs>
<font id="FontAwesome5Free-Solid" horiz-adv-x="512" >
<font-face
font-family="Font Awesome 5 Free Solid"

Before

Width:  |  Height:  |  Size: 898 KiB

After

Width:  |  Height:  |  Size: 898 KiB

BIN
src/assets/webfonts/fa-solid-900.ttf Executable file → Normal file

Binary file not shown.

BIN
src/assets/webfonts/fa-solid-900.woff Executable file → Normal file

Binary file not shown.

BIN
src/assets/webfonts/fa-solid-900.woff2 Executable file → Normal file

Binary file not shown.

View file

@ -21,7 +21,7 @@
<?php echo $PageInfo['rel']; ?>
<link href="<?php echo $site_url; ?>/assets/css/halfmoon.min.css" rel="stylesheet" />
<link href="<?php echo $site_url; ?>/assets/css/all.min.css" rel="stylesheet" />
<link href="<?php echo $site_url; ?>/assets/css/font-awesome.min.css" rel="stylesheet" />
<link href="<?php echo $site_url; ?>/assets/css/style.css" rel="stylesheet" />
<script type="text/javascript">
var site_domain = "<?php echo $site_domain; ?>";

View file

@ -8,6 +8,8 @@ if (isset($_SESSION['UIISC_ADMIN'])) {
setMessage('Login to <b>continue !</b>', 'danger');
redirect('admin/login');
}
$AdminInfo['avatar'] = $AdminInfo['admin_email'] ? md5($AdminInfo['admin_email']) : 'default';
$AdminInfo['avatar'] = 'https://dn-qiniu-avatar.qbox.me/avatar/' . $AdminInfo['avatar'] . '?s=30';
} else {
setMessage('Login to <b>continue !</b>', 'danger');
redirect('admin/login');

View file

@ -21,6 +21,7 @@ session_start();
define('IN_CRONLITE', true);
define('APP_MODE', 'prod'); // prod, demo
define('APP_VERSION', '2.0.3');
define('APP_BUILD', '1000');
define('DB_VERSION', '2021');
define('APP_BRAND', 'UIISC');
define('APP_DEBUG', false);

View file

@ -80,11 +80,14 @@ return array(
'modify' => '修改',
'edit' => '编辑',
'list' => '列表',
'close' => '关闭',
'managearea' => '管理中心',
'delete' => '删除',
'details' => '详情',
'View details' => '查看详情',
'Tickets' => '工单',
'Tickets List' => '工单管理',
'Ticket List' => '工单列表',
'My Tickets' => '我的工单',
'Tickets Details' => '工单详情',
'member' => '客户',
@ -96,8 +99,15 @@ return array(
'Save' => '保存',
'Clients' => '客户',
'Clients List' => '客户管理',
'Client List' => '客户列表',
'Client Details' => '客户详情',
'Hosting Accounts' => '托管帐户',
'Account List' => '账户列表',
'Account Details' => '账户详情',
'Account Settings' => '账户配置',
'System Settings' => '系统配置',
'Control Panel' => '控制面板',
'File Manager' => '文件管理',
'Company Name' => '公司名称',
'Company' => '公司',
'Brand Name' => '品牌标识',

View file

@ -445,3 +445,24 @@ function email_build_body($title, $nickname, $content, $description = '')
</div>
</div>';
}
function checkRefererHost()
{
if (!$_SERVER['HTTP_REFERER']) return false;
$url_arr = parse_url($_SERVER['HTTP_REFERER']);
$http_host = $_SERVER['HTTP_HOST'];
if (strpos($http_host, ':')) $http_host = substr($http_host, 0, strpos($http_host, ':'));
return $url_arr['host'] === $http_host;
}
function checkIfActive($string)
{
$array = explode(',', $string);
$php_self = substr($_SERVER['REQUEST_URI'], strrpos($_SERVER['REQUEST_URI'], '/') + 1, strrpos($_SERVER['REQUEST_URI'], '.') - strrpos($_SERVER['REQUEST_URI'], '/') - 1);
if (in_array($php_self, $array)) {
return 'active';
} elseif (isset($_GET['m']) && in_array($_GET['m'], $array)) {
return 'active';
}
return null;
}

View file

@ -18,7 +18,7 @@ if (!defined('IN_CRONLITE')) {
<ul class="legal navbar-right list-inline text-center">
<li class="dropup">
<div class="dropdown-toggle" id="changelanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-globe"></span>
<span class="fa fa-language"></span>
<a href="#"><?php echo $lang->get_language_name(); ?></a>
</div>
<ul class="dropdown-menu language-change"><?php echo $lang->get_languages_tags(); ?></ul>

View file

@ -25,6 +25,7 @@ if (!defined('IN_CRONLITE')) {
<?php endif; ?>
<link href="assets/image/favicon.ico?_=<?php echo $static_release; ?>" rel="icon" />
<link href="assets/bootstrap/css/bootstrap.min.css?_=<?php echo $static_release; ?>" rel="stylesheet" />
<link href="assets/css/font-awesome.min.css" rel="stylesheet" />
<link href="assets/css/common.css?_=<?php echo $static_release; ?>" rel="stylesheet" />
<!--[if lt IE 9]>
<script src="assets/html5shiv/html5shiv.min.js?_=<?php echo $static_release; ?>"></script>