Sergei Solovev 1 рік тому
батько
коміт
abab8bccea
100 змінених файлів з 105 додано та 9517 видалено
  1. 0 2
      .gitattributes
  2. 0 3
      .gitignore
  3. 14 0
      .htaccess
  4. 24 24
      403.html
  5. 24 24
      404.html
  6. 0 6
      README.md
  7. 43 52
      acp/index.php
  8. 0 146
      acp/template/all.html
  9. 0 9
      acp/template/cashback.html
  10. 0 123
      acp/template/css/bootbox.css
  11. 0 568
      acp/template/css/jquery.datetimepicker.css
  12. 0 329
      acp/template/js/addons.js
  13. 0 196
      acp/template/js/control.js
  14. 0 3192
      acp/template/js/date/jquery.datetimepicker.full.js
  15. 0 64
      acp/template/js/functions.js
  16. 0 1
      acp/template/js/jquery.js
  17. 0 49
      acp/template/js/letter.js
  18. 0 87
      acp/template/js/logs.js
  19. 0 120
      acp/template/js/news.js
  20. 0 118
      acp/template/js/notice.js
  21. 0 62
      acp/template/js/pages.js
  22. 0 148
      acp/template/js/promo.js
  23. 0 224
      acp/template/js/servers.js
  24. 0 72
      acp/template/js/system.js
  25. 0 141
      acp/template/js/tarifs.js
  26. 0 142
      acp/template/js/units.js
  27. 0 179
      acp/template/js/users.js
  28. 0 87
      acp/template/js/web.js
  29. 0 162
      acp/template/js/wiki.js
  30. 0 99
      acp/template/main.html
  31. 0 54
      acp/template/sections/addons/addcat.html
  32. 0 179
      acp/template/sections/addons/addpl.html
  33. 0 17
      acp/template/sections/addons/cats.html
  34. 0 38
      acp/template/sections/addons/index.html
  35. 0 9
      acp/template/sections/addons/menu.html
  36. 0 145
      acp/template/sections/addons/plugin.html
  37. 0 130
      acp/template/sections/addons/update.html
  38. 0 44
      acp/template/sections/addons/updmp.html
  39. 0 84
      acp/template/sections/boost/index.html
  40. 0 6
      acp/template/sections/boost/menu.html
  41. 0 35
      acp/template/sections/control/index.html
  42. 0 6
      acp/template/sections/control/menu.html
  43. 0 58
      acp/template/sections/control/server.html
  44. 0 6
      acp/template/sections/hosting/menu.html
  45. 0 55
      acp/template/sections/jobs/add.html
  46. 0 54
      acp/template/sections/jobs/edit.html
  47. 0 37
      acp/template/sections/jobs/index.html
  48. 0 7
      acp/template/sections/jobs/menu.html
  49. 0 38
      acp/template/sections/jobs/request.html
  50. 0 52
      acp/template/sections/jobs/request_edit.html
  51. 0 39
      acp/template/sections/letter/index.html
  52. 0 5
      acp/template/sections/letter/menu.html
  53. 0 33
      acp/template/sections/logs/index.html
  54. 0 33
      acp/template/sections/logs/logs.html
  55. 0 10
      acp/template/sections/logs/menu.html
  56. 0 43
      acp/template/sections/news/add.html
  57. 0 34
      acp/template/sections/news/index.html
  58. 0 6
      acp/template/sections/news/menu.html
  59. 0 43
      acp/template/sections/news/news.html
  60. 0 56
      acp/template/sections/notice/add.html
  61. 0 32
      acp/template/sections/notice/index.html
  62. 0 7
      acp/template/sections/notice/menu.html
  63. 0 46
      acp/template/sections/notice/notice.html
  64. 0 20
      acp/template/sections/pages/add.html
  65. 0 18
      acp/template/sections/pages/index.html
  66. 0 6
      acp/template/sections/pages/menu.html
  67. 0 20
      acp/template/sections/pages/page.html
  68. 0 82
      acp/template/sections/promo/add.html
  69. 0 37
      acp/template/sections/promo/index.html
  70. 0 8
      acp/template/sections/promo/menu.html
  71. 0 72
      acp/template/sections/promo/promo.html
  72. 0 17
      acp/template/sections/promo/stats.html
  73. 0 36
      acp/template/sections/servers/index.html
  74. 0 13
      acp/template/sections/servers/menu.html
  75. 0 14
      acp/template/sections/servers/overdue.html
  76. 0 114
      acp/template/sections/servers/server.html
  77. 0 34
      acp/template/sections/system/index.html
  78. 0 203
      acp/template/sections/tarifs/add.html
  79. 0 120
      acp/template/sections/tarifs/copy.html
  80. 0 40
      acp/template/sections/tarifs/index.html
  81. 0 7
      acp/template/sections/tarifs/menu.html
  82. 0 20
      acp/template/sections/tarifs/stats.html
  83. 0 120
      acp/template/sections/tarifs/tarif.html
  84. 0 90
      acp/template/sections/units/add.html
  85. 0 17
      acp/template/sections/units/index.html
  86. 0 25
      acp/template/sections/units/loading.html
  87. 0 8
      acp/template/sections/units/menu.html
  88. 0 20
      acp/template/sections/units/stats.html
  89. 0 82
      acp/template/sections/units/unit.html
  90. 0 38
      acp/template/sections/users/index.html
  91. 0 9
      acp/template/sections/users/menu.html
  92. 0 17
      acp/template/sections/users/offline.html
  93. 0 18
      acp/template/sections/users/online.html
  94. 0 16
      acp/template/sections/users/signup.html
  95. 0 31
      acp/template/sections/users/stats.html
  96. 0 177
      acp/template/sections/users/user.html
  97. 0 34
      acp/template/sections/web/index.html
  98. 0 11
      acp/template/sections/web/menu.html
  99. 0 36
      acp/template/sections/wiki/add.html
  100. 0 17
      acp/template/sections/wiki/addcat.html

+ 0 - 2
.gitattributes

@@ -1,2 +0,0 @@
-# Auto detect text files and perform LF normalization
-* text=auto

+ 0 - 3
.gitignore

@@ -1,3 +0,0 @@
-.idea
-.vscode
-vendor

+ 14 - 0
.htaccess

@@ -19,7 +19,21 @@ RewriteRule ^(?!acp).* index.php [L]
 ErrorDocument 403 /403.html
 ErrorDocument 404 /404.html
 
+#***Раскодировать, если не загружаются большие файлы:
+php_value max_execution_time 500
+php_value max_input_time 500
+php_value upload_max_filesize 30M
+php_value post_max_size 30M
+
+#***Раскодировать, если белый экран:
+#php_flag short_open_tag = On
+
+php_flag display_startup_errors on
+php_flag display_errors on
+php_flag html_errors on
+
 <ifModule mod_expires.c>
+
  ExpiresActive On
  #кэшировать флэш и изображения на одну неделю
  ExpiresByType image/x-icon "access plus 7 days"

+ 24 - 24
403.html

@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <html lang="ru">
-    <head>
-        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-        <title>Доступ запрещен</title>
-        <link rel="icon" href="/favicon.ico">
-        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<title>Доступ запрещен</title>
+		<link rel="icon" href="/favicon.ico">
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
 
-        <meta name="description" content="EGPv3 - Панель управления для хостинга игровых серверов." />
-        <meta name="keywords" content="Панель управления, хостинг игровых севреров, аренда сервера" />
+		<meta name="description" content="EGPv3 - Панель управления для хостинга игровых серверов." />
+		<meta name="keywords" content="Панель управления, хостинг игровых севреров, аренда сервера" />
 <style>
 @import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700&subset=cyrillic');
 * {margin:0px; padding:0px; border:none; outline:none; box-sizing:border-box;}
@@ -38,21 +38,21 @@ body {min-height:100vh; background:url('/template/images/error/403.png') center
     .links ul li:nth-child(4) {clear:none;}
 }
 </style>
-    </head>
-    <body>
-        <div class="container">
-            <div class="content">
-                У вас нет прав для просмотра данной страницы
-                <span>Ошибка 403</span> Вы можете посетить другие страницы хостинга
-            </div>
-            <div class="links">
-                <ul>
-                <li><a href="/">Главная</a></li>
-                <li><a href="/news">Новости</a></li>
-                <li><a href="/services">Услуги</a></li>
-                <li><a href="/contacts">Контакты</a></li>
-                </ul>
-            </div>
-        </div>
-    </body>
+	</head>
+	<body>
+		<div class="container">
+			<div class="content">
+				У вас нет прав для просмотра данной страницы
+				<span>Ошибка 403</span> Вы можете посетить другие страницы хостинга
+			</div>
+			<div class="links">
+				<ul>
+				<li><a href="/">Главная</a></li>
+				<li><a href="/news">Новости</a></li>
+				<li><a href="/services">Услуги</a></li>
+				<li><a href="/contacts">Контакты</a></li>
+				</ul>
+			</div>
+		</div>
+	</body>
 </html>

+ 24 - 24
404.html

@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <html lang="ru">
-    <head>
-        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-        <title>Страница не найдена</title>
-        <link rel="icon" href="/favicon.ico">
-        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<title>Страница не найдена</title>
+		<link rel="icon" href="/favicon.ico">
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
 
-        <meta name="description" content="EGPv3 - Панель управления для хостинга игровых серверов." />
-        <meta name="keywords" content="Панель управления, хостинг игровых севреров, аренда сервера" />
+		<meta name="description" content="EGPv3 - Панель управления для хостинга игровых серверов." />
+		<meta name="keywords" content="Панель управления, хостинг игровых севреров, аренда сервера" />
 
 <style>
 @import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700&subset=cyrillic');
@@ -39,21 +39,21 @@ body {min-height:100vh; background:url('/template/images/error/404.png') center
     .links ul li:nth-child(4) {clear:none;}
 }
 </style>
-    </head>
-    <body>
-        <div class="container">
-            <div class="content">
-                К сожалению, страница не найдена
-                <span>Ошибка 404</span> Вы можете посетить другие страницы хостинга
-            </div>
-            <div class="links">
-                <ul>
-                <li><a href="/">Главная</a></li>
-                <li><a href="/news">Новости</a></li>
-                <li><a href="/services">Услуги</a></li>
-                <li><a href="/contacts">Контакты</a></li>
-                </ul>
-            </div>
-        </div>
-    </body>
+	</head>
+	<body>
+		<div class="container">
+			<div class="content">
+				К сожалению, страница не найдена
+				<span>Ошибка 404</span> Вы можете посетить другие страницы хостинга
+			</div>
+			<div class="links">
+				<ul>
+				<li><a href="/">Главная</a></li>
+				<li><a href="/news">Новости</a></li>
+				<li><a href="/services">Услуги</a></li>
+				<li><a href="/contacts">Контакты</a></li>
+				</ul>
+			</div>
+		</div>
+	</body>
 </html>

+ 0 - 6
README.md

@@ -1,6 +0,0 @@
-<p align="center"><b> EngineGP is an open-source game servers management panel built with PHP.</p>
-<p align="center">
-  <a href="https://github.com/EngineGPDev/enginegp/blob/main/LICENSE"><img src="https://img.shields.io/github/license/EngineGPDev/EngineGP" alt="License"></a>
-  <a href="https://github.com/EngineGPDev/enginegp/releases"><img src="https://img.shields.io/github/v/release/EngineGPDev/EngineGP" alt="Version"></a>
-  <a href="https://github.com/EngineGPDev/enginegp"><img src="https://img.shields.io/github/repo-size/EngineGPDev/EngineGP" alt="Size"></a>
-</p>

+ 43 - 52
acp/index.php

@@ -1,54 +1,45 @@
 <?php
-header('Content-Type: text/html; charset=utf-8');
-
-date_default_timezone_set('Europe/Moscow');
-
-@ini_set('display_errors', FALSE);
-@ini_set('html_errors', FALSE);
-@ini_set('error_reporting', E_ALL);
-
-define('EGP', TRUE);
-define('DIR', '../');
-define('SYS', DIR . 'system/');
-define('ACP', DIR . 'system/acp/');
-define('TPL', DIR . 'acp/template/');
-define('TEMP', DIR . 'temp/');
-define('FILES', DIR . 'files/');
-define('DATA', SYS . 'data/');
-define('LIB', SYS . 'library/');
-define('ENG', SYS . 'acp/engine/');
-define('SEC', SYS . 'acp/sections/');
-
-$start_point = $_SERVER['REQUEST_TIME'];
-
-if (!class_exists('Memcache')) {
-    die('Please install Memcache extension');
-}
-$mcache = new Memcache;
-$mcache->connect('127.0.0.1', 11211) or exit('Ошибка подключения Memcache');
-
-// Composer
-if (!file_exists(DIR . 'vendor/autoload.php')) {
-    die('Please <a href="https://getcomposer.org/download/" target="_blank" rel="noreferrer" style="color:#0a25bb;">install composer</a> and run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">composer install</code>');
-}
-require(DIR . 'vendor/autoload.php');
-
-// Настройки
-include(DATA . 'config.php');
-include(DATA . 'mysql.php');
-include(DATA . 'params.php');
-include(DATA . 'acpengine.php');
-
-// Библиотеки
-include(LIB . 'sql.php');
-include(LIB . 'html.php');
-include(LIB . 'acpsystem.php');
-
-$uip = sys::ip();
-
-// Распределитель
-include(ACP . 'distributor.php');
-
-// Выхлоп
-echo $html->arr['all'];
+	header('Content-Type: text/html; charset=utf-8');
+
+	date_default_timezone_set('Europe/Moscow');
+
+	@ini_set('display_errors', FALSE);
+	@ini_set('html_errors', FALSE);
+	@ini_set('error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE ^ E_STRICT);
+
+	DEFINE('EGP', TRUE);
+	DEFINE('ROOT', '../');
+	DEFINE('SYS', ROOT.'system/');
+	DEFINE('ACP', ROOT.'system/acp/');
+	DEFINE('TPL', ROOT.'template/acp/');
+	DEFINE('TEMP', ROOT.'temp/');
+	DEFINE('FILES', ROOT.'files/');
+	DEFINE('DATA', SYS.'data/');
+	DEFINE('LIB', SYS.'library/');
+	DEFINE('ENG', SYS.'acp/engine/');
+	DEFINE('SEC', SYS.'acp/sections/');
+
+	$start_point = $_SERVER['REQUEST_TIME'];
+
+	$mcache = new Memcache;
+	$mcache->connect('127.0.0.1', 11211) or exit('Ошибка: #mc0, обновите страницу позже, если ошибка повторяется, обратитесь в тех.поддержку: <a href="https://enginegp.ru">EGPv3</a>');
+
+	// Настройки
+	include(DATA.'config.php');
+	include(DATA.'mysql.php');
+	include(DATA.'params.php');
+	include(DATA.'acpengine.php');
+
+	// Библиотеки
+	include(LIB.'sql.php');
+	include(LIB.'html.php');
+	include(LIB.'acpsystem.php');
+
+	$uip = sys::ip();
+
+	// Распределитель
+	include(ACP.'distributor.php');
+
+	// Выхлоп
+	echo $html->arr['all'];
 ?>

+ 0 - 146
acp/template/all.html

@@ -1,146 +0,0 @@
-<!DOCTYPE html>
-<html lang="ru">
-    <head>
-        <title>Панель администатора</title>
-        <link rel="icon" href="/favicon.ico">
-        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-        <meta name="viewport" content="width=device-width, initial-scale=1.0">
-        <link rel="stylesheet" type="text/css" href="[css]style.css" media="screen">
-        <link rel="stylesheet" type="text/css" href="[css]fonts.css" media="screen">
-        <link rel="stylesheet" type="text/css" href="[css]bootbox.css" media="screen">
-
-        <script type="text/javascript" src="[js]jquery.js"></script>
-        <script type="text/javascript" src="[js]form.js"></script>
-        <script type="text/javascript" src="[js]bootstrap.js"></script>
-        <script type="text/javascript" src="[js]bootbox.js"></script>
-        <script type="text/javascript" src="[js]functions.js"></script>
-
-        <script type="text/javascript">
-            var home = '[acp]';
-
-            jQuery(document).ready(function($){
-                $("textarea").keydown(function(event){
-                    if(event.keyCode != 9)
-                        return;
-
-                    event.preventDefault();
-
-                    var 
-                        obj = $(this)[0],
-                        start = obj.selectionStart,
-                        end = obj.selectionEnd,
-                        before = obj.value.substring(0, start), 
-                        after = obj.value.substring(end, obj.value.length);
-                        obj.value = before + '  ' + after;
-                        obj.setSelectionRange(start+1, start+1);
-                });
-
-                $(".loader span").each(function(i)
-                {
-                    var _item = $(this);
-
-                    setTimeout(function($){_item.removeClass("jmp"); _item.css({"left": '110%'})}, 150*i);
-                    setTimeout(function($){_item.addClass("jmp"); _item.css({"left": '90%'})}, 1000 + 150*i);
-                });
-
-                var _pageLoader = setInterval(function()
-                {
-                    $(".loader span").each(function(i)
-                    {
-                        var _item = $(this); 
-
-                        setTimeout(function($){_item.removeClass("jmp"); _item.css({"left": '110%'})}, 150*i);
-                        setTimeout(function($){_item.addClass("jmp"); _item.css({"left": '90%'})}, 1000 + 150*i);
-                    })
-                }, 1500);
-            });
-        </script>
-    </head>
-
-    <body>
-        <header>
-            <div class="sidebar bg-gray">
-                <h3>Панель управления</h3>
-            </div>
-            |section|
-                <div class="sidebar-second bg-green">
-                    <h3>[info]</h3>
-                </div>
-            |_section|
-            <div class="content bg-gray-mild |section|content-mini|_section|">
-                <div class="fl-left">
-                    <a href="[home]">На сайт</a>
-                </div>
-
-                <div class="fl-right">
-                    <a href="[acp]users/id/[admin]">Профиль</a>
-                    <a href="[home]help/section/open" target="_blank">Тех. поддержка</a>
-                    <a href="[acp]system"><i class="fa fa-cog"></i></a>
-                    <a href="[home]user/section/quit">Выйти</a>
-                </div>
-            </div>
-        </header>
-
-        <main>
-            <div class="sidebar bg-gray br-gray-top">
-                <h5>Основное меню</h5>
-
-                <ul>
-                    <li><a href="[acp]" |p_index|class="active"|_p_index|><i class="fa fa-home"></i> Дашборд</a></li>
-                    <li><a href="[acp]users" |p_users|class="active"|_p_users|><i class="fa fa-users"></i> Пользователи</a></li>
-                    <li><a href="[acp]units" |p_units|class="active"|_p_units|><i class="fa fa-server"></i> Локации</a></li>
-                    <li><a href="[acp]tarifs" |p_tarifs|class="active"|_p_tarifs|><i class="fa fa-shopping-bag"></i> Тарифы</a></li>
-                    <li><a href="[acp]plugins" |p_plugins|class="active"|_p_plugins|><i class="fa fa-puzzle-piece"></i> Плагины</a></li>
-                </ul>
-                
-                <div class="hr-gray"></div>
-                
-                <h5>Управление услугами</h5>
-
-                <ul>
-                    <li><a href="[acp]servers" |p_servers|class="active"|_p_servers|><i class="fa fa-gamepad"></i> Серверы</a></li>
-                    <li><a href="[acp]addons" |p_addons|class="active"|_p_addons|><i class="fa fa-cubes"></i> Дополнения</a></li>
-                    <li><a href="[acp]web" |p_web|class="active"|_p_web|><i class="fa fa-cloud"></i> Web-услуги</a></li>
-                    <li><a href="[acp]control" |p_control|class="active"|_p_control|><i class="fa fa-dropbox"></i> Контроль</a></li>
-                    <li><a href="[acp]boost" |p_boost|class="active"|_p_boost|><i class="fa fa-line-chart"></i> Boost / Игра: CS 1.6</a></li>
-                </ul>
-
-                <div class="hr-gray"></div>
-
-                <h5>Остальные разделы</h5>
-
-                <ul>
-                    <li><a href="[acp]promo" |p_promo|class="active"|_p_promo|><i class="fa fa-gift"></i> Акции</a></li>
-                    <li><a href="[acp]notice" |p_notice|class="active"|_p_notice|><i class="fa fa-bullhorn"></i> Уведомления</a></li>
-                    <li><a href="[acp]news" |p_news|class="active"|_p_news|><i class="fa fa-newspaper-o"></i> Новостями</a></li>
-                    <li><a href="[acp]wiki" |p_wiki|class="active"|_p_wiki|><i class="fa fa-cubes"></i> Википедия</a></li>
-                    <li><a href="[acp]pages" |p_pages|class="active"|_p_pages|><i class="fa fa-file-text-o"></i> Страницы</a></li>
-                    <li><a href="[acp]jobs" |p_jobs|class="active"|_p_jobs|><i class="fa fa-user-md"></i> Вакансии</a></li>
-                    <li><a href="[acp]logs" |p_logs|class="active"|_p_logs|><i class="fa fa-clipboard"></i> Логи операций</a></li>
-                    <li><a href="[acp]letter" |p_letter|class="active"|_p_letter|><i class="fa fa-envelope-open"></i> Рассылка</a></li>
-                </ul>
-            </div>
-
-            |section|<div class="sidebar-second bg-white">[menu]</div>|_section|
-
-            <div class="content |section|content-mini|_section|">
-                <div class="main">
-                    [main]
-                </div>
-            </div>
-        </main>
-
-        <footer></footer>
-
-        <div id="loadinginfo">
-            <div class="loader">
-                <span class="l-1" style="left: 110%;"></span>
-                <span class="l-2 jmp" style="left: 90%;"></span>
-                <span class="l-3 jmp" style="left: 90%;"></span>
-                <span class="l-4 jmp" style="left: 90%;"></span>
-                <span class="l-5" style="left: 110%;"></span>
-                <span class="l-6" style="left: 110%;"></span>
-            </div>
-        </div>
-    </body>
-</html>

+ 0 - 9
acp/template/cashback.html

@@ -1,9 +0,0 @@
-<tr>
-    <td>#[id]</td>
-    <td><a href="[acp]users/id/[user]">USER_[user]</a></td>
-    <td>[mail]</td>
-    <td>[purse]</td>
-    <td>[money] (Выводить: [cashback])</td>
-    <td>[type]</td>
-    <td><a href="#" onclick="return cashback_output('[id]', '[gateway]')">Вывести</a></td>
-</tr>

+ 0 - 123
acp/template/css/bootbox.css

@@ -1,123 +0,0 @@
-.fade
-{
-    opacity:0;
-    -webkit-transition:opacity .15s linear;
-    -moz-transition:opacity .15s linear;
-    -o-transition:opacity .15s linear;
-    transition:opacity .15s linear
-}
-.fade.in{
-    opacity:1
-}
-.modal-backdrop
-{
-    position:fixed;
-    top:0;
-    right:0;
-    bottom:0;
-    left:0;
-    z-index:1040;
-    background-color:#000
-}
-.modal-backdrop.fade{
-    opacity:0
-}
-.modal-backdrop,.modal-backdrop.fade.in
-{
-    opacity: 0.5;
-    filter: alpha(opacity=50);
-    background-color: #90D3F4;
-}
-.modal
-{
-    position:fixed;
-    top:40%;
-    left:45%;
-    z-index:1050;
-    width:560px;
-    margin-left:-280px;
-    background-color:#fff;
-    border:1px solid #EEE;
-    *border:1px solid #EEE;
-    outline:0;
-    -webkit-background-clip:padding-box;
-    -moz-background-clip:padding-box;
-    background-clip:padding-box
-}
-.modal.fade
-{
-    top:-25%;
-    -webkit-transition:opacity .3s linear,top .3s ease-out;
-    -moz-transition:opacity .3s linear,top .3s ease-out;
-    -o-transition:opacity .3s linear,top .3s ease-out;
-    transition:opacity .3s linear,top .3s ease-out
-}
-.modal.fade.in
-{
-    top:40%;
-    left: 50%;
-}
-.modal-header
-{
-    padding:9px 15px;
-    border-bottom:1px solid #eee
-}
-.modal-header .close
-{
-    margin-top:2px
-}
-.modal-header h3
-{
-    margin:0;
-    line-height:30px
-}
-.modal-body
-{
-    position:relative;
-    max-height:400px;
-    padding:15px;
-    overflow-y:auto
-}
-.modal-form
-{
-    margin-bottom:0
-}
-.modal-footer
-{
-    padding:14px 15px 15px;
-    margin-bottom:0;
-    text-align:right;
-    background-color:#f5f5f5;
-    border-top:1px solid #ddd;
-    -webkit-border-radius:0 0 6px 6px;
-    -moz-border-radius:0 0 6px 6px;
-    border-radius:0 0 6px 6px;
-    *zoom:1;
-    -webkit-box-shadow:inset 0 1px 0 #fff;
-    -moz-box-shadow:inset 0 1px 0 #fff;
-    box-shadow:inset 0 1px 0 #fff
-}
-.modal-footer:before,.modal-footer:after
-{
-    display:table;
-    line-height:0;
-    content:""
-}
-.modal-footer:after
-{
-    clear:both
-}
-.modal-footer .btn+.btn
-{
-    margin-bottom:0;
-    margin-left:5px
-}
-.modal-footer .btn-group .btn+.btn
-{
-    margin-left:-1px
-}
-.modal-footer .btn-block+.btn-block
-{
-    margin-left:0
-}
-

+ 0 - 568
acp/template/css/jquery.datetimepicker.css

@@ -1,568 +0,0 @@
-.xdsoft_datetimepicker {
-    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.506);
-    background: #fff;
-    border-bottom: 1px solid #bbb;
-    border-left: 1px solid #ccc;
-    border-right: 1px solid #ccc;
-    border-top: 1px solid #ccc;
-    color: #333;
-    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-    padding: 8px;
-    padding-left: 0;
-    padding-top: 2px;
-    position: absolute;
-    z-index: 9999;
-    -moz-box-sizing: border-box;
-    box-sizing: border-box;
-    display: none;
-}
-.xdsoft_datetimepicker.xdsoft_rtl {
-    padding: 8px 0 8px 8px;
-}
-
-.xdsoft_datetimepicker iframe {
-    position: absolute;
-    left: 0;
-    top: 0;
-    width: 75px;
-    height: 210px;
-    background: transparent;
-    border: none;
-}
-
-/*For IE8 or lower*/
-.xdsoft_datetimepicker button {
-    border: none !important;
-}
-
-.xdsoft_noselect {
-    -webkit-touch-callout: none;
-    -webkit-user-select: none;
-    -khtml-user-select: none;
-    -moz-user-select: none;
-    -ms-user-select: none;
-    -o-user-select: none;
-    user-select: none;
-}
-
-.xdsoft_noselect::selection { background: transparent }
-.xdsoft_noselect::-moz-selection { background: transparent }
-
-.xdsoft_datetimepicker.xdsoft_inline {
-    display: inline-block;
-    position: static;
-    box-shadow: none;
-}
-
-.xdsoft_datetimepicker * {
-    -moz-box-sizing: border-box;
-    box-sizing: border-box;
-    padding: 0;
-    margin: 0;
-}
-
-.xdsoft_datetimepicker .xdsoft_datepicker, .xdsoft_datetimepicker .xdsoft_timepicker {
-    display: none;
-}
-
-.xdsoft_datetimepicker .xdsoft_datepicker.active, .xdsoft_datetimepicker .xdsoft_timepicker.active {
-    display: block;
-}
-
-.xdsoft_datetimepicker .xdsoft_datepicker {
-    width: 224px;
-    float: left;
-    margin-left: 8px;
-}
-.xdsoft_datetimepicker.xdsoft_rtl .xdsoft_datepicker {
-    float: right;
-    margin-right: 8px;
-    margin-left: 0;
-}
-
-.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker {
-    width: 256px;
-}
-
-.xdsoft_datetimepicker .xdsoft_timepicker {
-    width: 58px;
-    float: left;
-    text-align: center;
-    margin-left: 8px;
-    margin-top: 0;
-}
-.xdsoft_datetimepicker.xdsoft_rtl .xdsoft_timepicker {
-    float: right;
-    margin-right: 8px;
-    margin-left: 0;
-}
-
-.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker {
-    margin-top: 8px;
-    margin-bottom: 3px
-}
-
-.xdsoft_datetimepicker .xdsoft_monthpicker {
-    position: relative;
-    text-align: center;
-}
-
-.xdsoft_datetimepicker .xdsoft_label i,
-.xdsoft_datetimepicker .xdsoft_prev,
-.xdsoft_datetimepicker .xdsoft_next,
-.xdsoft_datetimepicker .xdsoft_today_button {
-    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0NBRjI1NjM0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0NBRjI1NjQ0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDQ0FGMjU2MTQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDQ0FGMjU2MjQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoNEP54AAAIOSURBVHja7Jq9TsMwEMcxrZD4WpBYeKUCe+kTMCACHZh4BFfHO/AAIHZGFhYkBBsSEqxsLCAgXKhbXYOTxh9pfJVP+qutnZ5s/5Lz2Y5I03QhWji2GIcgAokWgfCxNvcOCCGKqiSqhUp0laHOne05vdEyGMfkdxJDVjgwDlEQgYQBgx+ULJaWSXXS6r/ER5FBVR8VfGftTKcITNs+a1XpcFoExREIDF14AVIFxgQUS+h520cdud6wNkC0UBw6BCO/HoCYwBhD8QCkQ/x1mwDyD4plh4D6DDV0TAGyo4HcawLIBBSLDkHeH0Mg2yVP3l4TQMZQDDsEOl/MgHQqhMNuE0D+oBh0CIr8MAKyazBH9WyBuKxDWgbXfjNf32TZ1KWm/Ap1oSk/R53UtQ5xTh3LUlMmT8gt6g51Q9p+SobxgJQ/qmsfZhWywGFSl0yBjCLJCMgXail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC);
-}
-
-.xdsoft_datetimepicker .xdsoft_label i {
-    opacity: 0.5;
-    background-position: -92px -19px;
-    display: inline-block;
-    width: 9px;
-    height: 20px;
-    vertical-align: middle;
-}
-
-.xdsoft_datetimepicker .xdsoft_prev {
-    float: left;
-    background-position: -20px 0;
-}
-.xdsoft_datetimepicker .xdsoft_today_button {
-    float: left;
-    background-position: -70px 0;
-    margin-left: 5px;
-}
-
-.xdsoft_datetimepicker .xdsoft_next {
-    float: right;
-    background-position: 0 0;
-}
-
-.xdsoft_datetimepicker .xdsoft_next,
-.xdsoft_datetimepicker .xdsoft_prev ,
-.xdsoft_datetimepicker .xdsoft_today_button {
-    background-color: transparent;
-    background-repeat: no-repeat;
-    border: 0 none;
-    cursor: pointer;
-    display: block;
-    height: 30px;
-    opacity: 0.5;
-    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
-    outline: medium none;
-    overflow: hidden;
-    padding: 0;
-    position: relative;
-    text-indent: 100%;
-    white-space: nowrap;
-    width: 20px;
-    min-width: 0;
-}
-
-.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev,
-.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next {
-    float: none;
-    background-position: -40px -15px;
-    height: 15px;
-    width: 30px;
-    display: block;
-    margin-left: 14px;
-    margin-top: 7px;
-}
-.xdsoft_datetimepicker.xdsoft_rtl .xdsoft_timepicker .xdsoft_prev,
-.xdsoft_datetimepicker.xdsoft_rtl .xdsoft_timepicker .xdsoft_next {
-    float: none;
-    margin-left: 0;
-    margin-right: 14px;
-}
-
-.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev {
-    background-position: -40px 0;
-    margin-bottom: 7px;
-    margin-top: 0;
-}
-
-.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box {
-    height: 151px;
-    overflow: hidden;
-    border-bottom: 1px solid #ddd;
-}
-
-.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div {
-    background: #f5f5f5;
-    border-top: 1px solid #ddd;
-    color: #666;
-    font-size: 12px;
-    text-align: center;
-    border-collapse: collapse;
-    cursor: pointer;
-    border-bottom-width: 0;
-    height: 25px;
-    line-height: 25px;
-}
-
-.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div > div:first-child {
-    border-top-width: 0;
-}
-
-.xdsoft_datetimepicker .xdsoft_today_button:hover,
-.xdsoft_datetimepicker .xdsoft_next:hover,
-.xdsoft_datetimepicker .xdsoft_prev:hover {
-    opacity: 1;
-    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
-}
-
-.xdsoft_datetimepicker .xdsoft_label {
-    display: inline;
-    position: relative;
-    z-index: 9999;
-    margin: 0;
-    padding: 5px 3px;
-    font-size: 14px;
-    line-height: 20px;
-    font-weight: bold;
-    background-color: #fff;
-    float: left;
-    width: 182px;
-    text-align: center;
-    cursor: pointer;
-}
-
-.xdsoft_datetimepicker .xdsoft_label:hover>span {
-    text-decoration: underline;
-}
-
-.xdsoft_datetimepicker .xdsoft_label:hover i {
-    opacity: 1.0;
-}
-
-.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select {
-    border: 1px solid #ccc;
-    position: absolute;
-    right: 0;
-    top: 30px;
-    z-index: 101;
-    display: none;
-    background: #fff;
-    max-height: 160px;
-    overflow-y: hidden;
-}
-
-.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_monthselect{ right: -7px }
-.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_yearselect{ right: 2px }
-.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover {
-    color: #fff;
-    background: #ff8000;
-}
-
-.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option {
-    padding: 2px 10px 2px 5px;
-    text-decoration: none !important;
-}
-
-.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current {
-    background: #33aaff;
-    box-shadow: #178fe5 0 1px 3px 0 inset;
-    color: #fff;
-    font-weight: 700;
-}
-
-.xdsoft_datetimepicker .xdsoft_month {
-    width: 100px;
-    text-align: right;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar {
-    clear: both;
-}
-
-.xdsoft_datetimepicker .xdsoft_year{
-    width: 48px;
-    margin-left: 5px;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar table {
-    border-collapse: collapse;
-    width: 100%;
-
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar td > div {
-    padding-right: 5px;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar th {
-    height: 25px;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_calendar th {
-    width: 14.2857142%;
-    background: #f5f5f5;
-    border: 1px solid #ddd;
-    color: #666;
-    font-size: 12px;
-    text-align: right;
-    vertical-align: middle;
-    padding: 0;
-    border-collapse: collapse;
-    cursor: pointer;
-    height: 25px;
-}
-.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th {
-    width: 12.5%;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar th {
-    background: #f1f1f1;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today {
-    color: #33aaff;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_highlighted_default {
-    background: #ffe9d2;
-    box-shadow: #ffb871 0 1px 4px 0 inset;
-    color: #000;
-}
-.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_highlighted_mint {
-    background: #c1ffc9;
-    box-shadow: #00dd1c 0 1px 4px 0 inset;
-    color: #000;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
-.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
-.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current {
-    background: #33aaff;
-    box-shadow: #178fe5 0 1px 3px 0 inset;
-    color: #fff;
-    font-weight: 700;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,
-.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
-.xdsoft_datetimepicker .xdsoft_time_box >div >div.xdsoft_disabled {
-    opacity: 0.5;
-    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
-    cursor: default;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled {
-    opacity: 0.2;
-    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar td:hover,
-.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div:hover {
-    color: #fff !important;
-    background: #ff8000 !important;
-    box-shadow: none !important;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_disabled:hover,
-.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current.xdsoft_disabled:hover {
-    background: #33aaff !important;
-    box-shadow: #178fe5 0 1px 3px 0 inset !important;
-    color: #fff !important;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,
-.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_disabled:hover {
-    color: inherit    !important;
-    background: inherit !important;
-    box-shadow: inherit !important;
-}
-
-.xdsoft_datetimepicker .xdsoft_calendar th {
-    font-weight: 700;
-    text-align: center;
-    color: #999;
-    cursor: default;
-}
-
-.xdsoft_datetimepicker .xdsoft_copyright {
-    color: #ccc !important;
-    font-size: 10px;
-    clear: both;
-    float: none;
-    margin-left: 8px;
-}
-
-.xdsoft_datetimepicker .xdsoft_copyright a { color: #eee !important }
-.xdsoft_datetimepicker .xdsoft_copyright a:hover { color: #aaa !important }
-
-.xdsoft_time_box {
-    position: relative;
-    border: 1px solid #ccc;
-}
-.xdsoft_scrollbar >.xdsoft_scroller {
-    background: #ccc !important;
-    height: 20px;
-    border-radius: 3px;
-}
-.xdsoft_scrollbar {
-    position: absolute;
-    width: 7px;
-    right: 0;
-    top: 0;
-    bottom: 0;
-    cursor: pointer;
-}
-.xdsoft_datetimepicker.xdsoft_rtl .xdsoft_scrollbar {
-    left: 0;
-    right: auto;
-}
-.xdsoft_scroller_box {
-    position: relative;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark {
-    box-shadow: 0 5px 15px -5px rgba(255, 255, 255, 0.506);
-    background: #000;
-    border-bottom: 1px solid #444;
-    border-left: 1px solid #333;
-    border-right: 1px solid #333;
-    border-top: 1px solid #333;
-    color: #ccc;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box {
-    border-bottom: 1px solid #222;
-}
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div {
-    background: #0a0a0a;
-    border-top: 1px solid #222;
-    color: #999;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label {
-    background-color: #000;
-}
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select {
-    border: 1px solid #333;
-    background: #000;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover {
-    color: #000;
-    background: #007fff;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current {
-    background: #cc5500;
-    box-shadow: #b03e00 0 1px 3px 0 inset;
-    color: #000;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label i,
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_prev,
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_next,
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_today_button {
-    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QUExQUUzOTA0M0UyMTFFNDlBM0FFQTJENTExRDVBODYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QUExQUUzOTE0M0UyMTFFNDlBM0FFQTJENTExRDVBODYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBQTFBRTM4RTQzRTIxMUU0OUEzQUVBMkQ1MTFENUE4NiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBQTFBRTM4RjQzRTIxMUU0OUEzQUVBMkQ1MTFENUE4NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pp0VxGEAAAIASURBVHja7JrNSgMxEMebtgh+3MSLr1T1Xn2CHoSKB08+QmR8Bx9A8e7RixdB9CKCoNdexIugxFlJa7rNZneTbLIpM/CnNLsdMvNjM8l0mRCiQ9Ye61IKCAgZAUnH+mU3MMZaHYChBnJUDzWOFZdVfc5+ZFLbrWDeXPwbxIqrLLfaeS0hEBVGIRQCEiZoHQwtlGSByCCdYBl8g8egTTAWoKQMRBRBcZxYlhzhKegqMOageErsCHVkk3hXIFooDgHB1KkHIHVgzKB4ADJQ/A1jAFmAYhkQqA5TOBtocrKrgXwQA8gcFIuAIO8sQSA7hidvPwaQGZSaAYHOUWJABhWWw2EMIH9QagQERU4SArJXo0ZZL18uvaxejXt/Em8xjVBXmvFr1KVm/AJ10tRe2XnraNqaJvKE3KHuUbfK1E+VHB0q40/y3sdQSxY4FHWeKJCunP8UyDdqJZenT3ntVV5jIYCAh20vT7ioP8tpf6E2lfEMwERe+whV1MHjwZB7PBiCxcGQWwKZKD62lfGNnP/1poFAA60T7rF1UgcKd2id3KDeUS+oLWV8DfWAepOfq00CgQabi9zjcgJVYVD7PVzQUAUGAQkbNJTBICDhgwYTjDYD6XeW08ZKh+A4pYkzenOxXUbvZcWz7E8ykRMnIHGX1XPl+1m2vPYpL+2qdb8CDAARlKFEz/ZVkAAAAABJRU5ErkJggg==);
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td,
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th {
-    background: #0a0a0a;
-    border: 1px solid #222;
-    color: #999;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th {
-    background: #0e0e0e;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_today {
-    color: #cc5500;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_highlighted_default {
-    background: #ffe9d2;
-    box-shadow: #ffb871 0 1px 4px 0 inset;
-    color:#000;
-}
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_highlighted_mint {
-    background: #c1ffc9;
-    box-shadow: #00dd1c 0 1px 4px 0 inset;
-    color:#000;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_default,
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_current,
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current {
-    background: #cc5500;
-    box-shadow: #b03e00 0 1px 3px 0 inset;
-    color: #000;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td:hover,
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div:hover {
-    color: #000 !important;
-    background: #007fff !important;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th {
-    color: #666;
-}
-
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright { color: #333 !important }
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright a { color: #111 !important }
-.xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright a:hover { color: #555 !important }
-
-.xdsoft_dark .xdsoft_time_box {
-    border: 1px solid #333;
-}
-
-.xdsoft_dark .xdsoft_scrollbar >.xdsoft_scroller {
-    background: #333 !important;
-}
-.xdsoft_datetimepicker .xdsoft_save_selected {
-    display: block;
-    border: 1px solid #dddddd !important;
-    margin-top: 5px;
-    width: 100%;
-    color: #454551;
-    font-size: 13px;
-}
-.xdsoft_datetimepicker .blue-gradient-button {
-    font-family: "museo-sans", "Book Antiqua", sans-serif;
-    font-size: 12px;
-    font-weight: 300;
-    color: #82878c;
-    height: 28px;
-    position: relative;
-    padding: 4px 17px 4px 33px;
-    border: 1px solid #d7d8da;
-    background: -moz-linear-gradient(top, #fff 0%, #f4f8fa 73%);
-    /* FF3.6+ */
-    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(73%, #f4f8fa));
-    /* Chrome,Safari4+ */
-    background: -webkit-linear-gradient(top, #fff 0%, #f4f8fa 73%);
-    /* Chrome10+,Safari5.1+ */
-    background: -o-linear-gradient(top, #fff 0%, #f4f8fa 73%);
-    /* Opera 11.10+ */
-    background: -ms-linear-gradient(top, #fff 0%, #f4f8fa 73%);
-    /* IE10+ */
-    background: linear-gradient(to bottom, #fff 0%, #f4f8fa 73%);
-    /* W3C */
-    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff', endColorstr='#f4f8fa',GradientType=0 );
-/* IE6-9 */
-}
-.xdsoft_datetimepicker .blue-gradient-button:hover, .xdsoft_datetimepicker .blue-gradient-button:focus, .xdsoft_datetimepicker .blue-gradient-button:hover span, .xdsoft_datetimepicker .blue-gradient-button:focus span {
-  color: #454551;
-  background: -moz-linear-gradient(top, #f4f8fa 0%, #FFF 73%);
-  /* FF3.6+ */
-  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f4f8fa), color-stop(73%, #FFF));
-  /* Chrome,Safari4+ */
-  background: -webkit-linear-gradient(top, #f4f8fa 0%, #FFF 73%);
-  /* Chrome10+,Safari5.1+ */
-  background: -o-linear-gradient(top, #f4f8fa 0%, #FFF 73%);
-  /* Opera 11.10+ */
-  background: -ms-linear-gradient(top, #f4f8fa 0%, #FFF 73%);
-  /* IE10+ */
-  background: linear-gradient(to bottom, #f4f8fa 0%, #FFF 73%);
-  /* W3C */
-  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f8fa', endColorstr='#FFF',GradientType=0 );
-  /* IE6-9 */
-}

+ 0 - 329
acp/template/js/addons.js

@@ -1,329 +0,0 @@
-$('#addons').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                location.reload();
-        });
-
-        loading(0)
-    }
-});
-
-function maps_reset_game()
-{
-    $('#game').prop('selectedIndex', 0);
-}
-
-function maps_list()
-{
-    $.get(home+'addons/section/updmp/get/list/unit/'+$('#unit').val()+'/game/'+$('#game').val(),
-    function(data)
-    {
-        $('#maps').val(data);
-    });
-
-    return false;
-}
-
-function maps_update()
-{
-    loading(1);
-
-    $.get(home+'addons/section/updmp/unit/'+$('#unit').val()+'/game/'+$('#game').val()+'/go',
-    function(data)
-    {
-        location.reload();
-    });
-
-    return false;
-}
-
-function plugins_category()
-{
-    $.get(home+'addons/section/addpl/get/cat/game/'+$('#game').val(),
-    function(data)
-    {
-        $('#category').html('<option value="0">Выберете категорию</option>'+data);
-    });
-
-    return false;
-}
-
-function plugins_update_del(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить обновление плагина?',
-        [{
-            "label" : "Удалить",
-            callback : function(){plugins_update_del_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function plugins_update_del_go(id)
-{
-    $.get(home+'addons/section/delete/type/update/id/'+id,
-    function(data)
-    {
-        location.reload();
-    });
-}
-
-function cats_delete(id)
-{
-    $.get(home+'addons/section/delete/type/cat/id/'+id,
-    function(data)
-    {
-        location.reload();
-    });
-
-    return false;
-}
-
-function plugins_sort(sort)
-{
-    switch(sort)
-    {
-        case 'id':
-            if(sort_id == 'asc')
-                sort_id = 'desc';
-            else
-                sort_id = 'asc';
-
-            sorting = sort_id;
-
-        break;
-
-        case 'cat':
-            sort_cat = sort_cat == 'asc' ? 'desc' : 'asc';
-            sorting = sort_cat;
-
-        break;
-
-        case 'game':
-            sort_game = sort_game == 'asc' ? 'desc' : 'asc';
-            sorting = sort_game;
-
-    }
-
-    location.href=home+'addons/sort/'+sort+'/sorting/'+sorting;
-}
-
-function plugins_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'addons/subsection/search'+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function plugins_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить плагин?',
-        [{
-            "label" : "Удалить",
-            callback : function(){plugins_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function plugins_delete_go(id)
-{
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'addons/section/delete/type/plugin/id/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function add_plugin_type()
-{
-    if($("#update").val() == 0)
-    {
-        $('#new_plugin').css('display', 'table-row');
-        $('#upd_plugin').css('display', 'none');
-    }else{
-        $('#new_plugin').css('display', 'none');
-        $('#upd_plugin').css('display', 'table-row');
-    }
-}
-
-function config_files_form()
-{
-    if(!$("#cfa").prop('checked'))
-        $('#config_files_form').css('display', 'table');
-    else{
-        $('#config_files_form').css('display', 'none');
-        $('#config_files_all').html('');
-    }
-}
-
-var cf = 999999;
-var cc = 999999;
-var cw = 999999;
-var cwe = 999999;
-var fd = 999999;
-
-function config_files_add()
-{
-    cf += 1;
-
-    $('#config_files_all').append('<tr id="cf_'+cf+'">'
-        +'<td><input name="config_files_file['+cf+']" placeholder="Введите полный путь к файлу" type="text"></td>'
-        +'<td><input name="config_files_sort['+cf+']" type="text"></td>'
-        +'<td class="text-center"><a href="#" onclick="return config_files_del(\''+cf+'\')" class="text-red">Удалить</a></td>'
-        +'</tr>');
-}
-
-function config_clear_add()
-{
-    cc += 1;
-
-    $('#config_clear_all').append('<tr id="cc_'+cc+'">'
-        +'<td><input name="config_clear_file['+cc+']" placeholder="Введите полный путь к файлу" type="text"></td>'
-        +'<td><input name="config_clear_text['+cc+']" placeholder="Текст" type="text"></td>'
-        +'<td class="text-center"><input name="config_clear_regex['+cc+']" type="checkbox"></td>'
-        +'<td class="text-center"><a href="#" onclick="return config_clear_del(\''+cc+'\')" class="text-red">Удалить</a></td>'
-        +'</tr>');
-}
-
-function config_write_add()
-{
-    cw += 1;
-
-    $('#config_write_all').append('<tr id="cw_'+cw+'">'
-        +'<td><input name="config_write_file['+cw+']" placeholder="Введите полный путь к файлу" type="text"></td>'
-        +'<td><input name="config_write_text['+cw+']" placeholder="Текст" type="text"></td>'
-        +'<td class="text-center"><input name="config_write_top['+cw+']" type="checkbox"></td>'
-        +'<td class="text-center"><a href="#" onclick="return config_write_del(\''+cw+'\')" class="text-red">Удалить</a></td>'
-        +'</tr>');
-}
-
-function config_write_del_add()
-{
-    cwe += 1;
-
-    $('#config_write_del_all').append('<tr id="cwe_'+cwe+'">'
-        +'<td><input name="config_write_del_file['+cwe+']" placeholder="Введите полный путь к файлу" type="text"></td>'
-        +'<td><input name="config_write_del_text['+cwe+']" placeholder="Текст" type="text"></td>'
-        +'<td class="text-center"><input name="config_write_del_top['+cwe+']" type="checkbox"></td>'
-        +'<td class="text-center"><a href="#" onclick="return config_write_del_del(\''+cwe+'\')" class="text-red">Удалить</a></td>'
-        +'</tr>');
-}
-
-function files_delete_add()
-{
-    fd += 1;
-
-    $('#files_delete_all').append('<tr id="fd_'+fd+'">'
-        +'<td><input name="files_delete_file['+fd+']" placeholder="Введите полный путь к файлу" type="text"></td>'
-        +'<td class="text-center"><a href="#" onclick="return files_delete_del(\''+fd+'\')" class="text-red">Удалить</a></td>'
-        +'</tr>');
-}
-
-function config_files_del(id)
-{
-    $('#cf_'+id).empty();
-
-    return false;
-}
-
-function config_clear_del(id)
-{
-    $('#cc_'+id).empty();
-
-    return false;
-}
-
-function config_write_del(id)
-{
-    $('#cw_'+id).empty();
-
-    return false;
-}
-
-function config_write_del_del(id)
-{
-    $('#cwe_'+id).empty();
-
-    return false;
-}
-
-function files_delete_del(id)
-{
-    $('#fd_'+id).empty();
-
-    return false;
-}

+ 0 - 196
acp/template/js/control.js

@@ -1,196 +0,0 @@
-$('#control').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                location.reload();
-        });
-
-        loading(0)
-    }
-});
-
-function control_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'control/subsection/search'+url_search+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-
-                if(i == 'url')
-                    url_search = val;
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function control_overdue(id, time)
-{
-    bootbox.dialog('<p>Установка даты:</p> <div class="inputs inputs-max"><input type="text" id="date_overdue" onclick="datepick(\'date_overdue\', \''+time+'\')"></div>',
-        [{
-            "label" : "Установить",
-            callback : function(){control_overdue_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function control_block(id, time)
-{
-    bootbox.dialog('<p>Установка даты:</p> <div class="inputs inputs-max"><input type="text" id="date_block" onclick="datepick(\'date_block\', \''+time+'\')"></div>',
-        [{
-            "label" : "Заблокировать",
-            callback : function(){control_block_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function datepick(input, time)
-{
-    if($('#'+input).val() != '')
-        time = $('#'+input).val();
-
-    $('#'+input).datetimepicker({value: time, format: 'd/m/Y H:i'});
-}
-
-function control_overdue_go(id)
-{
-    $.ajax({
-        type: 'POST',
-        url: home+'control/type/overdue/id/'+id+'/go',
-        data: 'time='+$('#date_overdue').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload();
-            });
-        }
-    });
-}
-
-function control_block_go(id)
-{
-    $.ajax({
-        type: 'POST',
-        url: home+'control/type/block/id/'+id+'/go',
-        data: 'time='+$('#date_block').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload();
-            });
-        }
-    });
-}
-
-function control_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить подключенный сервер?',
-        [{
-            "label" : "Удалить",
-            callback : function(){control_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function control_delete_go(id)
-{
-    
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'control/section/delete/id/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}

+ 0 - 3192
acp/template/js/date/jquery.datetimepicker.full.js

@@ -1,3192 +0,0 @@
-/*!
- * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2015
- * @version 1.3.3
- *
- * Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format.
- * @see http://php.net/manual/en/function.date.php
- *
- * For more JQuery plugins visit http://plugins.krajee.com
- * For more Yii related demos visit http://demos.krajee.com
- */
-var DateFormatter;
-(function () {
-    "use strict";
-
-    var _compare, _lpad, _extend, defaultSettings, DAY, HOUR;
-    DAY = 1000 * 60 * 60 * 24;
-    HOUR = 3600;
-
-    _compare = function (str1, str2) {
-        return typeof(str1) === 'string' && typeof(str2) === 'string' && str1.toLowerCase() === str2.toLowerCase();
-    };
-    _lpad = function (value, length, char) {
-        var chr = char || '0', val = value.toString();
-        return val.length < length ? _lpad(chr + val, length) : val;
-    };
-    _extend = function (out) {
-        var i, obj;
-        out = out || {};
-        for (i = 1; i < arguments.length; i++) {
-            obj = arguments[i];
-            if (!obj) {
-                continue;
-            }
-            for (var key in obj) {
-                if (obj.hasOwnProperty(key)) {
-                    if (typeof obj[key] === 'object') {
-                        _extend(out[key], obj[key]);
-                    } else {
-                        out[key] = obj[key];
-                    }
-                }
-            }
-        }
-        return out;
-    };
-    defaultSettings = {
-        dateSettings: {
-            days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
-            daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
-            months: [
-                'January', 'February', 'March', 'April', 'May', 'June', 'July',
-                'August', 'September', 'October', 'November', 'December'
-            ],
-            monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
-            meridiem: ['AM', 'PM'],
-            ordinal: function (number) {
-                var n = number % 10, suffixes = {1: 'st', 2: 'nd', 3: 'rd'};
-                return Math.floor(number % 100 / 10) === 1 || !suffixes[n] ? 'th' : suffixes[n];
-            }
-        },
-        separators: /[ \-+\/\.T:@]/g,
-        validParts: /[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,
-        intParts: /[djwNzmnyYhHgGis]/g,
-        tzParts: /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
-        tzClip: /[^-+\dA-Z]/g
-    };
-
-    DateFormatter = function (options) {
-        var self = this, config = _extend(defaultSettings, options);
-        self.dateSettings = config.dateSettings;
-        self.separators = config.separators;
-        self.validParts = config.validParts;
-        self.intParts = config.intParts;
-        self.tzParts = config.tzParts;
-        self.tzClip = config.tzClip;
-    };
-
-    DateFormatter.prototype = {
-        constructor: DateFormatter,
-        parseDate: function (vDate, vFormat) {
-            var self = this, vFormatParts, vDateParts, i, vDateFlag = false, vTimeFlag = false, vDatePart, iDatePart,
-                vSettings = self.dateSettings, vMonth, vMeriIndex, vMeriOffset, len, mer,
-                out = {date: null, year: null, month: null, day: null, hour: 0, min: 0, sec: 0};
-            if (!vDate) {
-                return undefined;
-            }
-            if (vDate instanceof Date) {
-                return vDate;
-            }
-            if (typeof vDate === 'number') {
-                return new Date(vDate);
-            }
-            if (vFormat === 'U') {
-                i = parseInt(vDate);
-                return i ? new Date(i * 1000) : vDate;
-            }
-            if (typeof vDate !== 'string') {
-                return '';
-            }
-            vFormatParts = vFormat.match(self.validParts);
-            if (!vFormatParts || vFormatParts.length === 0) {
-                throw new Error("Invalid date format definition.");
-            }
-            vDateParts = vDate.replace(self.separators, '\0').split('\0');
-            for (i = 0; i < vDateParts.length; i++) {
-                vDatePart = vDateParts[i];
-                iDatePart = parseInt(vDatePart);
-                switch (vFormatParts[i]) {
-                    case 'y':
-                    case 'Y':
-                        len = vDatePart.length;
-                        if (len === 2) {
-                            out.year = parseInt((iDatePart < 70 ? '20' : '19') + vDatePart);
-                        } else if (len === 4) {
-                            out.year = iDatePart;
-                        }
-                        vDateFlag = true;
-                        break;
-                    case 'm':
-                    case 'n':
-                    case 'M':
-                    case 'F':
-                        if (isNaN(vDatePart)) {
-                            vMonth = vSettings.monthsShort.indexOf(vDatePart);
-                            if (vMonth > -1) {
-                                out.month = vMonth + 1;
-                            }
-                            vMonth = vSettings.months.indexOf(vDatePart);
-                            if (vMonth > -1) {
-                                out.month = vMonth + 1;
-                            }
-                        } else {
-                            if (iDatePart >= 1 && iDatePart <= 12) {
-                                out.month = iDatePart;
-                            }
-                        }
-                        vDateFlag = true;
-                        break;
-                    case 'd':
-                    case 'j':
-                        if (iDatePart >= 1 && iDatePart <= 31) {
-                            out.day = iDatePart;
-                        }
-                        vDateFlag = true;
-                        break;
-                    case 'g':
-                    case 'h':
-                        vMeriIndex = (vFormatParts.indexOf('a') > -1) ? vFormatParts.indexOf('a') :
-                            (vFormatParts.indexOf('A') > -1) ? vFormatParts.indexOf('A') : -1;
-                        mer = vDateParts[vMeriIndex];
-                        if (vMeriIndex > -1) {
-                            vMeriOffset = _compare(mer, vSettings.meridiem[0]) ? 0 :
-                                (_compare(mer, vSettings.meridiem[1]) ? 12 : -1);
-                            if (iDatePart >= 1 && iDatePart <= 12 && vMeriOffset > -1) {
-                                out.hour = iDatePart + vMeriOffset;
-                            } else if (iDatePart >= 0 && iDatePart <= 23) {
-                                out.hour = iDatePart;
-                            }
-                        } else if (iDatePart >= 0 && iDatePart <= 23) {
-                            out.hour = iDatePart;
-                        }
-                        vTimeFlag = true;
-                        break;
-                    case 'G':
-                    case 'H':
-                        if (iDatePart >= 0 && iDatePart <= 23) {
-                            out.hour = iDatePart;
-                        }
-                        vTimeFlag = true;
-                        break;
-                    case 'i':
-                        if (iDatePart >= 0 && iDatePart <= 59) {
-                            out.min = iDatePart;
-                        }
-                        vTimeFlag = true;
-                        break;
-                    case 's':
-                        if (iDatePart >= 0 && iDatePart <= 59) {
-                            out.sec = iDatePart;
-                        }
-                        vTimeFlag = true;
-                        break;
-                }
-            }
-            if (vDateFlag === true && out.year && out.month && out.day) {
-                out.date = new Date(out.year, out.month - 1, out.day, out.hour, out.min, out.sec, 0);
-            } else {
-                if (vTimeFlag !== true) {
-                    return false;
-                }
-                out.date = new Date(0, 0, 0, out.hour, out.min, out.sec, 0);
-            }
-            return out.date;
-        },
-        guessDate: function (vDateStr, vFormat) {
-            if (typeof vDateStr !== 'string') {
-                return vDateStr;
-            }
-            var self = this, vParts = vDateStr.replace(self.separators, '\0').split('\0'), vPattern = /^[djmn]/g,
-                vFormatParts = vFormat.match(self.validParts), vDate = new Date(), vDigit = 0, vYear, i, iPart, iSec;
-
-            if (!vPattern.test(vFormatParts[0])) {
-                return vDateStr;
-            }
-
-            for (i = 0; i < vParts.length; i++) {
-                vDigit = 2;
-                iPart = vParts[i];
-                iSec = parseInt(iPart.substr(0, 2));
-                switch (i) {
-                    case 0:
-                        if (vFormatParts[0] === 'm' || vFormatParts[0] === 'n') {
-                            vDate.setMonth(iSec - 1);
-                        } else {
-                            vDate.setDate(iSec);
-                        }
-                        break;
-                    case 1:
-                        if (vFormatParts[0] === 'm' || vFormatParts[0] === 'n') {
-                            vDate.setDate(iSec);
-                        } else {
-                            vDate.setMonth(iSec - 1);
-                        }
-                        break;
-                    case 2:
-                        vYear = vDate.getFullYear();
-                        if (iPart.length < 4) {
-                            vDate.setFullYear(parseInt(vYear.toString().substr(0, 4 - iPart.length) + iPart));
-                            vDigit = iPart.length;
-                        } else {
-                            vDate.setFullYear = parseInt(iPart.substr(0, 4));
-                            vDigit = 4;
-                        }
-                        break;
-                    case 3:
-                        vDate.setHours(iSec);
-                        break;
-                    case 4:
-                        vDate.setMinutes(iSec);
-                        break;
-                    case 5:
-                        vDate.setSeconds(iSec);
-                        break;
-                }
-                if (iPart.substr(vDigit).length > 0) {
-                    vParts.splice(i + 1, 0, iPart.substr(vDigit));
-                }
-            }
-            return vDate;
-        },
-        parseFormat: function (vChar, vDate) {
-            var self = this, vSettings = self.dateSettings, fmt, backspace = /\\?(.?)/gi, doFormat = function (t, s) {
-                return fmt[t] ? fmt[t]() : s;
-            };
-            fmt = {
-                /////////
-                // DAY //
-                /////////
-                /**
-                 * Day of month with leading 0: `01..31`
-                 * @return {string}
-                 */
-                d: function () {
-                    return _lpad(fmt.j(), 2);
-                },
-                /**
-                 * Shorthand day name: `Mon...Sun`
-                 * @return {string}
-                 */
-                D: function () {
-                    return vSettings.daysShort[fmt.w()];
-                },
-                /**
-                 * Day of month: `1..31`
-                 * @return {number}
-                 */
-                j: function () {
-                    return vDate.getDate();
-                },
-                /**
-                 * Full day name: `Monday...Sunday`
-                 * @return {number}
-                 */
-                l: function () {
-                    return vSettings.days[fmt.w()];
-                },
-                /**
-                 * ISO-8601 day of week: `1[Mon]..7[Sun]`
-                 * @return {number}
-                 */
-                N: function () {
-                    return fmt.w() || 7;
-                },
-                /**
-                 * Day of week: `0[Sun]..6[Sat]`
-                 * @return {number}
-                 */
-                w: function () {
-                    return vDate.getDay();
-                },
-                /**
-                 * Day of year: `0..365`
-                 * @return {number}
-                 */
-                z: function () {
-                    var a = new Date(fmt.Y(), fmt.n() - 1, fmt.j()), b = new Date(fmt.Y(), 0, 1);
-                    return Math.round((a - b) / DAY);
-                },
-
-                //////////
-                // WEEK //
-                //////////
-                /**
-                 * ISO-8601 week number
-                 * @return {number}
-                 */
-                W: function () {
-                    var a = new Date(fmt.Y(), fmt.n() - 1, fmt.j() - fmt.N() + 3), b = new Date(a.getFullYear(), 0, 4);
-                    return _lpad(1 + Math.round((a - b) / DAY / 7), 2);
-                },
-
-                ///////////
-                // MONTH //
-                ///////////
-                /**
-                 * Full month name: `January...December`
-                 * @return {string}
-                 */
-                F: function () {
-                    return vSettings.months[vDate.getMonth()];
-                },
-                /**
-                 * Month w/leading 0: `01..12`
-                 * @return {string}
-                 */
-                m: function () {
-                    return _lpad(fmt.n(), 2);
-                },
-                /**
-                 * Shorthand month name; `Jan...Dec`
-                 * @return {string}
-                 */
-                M: function () {
-                    return vSettings.monthsShort[vDate.getMonth()];
-                },
-                /**
-                 * Month: `1...12`
-                 * @return {number}
-                 */
-                n: function () {
-                    return vDate.getMonth() + 1;
-                },
-                /**
-                 * Days in month: `28...31`
-                 * @return {number}
-                 */
-                t: function () {
-                    return (new Date(fmt.Y(), fmt.n(), 0)).getDate();
-                },
-
-                //////////
-                // YEAR //
-                //////////
-                /**
-                 * Is leap year? `0 or 1`
-                 * @return {number}
-                 */
-                L: function () {
-                    var Y = fmt.Y();
-                    return (Y % 4 === 0 && Y % 100 !== 0 || Y % 400 === 0) ? 1 : 0;
-                },
-                /**
-                 * ISO-8601 year
-                 * @return {number}
-                 */
-                o: function () {
-                    var n = fmt.n(), W = fmt.W(), Y = fmt.Y();
-                    return Y + (n === 12 && W < 9 ? 1 : n === 1 && W > 9 ? -1 : 0);
-                },
-                /**
-                 * Full year: `e.g. 1980...2010`
-                 * @return {number}
-                 */
-                Y: function () {
-                    return vDate.getFullYear();
-                },
-                /**
-                 * Last two digits of year: `00...99`
-                 * @return {string}
-                 */
-                y: function () {
-                    return fmt.Y().toString().slice(-2);
-                },
-
-                //////////
-                // TIME //
-                //////////
-                /**
-                 * Meridian lower: `am or pm`
-                 * @return {string}
-                 */
-                a: function () {
-                    return fmt.A().toLowerCase();
-                },
-                /**
-                 * Meridian upper: `AM or PM`
-                 * @return {string}
-                 */
-                A: function () {
-                    var n = fmt.G() < 12 ? 0 : 1;
-                    return vSettings.meridiem[n];
-                },
-                /**
-                 * Swatch Internet time: `000..999`
-                 * @return {string}
-                 */
-                B: function () {
-                    var H = vDate.getUTCHours() * HOUR, i = vDate.getUTCMinutes() * 60, s = vDate.getUTCSeconds();
-                    return _lpad(Math.floor((H + i + s + HOUR) / 86.4) % 1000, 3);
-                },
-                /**
-                 * 12-Hours: `1..12`
-                 * @return {number}
-                 */
-                g: function () {
-                    return fmt.G() % 12 || 12;
-                },
-                /**
-                 * 24-Hours: `0..23`
-                 * @return {number}
-                 */
-                G: function () {
-                    return vDate.getHours();
-                },
-                /**
-                 * 12-Hours with leading 0: `01..12`
-                 * @return {string}
-                 */
-                h: function () {
-                    return _lpad(fmt.g(), 2);
-                },
-                /**
-                 * 24-Hours w/leading 0: `00..23`
-                 * @return {string}
-                 */
-                H: function () {
-                    return _lpad(fmt.G(), 2);
-                },
-                /**
-                 * Minutes w/leading 0: `00..59`
-                 * @return {string}
-                 */
-                i: function () {
-                    return _lpad(vDate.getMinutes(), 2);
-                },
-                /**
-                 * Seconds w/leading 0: `00..59`
-                 * @return {string}
-                 */
-                s: function () {
-                    return _lpad(vDate.getSeconds(), 2);
-                },
-                /**
-                 * Microseconds: `000000-999000`
-                 * @return {string}
-                 */
-                u: function () {
-                    return _lpad(vDate.getMilliseconds() * 1000, 6);
-                },
-
-                //////////////
-                // TIMEZONE //
-                //////////////
-                /**
-                 * Timezone identifier: `e.g. Atlantic/Azores, ...`
-                 * @return {string}
-                 */
-                e: function () {
-                    var str = /\((.*)\)/.exec(String(vDate))[1];
-                    return str || 'Coordinated Universal Time';
-                },
-                /**
-                 * Timezone abbreviation: `e.g. EST, MDT, ...`
-                 * @return {string}
-                 */
-                T: function () {
-                    var str = (String(vDate).match(self.tzParts) || [""]).pop().replace(self.tzClip, "");
-                    return str || 'UTC';
-                },
-                /**
-                 * DST observed? `0 or 1`
-                 * @return {number}
-                 */
-                I: function () {
-                    var a = new Date(fmt.Y(), 0), c = Date.UTC(fmt.Y(), 0),
-                        b = new Date(fmt.Y(), 6), d = Date.UTC(fmt.Y(), 6);
-                    return ((a - c) !== (b - d)) ? 1 : 0;
-                },
-                /**
-                 * Difference to GMT in hour format: `e.g. +0200`
-                 * @return {string}
-                 */
-                O: function () {
-                    var tzo = vDate.getTimezoneOffset(), a = Math.abs(tzo);
-                    return (tzo > 0 ? '-' : '+') + _lpad(Math.floor(a / 60) * 100 + a % 60, 4);
-                },
-                /**
-                 * Difference to GMT with colon: `e.g. +02:00`
-                 * @return {string}
-                 */
-                P: function () {
-                    var O = fmt.O();
-                    return (O.substr(0, 3) + ':' + O.substr(3, 2));
-                },
-                /**
-                 * Timezone offset in seconds: `-43200...50400`
-                 * @return {number}
-                 */
-                Z: function () {
-                    return -vDate.getTimezoneOffset() * 60;
-                },
-
-                ////////////////////
-                // FULL DATE TIME //
-                ////////////////////
-                /**
-                 * ISO-8601 date
-                 * @return {string}
-                 */
-                c: function () {
-                    return 'Y-m-d\\TH:i:sP'.replace(backspace, doFormat);
-                },
-                /**
-                 * RFC 2822 date
-                 * @return {string}
-                 */
-                r: function () {
-                    return 'D, d M Y H:i:s O'.replace(backspace, doFormat);
-                },
-                /**
-                 * Seconds since UNIX epoch
-                 * @return {number}
-                 */
-                U: function () {
-                    return vDate.getTime() / 1000 || 0;
-                }
-            };
-            return doFormat(vChar, vChar);
-        },
-        formatDate: function (vDate, vFormat) {
-            var self = this, i, n, len, str, vChar, vDateStr = '';
-            if (typeof vDate === 'string') {
-                vDate = self.parseDate(vDate, vFormat);
-                if (vDate === false) {
-                    return false;
-                }
-            }
-            if (vDate instanceof Date) {
-                len = vFormat.length;
-                for (i = 0; i < len; i++) {
-                    vChar = vFormat.charAt(i);
-                    if (vChar === 'S') {
-                        continue;
-                    }
-                    str = self.parseFormat(vChar, vDate);
-                    if (i !== (len - 1) && self.intParts.test(vChar) && vFormat.charAt(i + 1) === 'S') {
-                        n = parseInt(str);
-                        str += self.dateSettings.ordinal(n);
-                    }
-                    vDateStr += str;
-                }
-                return vDateStr;
-            }
-            return '';
-        }
-    };
-})();/**
- * @preserve jQuery DateTimePicker plugin v2.5.4
- * @homepage http://xdsoft.net/jqplugins/datetimepicker/
- * @author Chupurnov Valeriy (<chupurnov@gmail.com>)
- */
-/*global DateFormatter, document,window,jQuery,setTimeout,clearTimeout,HighlightedDate,getCurrentValue*/
-;(function (factory) {
-    if ( typeof define === 'function' && define.amd ) {
-        // AMD. Register as an anonymous module.
-        define(['jquery', 'jquery-mousewheel'], factory);
-    } else if (typeof exports === 'object') {
-        // Node/CommonJS style for Browserify
-        module.exports = factory;
-    } else {
-        // Browser globals
-        factory(jQuery);
-    }
-}(function ($) {
-    'use strict';
-    
-    var currentlyScrollingTimeDiv = false;
-    
-    var default_options  = {
-        i18n: {
-            ar: { // Arabic
-                months: [
-                    "كانون الثاني", "شباط", "آذار", "نيسان", "مايو", "حزيران", "تموز", "آب", "أيلول", "تشرين الأول", "تشرين الثاني", "كانون الأول"
-                ],
-                dayOfWeekShort: [
-                    "ن", "ث", "ع", "خ", "ج", "س", "ح"
-                ],
-                dayOfWeek: ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت", "الأحد"]
-            },
-            ro: { // Romanian
-                months: [
-                    "Ianuarie", "Februarie", "Martie", "Aprilie", "Mai", "Iunie", "Iulie", "August", "Septembrie", "Octombrie", "Noiembrie", "Decembrie"
-                ],
-                dayOfWeekShort: [
-                    "Du", "Lu", "Ma", "Mi", "Jo", "Vi", "Sâ"
-                ],
-                dayOfWeek: ["Duminică", "Luni", "Marţi", "Miercuri", "Joi", "Vineri", "Sâmbătă"]
-            },
-            id: { // Indonesian
-                months: [
-                    "Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"
-                ],
-                dayOfWeekShort: [
-                    "Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"
-                ],
-                dayOfWeek: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"]
-            },
-            is: { // Icelandic
-                months: [
-                    "Janúar", "Febrúar", "Mars", "Apríl", "Maí", "Júní", "Júlí", "Ágúst", "September", "Október", "Nóvember", "Desember"
-                ],
-                dayOfWeekShort: [
-                    "Sun", "Mán", "Þrið", "Mið", "Fim", "Fös", "Lau"
-                ],
-                dayOfWeek: ["Sunnudagur", "Mánudagur", "Þriðjudagur", "Miðvikudagur", "Fimmtudagur", "Föstudagur", "Laugardagur"]
-            },
-            bg: { // Bulgarian
-                months: [
-                    "Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"
-                ],
-                dayOfWeekShort: [
-                    "Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"
-                ],
-                dayOfWeek: ["Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота"]
-            },
-            fa: { // Persian/Farsi
-                months: [
-                    'فروردین', 'اردیبهشت', 'خرداد', 'تیر', 'مرداد', 'شهریور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'
-                ],
-                dayOfWeekShort: [
-                    'یکشنبه', 'دوشنبه', 'سه شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'
-                ],
-                dayOfWeek: ["یک‌شنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنج‌شنبه", "جمعه", "شنبه", "یک‌شنبه"]
-            },
-            ru: { // Russian
-                months: [
-                    'Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'
-                ],
-                dayOfWeekShort: [
-                    "Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"
-                ],
-                dayOfWeek: ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"]
-            },
-            uk: { // Ukrainian
-                months: [
-                    'Січень', 'Лютий', 'Березень', 'Квітень', 'Травень', 'Червень', 'Липень', 'Серпень', 'Вересень', 'Жовтень', 'Листопад', 'Грудень'
-                ],
-                dayOfWeekShort: [
-                    "Ндл", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Сбт"
-                ],
-                dayOfWeek: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"]
-            },
-            en: { // English
-                months: [
-                    "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
-                ],
-                dayOfWeekShort: [
-                    "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
-                ],
-                dayOfWeek: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
-            },
-            el: { // Ελληνικά
-                months: [
-                    "Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάιος", "Ιούνιος", "Ιούλιος", "Αύγουστος", "Σεπτέμβριος", "Οκτώβριος", "Νοέμβριος", "Δεκέμβριος"
-                ],
-                dayOfWeekShort: [
-                    "Κυρ", "Δευ", "Τρι", "Τετ", "Πεμ", "Παρ", "Σαβ"
-                ],
-                dayOfWeek: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"]
-            },
-            de: { // German
-                months: [
-                    'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'
-                ],
-                dayOfWeekShort: [
-                    "So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"
-                ],
-                dayOfWeek: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]
-            },
-            nl: { // Dutch
-                months: [
-                    "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"
-                ],
-                dayOfWeekShort: [
-                    "zo", "ma", "di", "wo", "do", "vr", "za"
-                ],
-                dayOfWeek: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"]
-            },
-            tr: { // Turkish
-                months: [
-                    "Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"
-                ],
-                dayOfWeekShort: [
-                    "Paz", "Pts", "Sal", "Çar", "Per", "Cum", "Cts"
-                ],
-                dayOfWeek: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"]
-            },
-            fr: { //French
-                months: [
-                    "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"
-                ],
-                dayOfWeekShort: [
-                    "Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"
-                ],
-                dayOfWeek: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"]
-            },
-            es: { // Spanish
-                months: [
-                    "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"
-                ],
-                dayOfWeekShort: [
-                    "Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"
-                ],
-                dayOfWeek: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"]
-            },
-            th: { // Thai
-                months: [
-                    'มกราคม', 'กุมภาพันธ์', 'มีนาคม', 'เมษายน', 'พฤษภาคม', 'มิถุนายน', 'กรกฎาคม', 'สิงหาคม', 'กันยายน', 'ตุลาคม', 'พฤศจิกายน', 'ธันวาคม'
-                ],
-                dayOfWeekShort: [
-                    'อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'
-                ],
-                dayOfWeek: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัส", "ศุกร์", "เสาร์", "อาทิตย์"]
-            },
-            pl: { // Polish
-                months: [
-                    "styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień"
-                ],
-                dayOfWeekShort: [
-                    "nd", "pn", "wt", "śr", "cz", "pt", "sb"
-                ],
-                dayOfWeek: ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"]
-            },
-            pt: { // Portuguese
-                months: [
-                    "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"
-                ],
-                dayOfWeekShort: [
-                    "Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"
-                ],
-                dayOfWeek: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"]
-            },
-            ch: { // Simplified Chinese
-                months: [
-                    "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
-                ],
-                dayOfWeekShort: [
-                    "日", "一", "二", "三", "四", "五", "六"
-                ]
-            },
-            se: { // Swedish
-                months: [
-                    "Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September",  "Oktober", "November", "December"
-                ],
-                dayOfWeekShort: [
-                    "Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"
-                ]
-            },
-            kr: { // Korean
-                months: [
-                    "1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"
-                ],
-                dayOfWeekShort: [
-                    "일", "월", "화", "수", "목", "금", "토"
-                ],
-                dayOfWeek: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"]
-            },
-            it: { // Italian
-                months: [
-                    "Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"
-                ],
-                dayOfWeekShort: [
-                    "Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"
-                ],
-                dayOfWeek: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"]
-            },
-            da: { // Dansk
-                months: [
-                    "January", "Februar", "Marts", "April", "Maj", "Juni", "July", "August", "September", "Oktober", "November", "December"
-                ],
-                dayOfWeekShort: [
-                    "Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"
-                ],
-                dayOfWeek: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"]
-            },
-            no: { // Norwegian
-                months: [
-                    "Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"
-                ],
-                dayOfWeekShort: [
-                    "Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"
-                ],
-                dayOfWeek: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag']
-            },
-            ja: { // Japanese
-                months: [
-                    "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"
-                ],
-                dayOfWeekShort: [
-                    "日", "月", "火", "水", "木", "金", "土"
-                ],
-                dayOfWeek: ["日曜", "月曜", "火曜", "水曜", "木曜", "金曜", "土曜"]
-            },
-            vi: { // Vietnamese
-                months: [
-                    "Tháng 1", "Tháng 2", "Tháng 3", "Tháng 4", "Tháng 5", "Tháng 6", "Tháng 7", "Tháng 8", "Tháng 9", "Tháng 10", "Tháng 11", "Tháng 12"
-                ],
-                dayOfWeekShort: [
-                    "CN", "T2", "T3", "T4", "T5", "T6", "T7"
-                ],
-                dayOfWeek: ["Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"]
-            },
-            sl: { // Slovenščina
-                months: [
-                    "Januar", "Februar", "Marec", "April", "Maj", "Junij", "Julij", "Avgust", "September", "Oktober", "November", "December"
-                ],
-                dayOfWeekShort: [
-                    "Ned", "Pon", "Tor", "Sre", "Čet", "Pet", "Sob"
-                ],
-                dayOfWeek: ["Nedelja", "Ponedeljek", "Torek", "Sreda", "Četrtek", "Petek", "Sobota"]
-            },
-            cs: { // Čeština
-                months: [
-                    "Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"
-                ],
-                dayOfWeekShort: [
-                    "Ne", "Po", "Út", "St", "Čt", "Pá", "So"
-                ]
-            },
-            hu: { // Hungarian
-                months: [
-                    "Január", "Február", "Március", "Április", "Május", "Június", "Július", "Augusztus", "Szeptember", "Október", "November", "December"
-                ],
-                dayOfWeekShort: [
-                    "Va", "Hé", "Ke", "Sze", "Cs", "Pé", "Szo"
-                ],
-                dayOfWeek: ["vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat"]
-            },
-            az: { //Azerbaijanian (Azeri)
-                months: [
-                    "Yanvar", "Fevral", "Mart", "Aprel", "May", "Iyun", "Iyul", "Avqust", "Sentyabr", "Oktyabr", "Noyabr", "Dekabr"
-                ],
-                dayOfWeekShort: [
-                    "B", "Be", "Ça", "Ç", "Ca", "C", "Ş"
-                ],
-                dayOfWeek: ["Bazar", "Bazar ertəsi", "Çərşənbə axşamı", "Çərşənbə", "Cümə axşamı", "Cümə", "Şənbə"]
-            },
-            bs: { //Bosanski
-                months: [
-                    "Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"
-                ],
-                dayOfWeekShort: [
-                    "Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"
-                ],
-                dayOfWeek: ["Nedjelja","Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"]
-            },
-            ca: { //Català
-                months: [
-                    "Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"
-                ],
-                dayOfWeekShort: [
-                    "Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds"
-                ],
-                dayOfWeek: ["Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"]
-            },
-            'en-GB': { //English (British)
-                months: [
-                    "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
-                ],
-                dayOfWeekShort: [
-                    "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
-                ],
-                dayOfWeek: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
-            },
-            et: { //"Eesti"
-                months: [
-                    "Jaanuar", "Veebruar", "Märts", "Aprill", "Mai", "Juuni", "Juuli", "August", "September", "Oktoober", "November", "Detsember"
-                ],
-                dayOfWeekShort: [
-                    "P", "E", "T", "K", "N", "R", "L"
-                ],
-                dayOfWeek: ["Pühapäev", "Esmaspäev", "Teisipäev", "Kolmapäev", "Neljapäev", "Reede", "Laupäev"]
-            },
-            eu: { //Euskara
-                months: [
-                    "Urtarrila", "Otsaila", "Martxoa", "Apirila", "Maiatza", "Ekaina", "Uztaila", "Abuztua", "Iraila", "Urria", "Azaroa", "Abendua"
-                ],
-                dayOfWeekShort: [
-                    "Ig.", "Al.", "Ar.", "Az.", "Og.", "Or.", "La."
-                ],
-                dayOfWeek: ['Igandea', 'Astelehena', 'Asteartea', 'Asteazkena', 'Osteguna', 'Ostirala', 'Larunbata']
-            },
-            fi: { //Finnish (Suomi)
-                months: [
-                    "Tammikuu", "Helmikuu", "Maaliskuu", "Huhtikuu", "Toukokuu", "Kesäkuu", "Heinäkuu", "Elokuu", "Syyskuu", "Lokakuu", "Marraskuu", "Joulukuu"
-                ],
-                dayOfWeekShort: [
-                    "Su", "Ma", "Ti", "Ke", "To", "Pe", "La"
-                ],
-                dayOfWeek: ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"]
-            },
-            gl: { //Galego
-                months: [
-                    "Xan", "Feb", "Maz", "Abr", "Mai", "Xun", "Xul", "Ago", "Set", "Out", "Nov", "Dec"
-                ],
-                dayOfWeekShort: [
-                    "Dom", "Lun", "Mar", "Mer", "Xov", "Ven", "Sab"
-                ],
-                dayOfWeek: ["Domingo", "Luns", "Martes", "Mércores", "Xoves", "Venres", "Sábado"]
-            },
-            hr: { //Hrvatski
-                months: [
-                    "Siječanj", "Veljača", "Ožujak", "Travanj", "Svibanj", "Lipanj", "Srpanj", "Kolovoz", "Rujan", "Listopad", "Studeni", "Prosinac"
-                ],
-                dayOfWeekShort: [
-                    "Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"
-                ],
-                dayOfWeek: ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"]
-            },
-            ko: { //Korean (한국어)
-                months: [
-                    "1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"
-                ],
-                dayOfWeekShort: [
-                    "일", "월", "화", "수", "목", "금", "토"
-                ],
-                dayOfWeek: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"]
-            },
-            lt: { //Lithuanian (lietuvių)
-                months: [
-                    "Sausio", "Vasario", "Kovo", "Balandžio", "Gegužės", "Birželio", "Liepos", "Rugpjūčio", "Rugsėjo", "Spalio", "Lapkričio", "Gruodžio"
-                ],
-                dayOfWeekShort: [
-                    "Sek", "Pir", "Ant", "Tre", "Ket", "Pen", "Šeš"
-                ],
-                dayOfWeek: ["Sekmadienis", "Pirmadienis", "Antradienis", "Trečiadienis", "Ketvirtadienis", "Penktadienis", "Šeštadienis"]
-            },
-            lv: { //Latvian (Latviešu)
-                months: [
-                    "Janvāris", "Februāris", "Marts", "Aprīlis ", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"
-                ],
-                dayOfWeekShort: [
-                    "Sv", "Pr", "Ot", "Tr", "Ct", "Pk", "St"
-                ],
-                dayOfWeek: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena"]
-            },
-            mk: { //Macedonian (Македонски)
-                months: [
-                    "јануари", "февруари", "март", "април", "мај", "јуни", "јули", "август", "септември", "октомври", "ноември", "декември"
-                ],
-                dayOfWeekShort: [
-                    "нед", "пон", "вто", "сре", "чет", "пет", "саб"
-                ],
-                dayOfWeek: ["Недела", "Понеделник", "Вторник", "Среда", "Четврток", "Петок", "Сабота"]
-            },
-            mn: { //Mongolian (Монгол)
-                months: [
-                    "1-р сар", "2-р сар", "3-р сар", "4-р сар", "5-р сар", "6-р сар", "7-р сар", "8-р сар", "9-р сар", "10-р сар", "11-р сар", "12-р сар"
-                ],
-                dayOfWeekShort: [
-                    "Дав", "Мяг", "Лха", "Пүр", "Бсн", "Бям", "Ням"
-                ],
-                dayOfWeek: ["Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба", "Ням"]
-            },
-            'pt-BR': { //Português(Brasil)
-                months: [
-                    "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"
-                ],
-                dayOfWeekShort: [
-                    "Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"
-                ],
-                dayOfWeek: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"]
-            },
-            sk: { //Slovenčina
-                months: [
-                    "Január", "Február", "Marec", "Apríl", "Máj", "Jún", "Júl", "August", "September", "Október", "November", "December"
-                ],
-                dayOfWeekShort: [
-                    "Ne", "Po", "Ut", "St", "Št", "Pi", "So"
-                ],
-                dayOfWeek: ["Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatok", "Sobota"]
-            },
-            sq: { //Albanian (Shqip)
-                months: [
-                    "Janar", "Shkurt", "Mars", "Prill", "Maj", "Qershor", "Korrik", "Gusht", "Shtator", "Tetor", "Nëntor", "Dhjetor"
-                ],
-                dayOfWeekShort: [
-                    "Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Shtu"
-                ],
-                dayOfWeek: ["E Diel", "E Hënë", "E Martē", "E Mërkurë", "E Enjte", "E Premte", "E Shtunë"]
-            },
-            'sr-YU': { //Serbian (Srpski)
-                months: [
-                    "Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"
-                ],
-                dayOfWeekShort: [
-                    "Ned", "Pon", "Uto", "Sre", "čet", "Pet", "Sub"
-                ],
-                dayOfWeek: ["Nedelja","Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota"]
-            },
-            sr: { //Serbian Cyrillic (Српски)
-                months: [
-                    "јануар", "фебруар", "март", "април", "мај", "јун", "јул", "август", "септембар", "октобар", "новембар", "децембар"
-                ],
-                dayOfWeekShort: [
-                    "нед", "пон", "уто", "сре", "чет", "пет", "суб"
-                ],
-                dayOfWeek: ["Недеља","Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота"]
-            },
-            sv: { //Svenska
-                months: [
-                    "Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"
-                ],
-                dayOfWeekShort: [
-                    "Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"
-                ],
-                dayOfWeek: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"]
-            },
-            'zh-TW': { //Traditional Chinese (繁體中文)
-                months: [
-                    "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
-                ],
-                dayOfWeekShort: [
-                    "日", "一", "二", "三", "四", "五", "六"
-                ],
-                dayOfWeek: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
-            },
-            zh: { //Simplified Chinese (简体中文)
-                months: [
-                    "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
-                ],
-                dayOfWeekShort: [
-                    "日", "一", "二", "三", "四", "五", "六"
-                ],
-                dayOfWeek: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
-            },
-            he: { //Hebrew (עברית)
-                months: [
-                    'ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'
-                ],
-                dayOfWeekShort: [
-                    'א\'', 'ב\'', 'ג\'', 'ד\'', 'ה\'', 'ו\'', 'שבת'
-                ],
-                dayOfWeek: ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת", "ראשון"]
-            },
-            hy: { // Armenian
-                months: [
-                    "Հունվար", "Փետրվար", "Մարտ", "Ապրիլ", "Մայիս", "Հունիս", "Հուլիս", "Օգոստոս", "Սեպտեմբեր", "Հոկտեմբեր", "Նոյեմբեր", "Դեկտեմբեր"
-                ],
-                dayOfWeekShort: [
-                    "Կի", "Երկ", "Երք", "Չոր", "Հնգ", "Ուրբ", "Շբթ"
-                ],
-                dayOfWeek: ["Կիրակի", "Երկուշաբթի", "Երեքշաբթի", "Չորեքշաբթի", "Հինգշաբթի", "Ուրբաթ", "Շաբաթ"]
-            },
-            kg: { // Kyrgyz
-                months: [
-                    'Үчтүн айы', 'Бирдин айы', 'Жалган Куран', 'Чын Куран', 'Бугу', 'Кулжа', 'Теке', 'Баш Оона', 'Аяк Оона', 'Тогуздун айы', 'Жетинин айы', 'Бештин айы'
-                ],
-                dayOfWeekShort: [
-                    "Жек", "Дүй", "Шей", "Шар", "Бей", "Жум", "Ише"
-                ],
-                dayOfWeek: [
-                    "Жекшемб", "Дүйшөмб", "Шейшемб", "Шаршемб", "Бейшемби", "Жума", "Ишенб"
-                ]
-            },
-            rm: { // Romansh
-                months: [
-                    "Schaner", "Favrer", "Mars", "Avrigl", "Matg", "Zercladur", "Fanadur", "Avust", "Settember", "October", "November", "December"
-                ],
-                dayOfWeekShort: [
-                    "Du", "Gli", "Ma", "Me", "Gie", "Ve", "So"
-                ],
-                dayOfWeek: [
-                    "Dumengia", "Glindesdi", "Mardi", "Mesemna", "Gievgia", "Venderdi", "Sonda"
-                ]
-            },
-            ka: { // Georgian
-                months: [
-                    'იანვარი', 'თებერვალი', 'მარტი', 'აპრილი', 'მაისი', 'ივნისი', 'ივლისი', 'აგვისტო', 'სექტემბერი', 'ოქტომბერი', 'ნოემბერი', 'დეკემბერი'
-                ],
-                dayOfWeekShort: [
-                    "კვ", "ორშ", "სამშ", "ოთხ", "ხუთ", "პარ", "შაბ"
-                ],
-                dayOfWeek: ["კვირა", "ორშაბათი", "სამშაბათი", "ოთხშაბათი", "ხუთშაბათი", "პარასკევი", "შაბათი"]
-            },
-        },
-        value: '',
-        rtl: false,
-
-        format:    'Y/m/d H:i',
-        formatTime:    'H:i',
-        formatDate:    'Y/m/d',
-
-        startDate:    false, // new Date(), '1986/12/08', '-1970/01/05','-1970/01/05',
-        step: 60,
-        monthChangeSpinner: true,
-
-        closeOnDateSelect: false,
-        closeOnTimeSelect: true,
-        closeOnWithoutClick: true,
-        closeOnInputClick: true,
-
-        timepicker: true,
-        datepicker: true,
-        weeks: false,
-
-        defaultTime: false,    // use formatTime format (ex. '10:00' for formatTime:    'H:i')
-        defaultDate: false,    // use formatDate format (ex new Date() or '1986/12/08' or '-1970/01/05' or '-1970/01/05')
-
-        minDate: false,
-        maxDate: false,
-        minTime: false,
-        maxTime: false,
-        disabledMinTime: false,
-        disabledMaxTime: false,
-
-        allowTimes: [],
-        opened: false,
-        initTime: true,
-        inline: false,
-        theme: '',
-
-        onSelectDate: function () {},
-        onSelectTime: function () {},
-        onChangeMonth: function () {},
-        onGetWeekOfYear: function () {},
-        onChangeYear: function () {},
-        onChangeDateTime: function () {},
-        onShow: function () {},
-        onClose: function () {},
-        onGenerate: function () {},
-
-        withoutCopyright: true,
-        inverseButton: false,
-        hours12: false,
-        next: 'xdsoft_next',
-        prev : 'xdsoft_prev',
-        dayOfWeekStart: 0,
-        parentID: 'body',
-        timeHeightInTimePicker: 25,
-        timepickerScrollbar: true,
-        todayButton: true,
-        prevButton: true,
-        nextButton: true,
-        defaultSelect: true,
-
-        scrollMonth: true,
-        scrollTime: true,
-        scrollInput: true,
-
-        lazyInit: false,
-        mask: false,
-        validateOnBlur: true,
-        allowBlank: true,
-        yearStart: 1950,
-        yearEnd: 2050,
-        monthStart: 0,
-        monthEnd: 11,
-        style: '',
-        id: '',
-        fixed: false,
-        roundTime: 'round', // ceil, floor
-        className: '',
-        weekends: [],
-        highlightedDates: [],
-        highlightedPeriods: [],
-        allowDates : [],
-        allowDateRe : null,
-        disabledDates : [],
-        disabledWeekDays: [],
-        yearOffset: 0,
-        beforeShowDay: null,
-
-        enterLikeTab: true,
-        showApplyButton: false
-    };
-
-    var dateHelper = null,
-        globalLocaleDefault = 'en',
-        globalLocale = 'en';
-
-    var dateFormatterOptionsDefault = {
-        meridiem: ['AM', 'PM']
-    };
-
-    var initDateFormatter = function(){
-        var locale = default_options.i18n[globalLocale],
-            opts = {
-                days: locale.dayOfWeek,
-                daysShort: locale.dayOfWeekShort,
-                months: locale.months,
-                monthsShort: $.map(locale.months, function(n){ return n.substring(0, 3) }),
-            };
-
-         dateHelper = new DateFormatter({
-            dateSettings: $.extend({}, dateFormatterOptionsDefault, opts)
-        });
-    };
-
-    // for locale settings
-    $.datetimepicker = {
-        setLocale: function(locale){
-            var newLocale = default_options.i18n[locale]?locale:globalLocaleDefault;
-            if(globalLocale != newLocale){
-                globalLocale = newLocale;
-                // reinit date formatter
-                initDateFormatter();
-            }
-        },
-        setDateFormatter: function(dateFormatter) {
-            dateHelper = dateFormatter;
-        },
-        RFC_2822: 'D, d M Y H:i:s O',
-        ATOM: 'Y-m-d\TH:i:sP',
-        ISO_8601: 'Y-m-d\TH:i:sO',
-        RFC_822: 'D, d M y H:i:s O',
-        RFC_850: 'l, d-M-y H:i:s T',
-        RFC_1036: 'D, d M y H:i:s O',
-        RFC_1123: 'D, d M Y H:i:s O',
-        RSS: 'D, d M Y H:i:s O',
-        W3C: 'Y-m-d\TH:i:sP'
-    };
-
-    // first init date formatter
-    initDateFormatter();
-
-    // fix for ie8
-    if (!window.getComputedStyle) {
-        window.getComputedStyle = function (el, pseudo) {
-            this.el = el;
-            this.getPropertyValue = function (prop) {
-                var re = /(\-([a-z]){1})/g;
-                if (prop === 'float') {
-                    prop = 'styleFloat';
-                }
-                if (re.test(prop)) {
-                    prop = prop.replace(re, function (a, b, c) {
-                        return c.toUpperCase();
-                    });
-                }
-                return el.currentStyle[prop] || null;
-            };
-            return this;
-        };
-    }
-    if (!Array.prototype.indexOf) {
-        Array.prototype.indexOf = function (obj, start) {
-            var i, j;
-            for (i = (start || 0), j = this.length; i < j; i += 1) {
-                if (this[i] === obj) { return i; }
-            }
-            return -1;
-        };
-    }
-    Date.prototype.countDaysInMonth = function () {
-        return new Date(this.getFullYear(), this.getMonth() + 1, 0).getDate();
-    };
-    $.fn.xdsoftScroller = function (percent) {
-        return this.each(function () {
-            var timeboxparent = $(this),
-                pointerEventToXY = function (e) {
-                    var out = {x: 0, y: 0},
-                        touch;
-                    if (e.type === 'touchstart' || e.type === 'touchmove' || e.type === 'touchend' || e.type === 'touchcancel') {
-                        touch  = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
-                        out.x = touch.clientX;
-                        out.y = touch.clientY;
-                    } else if (e.type === 'mousedown' || e.type === 'mouseup' || e.type === 'mousemove' || e.type === 'mouseover' || e.type === 'mouseout' || e.type === 'mouseenter' || e.type === 'mouseleave') {
-                        out.x = e.clientX;
-                        out.y = e.clientY;
-                    }
-                    return out;
-                },
-                timebox,
-                parentHeight,
-                height,
-                scrollbar,
-                scroller,
-                maximumOffset = 100,
-                start = false,
-                startY = 0,
-                startTop = 0,
-                h1 = 0,
-                touchStart = false,
-                startTopScroll = 0,
-                calcOffset = function () {};
-            if (percent === 'hide') {
-                timeboxparent.find('.xdsoft_scrollbar').hide();
-                return;
-            }
-            if (!$(this).hasClass('xdsoft_scroller_box')) {
-                timebox = timeboxparent.children().eq(0);
-                parentHeight = timeboxparent[0].clientHeight;
-                height = timebox[0].offsetHeight;
-                scrollbar = $('<div class="xdsoft_scrollbar"></div>');
-                scroller = $('<div class="xdsoft_scroller"></div>');
-                scrollbar.append(scroller);
-
-                timeboxparent.addClass('xdsoft_scroller_box').append(scrollbar);
-                calcOffset = function calcOffset(event) {
-                    var offset = pointerEventToXY(event).y - startY + startTopScroll;
-                    if (offset < 0) {
-                        offset = 0;
-                    }
-                    if (offset + scroller[0].offsetHeight > h1) {
-                        offset = h1 - scroller[0].offsetHeight;
-                    }
-                    timeboxparent.trigger('scroll_element.xdsoft_scroller', [maximumOffset ? offset / maximumOffset : 0]);
-                };
-
-                scroller
-                    .on('touchstart.xdsoft_scroller mousedown.xdsoft_scroller', function (event) {
-                        if (!parentHeight) {
-                            timeboxparent.trigger('resize_scroll.xdsoft_scroller', [percent]);
-                        }
-
-                        startY = pointerEventToXY(event).y;
-                        startTopScroll = parseInt(scroller.css('margin-top'), 10);
-                        h1 = scrollbar[0].offsetHeight;
-
-                        if (event.type === 'mousedown' || event.type === 'touchstart') {
-                            if (document) {
-                                $(document.body).addClass('xdsoft_noselect');
-                            }
-                            $([document.body, window]).on('touchend mouseup.xdsoft_scroller', function arguments_callee() {
-                                $([document.body, window]).off('touchend mouseup.xdsoft_scroller', arguments_callee)
-                                    .off('mousemove.xdsoft_scroller', calcOffset)
-                                    .removeClass('xdsoft_noselect');
-                            });
-                            $(document.body).on('mousemove.xdsoft_scroller', calcOffset);
-                        } else {
-                            touchStart = true;
-                            event.stopPropagation();
-                            event.preventDefault();
-                        }
-                    })
-                    .on('touchmove', function (event) {
-                        if (touchStart) {
-                            event.preventDefault();
-                            calcOffset(event);
-                        }
-                    })
-                    .on('touchend touchcancel', function () {
-                        touchStart =  false;
-                        startTopScroll = 0;
-                    });
-
-                timeboxparent
-                    .on('scroll_element.xdsoft_scroller', function (event, percentage) {
-                        if (!parentHeight) {
-                            timeboxparent.trigger('resize_scroll.xdsoft_scroller', [percentage, true]);
-                        }
-                        percentage = percentage > 1 ? 1 : (percentage < 0 || isNaN(percentage)) ? 0 : percentage;
-
-                        scroller.css('margin-top', maximumOffset * percentage);
-
-                        setTimeout(function () {
-                            timebox.css('marginTop', -parseInt((timebox[0].offsetHeight - parentHeight) * percentage, 10));
-                        }, 10);
-                    })
-                    .on('resize_scroll.xdsoft_scroller', function (event, percentage, noTriggerScroll) {
-                        var percent, sh;
-                        parentHeight = timeboxparent[0].clientHeight;
-                        height = timebox[0].offsetHeight;
-                        percent = parentHeight / height;
-                        sh = percent * scrollbar[0].offsetHeight;
-                        if (percent > 1) {
-                            scroller.hide();
-                        } else {
-                            scroller.show();
-                            scroller.css('height', parseInt(sh > 10 ? sh : 10, 10));
-                            maximumOffset = scrollbar[0].offsetHeight - scroller[0].offsetHeight;
-                            if (noTriggerScroll !== true) {
-                                timeboxparent.trigger('scroll_element.xdsoft_scroller', [percentage || Math.abs(parseInt(timebox.css('marginTop'), 10)) / (height - parentHeight)]);
-                            }
-                        }
-                    });
-
-                timeboxparent.on('mousewheel', function (event) {
-                    var top = Math.abs(parseInt(timebox.css('marginTop'), 10));
-
-                    top = top - (event.deltaY * 20);
-                    if (top < 0) {
-                        top = 0;
-                    }
-
-                    timeboxparent.trigger('scroll_element.xdsoft_scroller', [top / (height - parentHeight)]);
-                    event.stopPropagation();
-                    return false;
-                });
-
-                timeboxparent.on('touchstart', function (event) {
-                    start = pointerEventToXY(event);
-                    startTop = Math.abs(parseInt(timebox.css('marginTop'), 10));
-                });
-
-                timeboxparent.on('touchmove', function (event) {
-                    if (start) {
-                        event.preventDefault();
-                        var coord = pointerEventToXY(event);
-                        timeboxparent.trigger('scroll_element.xdsoft_scroller', [(startTop - (coord.y - start.y)) / (height - parentHeight)]);
-                    }
-                });
-
-                timeboxparent.on('touchend touchcancel', function () {
-                    start = false;
-                    startTop = 0;
-                });
-            }
-            timeboxparent.trigger('resize_scroll.xdsoft_scroller', [percent]);
-        });
-    };
-
-    $.fn.datetimepicker = function (opt, opt2) {
-        var result = this,
-            KEY0 = 48,
-            KEY9 = 57,
-            _KEY0 = 96,
-            _KEY9 = 105,
-            CTRLKEY = 17,
-            DEL = 46,
-            ENTER = 13,
-            ESC = 27,
-            BACKSPACE = 8,
-            ARROWLEFT = 37,
-            ARROWUP = 38,
-            ARROWRIGHT = 39,
-            ARROWDOWN = 40,
-            TAB = 9,
-            F5 = 116,
-            AKEY = 65,
-            CKEY = 67,
-            VKEY = 86,
-            ZKEY = 90,
-            YKEY = 89,
-            ctrlDown    =    false,
-            options = ($.isPlainObject(opt) || !opt) ? $.extend(true, {}, default_options, opt) : $.extend(true, {}, default_options),
-
-            lazyInitTimer = 0,
-            createDateTimePicker,
-            destroyDateTimePicker,
-
-            lazyInit = function (input) {
-                input
-                    .on('open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart', function initOnActionCallback() {
-                        if (input.is(':disabled') || input.data('xdsoft_datetimepicker')) {
-                            return;
-                        }
-                        clearTimeout(lazyInitTimer);
-                        lazyInitTimer = setTimeout(function () {
-
-                            if (!input.data('xdsoft_datetimepicker')) {
-                                createDateTimePicker(input);
-                            }
-                            input
-                                .off('open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart', initOnActionCallback)
-                                .trigger('open.xdsoft');
-                        }, 100);
-                    });
-            };
-
-        createDateTimePicker = function (input) {
-            var datetimepicker = $('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),
-                xdsoft_copyright = $('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),
-                datepicker = $('<div class="xdsoft_datepicker active"></div>'),
-                month_picker = $('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button>' +
-                    '<div class="xdsoft_label xdsoft_month"><span></span><i></i></div>' +
-                    '<div class="xdsoft_label xdsoft_year"><span></span><i></i></div>' +
-                    '<button type="button" class="xdsoft_next"></button></div>'),
-                calendar = $('<div class="xdsoft_calendar"></div>'),
-                timepicker = $('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),
-                timeboxparent = timepicker.find('.xdsoft_time_box').eq(0),
-                timebox = $('<div class="xdsoft_time_variant"></div>'),
-                applyButton = $('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),
-
-                monthselect = $('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),
-                yearselect = $('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),
-                triggerAfterOpen = false,
-                XDSoft_datetime,
-
-                xchangeTimer,
-                timerclick,
-                current_time_index,
-                setPos,
-                timer = 0,
-                _xdsoft_datetime,
-                forEachAncestorOf,
-                throttle;
-
-            if (options.id) {
-                datetimepicker.attr('id', options.id);
-            }
-            if (options.style) {
-                datetimepicker.attr('style', options.style);
-            }
-            if (options.weeks) {
-                datetimepicker.addClass('xdsoft_showweeks');
-            }
-            if (options.rtl) {
-                datetimepicker.addClass('xdsoft_rtl');
-            }
-
-            datetimepicker.addClass('xdsoft_' + options.theme);
-            datetimepicker.addClass(options.className);
-
-            month_picker
-                .find('.xdsoft_month span')
-                    .after(monthselect);
-            month_picker
-                .find('.xdsoft_year span')
-                    .after(yearselect);
-
-            month_picker
-                .find('.xdsoft_month,.xdsoft_year')
-                    .on('touchstart mousedown.xdsoft', function (event) {
-                    var select = $(this).find('.xdsoft_select').eq(0),
-                        val = 0,
-                        top = 0,
-                        visible = select.is(':visible'),
-                        items,
-                        i;
-
-                    month_picker
-                        .find('.xdsoft_select')
-                            .hide();
-                    if (_xdsoft_datetime.currentTime) {
-                        val = _xdsoft_datetime.currentTime[$(this).hasClass('xdsoft_month') ? 'getMonth' : 'getFullYear']();
-                    }
-
-                    select[visible ? 'hide' : 'show']();
-                    for (items = select.find('div.xdsoft_option'), i = 0; i < items.length; i += 1) {
-                        if (items.eq(i).data('value') === val) {
-                            break;
-                        } else {
-                            top += items[0].offsetHeight;
-                        }
-                    }
-
-                    select.xdsoftScroller(top / (select.children()[0].offsetHeight - (select[0].clientHeight)));
-                    event.stopPropagation();
-                    return false;
-                });
-
-            month_picker
-                .find('.xdsoft_select')
-                    .xdsoftScroller()
-                .on('touchstart mousedown.xdsoft', function (event) {
-                    event.stopPropagation();
-                    event.preventDefault();
-                })
-                .on('touchstart mousedown.xdsoft', '.xdsoft_option', function () {
-                    if (_xdsoft_datetime.currentTime === undefined || _xdsoft_datetime.currentTime === null) {
-                        _xdsoft_datetime.currentTime = _xdsoft_datetime.now();
-                    }
-
-                    var year = _xdsoft_datetime.currentTime.getFullYear();
-                    if (_xdsoft_datetime && _xdsoft_datetime.currentTime) {
-                        _xdsoft_datetime.currentTime[$(this).parent().parent().hasClass('xdsoft_monthselect') ? 'setMonth' : 'setFullYear']($(this).data('value'));
-                    }
-
-                    $(this).parent().parent().hide();
-
-                    datetimepicker.trigger('xchange.xdsoft');
-                    if (options.onChangeMonth && $.isFunction(options.onChangeMonth)) {
-                        options.onChangeMonth.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
-                    }
-
-                    if (year !== _xdsoft_datetime.currentTime.getFullYear() && $.isFunction(options.onChangeYear)) {
-                        options.onChangeYear.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
-                    }
-                });
-
-            datetimepicker.getValue = function () {
-                return _xdsoft_datetime.getCurrentTime();
-            };
-
-            datetimepicker.setOptions = function (_options) {
-                var highlightedDates = {};
-
-                options = $.extend(true, {}, options, _options);
-
-                if (_options.allowTimes && $.isArray(_options.allowTimes) && _options.allowTimes.length) {
-                    options.allowTimes = $.extend(true, [], _options.allowTimes);
-                }
-
-                if (_options.weekends && $.isArray(_options.weekends) && _options.weekends.length) {
-                    options.weekends = $.extend(true, [], _options.weekends);
-                }
-
-                if (_options.allowDates && $.isArray(_options.allowDates) && _options.allowDates.length) {
-                    options.allowDates = $.extend(true, [], _options.allowDates);
-                }
-
-                if (_options.allowDateRe && Object.prototype.toString.call(_options.allowDateRe)==="[object String]") {
-                    options.allowDateRe = new RegExp(_options.allowDateRe);
-                }
-
-                if (_options.highlightedDates && $.isArray(_options.highlightedDates) && _options.highlightedDates.length) {
-                    $.each(_options.highlightedDates, function (index, value) {
-                        var splitData = $.map(value.split(','), $.trim),
-                            exDesc,
-                            hDate = new HighlightedDate(dateHelper.parseDate(splitData[0], options.formatDate), splitData[1], splitData[2]), // date, desc, style
-                            keyDate = dateHelper.formatDate(hDate.date, options.formatDate);
-                        if (highlightedDates[keyDate] !== undefined) {
-                            exDesc = highlightedDates[keyDate].desc;
-                            if (exDesc && exDesc.length && hDate.desc && hDate.desc.length) {
-                                highlightedDates[keyDate].desc = exDesc + "\n" + hDate.desc;
-                            }
-                        } else {
-                            highlightedDates[keyDate] = hDate;
-                        }
-                    });
-
-                    options.highlightedDates = $.extend(true, [], highlightedDates);
-                }
-
-                if (_options.highlightedPeriods && $.isArray(_options.highlightedPeriods) && _options.highlightedPeriods.length) {
-                    highlightedDates = $.extend(true, [], options.highlightedDates);
-                    $.each(_options.highlightedPeriods, function (index, value) {
-                        var dateTest, // start date
-                            dateEnd,
-                            desc,
-                            hDate,
-                            keyDate,
-                            exDesc,
-                            style;
-                        if ($.isArray(value)) {
-                            dateTest = value[0];
-                            dateEnd = value[1];
-                            desc = value[2];
-                            style = value[3];
-                        }
-                        else {
-                            var splitData = $.map(value.split(','), $.trim);
-                            dateTest = dateHelper.parseDate(splitData[0], options.formatDate);
-                            dateEnd = dateHelper.parseDate(splitData[1], options.formatDate);
-                            desc = splitData[2];
-                            style = splitData[3];
-                        }
-
-                        while (dateTest <= dateEnd) {
-                            hDate = new HighlightedDate(dateTest, desc, style);
-                            keyDate = dateHelper.formatDate(dateTest, options.formatDate);
-                            dateTest.setDate(dateTest.getDate() + 1);
-                            if (highlightedDates[keyDate] !== undefined) {
-                                exDesc = highlightedDates[keyDate].desc;
-                                if (exDesc && exDesc.length && hDate.desc && hDate.desc.length) {
-                                    highlightedDates[keyDate].desc = exDesc + "\n" + hDate.desc;
-                                }
-                            } else {
-                                highlightedDates[keyDate] = hDate;
-                            }
-                        }
-                    });
-
-                    options.highlightedDates = $.extend(true, [], highlightedDates);
-                }
-
-                if (_options.disabledDates && $.isArray(_options.disabledDates) && _options.disabledDates.length) {
-                    options.disabledDates = $.extend(true, [], _options.disabledDates);
-                }
-
-                if (_options.disabledWeekDays && $.isArray(_options.disabledWeekDays) && _options.disabledWeekDays.length) {
-                    options.disabledWeekDays = $.extend(true, [], _options.disabledWeekDays);
-                }
-
-                if ((options.open || options.opened) && (!options.inline)) {
-                    input.trigger('open.xdsoft');
-                }
-
-                if (options.inline) {
-                    triggerAfterOpen = true;
-                    datetimepicker.addClass('xdsoft_inline');
-                    input.after(datetimepicker).hide();
-                }
-
-                if (options.inverseButton) {
-                    options.next = 'xdsoft_prev';
-                    options.prev = 'xdsoft_next';
-                }
-
-                if (options.datepicker) {
-                    datepicker.addClass('active');
-                } else {
-                    datepicker.removeClass('active');
-                }
-
-                if (options.timepicker) {
-                    timepicker.addClass('active');
-                } else {
-                    timepicker.removeClass('active');
-                }
-
-                if (options.value) {
-                    _xdsoft_datetime.setCurrentTime(options.value);
-                    if (input && input.val) {
-                        input.val(_xdsoft_datetime.str);
-                    }
-                }
-
-                if (isNaN(options.dayOfWeekStart)) {
-                    options.dayOfWeekStart = 0;
-                } else {
-                    options.dayOfWeekStart = parseInt(options.dayOfWeekStart, 10) % 7;
-                }
-
-                if (!options.timepickerScrollbar) {
-                    timeboxparent.xdsoftScroller('hide');
-                }
-
-                if (options.minDate && /^[\+\-](.*)$/.test(options.minDate)) {
-                    options.minDate = dateHelper.formatDate(_xdsoft_datetime.strToDateTime(options.minDate), options.formatDate);
-                }
-
-                if (options.maxDate &&  /^[\+\-](.*)$/.test(options.maxDate)) {
-                    options.maxDate = dateHelper.formatDate(_xdsoft_datetime.strToDateTime(options.maxDate), options.formatDate);
-                }
-
-                applyButton.toggle(options.showApplyButton);
-
-                month_picker
-                    .find('.xdsoft_today_button')
-                        .css('visibility', !options.todayButton ? 'hidden' : 'visible');
-
-                month_picker
-                    .find('.' + options.prev)
-                        .css('visibility', !options.prevButton ? 'hidden' : 'visible');
-
-                month_picker
-                    .find('.' + options.next)
-                        .css('visibility', !options.nextButton ? 'hidden' : 'visible');
-
-                setMask(options);
-
-                if (options.validateOnBlur) {
-                    input
-                        .off('blur.xdsoft')
-                        .on('blur.xdsoft', function () {
-                            if (options.allowBlank && (!$.trim($(this).val()).length || (typeof options.mask == "string" && $.trim($(this).val()) === options.mask.replace(/[0-9]/g, '_')))) {
-                                $(this).val(null);
-                                datetimepicker.data('xdsoft_datetime').empty();
-                            } else {
-                                var d = dateHelper.parseDate($(this).val(), options.format);
-                                if (d) { // parseDate() may skip some invalid parts like date or time, so make it clear for user: show parsed date/time
-                                    $(this).val(dateHelper.formatDate(d, options.format));
-                                } else {
-                                    var splittedHours   = +([$(this).val()[0], $(this).val()[1]].join('')),
-                                        splittedMinutes = +([$(this).val()[2], $(this).val()[3]].join(''));
-    
-                                    // parse the numbers as 0312 => 03:12
-                                    if (!options.datepicker && options.timepicker && splittedHours >= 0 && splittedHours < 24 && splittedMinutes >= 0 && splittedMinutes < 60) {
-                                        $(this).val([splittedHours, splittedMinutes].map(function (item) {
-                                            return item > 9 ? item : '0' + item;
-                                        }).join(':'));
-                                    } else {
-                                        $(this).val(dateHelper.formatDate(_xdsoft_datetime.now(), options.format));
-                                    }
-                                }
-                                datetimepicker.data('xdsoft_datetime').setCurrentTime($(this).val());
-                            }
-
-                            datetimepicker.trigger('changedatetime.xdsoft');
-                            datetimepicker.trigger('close.xdsoft');
-                        });
-                }
-                options.dayOfWeekStartPrev = (options.dayOfWeekStart === 0) ? 6 : options.dayOfWeekStart - 1;
-
-                datetimepicker
-                    .trigger('xchange.xdsoft')
-                    .trigger('afterOpen.xdsoft');
-            };
-
-            datetimepicker
-                .data('options', options)
-                .on('touchstart mousedown.xdsoft', function (event) {
-                    event.stopPropagation();
-                    event.preventDefault();
-                    yearselect.hide();
-                    monthselect.hide();
-                    return false;
-                });
-
-            //scroll_element = timepicker.find('.xdsoft_time_box');
-            timeboxparent.append(timebox);
-            timeboxparent.xdsoftScroller();
-
-            datetimepicker.on('afterOpen.xdsoft', function () {
-                timeboxparent.xdsoftScroller();
-            });
-
-            datetimepicker
-                .append(datepicker)
-                .append(timepicker);
-
-            if (options.withoutCopyright !== true) {
-                datetimepicker
-                    .append(xdsoft_copyright);
-            }
-
-            datepicker
-                .append(month_picker)
-                .append(calendar)
-                .append(applyButton);
-
-            $(options.parentID)
-                .append(datetimepicker);
-
-            XDSoft_datetime = function () {
-                var _this = this;
-                _this.now = function (norecursion) {
-                    var d = new Date(),
-                        date,
-                        time;
-
-                    if (!norecursion && options.defaultDate) {
-                        date = _this.strToDateTime(options.defaultDate);
-                        d.setFullYear(date.getFullYear());
-                        d.setMonth(date.getMonth());
-                        d.setDate(date.getDate());
-                    }
-
-                    if (options.yearOffset) {
-                        d.setFullYear(d.getFullYear() + options.yearOffset);
-                    }
-
-                    if (!norecursion && options.defaultTime) {
-                        time = _this.strtotime(options.defaultTime);
-                        d.setHours(time.getHours());
-                        d.setMinutes(time.getMinutes());
-                    }
-                    return d;
-                };
-
-                _this.isValidDate = function (d) {
-                    if (Object.prototype.toString.call(d) !== "[object Date]") {
-                        return false;
-                    }
-                    return !isNaN(d.getTime());
-                };
-
-                _this.setCurrentTime = function (dTime, requireValidDate) {
-                    if (typeof dTime === 'string') {
-                        _this.currentTime = _this.strToDateTime(dTime);
-                    }
-                    else if (_this.isValidDate(dTime)) {
-                        _this.currentTime = dTime;
-                    }
-                    else if (!dTime && !requireValidDate && options.allowBlank) {
-                        _this.currentTime = null;
-                    }
-                    else {
-                        _this.currentTime = _this.now();
-                    }
-                    
-                    datetimepicker.trigger('xchange.xdsoft');
-                };
-
-                _this.empty = function () {
-                    _this.currentTime = null;
-                };
-
-                _this.getCurrentTime = function (dTime) {
-                    return _this.currentTime;
-                };
-
-                _this.nextMonth = function () {
-
-                    if (_this.currentTime === undefined || _this.currentTime === null) {
-                        _this.currentTime = _this.now();
-                    }
-
-                    var month = _this.currentTime.getMonth() + 1,
-                        year;
-                    if (month === 12) {
-                        _this.currentTime.setFullYear(_this.currentTime.getFullYear() + 1);
-                        month = 0;
-                    }
-
-                    year = _this.currentTime.getFullYear();
-
-                    _this.currentTime.setDate(
-                        Math.min(
-                            new Date(_this.currentTime.getFullYear(), month + 1, 0).getDate(),
-                            _this.currentTime.getDate()
-                        )
-                    );
-                    _this.currentTime.setMonth(month);
-
-                    if (options.onChangeMonth && $.isFunction(options.onChangeMonth)) {
-                        options.onChangeMonth.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
-                    }
-
-                    if (year !== _this.currentTime.getFullYear() && $.isFunction(options.onChangeYear)) {
-                        options.onChangeYear.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
-                    }
-
-                    datetimepicker.trigger('xchange.xdsoft');
-                    return month;
-                };
-
-                _this.prevMonth = function () {
-
-                    if (_this.currentTime === undefined || _this.currentTime === null) {
-                        _this.currentTime = _this.now();
-                    }
-
-                    var month = _this.currentTime.getMonth() - 1;
-                    if (month === -1) {
-                        _this.currentTime.setFullYear(_this.currentTime.getFullYear() - 1);
-                        month = 11;
-                    }
-                    _this.currentTime.setDate(
-                        Math.min(
-                            new Date(_this.currentTime.getFullYear(), month + 1, 0).getDate(),
-                            _this.currentTime.getDate()
-                        )
-                    );
-                    _this.currentTime.setMonth(month);
-                    if (options.onChangeMonth && $.isFunction(options.onChangeMonth)) {
-                        options.onChangeMonth.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
-                    }
-                    datetimepicker.trigger('xchange.xdsoft');
-                    return month;
-                };
-
-                _this.getWeekOfYear = function (datetime) {
-                    if (options.onGetWeekOfYear && $.isFunction(options.onGetWeekOfYear)) {
-                        var week = options.onGetWeekOfYear.call(datetimepicker, datetime);
-                        if (typeof week !== 'undefined') {
-                            return week;
-                        }
-                    }
-                    var onejan = new Date(datetime.getFullYear(), 0, 1);
-                    //First week of the year is th one with the first Thursday according to ISO8601
-                    if(onejan.getDay()!=4)
-                        onejan.setMonth(0, 1 + ((4 - onejan.getDay()+ 7) % 7));
-                    return Math.ceil((((datetime - onejan) / 86400000) + onejan.getDay() + 1) / 7);
-                };
-
-                _this.strToDateTime = function (sDateTime) {
-                    var tmpDate = [], timeOffset, currentTime;
-
-                    if (sDateTime && sDateTime instanceof Date && _this.isValidDate(sDateTime)) {
-                        return sDateTime;
-                    }
-
-                    tmpDate = /^(\+|\-)(.*)$/.exec(sDateTime);
-                    if (tmpDate) {
-                        tmpDate[2] = dateHelper.parseDate(tmpDate[2], options.formatDate);
-                    }
-                    if (tmpDate  && tmpDate[2]) {
-                        timeOffset = tmpDate[2].getTime() - (tmpDate[2].getTimezoneOffset()) * 60000;
-                        currentTime = new Date((_this.now(true)).getTime() + parseInt(tmpDate[1] + '1', 10) * timeOffset);
-                    } else {
-                        currentTime = sDateTime ? dateHelper.parseDate(sDateTime, options.format) : _this.now();
-                    }
-
-                    if (!_this.isValidDate(currentTime)) {
-                        currentTime = _this.now();
-                    }
-
-                    return currentTime;
-                };
-
-                _this.strToDate = function (sDate) {
-                    if (sDate && sDate instanceof Date && _this.isValidDate(sDate)) {
-                        return sDate;
-                    }
-
-                    var currentTime = sDate ? dateHelper.parseDate(sDate, options.formatDate) : _this.now(true);
-                    if (!_this.isValidDate(currentTime)) {
-                        currentTime = _this.now(true);
-                    }
-                    return currentTime;
-                };
-
-                _this.strtotime = function (sTime) {
-                    if (sTime && sTime instanceof Date && _this.isValidDate(sTime)) {
-                        return sTime;
-                    }
-                    var currentTime = sTime ? dateHelper.parseDate(sTime, options.formatTime) : _this.now(true);
-                    if (!_this.isValidDate(currentTime)) {
-                        currentTime = _this.now(true);
-                    }
-                    return currentTime;
-                };
-
-                _this.str = function () {
-                    return dateHelper.formatDate(_this.currentTime, options.format);
-                };
-                _this.currentTime = this.now();
-            };
-
-            _xdsoft_datetime = new XDSoft_datetime();
-
-            applyButton.on('touchend click', function (e) {//pathbrite
-                e.preventDefault();
-                datetimepicker.data('changed', true);
-                _xdsoft_datetime.setCurrentTime(getCurrentValue());
-                input.val(_xdsoft_datetime.str());
-                datetimepicker.trigger('close.xdsoft');
-            });
-            month_picker
-                .find('.xdsoft_today_button')
-                .on('touchend mousedown.xdsoft', function () {
-                    datetimepicker.data('changed', true);
-                    _xdsoft_datetime.setCurrentTime(0, true);
-                    datetimepicker.trigger('afterOpen.xdsoft');
-                }).on('dblclick.xdsoft', function () {
-                    var currentDate = _xdsoft_datetime.getCurrentTime(), minDate, maxDate;
-                    currentDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate());
-                    minDate = _xdsoft_datetime.strToDate(options.minDate);
-                    minDate = new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate());
-                    if (currentDate < minDate) {
-                        return;
-                    }
-                    maxDate = _xdsoft_datetime.strToDate(options.maxDate);
-                    maxDate = new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate());
-                    if (currentDate > maxDate) {
-                        return;
-                    }
-                    input.val(_xdsoft_datetime.str());
-                    input.trigger('change');
-                    datetimepicker.trigger('close.xdsoft');
-                });
-            month_picker
-                .find('.xdsoft_prev,.xdsoft_next')
-                .on('touchend mousedown.xdsoft', function () {
-                    var $this = $(this),
-                        timer = 0,
-                        stop = false;
-
-                    (function arguments_callee1(v) {
-                        if ($this.hasClass(options.next)) {
-                            _xdsoft_datetime.nextMonth();
-                        } else if ($this.hasClass(options.prev)) {
-                            _xdsoft_datetime.prevMonth();
-                        }
-                        if (options.monthChangeSpinner) {
-                            if (!stop) {
-                                timer = setTimeout(arguments_callee1, v || 100);
-                            }
-                        }
-                    }(500));
-
-                    $([document.body, window]).on('touchend mouseup.xdsoft', function arguments_callee2() {
-                        clearTimeout(timer);
-                        stop = true;
-                        $([document.body, window]).off('touchend mouseup.xdsoft', arguments_callee2);
-                    });
-                });
-
-            timepicker
-                .find('.xdsoft_prev,.xdsoft_next')
-                .on('touchend mousedown.xdsoft', function () {
-                    var $this = $(this),
-                        timer = 0,
-                        stop = false,
-                        period = 110;
-                    (function arguments_callee4(v) {
-                        var pheight = timeboxparent[0].clientHeight,
-                            height = timebox[0].offsetHeight,
-                            top = Math.abs(parseInt(timebox.css('marginTop'), 10));
-                        if ($this.hasClass(options.next) && (height - pheight) - options.timeHeightInTimePicker >= top) {
-                            timebox.css('marginTop', '-' + (top + options.timeHeightInTimePicker) + 'px');
-                        } else if ($this.hasClass(options.prev) && top - options.timeHeightInTimePicker >= 0) {
-                            timebox.css('marginTop', '-' + (top - options.timeHeightInTimePicker) + 'px');
-                        }
-                        /**
-                         * Fixed bug:
-                         * When using css3 transition, it will cause a bug that you cannot scroll the timepicker list.
-                         * The reason is that the transition-duration time, if you set it to 0, all things fine, otherwise, this
-                         * would cause a bug when you use jquery.css method.
-                         * Let's say: * { transition: all .5s ease; }
-                         * jquery timebox.css('marginTop') will return the original value which is before you clicking the next/prev button,
-                         * meanwhile the timebox[0].style.marginTop will return the right value which is after you clicking the
-                         * next/prev button.
-                         * 
-                         * What we should do:
-                         * Replace timebox.css('marginTop') with timebox[0].style.marginTop.
-                         */
-                        timeboxparent.trigger('scroll_element.xdsoft_scroller', [Math.abs(parseInt(timebox[0].style.marginTop, 10) / (height - pheight))]);
-                        period = (period > 10) ? 10 : period - 10;
-                        if (!stop) {
-                            timer = setTimeout(arguments_callee4, v || period);
-                        }
-                    }(500));
-                    $([document.body, window]).on('touchend mouseup.xdsoft', function arguments_callee5() {
-                        clearTimeout(timer);
-                        stop = true;
-                        $([document.body, window])
-                            .off('touchend mouseup.xdsoft', arguments_callee5);
-                    });
-                });
-
-            xchangeTimer = 0;
-            // base handler - generating a calendar and timepicker
-            datetimepicker
-                .on('xchange.xdsoft', function (event) {
-                    clearTimeout(xchangeTimer);
-                    xchangeTimer = setTimeout(function () {
-
-                        if (_xdsoft_datetime.currentTime === undefined || _xdsoft_datetime.currentTime === null) {
-                            //In case blanks are allowed, delay construction until we have a valid date 
-                            if (options.allowBlank)
-                                return;
-                                
-                            _xdsoft_datetime.currentTime = _xdsoft_datetime.now();
-                        }
-
-                        var table =    '',
-                            start = new Date(_xdsoft_datetime.currentTime.getFullYear(), _xdsoft_datetime.currentTime.getMonth(), 1, 12, 0, 0),
-                            i = 0,
-                            j,
-                            today = _xdsoft_datetime.now(),
-                            maxDate = false,
-                            minDate = false,
-                            hDate,
-                            day,
-                            d,
-                            y,
-                            m,
-                            w,
-                            classes = [],
-                            customDateSettings,
-                            newRow = true,
-                            time = '',
-                            h = '',
-                            line_time,
-                            description;
-
-                        while (start.getDay() !== options.dayOfWeekStart) {
-                            start.setDate(start.getDate() - 1);
-                        }
-
-                        table += '<table><thead><tr>';
-
-                        if (options.weeks) {
-                            table += '<th></th>';
-                        }
-
-                        for (j = 0; j < 7; j += 1) {
-                            table += '<th>' + options.i18n[globalLocale].dayOfWeekShort[(j + options.dayOfWeekStart) % 7] + '</th>';
-                        }
-
-                        table += '</tr></thead>';
-                        table += '<tbody>';
-
-                        if (options.maxDate !== false) {
-                            maxDate = _xdsoft_datetime.strToDate(options.maxDate);
-                            maxDate = new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate(), 23, 59, 59, 999);
-                        }
-
-                        if (options.minDate !== false) {
-                            minDate = _xdsoft_datetime.strToDate(options.minDate);
-                            minDate = new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate());
-                        }
-
-                        while (i < _xdsoft_datetime.currentTime.countDaysInMonth() || start.getDay() !== options.dayOfWeekStart || _xdsoft_datetime.currentTime.getMonth() === start.getMonth()) {
-                            classes = [];
-                            i += 1;
-
-                            day = start.getDay();
-                            d = start.getDate();
-                            y = start.getFullYear();
-                            m = start.getMonth();
-                            w = _xdsoft_datetime.getWeekOfYear(start);
-                            description = '';
-
-                            classes.push('xdsoft_date');
-
-                            if (options.beforeShowDay && $.isFunction(options.beforeShowDay.call)) {
-                                customDateSettings = options.beforeShowDay.call(datetimepicker, start);
-                            } else {
-                                customDateSettings = null;
-                            }
-
-                            if(options.allowDateRe && Object.prototype.toString.call(options.allowDateRe) === "[object RegExp]"){
-                                if(!options.allowDateRe.test(dateHelper.formatDate(start, options.formatDate))){
-                                    classes.push('xdsoft_disabled');
-                                }
-                            } else if(options.allowDates && options.allowDates.length>0){
-                                if(options.allowDates.indexOf(dateHelper.formatDate(start, options.formatDate)) === -1){
-                                    classes.push('xdsoft_disabled');
-                                }
-                            } else if ((maxDate !== false && start > maxDate) || (minDate !== false && start < minDate) || (customDateSettings && customDateSettings[0] === false)) {
-                                classes.push('xdsoft_disabled');
-                            } else if (options.disabledDates.indexOf(dateHelper.formatDate(start, options.formatDate)) !== -1) {
-                                classes.push('xdsoft_disabled');
-                            } else if (options.disabledWeekDays.indexOf(day) !== -1) {
-                                classes.push('xdsoft_disabled');
-                            }else if (input.is('[readonly]')) {
-                                classes.push('xdsoft_disabled');
-                            }
-
-                            if (customDateSettings && customDateSettings[1] !== "") {
-                                classes.push(customDateSettings[1]);
-                            }
-
-                            if (_xdsoft_datetime.currentTime.getMonth() !== m) {
-                                classes.push('xdsoft_other_month');
-                            }
-
-                            if ((options.defaultSelect || datetimepicker.data('changed')) && dateHelper.formatDate(_xdsoft_datetime.currentTime, options.formatDate) === dateHelper.formatDate(start, options.formatDate)) {
-                                classes.push('xdsoft_current');
-                            }
-
-                            if (dateHelper.formatDate(today, options.formatDate) === dateHelper.formatDate(start, options.formatDate)) {
-                                classes.push('xdsoft_today');
-                            }
-
-                            if (start.getDay() === 0 || start.getDay() === 6 || options.weekends.indexOf(dateHelper.formatDate(start, options.formatDate)) !== -1) {
-                                classes.push('xdsoft_weekend');
-                            }
-
-                            if (options.highlightedDates[dateHelper.formatDate(start, options.formatDate)] !== undefined) {
-                                hDate = options.highlightedDates[dateHelper.formatDate(start, options.formatDate)];
-                                classes.push(hDate.style === undefined ? 'xdsoft_highlighted_default' : hDate.style);
-                                description = hDate.desc === undefined ? '' : hDate.desc;
-                            }
-
-                            if (options.beforeShowDay && $.isFunction(options.beforeShowDay)) {
-                                classes.push(options.beforeShowDay(start));
-                            }
-
-                            if (newRow) {
-                                table += '<tr>';
-                                newRow = false;
-                                if (options.weeks) {
-                                    table += '<th>' + w + '</th>';
-                                }
-                            }
-
-                            table += '<td data-date="' + d + '" data-month="' + m + '" data-year="' + y + '"' + ' class="xdsoft_date xdsoft_day_of_week' + start.getDay() + ' ' + classes.join(' ') + '" title="' + description + '">' +
-                                        '<div>' + d + '</div>' +
-                                    '</td>';
-
-                            if (start.getDay() === options.dayOfWeekStartPrev) {
-                                table += '</tr>';
-                                newRow = true;
-                            }
-
-                            start.setDate(d + 1);
-                        }
-                        table += '</tbody></table>';
-
-                        calendar.html(table);
-
-                        month_picker.find('.xdsoft_label span').eq(0).text(options.i18n[globalLocale].months[_xdsoft_datetime.currentTime.getMonth()]);
-                        month_picker.find('.xdsoft_label span').eq(1).text(_xdsoft_datetime.currentTime.getFullYear());
-
-                        // generate timebox
-                        time = '';
-                        h = '';
-                        m = '';
-
-                        line_time = function line_time(h, m) {
-                            var now = _xdsoft_datetime.now(), optionDateTime, current_time,
-                                isALlowTimesInit = options.allowTimes && $.isArray(options.allowTimes) && options.allowTimes.length;
-                            now.setHours(h);
-                            h = parseInt(now.getHours(), 10);
-                            now.setMinutes(m);
-                            m = parseInt(now.getMinutes(), 10);
-                            optionDateTime = new Date(_xdsoft_datetime.currentTime);
-                            optionDateTime.setHours(h);
-                            optionDateTime.setMinutes(m);
-                            classes = [];            
-                            if ((options.minDateTime !== false && options.minDateTime > optionDateTime) || (options.maxTime !== false && _xdsoft_datetime.strtotime(options.maxTime).getTime() < now.getTime()) || (options.minTime !== false && _xdsoft_datetime.strtotime(options.minTime).getTime() > now.getTime())) {
-                                classes.push('xdsoft_disabled');
-                            } else if ((options.minDateTime !== false && options.minDateTime > optionDateTime) || ((options.disabledMinTime !== false && now.getTime() > _xdsoft_datetime.strtotime(options.disabledMinTime).getTime()) && (options.disabledMaxTime !== false && now.getTime() < _xdsoft_datetime.strtotime(options.disabledMaxTime).getTime()))) {
-                                classes.push('xdsoft_disabled');
-                            } else if (input.is('[readonly]')) {
-                                classes.push('xdsoft_disabled');
-                            }
-
-                            current_time = new Date(_xdsoft_datetime.currentTime);
-                            current_time.setHours(parseInt(_xdsoft_datetime.currentTime.getHours(), 10));
-
-                            if (!isALlowTimesInit) {
-                                current_time.setMinutes(Math[options.roundTime](_xdsoft_datetime.currentTime.getMinutes() / options.step) * options.step);
-                            }
-
-                            if ((options.initTime || options.defaultSelect || datetimepicker.data('changed')) && current_time.getHours() === parseInt(h, 10) && ((!isALlowTimesInit && options.step > 59) || current_time.getMinutes() === parseInt(m, 10))) {
-                                if (options.defaultSelect || datetimepicker.data('changed')) {
-                                    classes.push('xdsoft_current');
-                                } else if (options.initTime) {
-                                    classes.push('xdsoft_init_time');
-                                }
-                            }
-                            if (parseInt(today.getHours(), 10) === parseInt(h, 10) && parseInt(today.getMinutes(), 10) === parseInt(m, 10)) {
-                                classes.push('xdsoft_today');
-                            }
-                            time += '<div class="xdsoft_time ' + classes.join(' ') + '" data-hour="' + h + '" data-minute="' + m + '">' + dateHelper.formatDate(now, options.formatTime) + '</div>';
-                        };
-
-                        if (!options.allowTimes || !$.isArray(options.allowTimes) || !options.allowTimes.length) {
-                            for (i = 0, j = 0; i < (options.hours12 ? 12 : 24); i += 1) {
-                                for (j = 0; j < 60; j += options.step) {
-                                    h = (i < 10 ? '0' : '') + i;
-                                    m = (j < 10 ? '0' : '') + j;
-                                    line_time(h, m);
-                                }
-                            }
-                        } else {
-                            for (i = 0; i < options.allowTimes.length; i += 1) {
-                                h = _xdsoft_datetime.strtotime(options.allowTimes[i]).getHours();
-                                m = _xdsoft_datetime.strtotime(options.allowTimes[i]).getMinutes();
-                                line_time(h, m);
-                            }
-                        }
-
-                        timebox.html(time);
-
-                        opt = '';
-                        i = 0;
-
-                        for (i = parseInt(options.yearStart, 10) + options.yearOffset; i <= parseInt(options.yearEnd, 10) + options.yearOffset; i += 1) {
-                            opt += '<div class="xdsoft_option ' + (_xdsoft_datetime.currentTime.getFullYear() === i ? 'xdsoft_current' : '') + '" data-value="' + i + '">' + i + '</div>';
-                        }
-                        yearselect.children().eq(0)
-                                                .html(opt);
-
-                        for (i = parseInt(options.monthStart, 10), opt = ''; i <= parseInt(options.monthEnd, 10); i += 1) {
-                            opt += '<div class="xdsoft_option ' + (_xdsoft_datetime.currentTime.getMonth() === i ? 'xdsoft_current' : '') + '" data-value="' + i + '">' + options.i18n[globalLocale].months[i] + '</div>';
-                        }
-                        monthselect.children().eq(0).html(opt);
-                        $(datetimepicker)
-                            .trigger('generate.xdsoft');
-                    }, 10);
-                    event.stopPropagation();
-                })
-                .on('afterOpen.xdsoft', function () {
-                    if (options.timepicker) {
-                        var classType, pheight, height, top;
-                        if (timebox.find('.xdsoft_current').length) {
-                            classType = '.xdsoft_current';
-                        } else if (timebox.find('.xdsoft_init_time').length) {
-                            classType = '.xdsoft_init_time';
-                        }
-                        if (classType) {
-                            pheight = timeboxparent[0].clientHeight;
-                            height = timebox[0].offsetHeight;
-                            top = timebox.find(classType).index() * options.timeHeightInTimePicker + 1;
-                            if ((height - pheight) < top) {
-                                top = height - pheight;
-                            }
-                            timeboxparent.trigger('scroll_element.xdsoft_scroller', [parseInt(top, 10) / (height - pheight)]);
-                        } else {
-                            timeboxparent.trigger('scroll_element.xdsoft_scroller', [0]);
-                        }
-                    }
-                });
-
-            timerclick = 0;
-            calendar
-                .on('touchend click.xdsoft', 'td', function (xdevent) {
-                    xdevent.stopPropagation();  // Prevents closing of Pop-ups, Modals and Flyouts in Bootstrap
-                    timerclick += 1;
-                    var $this = $(this),
-                        currentTime = _xdsoft_datetime.currentTime;
-
-                    if (currentTime === undefined || currentTime === null) {
-                        _xdsoft_datetime.currentTime = _xdsoft_datetime.now();
-                        currentTime = _xdsoft_datetime.currentTime;
-                    }
-
-                    if ($this.hasClass('xdsoft_disabled')) {
-                        return false;
-                    }
-
-                    currentTime.setDate(1);
-                    currentTime.setFullYear($this.data('year'));
-                    currentTime.setMonth($this.data('month'));
-                    currentTime.setDate($this.data('date'));
-
-                    datetimepicker.trigger('select.xdsoft', [currentTime]);
-
-                    input.val(_xdsoft_datetime.str());
-
-                    if (options.onSelectDate &&    $.isFunction(options.onSelectDate)) {
-                        options.onSelectDate.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), xdevent);
-                    }
-
-                    datetimepicker.data('changed', true);
-                    datetimepicker.trigger('xchange.xdsoft');
-                    datetimepicker.trigger('changedatetime.xdsoft');
-                    if ((timerclick > 1 || (options.closeOnDateSelect === true || (options.closeOnDateSelect === false && !options.timepicker))) && !options.inline) {
-                        datetimepicker.trigger('close.xdsoft');
-                    }
-                    setTimeout(function () {
-                        timerclick = 0;
-                    }, 200);
-                });
-
-            timebox
-                .on('touchmove', 'div', function () { currentlyScrollingTimeDiv = true; })
-                .on('touchend click.xdsoft', 'div', function (xdevent) {
-                    xdevent.stopPropagation();
-                    if (currentlyScrollingTimeDiv) {
-                            currentlyScrollingTimeDiv = false;
-                            return;
-                        }
-                    var $this = $(this),
-                        currentTime = _xdsoft_datetime.currentTime;
-
-                    if (currentTime === undefined || currentTime === null) {
-                        _xdsoft_datetime.currentTime = _xdsoft_datetime.now();
-                        currentTime = _xdsoft_datetime.currentTime;
-                    }
-
-                    if ($this.hasClass('xdsoft_disabled')) {
-                        return false;
-                    }
-                    currentTime.setHours($this.data('hour'));
-                    currentTime.setMinutes($this.data('minute'));
-                    datetimepicker.trigger('select.xdsoft', [currentTime]);
-
-                    datetimepicker.data('input').val(_xdsoft_datetime.str());
-
-                    if (options.onSelectTime && $.isFunction(options.onSelectTime)) {
-                        options.onSelectTime.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), xdevent);
-                    }
-                    datetimepicker.data('changed', true);
-                    datetimepicker.trigger('xchange.xdsoft');
-                    datetimepicker.trigger('changedatetime.xdsoft');
-                    if (options.inline !== true && options.closeOnTimeSelect === true) {
-                        datetimepicker.trigger('close.xdsoft');
-                    }
-                });
-
-            datepicker
-                .on('mousewheel.xdsoft', function (event) {
-                    if (!options.scrollMonth) {
-                        return true;
-                    }
-                    if (event.deltaY < 0) {
-                        _xdsoft_datetime.nextMonth();
-                    } else {
-                        _xdsoft_datetime.prevMonth();
-                    }
-                    return false;
-                });
-
-            input
-                .on('mousewheel.xdsoft', function (event) {
-                    if (!options.scrollInput) {
-                        return true;
-                    }
-                    if (!options.datepicker && options.timepicker) {
-                        current_time_index = timebox.find('.xdsoft_current').length ? timebox.find('.xdsoft_current').eq(0).index() : 0;
-                        if (current_time_index + event.deltaY >= 0 && current_time_index + event.deltaY < timebox.children().length) {
-                            current_time_index += event.deltaY;
-                        }
-                        if (timebox.children().eq(current_time_index).length) {
-                            timebox.children().eq(current_time_index).trigger('mousedown');
-                        }
-                        return false;
-                    }
-                    if (options.datepicker && !options.timepicker) {
-                        datepicker.trigger(event, [event.deltaY, event.deltaX, event.deltaY]);
-                        if (input.val) {
-                            input.val(_xdsoft_datetime.str());
-                        }
-                        datetimepicker.trigger('changedatetime.xdsoft');
-                        return false;
-                    }
-                });
-
-            datetimepicker
-                .on('changedatetime.xdsoft', function (event) {
-                    if (options.onChangeDateTime && $.isFunction(options.onChangeDateTime)) {
-                        var $input = datetimepicker.data('input');
-                        options.onChangeDateTime.call(datetimepicker, _xdsoft_datetime.currentTime, $input, event);
-                        delete options.value;
-                        $input.trigger('change');
-                    }
-                })
-                .on('generate.xdsoft', function () {
-                    if (options.onGenerate && $.isFunction(options.onGenerate)) {
-                        options.onGenerate.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
-                    }
-                    if (triggerAfterOpen) {
-                        datetimepicker.trigger('afterOpen.xdsoft');
-                        triggerAfterOpen = false;
-                    }
-                })
-                .on('click.xdsoft', function (xdevent) {
-                    xdevent.stopPropagation();
-                });
-
-            current_time_index = 0;
-
-            /**
-             * Runs the callback for each of the specified node's ancestors.
-             *
-             * Return FALSE from the callback to stop ascending.
-             *
-             * @param {DOMNode} node
-             * @param {Function} callback
-             * @returns {undefined}
-             */
-            forEachAncestorOf = function (node, callback) {
-                do {
-                    node = node.parentNode;
-
-                    if (callback(node) === false) {
-                        break;
-                    }
-                } while (node.nodeName !== 'HTML');
-            };
-
-            /**
-             * Sets the position of the picker.
-             *
-             * @returns {undefined}
-             */
-            setPos = function () {
-                var dateInputOffset,
-                    dateInputElem,
-                    verticalPosition,
-                    left,
-                    position,
-                    datetimepickerElem,
-                    dateInputHasFixedAncestor,
-                    $dateInput,
-                    windowWidth,
-                    verticalAnchorEdge,
-                    datetimepickerCss,
-                    windowHeight,
-                    windowScrollTop;
-
-                $dateInput = datetimepicker.data('input');
-                dateInputOffset = $dateInput.offset();
-                dateInputElem = $dateInput[0];
-
-                verticalAnchorEdge = 'top';
-                verticalPosition = (dateInputOffset.top + dateInputElem.offsetHeight) - 1;
-                left = dateInputOffset.left;
-                position = "absolute";
-
-                windowWidth = $(window).width();
-                windowHeight = $(window).height();
-                windowScrollTop = $(window).scrollTop();
-
-                if ((document.documentElement.clientWidth - dateInputOffset.left) < datepicker.parent().outerWidth(true)) {
-                    var diff = datepicker.parent().outerWidth(true) - dateInputElem.offsetWidth;
-                    left = left - diff;
-                }
-
-                if ($dateInput.parent().css('direction') === 'rtl') {
-                    left -= (datetimepicker.outerWidth() - $dateInput.outerWidth());
-                }
-
-                if (options.fixed) {
-                    verticalPosition -= windowScrollTop;
-                    left -= $(window).scrollLeft();
-                    position = "fixed";
-                } else {
-                    dateInputHasFixedAncestor = false;
-
-                    forEachAncestorOf(dateInputElem, function (ancestorNode) {
-                        if (window.getComputedStyle(ancestorNode).getPropertyValue('position') === 'fixed') {
-                            dateInputHasFixedAncestor = true;
-                            return false;
-                        }
-                    });
-
-                    if (dateInputHasFixedAncestor) {
-                        position = 'fixed';
-
-                        //If the picker won't fit entirely within the viewport then display it above the date input.
-                        if (verticalPosition + datetimepicker.outerHeight() > windowHeight + windowScrollTop) {
-                            verticalAnchorEdge = 'bottom';
-                            verticalPosition = (windowHeight + windowScrollTop) - dateInputOffset.top;
-                        } else {
-                            verticalPosition -= windowScrollTop;
-                        }
-                    } else {
-                        if (verticalPosition + dateInputElem.offsetHeight > windowHeight + windowScrollTop) {
-                            verticalPosition = dateInputOffset.top - dateInputElem.offsetHeight + 1;
-                        }
-                    }
-
-                    if (verticalPosition < 0) {
-                        verticalPosition = 0;
-                    }
-
-                    if (left + dateInputElem.offsetWidth > windowWidth) {
-                        left = windowWidth - dateInputElem.offsetWidth;
-                    }
-                }
-
-                datetimepickerElem = datetimepicker[0];
-
-                forEachAncestorOf(datetimepickerElem, function (ancestorNode) {
-                    var ancestorNodePosition;
-
-                    ancestorNodePosition = window.getComputedStyle(ancestorNode).getPropertyValue('position');
-
-                    if (ancestorNodePosition === 'relative' && windowWidth >= ancestorNode.offsetWidth) {
-                        left = left - ((windowWidth - ancestorNode.offsetWidth) / 2);
-                        return false;
-                    }
-                });
-
-                datetimepickerCss = {
-                    position: position,
-                    left: left,
-                    top: '',  //Initialize to prevent previous values interfering with new ones.
-                    bottom: ''  //Initialize to prevent previous values interfering with new ones.
-                };
-
-                datetimepickerCss[verticalAnchorEdge] = verticalPosition;
-
-                datetimepicker.css(datetimepickerCss);
-            };
-
-            datetimepicker
-                .on('open.xdsoft', function (event) {
-                    var onShow = true;
-                    if (options.onShow && $.isFunction(options.onShow)) {
-                        onShow = options.onShow.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), event);
-                    }
-                    if (onShow !== false) {
-                        datetimepicker.show();
-                        setPos();
-                        $(window)
-                            .off('resize.xdsoft', setPos)
-                            .on('resize.xdsoft', setPos);
-
-                        if (options.closeOnWithoutClick) {
-                            $([document.body, window]).on('touchstart mousedown.xdsoft', function arguments_callee6() {
-                                datetimepicker.trigger('close.xdsoft');
-                                $([document.body, window]).off('touchstart mousedown.xdsoft', arguments_callee6);
-                            });
-                        }
-                    }
-                })
-                .on('close.xdsoft', function (event) {
-                    var onClose = true;
-                    month_picker
-                        .find('.xdsoft_month,.xdsoft_year')
-                            .find('.xdsoft_select')
-                                .hide();
-                    if (options.onClose && $.isFunction(options.onClose)) {
-                        onClose = options.onClose.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), event);
-                    }
-                    if (onClose !== false && !options.opened && !options.inline) {
-                        datetimepicker.hide();
-                    }
-                    event.stopPropagation();
-                })
-                .on('toggle.xdsoft', function () {
-                    if (datetimepicker.is(':visible')) {
-                        datetimepicker.trigger('close.xdsoft');
-                    } else {
-                        datetimepicker.trigger('open.xdsoft');
-                    }
-                })
-                .data('input', input);
-
-            timer = 0;
-
-            datetimepicker.data('xdsoft_datetime', _xdsoft_datetime);
-            datetimepicker.setOptions(options);
-
-            function getCurrentValue() {
-                var ct = false, time;
-
-                if (options.startDate) {
-                    ct = _xdsoft_datetime.strToDate(options.startDate);
-                } else {
-                    ct = options.value || ((input && input.val && input.val()) ? input.val() : '');
-                    if (ct) {
-                        ct = _xdsoft_datetime.strToDateTime(ct);
-                    } else if (options.defaultDate) {
-                        ct = _xdsoft_datetime.strToDateTime(options.defaultDate);
-                        if (options.defaultTime) {
-                            time = _xdsoft_datetime.strtotime(options.defaultTime);
-                            ct.setHours(time.getHours());
-                            ct.setMinutes(time.getMinutes());
-                        }
-                    }
-                }
-
-                if (ct && _xdsoft_datetime.isValidDate(ct)) {
-                    datetimepicker.data('changed', true);
-                } else {
-                    ct = '';
-                }
-
-                return ct || 0;
-            }
-
-            function setMask(options) {
-
-                var isValidValue = function (mask, value) {
-                    var reg = mask
-                        .replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g, '\\$1')
-                        .replace(/_/g, '{digit+}')
-                        .replace(/([0-9]{1})/g, '{digit$1}')
-                        .replace(/\{digit([0-9]{1})\}/g, '[0-$1_]{1}')
-                        .replace(/\{digit[\+]\}/g, '[0-9_]{1}');
-                    return (new RegExp(reg)).test(value);
-                },
-                getCaretPos = function (input) {
-                    try {
-                        if (document.selection && document.selection.createRange) {
-                            var range = document.selection.createRange();
-                            return range.getBookmark().charCodeAt(2) - 2;
-                        }
-                        if (input.setSelectionRange) {
-                            return input.selectionStart;
-                        }
-                    } catch (e) {
-                        return 0;
-                    }
-                },
-                setCaretPos = function (node, pos) {
-                    node = (typeof node === "string" || node instanceof String) ? document.getElementById(node) : node;
-                    if (!node) {
-                        return false;
-                    }
-                    if (node.createTextRange) {
-                        var textRange = node.createTextRange();
-                        textRange.collapse(true);
-                        textRange.moveEnd('character', pos);
-                        textRange.moveStart('character', pos);
-                        textRange.select();
-                        return true;
-                    }
-                    if (node.setSelectionRange) {
-                        node.setSelectionRange(pos, pos);
-                        return true;
-                    }
-                    return false;
-                };
-                if(options.mask) {
-                    input.off('keydown.xdsoft');
-                }
-                if (options.mask === true) {
-                                                        if (typeof moment != 'undefined') {
-                                                                    options.mask = options.format
-                                                                            .replace(/Y{4}/g, '9999')
-                                                                            .replace(/Y{2}/g, '99')
-                                                                            .replace(/M{2}/g, '19')
-                                                                            .replace(/D{2}/g, '39')
-                                                                            .replace(/H{2}/g, '29')
-                                                                            .replace(/m{2}/g, '59')
-                                                                            .replace(/s{2}/g, '59');
-                                                        } else {
-                                                                    options.mask = options.format
-                                                                            .replace(/Y/g, '9999')
-                                                                            .replace(/F/g, '9999')
-                                                                            .replace(/m/g, '19')
-                                                                            .replace(/d/g, '39')
-                                                                            .replace(/H/g, '29')
-                                                                            .replace(/i/g, '59')
-                                                                            .replace(/s/g, '59');
-                                                        }
-                }
-
-                if ($.type(options.mask) === 'string') {
-                    if (!isValidValue(options.mask, input.val())) {
-                        input.val(options.mask.replace(/[0-9]/g, '_'));
-                        setCaretPos(input[0], 0);
-                    }
-
-                    input.on('keydown.xdsoft', function (event) {
-                        var val = this.value,
-                            key = event.which,
-                            pos,
-                            digit;
-
-                        if (((key >= KEY0 && key <= KEY9) || (key >= _KEY0 && key <= _KEY9)) || (key === BACKSPACE || key === DEL)) {
-                            pos = getCaretPos(this);
-                            digit = (key !== BACKSPACE && key !== DEL) ? String.fromCharCode((_KEY0 <= key && key <= _KEY9) ? key - KEY0 : key) : '_';
-
-                            if ((key === BACKSPACE || key === DEL) && pos) {
-                                pos -= 1;
-                                digit = '_';
-                            }
-
-                            while (/[^0-9_]/.test(options.mask.substr(pos, 1)) && pos < options.mask.length && pos > 0) {
-                                pos += (key === BACKSPACE || key === DEL) ? -1 : 1;
-                            }
-
-                            val = val.substr(0, pos) + digit + val.substr(pos + 1);
-                            if ($.trim(val) === '') {
-                                val = options.mask.replace(/[0-9]/g, '_');
-                            } else {
-                                if (pos === options.mask.length) {
-                                    event.preventDefault();
-                                    return false;
-                                }
-                            }
-
-                            pos += (key === BACKSPACE || key === DEL) ? 0 : 1;
-                            while (/[^0-9_]/.test(options.mask.substr(pos, 1)) && pos < options.mask.length && pos > 0) {
-                                pos += (key === BACKSPACE || key === DEL) ? -1 : 1;
-                            }
-
-                            if (isValidValue(options.mask, val)) {
-                                this.value = val;
-                                setCaretPos(this, pos);
-                            } else if ($.trim(val) === '') {
-                                this.value = options.mask.replace(/[0-9]/g, '_');
-                            } else {
-                                input.trigger('error_input.xdsoft');
-                            }
-                        } else {
-                            if (([AKEY, CKEY, VKEY, ZKEY, YKEY].indexOf(key) !== -1 && ctrlDown) || [ESC, ARROWUP, ARROWDOWN, ARROWLEFT, ARROWRIGHT, F5, CTRLKEY, TAB, ENTER].indexOf(key) !== -1) {
-                                return true;
-                            }
-                        }
-
-                        event.preventDefault();
-                        return false;
-                    });
-                }
-            }
-
-            _xdsoft_datetime.setCurrentTime(getCurrentValue());
-
-            input
-                .data('xdsoft_datetimepicker', datetimepicker)
-                .on('open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart', function () {
-                    if (input.is(':disabled') || (input.data('xdsoft_datetimepicker').is(':visible') && options.closeOnInputClick)) {
-                        return;
-                    }
-                    clearTimeout(timer);
-                    timer = setTimeout(function () {
-                        if (input.is(':disabled')) {
-                            return;
-                        }
-
-                        triggerAfterOpen = true;
-                        _xdsoft_datetime.setCurrentTime(getCurrentValue(), true);
-                        if(options.mask) {
-                            setMask(options);
-                        }
-                        datetimepicker.trigger('open.xdsoft');
-                    }, 100);
-                })
-                .on('keydown.xdsoft', function (event) {
-                    var elementSelector,
-                        key = event.which;
-                    if ([ENTER].indexOf(key) !== -1 && options.enterLikeTab) {
-                        elementSelector = $("input:visible,textarea:visible,button:visible,a:visible");
-                        datetimepicker.trigger('close.xdsoft');
-                        elementSelector.eq(elementSelector.index(this) + 1).focus();
-                        return false;
-                    }
-                    if ([TAB].indexOf(key) !== -1) {
-                        datetimepicker.trigger('close.xdsoft');
-                        return true;
-                    }
-                })
-                .on('blur.xdsoft', function () {
-                    datetimepicker.trigger('close.xdsoft');
-                });
-        };
-        destroyDateTimePicker = function (input) {
-            var datetimepicker = input.data('xdsoft_datetimepicker');
-            if (datetimepicker) {
-                datetimepicker.data('xdsoft_datetime', null);
-                datetimepicker.remove();
-                input
-                    .data('xdsoft_datetimepicker', null)
-                    .off('.xdsoft');
-                $(window).off('resize.xdsoft');
-                $([window, document.body]).off('mousedown.xdsoft touchstart');
-                if (input.unmousewheel) {
-                    input.unmousewheel();
-                }
-            }
-        };
-        $(document)
-            .off('keydown.xdsoftctrl keyup.xdsoftctrl')
-            .on('keydown.xdsoftctrl', function (e) {
-                if (e.keyCode === CTRLKEY) {
-                    ctrlDown = true;
-                }
-            })
-            .on('keyup.xdsoftctrl', function (e) {
-                if (e.keyCode === CTRLKEY) {
-                    ctrlDown = false;
-                }
-            });
-
-        this.each(function () {
-            var datetimepicker = $(this).data('xdsoft_datetimepicker'), $input;
-            if (datetimepicker) {
-                if ($.type(opt) === 'string') {
-                    switch (opt) {
-                    case 'show':
-                        $(this).select().focus();
-                        datetimepicker.trigger('open.xdsoft');
-                        break;
-                    case 'hide':
-                        datetimepicker.trigger('close.xdsoft');
-                        break;
-                    case 'toggle':
-                        datetimepicker.trigger('toggle.xdsoft');
-                        break;
-                    case 'destroy':
-                        destroyDateTimePicker($(this));
-                        break;
-                    case 'reset':
-                        this.value = this.defaultValue;
-                        if (!this.value || !datetimepicker.data('xdsoft_datetime').isValidDate(dateHelper.parseDate(this.value, options.format))) {
-                            datetimepicker.data('changed', false);
-                        }
-                        datetimepicker.data('xdsoft_datetime').setCurrentTime(this.value);
-                        break;
-                    case 'validate':
-                        $input = datetimepicker.data('input');
-                        $input.trigger('blur.xdsoft');
-                        break;
-                    default:
-                        if (datetimepicker[opt] && $.isFunction(datetimepicker[opt])) {
-                            result = datetimepicker[opt](opt2);
-                        }
-                    }
-                } else {
-                    datetimepicker
-                        .setOptions(opt);
-                }
-                return 0;
-            }
-            if ($.type(opt) !== 'string') {
-                if (!options.lazyInit || options.open || options.inline) {
-                    createDateTimePicker($(this));
-                } else {
-                    lazyInit($(this));
-                }
-            }
-        });
-
-        return result;
-    };
-
-    $.fn.datetimepicker.defaults = default_options;
-
-    function HighlightedDate(date, desc, style) {
-        "use strict";
-        this.date = date;
-        this.desc = desc;
-        this.style = style;
-    }
-}));
-/*!
- * jQuery Mousewheel 3.1.13
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- */
-
-(function (factory) {
-    if ( typeof define === 'function' && define.amd ) {
-        // AMD. Register as an anonymous module.
-        define(['jquery'], factory);
-    } else if (typeof exports === 'object') {
-        // Node/CommonJS style for Browserify
-        module.exports = factory;
-    } else {
-        // Browser globals
-        factory(jQuery);
-    }
-}(function ($) {
-
-    var toFix  = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'],
-        toBind = ( 'onwheel' in document || document.documentMode >= 9 ) ?
-                    ['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'],
-        slice  = Array.prototype.slice,
-        nullLowestDeltaTimeout, lowestDelta;
-
-    if ( $.event.fixHooks ) {
-        for ( var i = toFix.length; i; ) {
-            $.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks;
-        }
-    }
-
-    var special = $.event.special.mousewheel = {
-        version: '3.1.12',
-
-        setup: function() {
-            if ( this.addEventListener ) {
-                for ( var i = toBind.length; i; ) {
-                    this.addEventListener( toBind[--i], handler, false );
-                }
-            } else {
-                this.onmousewheel = handler;
-            }
-            // Store the line height and page height for this particular element
-            $.data(this, 'mousewheel-line-height', special.getLineHeight(this));
-            $.data(this, 'mousewheel-page-height', special.getPageHeight(this));
-        },
-
-        teardown: function() {
-            if ( this.removeEventListener ) {
-                for ( var i = toBind.length; i; ) {
-                    this.removeEventListener( toBind[--i], handler, false );
-                }
-            } else {
-                this.onmousewheel = null;
-            }
-            // Clean up the data we added to the element
-            $.removeData(this, 'mousewheel-line-height');
-            $.removeData(this, 'mousewheel-page-height');
-        },
-
-        getLineHeight: function(elem) {
-            var $elem = $(elem),
-                $parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
-            if (!$parent.length) {
-                $parent = $('body');
-            }
-            return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
-        },
-
-        getPageHeight: function(elem) {
-            return $(elem).height();
-        },
-
-        settings: {
-            adjustOldDeltas: true, // see shouldAdjustOldDeltas() below
-            normalizeOffset: true  // calls getBoundingClientRect for each event
-        }
-    };
-
-    $.fn.extend({
-        mousewheel: function(fn) {
-            return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel');
-        },
-
-        unmousewheel: function(fn) {
-            return this.unbind('mousewheel', fn);
-        }
-    });
-
-
-    function handler(event) {
-        var orgEvent   = event || window.event,
-            args       = slice.call(arguments, 1),
-            delta      = 0,
-            deltaX     = 0,
-            deltaY     = 0,
-            absDelta   = 0,
-            offsetX    = 0,
-            offsetY    = 0;
-        event = $.event.fix(orgEvent);
-        event.type = 'mousewheel';
-
-        // Old school scrollwheel delta
-        if ( 'detail'      in orgEvent ) { deltaY = orgEvent.detail * -1;      }
-        if ( 'wheelDelta'  in orgEvent ) { deltaY = orgEvent.wheelDelta;       }
-        if ( 'wheelDeltaY' in orgEvent ) { deltaY = orgEvent.wheelDeltaY;      }
-        if ( 'wheelDeltaX' in orgEvent ) { deltaX = orgEvent.wheelDeltaX * -1; }
-
-        // Firefox < 17 horizontal scrolling related to DOMMouseScroll event
-        if ( 'axis' in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
-            deltaX = deltaY * -1;
-            deltaY = 0;
-        }
-
-        // Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
-        delta = deltaY === 0 ? deltaX : deltaY;
-
-        // New school wheel delta (wheel event)
-        if ( 'deltaY' in orgEvent ) {
-            deltaY = orgEvent.deltaY * -1;
-            delta  = deltaY;
-        }
-        if ( 'deltaX' in orgEvent ) {
-            deltaX = orgEvent.deltaX;
-            if ( deltaY === 0 ) { delta  = deltaX * -1; }
-        }
-
-        // No change actually happened, no reason to go any further
-        if ( deltaY === 0 && deltaX === 0 ) { return; }
-
-        // Need to convert lines and pages to pixels if we aren't already in pixels
-        // There are three delta modes:
-        //   * deltaMode 0 is by pixels, nothing to do
-        //   * deltaMode 1 is by lines
-        //   * deltaMode 2 is by pages
-        if ( orgEvent.deltaMode === 1 ) {
-            var lineHeight = $.data(this, 'mousewheel-line-height');
-            delta  *= lineHeight;
-            deltaY *= lineHeight;
-            deltaX *= lineHeight;
-        } else if ( orgEvent.deltaMode === 2 ) {
-            var pageHeight = $.data(this, 'mousewheel-page-height');
-            delta  *= pageHeight;
-            deltaY *= pageHeight;
-            deltaX *= pageHeight;
-        }
-
-        // Store lowest absolute delta to normalize the delta values
-        absDelta = Math.max( Math.abs(deltaY), Math.abs(deltaX) );
-
-        if ( !lowestDelta || absDelta < lowestDelta ) {
-            lowestDelta = absDelta;
-
-            // Adjust older deltas if necessary
-            if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
-                lowestDelta /= 40;
-            }
-        }
-
-        // Adjust older deltas if necessary
-        if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
-            // Divide all the things by 40!
-            delta  /= 40;
-            deltaX /= 40;
-            deltaY /= 40;
-        }
-
-        // Get a whole, normalized value for the deltas
-        delta  = Math[ delta  >= 1 ? 'floor' : 'ceil' ](delta  / lowestDelta);
-        deltaX = Math[ deltaX >= 1 ? 'floor' : 'ceil' ](deltaX / lowestDelta);
-        deltaY = Math[ deltaY >= 1 ? 'floor' : 'ceil' ](deltaY / lowestDelta);
-
-        // Normalise offsetX and offsetY properties
-        if ( special.settings.normalizeOffset && this.getBoundingClientRect ) {
-            var boundingRect = this.getBoundingClientRect();
-            offsetX = event.clientX - boundingRect.left;
-            offsetY = event.clientY - boundingRect.top;
-        }
-
-        // Add information to the event object
-        event.deltaX = deltaX;
-        event.deltaY = deltaY;
-        event.deltaFactor = lowestDelta;
-        event.offsetX = offsetX;
-        event.offsetY = offsetY;
-        // Go ahead and set deltaMode to 0 since we converted to pixels
-        // Although this is a little odd since we overwrite the deltaX/Y
-        // properties with normalized deltas.
-        event.deltaMode = 0;
-
-        // Add event and delta to the front of the arguments
-        args.unshift(event, delta, deltaX, deltaY);
-
-        // Clearout lowestDelta after sometime to better
-        // handle multiple device types that give different
-        // a different lowestDelta
-        // Ex: trackpad = 3 and mouse wheel = 120
-        if (nullLowestDeltaTimeout) { clearTimeout(nullLowestDeltaTimeout); }
-        nullLowestDeltaTimeout = setTimeout(nullLowestDelta, 200);
-
-        return ($.event.dispatch || $.event.handle).apply(this, args);
-    }
-
-    function nullLowestDelta() {
-        lowestDelta = null;
-    }
-
-    function shouldAdjustOldDeltas(orgEvent, absDelta) {
-        // If this is an older event and the delta is divisable by 120,
-        // then we are assuming that the browser is treating this as an
-        // older mouse wheel event and that we should divide the deltas
-        // by 40 to try and get a more usable deltaFactor.
-        // Side note, this actually impacts the reported scroll distance
-        // in older browsers and can cause scrolling to be slower than native.
-        // Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.
-        return special.settings.adjustOldDeltas && orgEvent.type === 'mousewheel' && absDelta % 120 === 0;
-    }
-
-}));

+ 0 - 64
acp/template/js/functions.js

@@ -1,64 +0,0 @@
-function loading(show)
-{
-    if(show)
-        $('#loadinginfo').css('display', 'block');
-    else
-        $('#loadinginfo').css('display', 'none');
-}
-
-function cashback_output(id, type)
-{
-    if(type == 'mm')
-        bootbox.dialog('Вы подтверждаете, что вывели деньги на эл. кошелек?',
-            [{
-                "label" : "Подтверждаю",
-                callback: function() {
-                    cashback_output_go(id)
-                }
-            },{
-                "label" : "Отмена"
-            }]
-        );
-    else
-        bootbox.dialog('Будет выполнен запрос через шлюз',
-            [{
-                "label" : "Продолжить",
-                callback: function() {
-                    cashback_output_go(id)
-                }
-            },{
-                "label" : "Отмена"
-            }]
-        );
-}
-
-function cashback_output_go(id)
-{
-    $.getJSON(home+'cashback/id/'+id, function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "OK",
-                        "class" : "btn-small btn-primary",
-                    }]
-                );
-
-            if(i == 's')
-            {
-                bootbox.dialog(val,
-                    [{
-                        "label" : "Продолжить",
-                        callback: function() {
-                            location.reload()
-                        }
-                    }]
-                );
-            }
-        });
-    });
-
-    return false
-}

Різницю між файлами не показано, бо вона завелика
+ 0 - 1
acp/template/js/jquery.js


+ 0 - 49
acp/template/js/letter.js

@@ -1,49 +0,0 @@
-$('#letter').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-            {
-                bootbox.dialog('<h3 class="green">Внимание</h3> Рассылка выполнена. <br> Список почт, на которые не удалось отправить сообщение: '+val,
-                    [{
-                        "label" : "Продолжить",
-                        callback : function(){location.reload()}
-                    }]
-                );
-            }
-        });
-
-        loading(0)
-    }
-});
-
-function checked_all()
-{
-    if(letter_all)
-    {
-        for(i=0; i < document.letter.length; i++)
-        {
-            if(document.letter.elements[i].type == 'checkbox')
-                document.letter.elements[i].checked = false;
-        }
-
-        letter_all = false;
-    }else{
-        for(i=0; i < document.letter.length; i++)
-        {
-            if(document.letter.elements[i].type == 'checkbox')
-                document.letter.elements[i].checked = true;
-        }
-
-        letter_all = true;
-    }
-}

+ 0 - 87
acp/template/js/logs.js

@@ -1,87 +0,0 @@
-function logs_sys_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'logs/subsection/search'+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function logs_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'logs/section/search'+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-            });
-
-            loading(0);
-        }
-    });
-}

+ 0 - 120
acp/template/js/news.js

@@ -1,120 +0,0 @@
-$('#news').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                location.reload();
-        });
-
-        loading(0)
-    }
-});
-
-function news_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'news/subsection/search'+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function news_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить новость?',
-        [{
-            "label" : "Удалить",
-            callback : function(){news_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function news_delete_go(id)
-{
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'news/section/delete/id/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function bbcode(bbbegin, bbend, ta)
-{
-    form = document.getElementById(ta);
-    begin = form.value.substr(0, form.selectionStart);
-    end = form.value.substr(form.selectionEnd);
-    sel = form.value.substr(form.selectionStart, form.selectionEnd-form.selectionStart);
-    var text = form.firstChild;
-    form.value = begin+bbbegin+sel+bbend+end;
-    selPos = bbbegin.length+begin.length+sel.length+bbend.length;
-    form.setSelectionRange(begin.length, selPos);
-
-    return false;
-}

+ 0 - 118
acp/template/js/notice.js

@@ -1,118 +0,0 @@
-$('#notice').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                location.reload();
-        });
-
-        loading(0)
-    }
-});
-
-function notice_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'notice/subsection/search'+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function change_notice_type()
-{
-    if($('#type').val() == 'unit')
-    {
-        $('#notice_unit').css('display', 'block');
-        $('#notice_server').css('display', 'none');
-    }else{
-        $('#notice_unit').css('display', 'none');
-        $('#notice_server').css('display', 'block');
-    }
-}
-
-function notice_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить уведомление?',
-        [{
-            "label" : "Удалить",
-            callback : function(){notice_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function notice_delete_go(id)
-{
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'notice/section/delete/id/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}

+ 0 - 62
acp/template/js/pages.js

@@ -1,62 +0,0 @@
-$('#page').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                location.reload();
-        });
-
-        loading(0)
-    }
-});
-
-function page_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить страницу?',
-        [{
-            "label" : "Удалить",
-            callback : function(){page_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function page_delete_go(id)
-{
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'pages/section/delete/id/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}

+ 0 - 148
acp/template/js/promo.js

@@ -1,148 +0,0 @@
-$('#promo').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                location.reload();
-        });
-
-        loading(0)
-    }
-});
-
-function promo_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'promo/subsection/search'+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function promo_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить акцию?',
-        [{
-            "label" : "Удалить",
-            callback : function(){promo_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function promo_delete_go(id)
-{
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'promo/section/delete/id/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function promo_use_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить лог использования акции?',
-        [{
-            "label" : "Удалить",
-            callback : function(){promo_use_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function promo_use_delete_go(id)
-{
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'promo/section/stats/delete/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}

+ 0 - 224
acp/template/js/servers.js

@@ -1,224 +0,0 @@
-$('#server').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                location.reload();
-        });
-
-        loading(0)
-    }
-});
-
-function servers_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'servers/subsection/search'+url_search+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-
-                if(i == 'url')
-                    url_search = val;
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function servers_overdue(id, time)
-{
-    bootbox.dialog('<p>Установка даты:</p> <div class="inputs inputs-max"><input type="text" id="date_overdue" onclick="datepick(\'date_overdue\', \''+time+'\')"></div>',
-        [{
-            "label" : "Установить",
-            callback : function(){servers_overdue_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function servers_block(id, time)
-{
-    bootbox.dialog('<p>Установка даты:</p> <div class="inputs inputs-max"><input type="text" id="date_block" onclick="datepick(\'date_block\', \''+time+'\')"></div>',
-        [{
-            "label" : "Заблокировать",
-            callback : function(){servers_block_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function datepick(input, time)
-{
-    if($('#'+input).val() != '')
-        time = $('#'+input).val();
-
-    $('#'+input).datetimepicker({value: time, format: 'd/m/Y H:i'});
-}
-
-function servers_overdue_go(id)
-{
-    $.ajax({
-        type: 'POST',
-        url: home+'servers/type/overdue/id/'+id+'/go',
-        data: 'time='+$('#date_overdue').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload();
-            });
-        }
-    });
-}
-
-function servers_block_go(id)
-{
-    $.ajax({
-        type: 'POST',
-        url: home+'servers/type/block/id/'+id+'/go',
-        data: 'time='+$('#date_block').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload();
-            });
-        }
-    });
-}
-
-function servers_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить сервер?',
-        [{
-            "label" : "Удалить",
-            callback : function(){servers_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function servers_delete_go(id)
-{
-    
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'servers/section/delete/id/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function change_tarif(id)
-{
-
-    loading(1);
-
-    $.ajax({
-        url: home+'servers/type/tarif/id/'+id+'/tarif/'+$('#tarif').val()+'/go',
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}

+ 0 - 72
acp/template/js/system.js

@@ -1,72 +0,0 @@
-function system_load(go)
-{
-    if(go)
-        loading(1);
-
-    $.getJSON(home+'system/go/',
-    function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            $('#'+i).html(val);
-        });
-
-        loading(0);
-
-        if(!go)
-            setTimeout(function() {system_load(false)}, 3000);
-    });
-}
-
-function system_restart(service)
-{
-    switch(service)
-    {
-        case 'apache2':
-            type = 'apache2';
-        break;
-        case 'nginx':
-            type = 'nginx';
-        break;
-        case 'mysql':
-            type = 'mysql';
-        break;
-        case 'unit':
-            type = 'локацию';
-        break;
-    }
-
-    bootbox.dialog('<h3 class="green">Внимание</h3>Вы уверены что хотите перезагруить <u>'+type+'</u>',
-    [{
-        "label" : "Перезагрузить",
-        callback: function(){system_restart_go(service)}
-    },{
-        "label" : "Отмена"
-    }]);
-
-    return false;
-}
-
-function system_restart_go(id, service)
-{
-    loading(1);
-
-    $.getJSON(home+'system/service/'+service,
-    function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                system_load(true);
-        });
-
-        loading(0);
-    });
-}

+ 0 - 141
acp/template/js/tarifs.js

@@ -1,141 +0,0 @@
-$('#tarif').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                location.href=home+'tarifs/id/'+val
-        });
-
-        loading(0)
-    }
-});
-
-function tarifs_ports(ports)
-{
-    $('#ports').val(ports);
-}
-
-function tarifs_sort(sort)
-{
-    switch(sort)
-    {
-        case 'id':
-            if(sort_id == 'asc')
-                sort_id = 'desc';
-            else
-                sort_id = 'asc';
-
-            sorting = sort_id;
-
-        break;
-
-        case 'unit':
-            sort_unit = sort_unit == 'asc' ? 'desc' : 'asc';
-            sorting = sort_unit;
-
-        break;
-
-        case 'game':
-            sort_game = sort_game == 'asc' ? 'desc' : 'asc';
-            sorting = sort_game;
-
-    }
-
-    location.href=home+'tarifs/sort/'+sort+'/sorting/'+sorting;
-}
-
-function tarifs_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'tarifs/subsection/search'+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function tarifs_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить тариф?',
-        [{
-            "label" : "Удалить",
-            callback : function(){tarifs_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function tarifs_delete_go(id)
-{
-    
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'tarifs/section/delete/id/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}

+ 0 - 142
acp/template/js/units.js

@@ -1,142 +0,0 @@
-$('#unit').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                location.href=home+'units/id/'+val;
-        });
-
-        loading(0)
-    }
-});
-
-function units_load(id, go)
-{
-    if(go)
-        loading(1);
-
-    $.getJSON(home+'units/section/loading/id/'+id,
-    function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            $('#'+i+'_'+id).html(val);
-        });
-
-        loading(0);
-
-        if(!go)
-            setTimeout(function() {units_load(id, false)}, 3000);
-    });
-}
-
-function units_restart(id, service)
-{
-    switch(service)
-    {
-        case 'apache2':
-            type = 'apache2';
-        break;
-        case 'nginx':
-            type = 'nginx';
-        break;
-        case 'mysql':
-            type = 'mysql';
-        break;
-        case 'unit':
-            type = 'локацию';
-        break;
-    }
-
-    bootbox.dialog('<h3 class="green">Внимание</h3>Вы уверены что хотите перезагруить <u>'+type+'</u>',
-    [{
-        "label" : "Перезагрузить",
-        callback: function(){units_restart_go(id, service)}
-    },{
-        "label" : "Отмена"
-    }]);
-
-    return false;
-}
-
-function units_restart_go(id, service)
-{
-    loading(1);
-
-    $.getJSON(home+'units/section/loading/id/'+id+'/service/'+service,
-    function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                units_load(id, true);
-        });
-
-        loading(0);
-    });
-}
-
-function units_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить локацию?. <br>'
-            +'При <i>"Удалить полностью"</i> - удаляются все услуги и их логи, а также тарифы.',
-        [{
-            "label" : "Удалить",
-            callback : function(){units_delete_go(id, false)}
-        },{
-            "label" : "Удалить полностью",
-            callback : function(){units_delete_go(id, true)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function units_delete_go(id, all)
-{
-    
-    loading(1);
-
-    if(all) go = '/delete/all'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'units/section/delete/id/'+id+go,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}

+ 0 - 179
acp/template/js/users.js

@@ -1,179 +0,0 @@
-$('#user').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-            {
-                bootbox.dialog('<h3 class="green">Внимание</h3> Внесенные изменения сохранены.',
-                    [{
-                        "label" : "Продолжить",
-                        callback : function(){location.reload()}
-                    }]
-                );
-            }
-        });
-
-        loading(0)
-    }
-});
-
-function users_sort(sort)
-{
-    switch(sort)
-    {
-        case 'id':
-            if(sort_id == 'asc')
-                sort_id = 'desc';
-            else
-                sort_id = 'asc';
-
-            sorting = sort_id;
-
-        break;
-
-        case 'balance':
-            sort_balance = sort_balance == 'asc' ? 'desc' : 'asc';
-            sorting = sort_balance;
-
-        break;
-
-        case 'group':
-            sort_group = sort_group == 'asc' ? 'desc' : 'asc';
-            sorting = sort_group;
-
-    }
-
-    location.href=home+'users/sort/'+sort+'/sorting/'+sorting;
-}
-
-function users_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'users/subsection/search'+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function users_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить этого пользователя? <br>'
-            +'При <i>"Удалить полностью"</i> - удаляются все логи, услуги поступают в поток удаления.',
-        [{
-            "label" : "Удалить",
-            callback : function(){users_delete_go(id, false)}
-        },{
-            "label" : "Удалить полностью",
-            callback : function(){users_delete_go(id, true)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function users_delete_go(id, all)
-{
-    
-    loading(1);
-
-    if(all) go = '/delete/all'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'users/section/delete/id/'+id+go,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function users_delete_signup(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить подачу регистрации?',
-        [{
-            "label" : "Удалить",
-            callback : function(){users_delete_signup_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function users_delete_signup_go(id)
-{
-    
-    loading(1);
-
-    $.getJSON(home+'users/section/signup/delete/signup/id/'+id,
-    function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 's')
-                location.reload();
-        });
-    });
-}

+ 0 - 87
acp/template/js/web.js

@@ -1,87 +0,0 @@
-function web_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'web/subsection/search'+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function web_delete(server, type)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить услугу?',
-        [{
-            "label" : "Удалить",
-            callback : function(){web_delete_go(server, type)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function web_delete_go(server, type)
-{
-    loading(1);
-
-    $.getJSON('/servers/id/'+server+'/section/web/subsection/'+type+'/action/delete/go', function(arr)
-    {
-        $.each(arr, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                            "label" : "Продолжить",
-                    }]
-                );
-
-            if(i == 'i')
-                bootbox.dialog('<h3 class="blue">Внимание</h3>'+val,
-                    [{
-                            "label" : "Продолжить",
-                    }]
-                );
-
-            if(i == 's')
-                location.reload();
-        });
-
-        loading(0)
-    });
-}

+ 0 - 162
acp/template/js/wiki.js

@@ -1,162 +0,0 @@
-$('#wiki').ajaxForm({
-    dataType: 'json',
-    success: function(data)
-    {
-        $.each(data, function(i, val)
-        {
-            if(i == 'e')
-                bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                    [{
-                        "label" : "Продолжить"
-                    }]
-                );
-
-            if(i == 's')
-                location.reload();
-        });
-
-        loading(0)
-    }
-});
-
-function wiki_search(go)
-{
-    if($('#search').val() == '')
-    {
-        $('#search_error').css('display', 'none');
-
-        return;
-    }
-
-    loading(1);
-
-    if(go) go = '/go'; else go = '';
-
-    $.ajax({
-        type: 'POST',
-        url: home+'wiki/subsection/search'+go,
-        data: 'text='+$('#search').val(),
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                {
-                    if(val != '')
-                    {
-                        $('#search_error').css('display', 'inline-block');
-                        $('#search_error').html(val);
-                    }else
-                        $('#search_error').css('display', 'none');
-                }
-
-                if(i == 's')
-                {
-                    $('#search_error').css('display', 'none');
-                    $('#search_result').html(val);
-                }
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function wiki_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить ответ?',
-        [{
-            "label" : "Удалить",
-            callback : function(){wiki_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function wiki_delete_go(id)
-{
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'wiki/section/delete/id/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function wiki_cat_delete(id)
-{
-    bootbox.dialog('<h3 class="green">Внимание</h3> Вы уверены, что хотите удалить категорию?',
-        [{
-            "label" : "Удалить",
-            callback : function(){wiki_cat_delete_go(id)}
-        },{
-            "label" : "Отмена",
-        }]
-    );
-
-    return false;
-}
-
-function wiki_cat_delete_go(id)
-{
-    loading(1);
-
-    $.ajax({
-        type: 'POST',
-        url: home+'wiki/section/delete/type/cat/id/'+id,
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val)
-            {
-                if(i == 'e')
-                    bootbox.dialog('<h3 class="red">Ошибка</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    location.reload()
-            });
-
-            loading(0);
-        }
-    });
-}
-
-function bbcode(bbbegin, bbend)
-{
-    form = document.getElementById('text');
-    begin = form.value.substr(0, form.selectionStart);
-    end = form.value.substr(form.selectionEnd);
-    sel = form.value.substr(form.selectionStart, form.selectionEnd-form.selectionStart);
-    var text = form.firstChild;
-    form.value = begin+bbbegin+sel+bbend+end;
-    selPos = bbbegin.length+begin.length+sel.length+bbend.length;
-    form.setSelectionRange(begin.length, selPos);
-
-    return false;
-}

+ 0 - 99
acp/template/main.html

@@ -1,99 +0,0 @@
-<table>
-    <tbody>
-        <tr>
-            <td>Пользователей в базе:</td>
-            <td class="text-right">[users] шт.</td>
-        </tr>
-        <tr>
-            <td>Серверов в базе:</td>
-            <td class="text-right">[servers] шт.</td>
-        </tr>
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Заявки на вывод денежных средств</div>
-
-<table>
-    <tbody>
-        [cashback]
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Количество слот на серверах</div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th>Игра</th>
-            <th class="w25p text-center">Серверов</th>
-            <th class="w25p text-right">Слот</th>
-        </tr>
-    </thead>
-    <tbody>
-        <tr>
-            <td>Counter-Strike: 1.6</td>
-            <td class="text-center">[cs] шт.</td>
-            <td class="text-right">[slots_cs] шт.</td>
-        </tr>
-        <tr>
-            <td>Counter-Strike: Source v34</td>
-            <td class="text-center">[cssold] шт.</td>
-            <td class="text-right">[slots_cssold] шт.</td>
-        </tr>
-        <tr>
-            <td>Counter-Strike: Source</td>
-            <td class="text-center">[css] шт.</td>
-            <td class="text-right">[slots_css] шт.</td>
-        </tr>
-        <tr>
-            <td>Counter-Strike: Global Offensive</td>
-            <td class="text-center">[csgo] шт.</td>
-            <td class="text-right">[slots_csgo] шт.</td>
-        </tr>
-        <tr>
-            <td>GTA: SA-MP</td>
-            <td class="text-center">[samp] шт.</td>
-            <td class="text-right">[slots_samp] шт.</td>
-        </tr>
-        <tr>
-            <td>GTA: CR-MP</td>
-            <td class="text-center">[crmp] шт.</td>
-            <td class="text-right">[slots_crmp] шт.</td>
-        </tr>
-        <tr>
-            <td>GTA: MTA</td>
-            <td class="text-center">[mta] шт.</td>
-            <td class="text-right">[slots_mta] шт.</td>
-        </tr>
-        <tr>
-            <td>Minecraft</td>
-            <td class="text-center">[mc] шт.</td>
-            <td class="text-right">[slots_mc] шт.</td>
-        </tr>
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Состояние персонала</div>
-
-<table>
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th class="w25p">Имя</th>
-            <th class="w15p text-center">Группа</th>
-            <th class="w15p text-center">Адрес</th>
-            <th class="w15p text-center">Браузер</th>
-            <th class="w10 text-center">Состояние</th>
-            <th class="w15p text-right">Активность</th>
-        </tr>
-    </thead>
-    <tbody>
-        [staff]
-    </tbody>
-</table>

+ 0 - 54
acp/template/sections/addons/addcat.html

@@ -1,54 +0,0 @@
-<form action="[acp]addons/section/addcat/go" method="POST" id="addons">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td class="w25p"><input name="name" placeholder="Введите название" type="text"></td>
-                <td class="w5p text-right">Положение:</td>
-                <td class="w25p"><input name="sort" placeholder="Введите место в списке" type="text"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Игры:</td>
-                <td colspan="4">
-                    <label>
-                        CS 1.6
-                        <input type="checkbox" name="cs" checked="">
-                    </label>
-                    <label>
-                        CS:S v34
-                        <input type="checkbox" name="cssold" checked="">
-                    </label>
-                    <label>
-                        CS:S
-                        <input type="checkbox" name="css" checked="">
-                    </label>
-                    <label>
-                        CS:GO
-                        <input type="checkbox" name="csgo" checked="">
-                    </label>
-                    <label>
-                        SA-MP
-                        <input type="checkbox" name="samp" checked="">
-                    </label>
-                    <label>
-                        CR-MP
-                        <input type="checkbox" name="crmp" checked="">
-                    </label>
-                    <label>
-                        MTA
-                        <input type="checkbox" name="mta" checked="">
-                    </label>
-                    <label>
-                        MC
-                        <input type="checkbox" name="mc" checked="">
-                    </label>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]addons.js"></script>

+ 0 - 179
acp/template/sections/addons/addpl.html

@@ -1,179 +0,0 @@
-<form enctype="multipart/form-data" action="[acp]addons/section/addpl/go" method="POST" id="addons">
-    <div class="informer">Основные настройки</div>
-
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td class="w25p"><input name="name" placeholder="Введите название" type="text"></td>
-                <td class="w5p text-right">Игра:</td>
-                <td class="w25p">
-                    <select name="game" id="game" onchange="plugins_category()">
-                        <option value="0">Выберете игру</option>
-                        <option value="cs">Counter-Strike: 1.6</option>
-                        <option value="cssold">Counter-Strike: Source v34</option>
-                        <option value="css">Counter-Strike: Source</option>
-                        <option value="csgo">Counter-Strike: Global Offensive</option>
-                        <option value="samp">San Andreas Multiplayer</option>
-                        <option value="crmp">GTA: Criminal Russia</option>
-                        <option value="mta">Multi Theft Auto</option>
-                        <option value="mc">Minecraft</option>
-                    </select>
-                </td>
-                <td class="w5p text-right">Категория:</td>
-                <td class="w25p">
-                    <select name="category" id="category">
-                        <option value="0">Выберете категорию</option>
-                    </select>
-                </td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Статус:</td>
-                <td>
-                    <select name="status">
-                        <option value="0">Стабильный</option>
-                        <option value="1">Нестабильный</option>
-                        <option value="2">Тестируемый</option>
-                    </select>
-                </td>
-                <td class="w5p text-right">Положение:</td>
-                <td><input name="sort" placeholder="Введите место в списке" type="text"></td>
-                <td class="w5p text-right">Сборки:</td>
-                <td><input name="packs" placeholder="Введите сборки" value="all" type="text"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right vtop">Описание:</td>
-                <td colspan="5"><textarea rows="3" name="desc" placeholder="Введите описание плагина"></textarea></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right vtop">Информация:</td>
-                <td colspan="5"><textarea rows="3" name="info" placeholder="Введите информацию по плагину"></textarea></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right vtop">Картинки:</td>
-                <td colspan="5"><textarea rows="3" name="images" placeholder="Введите ссылки на картинки"></textarea></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Требования:</td>
-                <td><input name="required" placeholder="Введите ID плагинов" type="text"></td>
-                <td class="w5p text-right">Несовместимости:</td>
-                <td><input name="incompatible" placeholder="Введите ID плагинов" type="text"></td>
-                <td class="w5p text-right"><b>Цена</b>:</td>
-                <td><input name="price" placeholder="Введите цену плагина" type="text" value="0"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Выборка:</td>
-                <td colspan="5"><input name="choice" placeholder="Введите ID плагинов: id:id:id id:id" type="text"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Версия:</td>
-                <td>
-                    <select id="update" onchange="add_plugin_type()">
-                        <option value="0">Последняя версия</option>
-                        <option value="1">Новая версия</option>
-                    </select>
-                </td>
-                <td class="w5p text-right">Обновление:</td>
-                <td><input name="update" placeholder="Введите ID плагина" value="0" type="text"></td>
-                <td class="w5p text-right">Удаление:</td>
-                <td><input name="delete" placeholder="Введите ID плагина" value="0" type="text"></td>
-            </tr>
-            <tr id="new_plugin">
-                <td class="w5p text-right">Архив:</td>
-                <td colspan="5"><input type="file" name="file" accept=".zip"></td>
-            </tr>
-            <tr id="upd_plugin" class="none">
-                <td colspan="6" class="text-center">
-                    Плагин:
-                        <input type="file" name="new_file" accept=".zip">
-                    Обновление:
-                        <input type="file" name="upd_file" accept=".zip">
-                </td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <label class="right">Сгенерировать автоматически <input type="checkbox" name="aecfg" id="cfa" onclick="config_files_form()"></label>
-
-    <div class="informer">Редактируемые файлы</div>
-
-    <table class="inputs inputs-max" id="config_files_form">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th class="w5p">Положение</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_files_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="config_files_all"></tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Удаление текста из файлов</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th>Текст</td>
-                <th class="w5p text-center">Regex</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_clear_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="config_clear_all"></tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Добавление текста в файлы после <u>установки</u> плагина</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th>Текст</td>
-                <th class="w5p text-center">TOP</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_write_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="config_write_all"></tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Добавление текста в файлы после <u>удаления</u> плагина</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th>Текст</td>
-                <th class="w5p text-center">TOP</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_write_del_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="config_write_del_all"></tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Удаление файлов после <u>установки</u> плагина</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th class="w5p text-center"><div class="btn" onclick="files_delete_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="files_delete_all"></tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]addons.js"></script>

+ 0 - 17
acp/template/sections/addons/cats.html

@@ -1,17 +0,0 @@
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p">#</th>
-            <th class="w20p">Название</th>
-            <th class="w20p text-center">Игра</th>
-            <th class="w15p text-center">Плагинов</th>
-            <th class="w10p text-center">Положение</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>
-
-<script type="text/javascript" src="[js]addons.js"></script>

+ 0 - 38
acp/template/sections/addons/index.html

@@ -1,38 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="plugins_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"><span onclick="plugins_sort('id')"><i class="fa fa-sort-numeric-[sort_id]"></i></span></th>
-            <th class="w20p">Название</th>
-            <th class="w20p">Категория <span onclick="plugins_sort('cat')"><i class="fa fa-sort-numeric-[sort_cat]"></i></span></th>
-            <th class="w15p">Статус</th>
-            <th class="w10p">Игра <span onclick="plugins_sort('game')"><i class="fa fa-sort-alpha-[sort_game]"></i></span></th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    var sort_id = '[sort_id]';
-    var sort_cat = '[sort_cat]';
-    var sort_game = '[sort_game]';
-
-    $('#search').keyup(function(){
-        plugins_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]addons.js"></script>

+ 0 - 9
acp/template/sections/addons/menu.html

@@ -1,9 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]addons/section/addcat" |s_addcat|class="active"|_s_addcat|><i class="fa fa-plus-square"></i> Добавить категорию</a></li>
-    <li><a href="[acp]addons/section/cats" |s_cats|class="active"|_s_cats|><i class="fa fa-list-ol"></i> Список категорий <span>[cats]</span></a></li>
-    <li><a href="[acp]addons/section/addpl" |s_addpl|class="active"|_s_addpl|><i class="fa fa-plus-square"></i> Добавить плагин</a></li>
-    <li><a href="[acp]addons" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Список плагинов <span>[plugins]</span></a></li>
-    <li><a href="[acp]addons/section/updmp" |s_updmp|class="active"|_s_updmp|><i class="fa fa-cloud-download"></i> Обновление списка карт</a></li>
-</ul>

+ 0 - 145
acp/template/sections/addons/plugin.html

@@ -1,145 +0,0 @@
-<form enctype="multipart/form-data" action="[acp]addons/id/[id]/go" method="POST" id="addons">
-    <div class="informer">Основные настройки</div>
-
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td class="w25p"><input name="name" value="[name]" type="text"></td>
-                <td class="w5p text-right">Игра:</td>
-                <td class="w25p">[game]</td>
-                <td class="w5p text-right">Категория:</td>
-                <td class="w25p"><select name="category">[category]</select></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Статус:</td>
-                <td><select name="status">[status]</select></td>
-                <td class="w5p text-right">Положение:</td>
-                <td><input name="sort" value="[sort]" type="text"></td>
-                <td class="w5p text-right">Сборки:</td>
-                <td><input name="packs" value="[packs]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right vtop">Описание:</td>
-                <td colspan="5"><textarea rows="3" name="desc">[desc]</textarea></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right vtop">Информация:</td>
-                <td colspan="5"><textarea rows="3" name="info">[info]</textarea></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right vtop">Картинки:</td>
-                <td colspan="5"><textarea rows="3" name="images">[images]</textarea></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Требования:</td>
-                <td><input name="required" value="[required]" type="text"></td>
-                <td class="w5p text-right">Несовместимости:</td>
-                <td><input name="incompatible" value="[incompatible]" type="text"></td>
-                <td class="w5p text-right"><b>Цена</b>:</td>
-                <td><input name="price" placeholder="Введите цену плагина" type="text" value="[price]"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Выборка:</td>
-                <td colspan="5"><input name="choice" value="[choice]" placeholder="Введите ID плагинов: id:id:id id:id" type="text"></td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Редактируемые файлы</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th class="w5p">Положение</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_files_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody>[config_files_all]</tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Удаление текста из файлов</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th>Текст</td>
-                <th class="w5p text-center">Regex</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_clear_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="config_clear_all">[config_clear_all]</tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Добавление текста в файлы после <u>установки</u> плагина</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th>Текст</td>
-                <th class="w5p text-center">TOP</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_write_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="config_write_all">[config_write_all]</tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Добавление текста в файлы после <u>удаления</u> плагина</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th>Текст</td>
-                <th class="w5p text-center">TOP</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_write_del_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="config_write_del_all">[config_write_del_all]</tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Удаление файлов после <u>установки</u> плагина</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th class="w5p text-center"><div class="btn" onclick="files_delete_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="files_delete_all">[files_delete_all]</tbody>
-    </table>
-</form>
-
-<div class="space"></div>
-
-<div class="informer green">Новые версии плагина</div>
-
-<table class="inputs inputs-max">
-    <thead>
-        <tr>
-            <th>Название</td>
-            <th class="w5p text-center">Статус</td>
-            <th class="w5p text-center"></td>
-        </tr>
-    </thead>
-    <tbody>[update]</tbody>
-</table>
-
-<script type="text/javascript" src="[js]addons.js"></script>

+ 0 - 130
acp/template/sections/addons/update.html

@@ -1,130 +0,0 @@
-<a href="[acp]addons/id/[plugin]">Назад к плагину</a>
-
-<div class="space"></div>
-
-<form enctype="multipart/form-data" action="[acp]addons/section/update/id/[id]/go" method="POST" id="addons">
-    <div class="informer">Основные настройки</div>
-
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td class="w25p"><input name="name" value="[name]" type="text"></td>
-                <td class="w5p text-right">Требования:</td>
-                <td><input name="required" value="[required]" type="text"></td>
-                <td class="w5p text-right">Несовместимости:</td>
-                <td><input name="incompatible" value="[incompatible]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Выборка:</td>
-                <td colspan="3"><input name="choice"  value="[choice]" placeholder="Введите ID плагинов: id:id:id id:id" type="text"></td>
-                <td class="w5p text-right"><b>Цена</b>:</td>
-                <td><input name="price" placeholder="Введите цену плагина" type="text" value="[price]"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Статус:</td>
-                <td><select name="status">[status]</select></td>
-                <td class="w5p text-right">Положение:</td>
-                <td><input name="sort" value="[sort]" type="text"></td>
-                <td class="w5p text-right">Сборки:</td>
-                <td><input name="packs" value="[packs]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right vtop">Описание:</td>
-                <td colspan="5"><textarea rows="3" name="desc">[desc]</textarea></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right vtop">Информация:</td>
-                <td colspan="5"><textarea rows="3" name="info">[info]</textarea></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right vtop">Картинки:</td>
-                <td colspan="3"><textarea rows="3" name="images">[images]</textarea></td>
-                <td class="w5p text-right"><b>Цена</b>:</td>
-                <td><input name="price" placeholder="Введите цену плагина" type="text" value="[price]"></td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Редактируемые файлы</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th class="w5p">Положение</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_files_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody>[config_files_all]</tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Удаление текста из файлов</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th>Текст</td>
-                <th class="w5p text-center">Regex</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_clear_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="config_clear_all">[config_clear_all]</tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Добавление текста в файлы после <u>установки</u> плагина</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th>Текст</td>
-                <th class="w5p text-center">TOP</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_write_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="config_write_all">[config_write_all]</tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Добавление текста в файлы после <u>удаления</u> плагина</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th>Текст</td>
-                <th class="w5p text-center">TOP</td>
-                <th class="w5p text-center"><div class="btn" onclick="config_write_del_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="config_write_del_all">[config_write_del_all]</tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <div class="informer">Удаление файлов после <u>установки</u> плагина</div>
-
-    <table class="inputs inputs-max">
-        <thead>
-            <tr>
-                <th>Файл</td>
-                <th class="w5p text-center"><div class="btn" onclick="files_delete_add()">Добавить</div></td>
-            </tr>
-        </thead>
-        <tbody id="files_delete_all">[files_delete_all]</tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]addons.js"></script>

+ 0 - 44
acp/template/sections/addons/updmp.html

@@ -1,44 +0,0 @@
-<table class="inputs inputs-max">
-    <tbody>
-        <tr>
-            <td class="w5p text-right">Локация:</td>
-            <td>
-                <select id="unit" onchange="maps_reset_game()">
-                    <option value="0">Выберете локацию</option>
-                    [units]
-                </select>
-            </td>
-        </tr>
-        <tr>
-            <td class="w5p text-right">Игра:</td>
-            <td>
-                <select id="game" onchange="maps_list()">
-                    <option value="0">Выберете игру</option>
-                    <option value="cs">Counter-Strike: 1.6</option>
-                    <option value="cssold">Counter-Strike: Source v34</option>
-                    <option value="css">Counter-Strike: Source</option>
-                    <option value="csgo">Counter-Strike: Global Offensive</option>
-                </select>
-            </td>
-        </tr>
-        <tr>
-            <td colspan="2" class="text-center"><button class="btn btn-green" onclick="maps_update()">Обновить список</button></td>
-        </tr>
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Список карт выбранной локации и игры</div>
-
-<table class="inputs inputs-max">
-    <tbody>
-        <tr>
-            <td>
-                <textarea id="maps" rows="20" disabled></textarea>
-            </td>
-        </tr>
-    </tbody>
-</table>
-
-<script type="text/javascript" src="[js]addons.js"></script>

+ 0 - 84
acp/template/sections/boost/index.html

@@ -1,84 +0,0 @@
-<div class="informer">Статистика за все время</div>
-
-<table>
-    <tbody>
-        <tr>
-            <td>Количесто купленных кругов:</td>
-            <td class="text-right">[all_num] шт.</td>
-        </tr>
-        <tr>
-            <td>Затраченная сумма:</td>
-            <td class="text-right">[all_sum] [cur].</td>
-        </tr>
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Статистика за предыдущий месяц <b class="right text-red">[month_old]</b></div>
-
-<table>
-    <tbody>
-        <tr>
-            <td>Количесто купленных кругов:</td>
-            <td class="text-right">[old_num] шт.</td>
-        </tr>
-        <tr>
-            <td>Затраченная сумма:</td>
-            <td class="text-right">[old_sum] [cur].</td>
-        </tr>
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Статистика за текущий месяц <b class="right text-green">[month_now]</b></div>
-
-<table>
-    <tbody>
-        <tr>
-            <td>Количесто купленных кругов:</td>
-            <td class="text-right">[now_num] шт.</td>
-        </tr>
-        <tr>
-            <td>Затраченная сумма:</td>
-            <td class="text-right">[now_sum] [cur].</td>
-        </tr>
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="logs_sys_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th>Операция</th>
-            <th class="w5p">Пользователь</th>
-            <th class="w5p">Сервер</th>
-            <th class="w20p text-center">Дата</th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    $('#search').keyup(function(){
-        boost_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]boost.js"></script>

+ 0 - 6
acp/template/sections/boost/menu.html

@@ -1,6 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]boost" |s_index|class="active"|_s_index|><i class="fa fa-pie-chart"></i> Общая статистика </a></li>
-    [boosts]
-</ul>

+ 0 - 35
acp/template/sections/control/index.html

@@ -1,35 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="control_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="double-color">
-    <thead>
-        <tr>
-            <th class="w15p text-center">Номер / Владелец</th>
-            <th class="w20p text-center">Адрес / Статус</th>
-            <th class="w20p text-center">Добавлен / Аренда</th>
-            <th class="w15p text-center">Лимит / Цена</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    var url_search = '[url_search]';
-
-    $('#search').keyup(function(){
-        control_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]control.js"></script>

+ 0 - 6
acp/template/sections/control/menu.html

@@ -1,6 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]control" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Все сервера <span>[all]</span></a></li>
-    <li><a href="[acp]control/section/overdue" |s_overdue|class="active"|_s_overdue|><i class="fa fa-rouble"></i> Список просроченных <span>[overdue]</span></a></li>
-</ul>

+ 0 - 58
acp/template/sections/control/server.html

@@ -1,58 +0,0 @@
-<div class="informer">ID: [id] / Арендован: [date] / <a href="[home]control/id/[id]" target="_blank">Перейти к серверам</a></div>
-
-<form action="[acp]control/id/[id]/go" method="POST" id="control">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Владелец:</td>
-                <td class="w15p"><input name="user" value="[user]" type="text"></td>
-                <td class="w5p text-right">Адрес:</td>
-                <td class="w15p"><input name="address" placeholder="Введите ip" type="text" value="[address]"></td>
-                <td class="w5p text-right">Пароль:</td>
-                <td class="w15p"><input name="passwd" placeholder="Введите пароль" type="text" value="[passwd]"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">SQL_Логин:</td>
-                <td class="w15p"><input name="sql_login" value="root" type="text" disabled></td>
-                <td class="w5p text-right">SQL_Пароль:</td>
-                <td class="w15p"><input name="sql_passwd" placeholder="Введите пароль (root)" type="text" value="[sql_passwd]"></td>
-                <td class="w5p text-right">SQL_FileTP:</td>
-                <td class="w15p"><input name="sql_ftp" placeholder="Введите логин базы ftp" type="text" value="[sql_ftp]"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Лимит:</td>
-                <td class="w15p"><input name="limit" value="[limit]" type="text"></td>
-                <td class="w5p text-right">Цена:</td>
-                <td class="w15p"><input name="price" value="[price]" type="text"></td>
-                <td colspan="2"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Аренда:</td>
-                <td class="w15p">
-                    <input type="text" id="datetimepicker" name="time">
-                </td>
-                <td class="w5p text-right">Удаление:</td>
-                <td class="w15p"><a href="#" onclick="return control_overdue('[id]', '[overdue]')" id="overdue">[overdue]</a></td>
-                <td class="w5p text-right">Блокировка:</td>
-                <td class="w15p"><a href="#" onclick="return control_block('[id]', '[block]')" id="block">[block]</a></td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<link rel="stylesheet" type="text/css" href="[css]jquery.datetimepicker.css" media="screen">
-
-<script type="text/javascript" src="[js]date/jquery.datetimepicker.full.js"></script>
-
-<script type="text/javascript">  
-    jQuery(document).ready(function($){
-        $.datetimepicker.setLocale('ru');
-
-        $('#datetimepicker').datetimepicker({value:'[time]', format: 'd/m/Y H:i'});
-    });  
-</script>
-
-<script type="text/javascript" src="[js]control.js"></script>

+ 0 - 6
acp/template/sections/hosting/menu.html

@@ -1,6 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="#" class="active"><i class="fa fa-list-ol"></i> Список вирт. хостингов <span>49</span></a></li>
-    <li><a href="#"><i class="fa fa-rouble"></i> Список просроченных <span>4</span></a></li>
-</ul>

+ 0 - 55
acp/template/sections/jobs/add.html

@@ -1,55 +0,0 @@
-<form action="[acp]jobs/section/add/go" method="POST" id="add" class="inputs inputs-max">
-    <table>
-        <tbody>
-            <tr>
-                <td>Название вакансии</td>
-                <td><input type="text" name="name"></td>
-                <td>Должность</td>
-                <td><input type="text" name="job"></td>
-            </tr>
-            <tr>
-                <td>Описание:<br> (Используйте HTML теги)</td>
-                <td colspan="3"><textarea name="desc" id="" cols="30" rows="10"></textarea></td>
-            </tr>
-            <tr>
-                <td>Статус</td>
-                <td><select name="status">
-                    <option value="1" selected="selected">Доступна</option>
-                    <option value="0" disabled>Недоступна</option>
-                </select></td>
-            </tr>
-                <td colspan="4">
-                    <button class="btn btn-green pull-right" onclick="loading(1)">Добавить</button>
-                </td>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript">
-    $('#add').ajaxForm({
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val){
-                if(i == 'e')
-                    bootbox.dialog('<h3>Внимание!</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    bootbox.dialog('<h3>Внимание!</h3> Вакансия успешно добавлена!',
-                        [{
-                            "label" : "Продолжить",
-                            callback : function(){
-                                location.href = home+'jobs';
-                            }
-                        }]
-                    );
-
-                loading(0);
-            });
-        }
-    });
-</script>

+ 0 - 54
acp/template/sections/jobs/edit.html

@@ -1,54 +0,0 @@
-<form action="[acp]jobs/edit/section/id/[id]/go" method="POST" id="edit" class="inputs inputs-max">
-    <table>
-        <tbody>
-            <tr>
-                <td>Название</td>
-                <td><input type="text" name="name" value="[name]"></td>
-                <td>Должность</td>
-                <td><input type="text" name="job" value="[job]"></td>
-            </tr>
-            <tr>
-                <td>Описание:<br> (Используйте HTML теги)</td>
-                <td colspan="3"><textarea name="desc" id="" cols="30" rows="10">[desc]</textarea></td>
-            </tr>
-            <tr>
-                <!--<td>Статус</td>
-                <td><select name="status" disabled>
-                    [status]
-                </select></td> -->
-                <td colspan="4">
-                    <button class="btn btn-green pull-right" onclick="loading(1)">Сохранить</button>
-                </td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript">
-    $('#edit').ajaxForm({
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val){
-                if(i == 'e')
-                    bootbox.dialog('<h3>Внимание!</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    bootbox.dialog('<h3>Внимание!</h3> Изменение успешно сохранены!',
-                        [{
-                            "label" : "Продолжить",
-                            callback : function(){
-                                location.reload();
-                            }
-                        }]
-                    );
-                
-                loading(0);
-            });
-        }
-    });
-</script>

+ 0 - 37
acp/template/sections/jobs/index.html

@@ -1,37 +0,0 @@
-<table class="trh">
-    <thead>
-        <tr>
-            <th>ID</th>
-            <th>Название</th>
-            <th>Должность</th>
-            <th>Статус</th>
-            <th>Создан</th>
-            <th></th>
-            <th></th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>
-
-<script type="text/javascript">
-    function del(id, confirm)
-    {
-        if(confirm == 'ok')
-            $.getJSON(home+'jobs/del/'+id, function(data){
-                if(data['s'] == 'ok')
-                    location.reload();
-            });
-        else
-            bootbox.dialog('<h3 class="red">Внимание!</h3> Вы уверены, что хотите удалить данную работу?',
-                [{
-                    "label" : "Да, уверен",
-                    callback : function(){
-                        del(id, 'ok');
-                    }
-                },{
-                    "label" : "Отмена"
-                }])
-    }
-</script>

+ 0 - 7
acp/template/sections/jobs/menu.html

@@ -1,7 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]jobs/section/add" |s_add|class="active"|_s_add|><i class="fa fa-plus-square"></i> Добавить вакансию </a></li>
-    <li><a href="[acp]jobs" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Все вакансии <span>[jobs]</span></a></li>
-    <li><a href="[acp]jobs/section/request" |s_request|class="active"|_s_request|><i class="fa fa-list-ol"></i> Все заявки <span>[jobs_app]</span></a></li>
-</ul>

+ 0 - 38
acp/template/sections/jobs/request.html

@@ -1,38 +0,0 @@
-<table class="trh">
-    <thead>
-        <tr>
-            <th>ID</th>
-            <th>Пользователь</th>
-            <th>Ответ</th>
-            <th>Контакты</th>
-            <th>Вакансия</th>
-            <th>Создан</th>
-            <th></th>
-            <th></th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>
-
-<script type="text/javascript">
-    function del(id, confirm)
-    {
-        if(confirm == 'ok')
-            $.getJSON(home+'jobs/section/request/del/'+id, function(data){
-                if(data['s'] == 'ok')
-                    location.reload();
-            });
-        else
-            bootbox.dialog('<h3 class="red">Внимание!</h3> Вы уверены, что хотите удалить данную заявку?',
-                [{
-                    "label" : "Да, уверен",
-                    callback : function(){
-                        del(id, 'ok');
-                    }
-                },{
-                    "label" : "Отмена"
-                }])
-    }
-</script>

+ 0 - 52
acp/template/sections/jobs/request_edit.html

@@ -1,52 +0,0 @@
-<form action="[acp]jobs/section/request/id/[id]/go" method="POST" id="edit" class="inputs inputs-max">
-    <table>
-        <tbody>
-            <tr>
-                <td>Пользователь</td>
-                <td><input type="text" name="user" value="[user]"></td>
-                <td>Контакты</td>
-                <td><input type="text" name="contact" value="[contact]"></td>
-            </tr>
-            <tr>
-                <td>Ответ</td>
-                <td colspan="3"><textarea name="text" id="text" cols="30" rows="10">[text]</textarea></td>
-            </tr>
-            <tr>
-                <td>Вакансия</td>
-                <td><input type="text" name="job" value="[job]"></td>
-                <td colspan="2">
-                    <button class="btn btn-green" onclick="loading(1)">Сохранить</button>
-                </td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript">
-    $('#edit').ajaxForm({
-        dataType: 'json',
-        success: function(data)
-        {
-            $.each(data, function(i, val){
-                if(i == 'e')
-                    bootbox.dialog('<h3>Внимание!</h3>'+val,
-                        [{
-                            "label" : "Продолжить"
-                        }]
-                    );
-
-                if(i == 's')
-                    bootbox.dialog('<h3>Внимание!</h3> Изменение успешно сохранены!',
-                        [{
-                            "label" : "Продолжить",
-                            callback : function(){
-                                location.reload();
-                            }
-                        }]
-                    );
-                
-                loading(0);
-            });
-        }
-    });
-</script>

+ 0 - 39
acp/template/sections/letter/index.html

@@ -1,39 +0,0 @@
-<form name="letter" id="letter" action="[acp]letter/section/send" method="POST">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p">Заголовок:</td>
-                <td><input name="title" placeholder="Введите заголовок сообщения" type="text"></td>
-            </tr>
-            <tr>
-                <td colspan="2"><textarea name="text" rows="5" placeholder="Введите текст сообщения"></textarea></td>
-            </tr>
-            <tr>
-                <td colspan="2" class="text-center"><button class="btn btn-green" onclick="loading(1)">Отправить</button></td>
-            </tr>
-        </tbody>
-    </table>
-
-    <div class="space"></div>
-
-    <table class="trh">
-        <thead>
-            <tr>
-                <th class="w5p text-center"><span onclick="checked_all()"><i class="fa fa-check-square-o"></i></span></th>
-                <th>Пользователь</th>
-                <th class="w5p">Почта</th>
-                <th class="w10p text-center">Баланс</th>
-                <th class="w15p text-right">Активность</th>
-            </tr>
-        </thead>
-        <tbody id="letter_list">
-            [list]
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript">
-    var letter_all = false;
-</script>
-
-<script type="text/javascript" src="[js]letter.js"></script>

+ 0 - 5
acp/template/sections/letter/menu.html

@@ -1,5 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]letter" |s_index|class="active"|_s_index|><i class="fa fa-paper-plane"></i> Выполнить рассылку </a></li>
-</ul>

+ 0 - 33
acp/template/sections/logs/index.html

@@ -1,33 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="logs_sys_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th>Операция</th>
-            <th class="w5p">Пользователь</th>
-            <th class="w5p">Сервер</th>
-            <th class="w20p text-center">Дата</th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    $('#search').keyup(function(){
-        logs_sys_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]logs.js"></script>

+ 0 - 33
acp/template/sections/logs/logs.html

@@ -1,33 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="logs_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th>Операция</th>
-            <th class="w5p">Пользователь</th>
-            <th class="w5p">Сумма</th>
-            <th class="w20p text-center">Дата</th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    $('#search').keyup(function(){
-        logs_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]logs.js"></script>

+ 0 - 10
acp/template/sections/logs/menu.html

@@ -1,10 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]logs" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Системные логи </a></li>
-    <li><a href="[acp]logs/section/buy" |s_buy|class="active"|_s_buy|><i class="fa fa-list-ol"></i> Логи аренды </a></li>
-    <li><a href="[acp]logs/section/extend" |s_extend|class="active"|_s_extend|><i class="fa fa-list-ol"></i> Логи продлений </a></li>
-    <li><a href="[acp]logs/section/replenish" |s_replenish|class="active"|_s_replenish|><i class="fa fa-list-ol"></i> Логи пополнений </a></li>
-    <li><a href="[acp]logs/section/cashout" |s_cashout|class="active"|_s_cashout|><i class="fa fa-list-ol"></i> Логи вывода </a></li>
-    <li><a href="[acp]logs/section/part" |s_part|class="active"|_s_part|><i class="fa fa-list-ol"></i> Логи реф. системы </a></li>
-</ul>

+ 0 - 43
acp/template/sections/news/add.html

@@ -1,43 +0,0 @@
-<form action="[acp]news/section/add/go" method="POST" id="news">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Заголовок:</td>
-                <td class="w50p">
-                    <input name="name" placeholder="Введите заголовок новости" type="text">
-                </td>
-                <td class="w5p text-right">Теги:</td>
-                <td>
-                    <input name="tags" placeholder="Введите теги новости" type="text">
-                </td>
-            </tr>
-            <tr>
-                <td colspan="4">
-                    <div onclick="bbcode('[spoiler]', '[/spoiler]', 'text')" class="btn btn-red right">Спойлер</div>
-                    <div onclick="bbcode('[code]', '[/code]', 'text')" class="btn btn-red right">Подсветка</div>
-                    <div onclick="bbcode('[quote]', '[/quote]', 'text')" class="btn btn-red right">Цитата</div>
-                    <div onclick="bbcode('[url=', ']ссылка[/url]', 'text')" class="btn btn-red right">Ссылка</div>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="4"><textarea id="text" name="text" rows="3" placeholder="Введите краткое сообщение новости"></textarea></td>
-            </tr>
-            <tr>
-                <td colspan="4">
-                    <div onclick="bbcode('[spoiler]', '[/spoiler]', 'full')" class="btn btn-red right">Спойлер</div>
-                    <div onclick="bbcode('[code]', '[/code]', 'full')" class="btn btn-red right">Подсветка</div>
-                    <div onclick="bbcode('[quote]', '[/quote]', 'full')" class="btn btn-red right">Цитата</div>
-                    <div onclick="bbcode('[url=', ']ссылка[/url]', 'full')" class="btn btn-red right">Ссылка</div>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="4"><textarea id="full" name="full" rows="5" placeholder="Введите полное сообщение новости"></textarea></td>
-            </tr>
-            <tr>
-                <td colspan="4" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]news.js"></script>

+ 0 - 34
acp/template/sections/news/index.html

@@ -1,34 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="news_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="double-color">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th>Заголовок</th>
-            <th>Теги</th>
-            <th class="w5p text-center">Просмотров</th>
-            <th class="text-center">Дата</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    $('#search').keyup(function(){
-        news_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]news.js"></script>

+ 0 - 6
acp/template/sections/news/menu.html

@@ -1,6 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]news/section/add" |s_add|class="active"|_s_add|><i class="fa fa-plus-square"></i> Добавить новость</a></li>
-    <li><a href="[acp]news" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Список новостей</a></li>
-</ul>

+ 0 - 43
acp/template/sections/news/news.html

@@ -1,43 +0,0 @@
-<form action="[acp]news/id/[id]/go" method="POST" id="news">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Заголовок:</td>
-                <td class="w50p">
-                    <input name="name" placeholder="Введите заголовок новости" value="[name]" type="text">
-                </td>
-                <td class="w5p text-right">Теги:</td>
-                <td>
-                    <input name="tags" placeholder="Введите теги новости" value="[tags]" type="text">
-                </td>
-            </tr>
-            <tr>
-                <td colspan="4">
-                    <div onclick="bbcode('[spoiler]', '[/spoiler]', 'text')" class="btn btn-red right">Спойлер</div>
-                    <div onclick="bbcode('[code]', '[/code]', 'text')" class="btn btn-red right">Подсветка</div>
-                    <div onclick="bbcode('[quote]', '[/quote]', 'text')" class="btn btn-red right">Цитата</div>
-                    <div onclick="bbcode('[url=', ']ссылка[/url]', 'text')" class="btn btn-red right">Ссылка</div>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="4"><textarea id="text" name="text" rows="3" placeholder="Введите краткое сообщение новости" style="margin-top: 0px; margin-bottom: 0px; height: 233px;">[text]</textarea></td>
-            </tr>
-            <tr>
-                <td colspan="4">
-                    <div onclick="bbcode('[spoiler]', '[/spoiler]', 'full')" class="btn btn-red right">Спойлер</div>
-                    <div onclick="bbcode('[code]', '[/code]', 'full')" class="btn btn-red right">Подсветка</div>
-                    <div onclick="bbcode('[quote]', '[/quote]', 'full')" class="btn btn-red right">Цитата</div>
-                    <div onclick="bbcode('[url=', ']ссылка[/url]', 'full')" class="btn btn-red right">Ссылка</div>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="4"><textarea id="full" name="full" rows="5" placeholder="Введите полное сообщение новости" style="margin-top: 0px; margin-bottom: 0px; height: 233px;">[full]</textarea></td>
-            </tr>
-            <tr>
-                <td colspan="4" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]news.js"></script>

+ 0 - 56
acp/template/sections/notice/add.html

@@ -1,56 +0,0 @@
-<form action="[acp]notice/section/add/go" method="POST" id="notice">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Кому:</td>
-                <td>
-                    <select name="type" id="type" onchange="change_notice_type()">
-                        <option value="unit">Всем на локации</option>
-                        <option value="server">Определенному серверу</option>
-                    </select>
-                </td>
-                <td class="w5p text-right">Значение:</td>
-                <td>
-                    <div id="notice_unit">
-                        <select name="unit">[units]</select>
-                    </div>
-                    <div id="notice_server" class="none">
-                        <input name="server" placeholder="Введите ID" type="text">
-                    </div>
-                </td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Цвет:</td>
-                <td>
-                    <select name="color">
-                        <option value="red">Красный</option>
-                        <option value="green">Зеленый</option>
-                        <option value="blue">Синий</option>
-                    </select>
-                </td>
-                <td class="w5p text-right">Завершение:</td>
-                <td><input name="time" id="datetimepicker" type="text"></td>
-            </tr>
-            <tr>
-                <td colspan="4"><textarea name="text" rows="6" placeholder="Введите сообщение"></textarea></td>
-            </tr>
-            <tr>
-                <td colspan="4" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<link rel="stylesheet" type="text/css" href="[css]jquery.datetimepicker.css" media="screen">
-
-<script type="text/javascript" src="[js]date/jquery.datetimepicker.full.js"></script>
-
-<script type="text/javascript">  
-    jQuery(document).ready(function($){
-        $.datetimepicker.setLocale('ru');
-
-        $('#datetimepicker').datetimepicker({value: '0', format: 'd/m/Y H:i'});
-    });  
-</script>
-
-<script type="text/javascript" src="[js]notice.js"></script>

+ 0 - 32
acp/template/sections/notice/index.html

@@ -1,32 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="notice_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="double-color">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th colspan="2">Уведомления</th>
-            <th class="w5p"></th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    $('#search').keyup(function(){
-        notice_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]notice.js"></script>

+ 0 - 7
acp/template/sections/notice/menu.html

@@ -1,7 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]notice/section/add" |s_add|class="active"|_s_add|><i class="fa fa-plus-square"></i> Добавить уведомление</a></li>
-    <li><a href="[acp]notice" |s_index|class="active"|_s_index|><i class="fa fa-clock-o"></i> Текущие уведомления <span>[active]</span></a></li>
-    <li><a href="[acp]notice/section/end" |s_end|class="active"|_s_end|><i class="fa fa-hourglass-3"></i> Завершенные уведомления</a></li>
-</ul>

+ 0 - 46
acp/template/sections/notice/notice.html

@@ -1,46 +0,0 @@
-<form action="[acp]notice/id/[id]/go" method="POST" id="notice">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Кому:</td>
-                <td>
-                    <select name="type" id="type" onchange="change_notice_type()">[type]</select>
-                </td>
-                <td class="w5p text-right">Значение:</td>
-                <td>
-                    <div id="notice_unit" |unit|class="none"|_unit|><select name="unit">[units]</select></div>
-
-                    <div id="notice_server" |server|class="none"|_server|>
-                        <input name="server" placeholder="Введите ID" value="[server]" type="text">
-                    </div>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-right">Цвет:</td>
-                <td><select name="color">[colors]</select></td>
-                <td class="w5p text-right">Завершение:</td>
-                <td><input name="time" id="datetimepicker" type="text"></td>
-            </tr>
-            <tr>
-                <td colspan="4"><textarea name="text" rows="6" placeholder="Введите сообщение">[text]</textarea></td>
-            </tr>
-            <tr>
-                <td colspan="4" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<link rel="stylesheet" type="text/css" href="[css]jquery.datetimepicker.css" media="screen">
-
-<script type="text/javascript" src="[js]date/jquery.datetimepicker.full.js"></script>
-
-<script type="text/javascript">  
-    jQuery(document).ready(function($){
-        $.datetimepicker.setLocale('ru');
-
-        $('#datetimepicker').datetimepicker({value: '[time]', format: 'd/m/Y H:i'});
-    });  
-</script>
-
-<script type="text/javascript" src="[js]notice.js"></script>

+ 0 - 20
acp/template/sections/pages/add.html

@@ -1,20 +0,0 @@
-<form action="[acp]pages/section/add/go" method="POST" id="page">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td>
-                    <input name="name" placeholder="Введите название" type="text">
-                </td>
-            </tr>
-            <tr>
-                <td colspan="2"><textarea name="text" rows="20" placeholder="Содержимое страницы"></textarea></td>
-            </tr>
-            <tr>
-                <td colspan="2" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]pages.js"></script>

+ 0 - 18
acp/template/sections/pages/index.html

@@ -1,18 +0,0 @@
-<table class="double-color">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th class="w50p">Название</th>
-            <th>Файл</th>
-            <th class="w5p"></th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript" src="[js]pages.js"></script>

+ 0 - 6
acp/template/sections/pages/menu.html

@@ -1,6 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]pages/section/add" |s_add|class="active"|_s_add|><i class="fa fa-plus-square"></i> Добавить страницу</a></li>
-    <li><a href="[acp]pages" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Список страниц</a></li>
-</ul>

+ 0 - 20
acp/template/sections/pages/page.html

@@ -1,20 +0,0 @@
-<form action="[acp]pages/id/[id]/go" method="POST" id="page">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td>
-                    <input name="name" placeholder="Введите название" value="[name]" type="text">
-                </td>
-            </tr>
-            <tr>
-                <td colspan="2"><textarea name="text" rows="20" placeholder="Содержимое страницы">[text]</textarea></td>
-            </tr>
-            <tr>
-                <td colspan="2" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]pages.js"></script>

+ 0 - 82
acp/template/sections/promo/add.html

@@ -1,82 +0,0 @@
-<form action="[acp]promo/section/add/go" method="POST" id="promo">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Код:</td>
-                <td class="w25p"><input name="cod" placeholder="Введите промо-код" type="text"></td>
-                <td class="w5p text-right">Значение:</td>
-                <td class="w25p"><input name="value" placeholder="Введите значение" type="text"></td>
-                <td class="w5p text-right">Акция:</td>
-                <td class="w25p">
-                    <select name="discount">
-                        <option value="0">Подарочные дни</option>
-                        <option value="1">Скидка</option>
-                    </select>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-right">Совпадений:</td>
-                <td><input name="hits" type="text" placeholder="Введите число"></td>
-                <td class="text-right">Использований:</td>
-                <td><input name="use" placeholder="Введите число" type="text"></td>
-                <td class="text-right">Тип:</td>
-                <td>
-                    <select name="extend">
-                        <option value="0">Для аренды</option>
-                        <option value="1">Для продления</option>
-                    </select>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-right">Пользователь:</td>
-                <td><input name="user" placeholder="Введите ID" type="text"></td>
-                <td class="text-right">Сервер:</td>
-                <td><input name="server" placeholder="Введите ID" type="text"></td>
-                <td class="text-right">Окончание:</td>
-                <td><input name="time" id="datetimepicker" type="text"></td>
-            </tr>
-            <tr>
-                <td colspan="6"><textarea name="data" rows="1" placeholder="Введите условия акции"></textarea></td>
-            </tr>
-            <tr>
-                <td colspan="6">[tarifs]</td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<div class="space"></div>
-
-<div class="informer">Информация по условиям</div>
-
-<table class="p_info">
-    <tbody>
-        <tr>
-            <td>
-                <p><i class="fa fa-info-circle"></i> FPS: "fps":"1000" или "fps":"500:1000"</p>
-                <p><i class="fa fa-info-circle"></i> RAM: "ram":"50" или "fps":"50:80"</p>
-                <p><i class="fa fa-info-circle"></i> TickRate: "tickrate":"66" или "fps":"64:128"</p>
-                <p><i class="fa fa-info-circle"></i> Период: "time":"30" или "time":"30:90"</p>
-                <p><i class="fa fa-info-circle"></i> Слоты: "slots":"32" или "slots":"20:32" или "slots":"10-20"</p>
-                <p><i class="fa fa-info-circle"></i> Указывать несколько условий через запятые: "fps":"500:1000","slots":"10-32","time":"30"</p>
-            </td>
-        </tr>
-    </tbody>
-</table>
-
-<link rel="stylesheet" type="text/css" href="[css]jquery.datetimepicker.css" media="screen">
-
-<script type="text/javascript" src="[js]date/jquery.datetimepicker.full.js"></script>
-
-<script type="text/javascript">  
-    jQuery(document).ready(function($){
-        $.datetimepicker.setLocale('ru');
-
-        $('#datetimepicker').datetimepicker({value: '0', format: 'd/m/Y H:i'});
-    });  
-</script>
-
-<script type="text/javascript" src="[js]promo.js"></script>

+ 0 - 37
acp/template/sections/promo/index.html

@@ -1,37 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="promo_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th class="w15p">Промо-код</th>
-            <th class="w5p text-center">Значение</th>
-            <th class="w15p text-center">Тариф</th>
-            <th class="w15p text-center">Акция</th>
-            <th class="w5p text-center">Тип</th>
-            <th class="w10p text-center">Лимит</th>
-            <th class="w20p text-center">Окончание</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    $('#search').keyup(function(){
-        promo_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]promo.js"></script>

+ 0 - 8
acp/template/sections/promo/menu.html

@@ -1,8 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]promo/section/add" |s_add|class="active"|_s_add|><i class="fa fa-plus-square"></i> Добавить акцию</a></li>
-    <li><a href="[acp]promo" |s_index|class="active"|_s_index|><i class="fa fa-clock-o"></i> Текущие акции <span>[active]</span></a></li>
-    <li><a href="[acp]promo/section/end" |s_end|class="active"|_s_end|><i class="fa fa-hourglass-3"></i> Завершенные акции <span>[end]</span></a></li>
-    <li><a href="[acp]promo/section/stats" |s_stats|class="active"|_s_stats|><i class="fa fa-pie-chart"></i> Статистика по акциям</a></li>
-</ul>

+ 0 - 72
acp/template/sections/promo/promo.html

@@ -1,72 +0,0 @@
-<form action="[acp]promo/id/[id]/go" method="POST" id="promo">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td colspan="6">Акция для тарифа: [tarif]</td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Код:</td>
-                <td class="w25p"><input name="cod" placeholder="Введите промо-код" value="[cod]" type="text"></td>
-                <td class="w5p text-right">Значение:</td>
-                <td class="w25p"><input name="value" placeholder="Введите значение" value="[value]" type="text"></td>
-                <td class="w5p text-right">Акция:</td>
-                <td class="w25p"><select name="discount">[discount]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Совпадений:</td>
-                <td><input name="hits" type="text" placeholder="Введите число" value="[hits]"></td>
-                <td class="text-right">Использований:</td>
-                <td><input name="use" placeholder="Введите число" value="[use]" type="text"></td>
-                <td class="text-right">Тип:</td>
-                <td><select name="extend">[extend]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Пользователь:</td>
-                <td><input name="user" placeholder="Введите ID" value="[user]" type="text"></td>
-                <td class="text-right">Сервер:</td>
-                <td><input name="server" placeholder="Введите ID" value="[server]" type="text"></td>
-                <td class="text-right">Окончание:</td>
-                <td><input name="time" id="datetimepicker" type="text"></td>
-            </tr>
-            <tr>
-                <td colspan="6"><textarea name="data" rows="1" placeholder="Введите условия акции">[data]</textarea></td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<div class="space"></div>
-
-<div class="informer">Информация по условиям</div>
-
-<table class="p_info">
-    <tbody>
-        <tr>
-            <td>
-                <p><i class="fa fa-info-circle"></i> FPS: "fps":"1000" или "fps":"500:1000"</p>
-                <p><i class="fa fa-info-circle"></i> RAM: "ram":"50" или "fps":"50:80"</p>
-                <p><i class="fa fa-info-circle"></i> TickRate: "tickrate":"66" или "fps":"64:128"</p>
-                <p><i class="fa fa-info-circle"></i> Период: "time":"30" или "time":"30:90"</p>
-                <p><i class="fa fa-info-circle"></i> Слоты: "slots":"32" или "slots":"20:32" или "slots":"10-20"</p>
-                <p><i class="fa fa-info-circle"></i> Указывать несколько условий через запятые: "fps":"500:1000","slots":"10-32","time":"30"</p>
-            </td>
-        </tr>
-    </tbody>
-</table>
-
-<link rel="stylesheet" type="text/css" href="[css]jquery.datetimepicker.css" media="screen">
-
-<script type="text/javascript" src="[js]date/jquery.datetimepicker.full.js"></script>
-
-<script type="text/javascript">  
-    jQuery(document).ready(function($){
-        $.datetimepicker.setLocale('ru');
-
-        $('#datetimepicker').datetimepicker({value: '[time]', format: 'd/m/Y H:i'});
-    });  
-</script>
-
-<script type="text/javascript" src="[js]promo.js"></script>

+ 0 - 17
acp/template/sections/promo/stats.html

@@ -1,17 +0,0 @@
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th class="w5p">Акция</th>
-            <th class="w5p text-center">Клиент</th>
-            <th>Операция</th>
-            <th class="w15p text-center">Дата</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>
-
-<script type="text/javascript" src="[js]promo.js"></script>

+ 0 - 36
acp/template/sections/servers/index.html

@@ -1,36 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="servers_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="double-color">
-    <thead>
-        <tr>
-            <th class="w15p text-center">Номер / Владелец</th>
-            <th class="w20p">Название / Адрес</th>
-            <th class="w20p">Локация / Тариф</th>
-            <th class="w15p text-center">Слоты / Статус</th>
-            <th class="w20p text-center">Игра / Аренда</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    var url_search = '[url_search]';
-
-    $('#search').keyup(function(){
-        servers_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]servers.js"></script>

+ 0 - 13
acp/template/sections/servers/menu.html

@@ -1,13 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]servers" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Все сервера <span>[all]</span></a></li>
-    <li><a href="[acp]servers/section/cs" |s_cs|class="active"|_s_cs|><i class="fa fa-steam"></i> CS: 1.6 <span>[cs]</span></a></li>
-    <li><a href="[acp]servers/section/cssold" |s_cssold|class="active"|_s_cssold|><i class="fa fa-steam"></i> CS: Source v34 <span>[cssold]</span></a></li>
-    <li><a href="[acp]servers/section/css" |s_css|class="active"|_s_css|><i class="fa fa-steam"></i> CS: Source <span>[css]</span></a></li>
-    <li><a href="[acp]servers/section/csgo" |s_csgo|class="active"|_s_csgo|><i class="fa fa-steam"></i> CS: Global Offensive <span>[csgo]</span></a></li>
-    <li><a href="[acp]servers/section/mta" |s_mta|class="active"|_s_mta|><i class="fa fa-car"></i> GTA: MTA <span>[mta]</span></a></li>
-    <li><a href="[acp]servers/section/samp" |s_samp|class="active"|_s_samp|><i class="fa fa-bus"></i> GTA: SAMP <span>[samp]</span></a></li>
-    <li><a href="[acp]servers/section/mc" |s_mc|class="active"|_s_mc|><i class="fa fa-gavel"></i> MineCraft <span>[mc]</span></a></li>
-    <li><a href="[acp]servers/section/overdue" |s_overdue|class="active"|_s_overdue|><i class="fa fa-rouble"></i> Список просроченных <span>[overdue]</span></a></li>
-</ul>

+ 0 - 14
acp/template/sections/servers/overdue.html

@@ -1,14 +0,0 @@
-<table class="double-color">
-    <thead>
-        <tr>
-            <th class="w15p text-center">Номер / Владелец</th>
-            <th class="w20p">Название / Адрес</th>
-            <th class="w20p">Локация / Тариф</th>
-            <th class="w15p text-center">Слоты / Статус</th>
-            <th class="w20p text-center">Игра / Удаление</th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>

+ 0 - 114
acp/template/sections/servers/server.html

@@ -1,114 +0,0 @@
-<div class="informer">ID: [id] / Название: <a href="[home]servers/id/[id]" target="_blank">[name]</a> / Игра: [game] / FTP: [ftp_on] / Арендован: [date]</div>
-
-<form action="[acp]servers/id/[id]/go" method="POST" id="server">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Владелец:</td>
-                <td class="w15p"><input name="user" value="[user]" type="text"></td>
-                <td class="w5p text-right">Адрес:</td>
-                <td class="w15p"><input name="address" placeholder="Введите ip:port" type="text" value="[address]"></td>
-                <td class="w5p text-right">Порт:</td>
-                <td class="w15p"><input name="port" placeholder="Введите порт" type="text" value="[port]"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Диск:</td>
-                <td class="w15p"><input name="hdd" value="[hdd]" type="text"></td>
-                <td class="w5p text-right">Слоты:</td>
-                <td class="w15p"><input name="slots" placeholder="Введите слоты" type="text" value="[slots]:[slots_start]"></td>
-                <td class="w5p text-right">Сборка:</td>
-                <td class="w15p"><select name="pack">[packs]</select></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">FPS:</td>
-                <td class="w15p"><input name="fps" value="[fps]" type="text"></td>
-                <td class="w5p text-right">TickRate:</td>
-                <td class="w15p"><input name="tickrate" value="[tickrate]" type="text"></td>
-                <td class="w5p text-right">RAM:</td>
-                <td class="w15p"><input name="ram" value="[ram]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Ядро:</td>
-                <td class="w15p"><select name="core_fix_one">[core_fix_one]</select></td>
-                <td class="w5p text-right">Ядро:</td>
-                <td class="w15p"><input name="core_fix" value="[core_fix]" type="text"></td>
-                <td class="w5p text-right">PingBoost:</td>
-                <td class="w15p"><select name="pingboost">[pingboost]</select></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">FileTP:</td>
-                <td class="w15p"><select name="ftp_root">[ftp_root]</select></td>
-                <td class="w5p text-right">Нагрузка:</td>
-                <td class="w15p"><input name="cpu_use_max" value="[cpu_use_max]" type="text"></td>
-                <td colspan="2">0 - лимит по умолчанию ([cpu_limi]%)</td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Аренда:</td>
-                <td class="w15p">
-                    <input type="text" id="datetimepicker" name="time">
-                </td>
-                <td class="w5p text-right">Удаление:</td>
-                <td class="w15p"><a href="#" onclick="return servers_overdue('[id]', '[overdue]')" id="overdue">[overdue]</a></td>
-                <td class="w5p text-right">Блокировка:</td>
-                <td class="w15p"><a href="#" onclick="return servers_block('[id]', '[block]')" id="block">[block]</a></td>
-            </tr>
-            <tr>
-                <td class="text-right">Разделы:</td>
-                <td colspan="5">
-                    <label>
-                        Плагины
-                        <input type="checkbox" name="plugins_use" |plugins_use|checked|_plugins_use|>
-                    </label>
-                    <label>
-                        Консоль
-                        <input type="checkbox" name="console_use" |console_use|checked|_console_use|>
-                    </label>
-                    <label>
-                        FileTP
-                        <input type="checkbox" name="ftp_use" |ftp_use|checked|_ftp_use|>
-                    </label>
-                    <label>
-                        Копии
-                        <input type="checkbox" name="copy_use" |copy_use|checked|_copy_use|>
-                    </label>
-                    <label>
-                        Графики
-                        <input type="checkbox" name="stats_use" |stats_use|checked|_stats_use|>
-                    </label>
-                    <label>
-                        Бесплатные услуги
-                        <input type="checkbox" name="web_use" |web_use|checked|_web_use|>
-                    </label>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<div class="space"></div>
-
-<div class="informer">Текущий тарифный план: <b>[tarif]</b></div>
-
-<table class="inputs inputs-max">
-    <tr>
-        <td><select id="tarif"><option>Выберете новый тарифный план</option>[tarifs]</select></td>
-        <td width="5%"><div class="btn btn-green" onclick="change_tarif('[id]')">Изменить</div></td>
-    </tr>
-</tbody>
-
-<link rel="stylesheet" type="text/css" href="[css]jquery.datetimepicker.css" media="screen">
-
-<script type="text/javascript" src="[js]date/jquery.datetimepicker.full.js"></script>
-
-<script type="text/javascript">  
-    jQuery(document).ready(function($){
-        $.datetimepicker.setLocale('ru');
-
-        $('#datetimepicker').datetimepicker({value:'[time]', format: 'd/m/Y H:i'});
-    });  
-</script>
-
-<script type="text/javascript" src="[js]servers.js"></script>

+ 0 - 34
acp/template/sections/system/index.html

@@ -1,34 +0,0 @@
-<table>
-    <thead>
-        <tr>
-            <th class="w25p"></th>
-            <th class="w5p text-center">CPU</th>
-            <th class="w5p text-center">RAM</th>
-            <th class="w5p text-center">HDD</th>
-            <th class="w10p text-center">Apache</th>
-            <th class="w10p text-center">Nginx</th>
-            <th class="w10p text-center">MySQL</th>
-            <th class="w15p text-center">Uptime</th>
-            <th class="w10p text-center">SSH</th>
-        </tr>
-    </thead>
-    <tbody>
-        <tr>
-            <td>Панель управления</td>
-            <td id="cpu" class="text-center"><i class="fa fa-spinner fa-pulse fa-1x fa-fw margin-bottom"></i></td>
-            <td id="ram" class="text-center"><i class="fa fa-spinner fa-pulse fa-1x fa-fw margin-bottom"></i></td>
-            <td id="hdd" class="text-center"><i class="fa fa-spinner fa-pulse fa-1x fa-fw margin-bottom"></i></td>
-            <td id="apache" class="text-center"><i class="fa fa-spinner fa-pulse fa-1x fa-fw margin-bottom"></i></td>
-            <td id="nginx" class="text-center"><i class="fa fa-spinner fa-pulse fa-1x fa-fw margin-bottom"></i></td>
-            <td id="mysql" class="text-center"><i class="fa fa-spinner fa-pulse fa-1x fa-fw margin-bottom"></i></td>
-            <td id="uptime" class="text-center"><i class="fa fa-spinner fa-pulse fa-1x fa-fw margin-bottom"></i></td>
-            <td id="ssh" class="text-center"><i class="fa fa-spinner fa-pulse fa-1x fa-fw margin-bottom"></i></td>
-        </tr>
-    </tbody>
-</table>
-
-<script type="text/javascript" src="[js]system.js"></script>
-
-<script type="text/javascript">
-    $(document).ready(function(){system_load()});
-</script>

+ 0 - 203
acp/template/sections/tarifs/add.html

@@ -1,203 +0,0 @@
-<form action="[acp]tarifs/section/add/go" method="POST" id="tarif">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td class="w25p"><input name="name" placeholder="Введите название" type="text"></td>
-                <td class="w5p text-right">Локация:</td>
-                <td class="w25p">
-                    <select name="unit">
-                        <option value="0">Выберете локацию</option>
-                        [units]
-                    </select>
-                </td>
-                <td class="w5p text-right">Игра:</td>
-                <td class="w25p">
-                    <select name="game">
-                        <option value="0">Выберете игру</option>
-                        <option value="cs">Counter-Strike: 1.6</option>
-                        <option value="cssold">Counter-Strike: Source v34</option>
-                        <option value="css">Counter-Strike: Source</option>
-                        <option value="csgo">Counter-Strike: Global Offensive</option>
-                        <option value="samp">San Andreas Multiplayer</option>
-                        <option value="crmp">GTA: Criminal Russia</option>
-                        <option value="mta">Multi Theft Auto</option>
-                        <option value="mc">Minecraft</option>
-                    </select>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-right">Слоты:</td>
-                <td><input name="slots" value="10-32" type="text" placeholder="Слоты: 10-32"></td>
-                <td class="text-right">Порты:</td>
-                <td><input name="posts" id="ports" value="27016-27056" type="text" placeholder="Порты: 27016-27056"></td>
-                <td class="text-right">Имя:</td>
-                <td><input name="hostname" placeholder="Введите hostname сервера" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Сборки:</td>
-                <td><input name="path" value="/path/" type="text"></td>
-                <td class="text-right">Обновления:</td>
-                <td><input name="update" value="/path/update/" type="text"></td>
-                <td class="text-right">Сервера:</td>
-                <td><input name="install" value="/servers/" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">FPS:</td>
-                <td><input name="fps" value="500:1000" type="text"></td>
-                <td class="text-right">TickRate:</td>
-                <td><input name="tickrate" value="66:100" type="text"></td>
-                <td class="text-right">RAM:</td>
-                <td><input name="ram" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Аренда:</td>
-                <td><input name="time" value="15:30:90:180" type="text"></td>
-                <td class="text-right">Продление:</td>
-                <td><input name="timext" value="7:30:90:180" type="text"></td>
-                <td class="text-right">Фиксация:</td>
-                <td>
-                    <select name="param_fix">
-                        <option value="0">Не фиксированные параметры</option>
-                        <option value="1">Фиксированные параметры</option>
-                    </select>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-right">Тестирование:</td>
-                <td>
-                    <select name="test">
-                        <option value="0">Недоступно</option>
-                        <option value="1">Доступно</option>
-                    </select>
-                </td>
-                <td class="text-right">Тестов:</td>
-                <td><input name="tests" placeholder="Введите число тестов" type="text"></td>
-                <td class="text-right">Скидки:</td>
-                <td>
-                    <select name="discount">
-                        <option value="1">Включены</option>
-                        <option value="0">Без скидок</option>
-                    </select>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-right">Диск:</td>
-                <td><input name="hdd" placeholder="Введите дисковую квоту" type="text"></td>
-                <td class="text-right">Карта:</td>
-                <td><input name="map" value="de_dust2" type="text"></td>
-                <td class="text-right">Выключение:</td>
-                <td>
-                    <select name="autostop">
-                        <option value="0">Выключено</option>
-                        <option value="1">Включено</option>
-                    </select>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-right">Цена:</td>
-                <td><input name="price" value="15:25" type="text"></td>
-                <td class="text-right">Положение:</td>
-                <td><input name="sort" placeholder="Введите место в списке" type="text"></td>
-                <td class="text-right">Аренда:</td>
-                <td>
-                    <select name="show">
-                        <option value="1">Доступна</option>
-                        <option value="0">Недоступна</option>
-                    </select>
-                </td>
-            </tr>
-            <tr>
-                <td class="text-right">Ядра:</td>
-                <td colspan="5"><input name="core_fix" placeholder="Введите через запятую ядра/потоки" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Сборки:</td>
-                <td colspan="5"><textarea rows="4" name="packs" placeholder="Укажите доступные для установки сборки"></textarea></td>
-            </tr>
-            <tr>
-                <td class="text-right">Адреса:</td>
-                <td colspan="5"><textarea rows="3" name="ip" placeholder="Введите через двоеточие выделенные IP адреса"></textarea></td>
-            </tr>
-            <tr>
-                <td class="text-right">Плагины:</td>
-                <td colspan="5"><textarea rows="2" name="plugins_install" placeholder="Введите через запятую номера плагинов"></textarea></td>
-            </tr>
-            <tr>
-                <td class="text-right">Разделы:</td>
-                <td colspan="5">
-                    <label>
-                        Плагины
-                        <input type="checkbox" name="plugins">
-                    </label>
-                    <label>
-                        Консоль
-                        <input type="checkbox" name="console" checked>
-                    </label>
-                    <label>
-                        FileTP
-                        <input type="checkbox" name="ftp" checked>
-                    </label>
-                    <label>
-                        Копии
-                        <input type="checkbox" name="copy" checked>
-                    </label>
-                    <label>
-                        Графики
-                        <input type="checkbox" name="stats">
-                    </label>
-                    <label>
-                        Бесплатные услуги
-                        <input type="checkbox" name="web">
-                    </label>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<div class="space"></div>
-
-<div class="informer">Информация по портам</div>
-
-<table class="inputs inputs-max p_info">
-    <tbody>
-        <tr>
-            <td>
-                <p>Counter-Strike: 1.6 - по умолчанию: <u class="pointer" onclick="tarifs_ports('27015-27015')">27015</u> / для тарифов: <u class="pointer" onclick="tarifs_ports('27016-27056')">27016-27056</u> (40 шт.)</p>
-                <p>Counter-Strike: Source v34 - по умолчанию: <u class="pointer" onclick="tarifs_ports('27015-27015')">27015</u> / для тарифов: <u class="pointer" onclick="tarifs_ports('27016-27056')">27016-27056</u> (40 шт.)</p>
-                <p>Counter-Strike: Source - по умолчанию: <u class="pointer" onclick="tarifs_ports('27015-27015')">27015</u> / для тарифов: <u class="pointer" onclick="tarifs_ports('27016-27056')">27016-27056</u> (40 шт.)</p>
-                <p>Counter-Strike: Global Offensive - по умолчанию: <u class="pointer" onclick="tarifs_ports('27015-27015')">27015</u> / для тарифов: <u class="pointer" onclick="tarifs_ports('27016-27036')">27016-27036</u> (20 шт.)</p>
-                <p>San Andreas Multiplayer - по умолчанию: <u class="pointer" onclick="tarifs_ports('7777-7777')">7777</u> / для тарифов: <u class="pointer" onclick="tarifs_ports('7778-7858')">7778-7858</u> (80 шт.)</p>
-                <p>GTA: Criminal Russia - по умолчанию: <u class="pointer" onclick="tarifs_ports('7777-7777')">7777</u> / для тарифов: <u class="pointer" onclick="tarifs_ports('7778-7858')">7778-7858</u> (80 шт.)</p>
-                <p>Multi Theft Auto - по умолчанию: <u class="pointer" onclick="tarifs_ports('22003-22003')">22003</u> / для тарифов: <u class="pointer" onclick="tarifs_ports('22004-22084')">22004-22084</u> (80 шт.)</p>
-                <p>Minecraft - по умолчанию: <u class="pointer" onclick="tarifs_ports('25565-25565')">25565</u> / для тарифов: <u class="pointer" onclick="tarifs_ports('25566-25606')">25566-25606</u> (40 шт.)</p>
-            </td>
-        </tr>
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Информация по полям</div>
-
-<table class="inputs inputs-max p_info">
-    <tbody>
-        <tr>
-            <td>
-                <p><i class="fa fa-info-circle"></i> Фиксация - если установлено "<i>фиксированные праметры</i>", то например, указав 4000 Mb RAM - будут выделяться на 1 сервер</p>
-                <p><i class="fa fa-info-circle"></i> Скидки - если включено, то аренда / продление будут со скидками и наценками установленными в настройках</p>
-                <p><i class="fa fa-info-circle"></i> Выключение - если включено, то сервер будет выключаться автоматически (например для тарифа ClanWar)</p>
-                <p><i class="fa fa-info-circle"></i> Сборки - указывать в специальном формате перечисляя через запятую, пример: <u>"name":"Название","name":"Название"</u></p>
-                <p><i class="fa fa-info-circle"></i> Ядра - если указаны ядра, то каждому серверу будет выдаваться выделенное ядро из списка</p>
-                <p><i class="fa fa-info-circle"></i> Адреса - если указаны адреса, то каждому серверу будет выдаваться выделенный адрес с стандартным портом игры</p>
-                <p><i class="fa fa-info-circle"></i> Плагины - плагины, которые установлены в сборке, указывать в специальном формате, пример: "name":"5,10,30,11","name":"10,7"</p>
-            </td>
-        </tr>
-    </tbody>
-</table>
-
-<script type="text/javascript" src="[js]tarifs.js"></script>

+ 0 - 120
acp/template/sections/tarifs/copy.html

@@ -1,120 +0,0 @@
-<form action="[acp]tarifs/section/add/go" method="POST" id="tarif">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td class="w25p"><input name="name" value="[name]" type="text"></td>
-                <td class="w5p text-right">Локация:</td>
-                <td class="w25p"><select name="unit">[units]</select></td>
-                <td class="w5p text-right">Игра:</td>
-                <td class="w25p"><select name="game">[games]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Слоты:</td>
-                <td><input name="slots" value="[slots_min]-[slots_max]" type="text" placeholder="Слоты: 10-32"></td>
-                <td class="text-right">Порты:</td>
-                <td><input name="posts" id="ports" value="[port_min]-[port_max]" type="text" placeholder="Порты: 27016-27056"></td>
-                <td class="text-right">Имя:</td>
-                <td><input name="hostname" value="[hostname]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Сборки:</td>
-                <td><input name="path" value="[path]" type="text"></td>
-                <td class="text-right">Обновления:</td>
-                <td><input name="update" value="[update]" type="text"></td>
-                <td class="text-right">Сервера:</td>
-                <td><input name="install" value="[install]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">FPS:</td>
-                <td><input name="fps" value="[fps]" type="text"></td>
-                <td class="text-right">TickRate:</td>
-                <td><input name="tickrate" value="[tickrate]" type="text"></td>
-                <td class="text-right">RAM:</td>
-                <td><input name="ram" value="[ram]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Аренда:</td>
-                <td><input name="time" value="[time]" type="text"></td>
-                <td class="text-right">Продление:</td>
-                <td><input name="timext" value="[timext]" type="text"></td>
-                <td class="text-right">Фиксация:</td>
-                <td><select name="param_fix">[param_fix]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Тестирование:</td>
-                <td><select name="test">[test]</select></td>
-                <td class="text-right">Тестов:</td>
-                <td><input name="tests" value="[tests]" type="text"></td>
-                <td class="text-right">Скидки:</td>
-                <td><select name="discount">[discount]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Диск:</td>
-                <td><input name="hdd" value="[hdd]" type="text"></td>
-                <td class="text-right">Карта:</td>
-                <td><input name="map" value="[map]" type="text"></td>
-                <td class="text-right">Выключение:</td>
-                <td><select name="autostop">[autostop]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Цена:</td>
-                <td><input name="price" value="[price]" type="text"></td>
-                <td class="text-right">Положение:</td>
-                <td><input name="sort" value="[sort]" type="text"></td>
-                <td class="text-right">Аренда:</td>
-                <td><select name="show">[show]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Ядра:</td>
-                <td colspan="5"><input name="core_fix" value="[core_fix]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Сборки:</td>
-                <td colspan="5"><textarea rows="1" name="packs">[packs]</textarea></td>
-            </tr>
-            <tr>
-                <td class="text-right">Адреса:</td>
-                <td colspan="5"><textarea rows="1" name="ip">[ip]</textarea></td>
-            </tr>
-            <tr>
-                <td class="text-right">Плагины:</td>
-                <td colspan="5"><textarea rows="1" name="plugins_install">[plugins_install]</textarea></td>
-            </tr>
-            <tr>
-                <td class="text-right">Разделы:</td>
-                <td colspan="5">
-                    <label>
-                        Плагины
-                        <input type="checkbox" name="plugins" |plugins|checked|_plugins|>
-                    </label>
-                    <label>
-                        Консоль
-                        <input type="checkbox" name="console" |console|checked|_console|>
-                    </label>
-                    <label>
-                        FileTP
-                        <input type="checkbox" name="ftp" |ftp|checked|_ftp|>
-                    </label>
-                    <label>
-                        Копии
-                        <input type="checkbox" name="copy" |copy|checked|_copy|>
-                    </label>
-                    <label>
-                        Графики
-                        <input type="checkbox" name="stats" |stats|checked|_stats|>
-                    </label>
-                    <label>
-                        Бесплатные услуги
-                        <input type="checkbox" name="web" |web|checked|_web|>
-                    </label>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]tarifs.js"></script>

+ 0 - 40
acp/template/sections/tarifs/index.html

@@ -1,40 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="tarifs_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"><span onclick="tarifs_sort('id')"><i class="fa fa-sort-numeric-[sort_id]"></i></span></th>
-            <th class="w20p">Название</th>
-            <th class="w20p">Локация <span onclick="tarifs_sort('unit')"><i class="fa fa-sort-numeric-[sort_unit]"></i></span></th>
-            <th class="w15p">Слоты</th>
-            <th class="w15p">Порты</th>
-            <th class="w10p">Игра <span onclick="tarifs_sort('game')"><i class="fa fa-sort-alpha-[sort_game]"></i></span></th>
-            <th class="w5p"></th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    var sort_id = '[sort_id]';
-    var sort_unit = '[sort_unit]';
-    var sort_game = '[sort_game]';
-
-    $('#search').keyup(function(){
-        tarifs_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]tarifs.js"></script>

+ 0 - 7
acp/template/sections/tarifs/menu.html

@@ -1,7 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]tarifs/section/add" |s_add|class="active"|_s_add||s_copy|class="active"|_s_copy|><i class="fa fa-plus-square"></i> Добавить тариф</a></li>
-    <li><a href="[acp]tarifs" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Список тарифов <span>[tarifs]</span></a></li>
-    <li><a href="[acp]tarifs/section/stats" |s_stats|class="active"|_s_stats|><i class="fa fa-pie-chart"></i> Статистика тарифов</a></li>
-</ul>

+ 0 - 20
acp/template/sections/tarifs/stats.html

@@ -1,20 +0,0 @@
-<div class="informer">За все время всего: <b>[all_money]</b> [cur] / За [month] всего: <b>[all_money_month]</b> [cur]</div>
-
-<div class="space"></div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th class="w20p">Название</th>
-            <th class="w15p">Локация</th>
-            <th class="w15p text-center">Всего/Просроченных</th>
-            <th class="w15p text-center">За все время</th>
-            <th class="w15p text-center">За [month]</th>
-            <th class="w5p text-center">Игра</th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>

+ 0 - 120
acp/template/sections/tarifs/tarif.html

@@ -1,120 +0,0 @@
-<form action="[acp]tarifs/section/tarif/id/[id]/go" method="POST" id="tarif">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td class="w25p"><input name="name" value="[name]" type="text"></td>
-                <td class="w5p text-right">Локация:</td>
-                <td class="w25p"><select name="unit">[units]</select></td>
-                <td class="w5p text-right">Игра:</td>
-                <td class="w25p"><select name="game">[games]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Слоты:</td>
-                <td><input name="slots" value="[slots_min]-[slots_max]" type="text" placeholder="Слоты: 10-32"></td>
-                <td class="text-right">Порты:</td>
-                <td><input name="posts" id="ports" value="[port_min]-[port_max]" type="text" placeholder="Порты: 27016-27056"></td>
-                <td class="text-right">Имя:</td>
-                <td><input name="hostname" value="[hostname]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Сборки:</td>
-                <td><input name="path" value="[path]" type="text"></td>
-                <td class="text-right">Обновления:</td>
-                <td><input name="update" value="[update]" type="text"></td>
-                <td class="text-right">Сервера:</td>
-                <td><input name="install" value="[install]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">FPS:</td>
-                <td><input name="fps" value="[fps]" type="text"></td>
-                <td class="text-right">TickRate:</td>
-                <td><input name="tickrate" value="[tickrate]" type="text"></td>
-                <td class="text-right">RAM:</td>
-                <td><input name="ram" value="[ram]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Аренда:</td>
-                <td><input name="time" value="[time]" type="text"></td>
-                <td class="text-right">Продление:</td>
-                <td><input name="timext" value="[timext]" type="text"></td>
-                <td class="text-right">Фиксация:</td>
-                <td><select name="param_fix">[param_fix]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Тестирование:</td>
-                <td><select name="test">[test]</select></td>
-                <td class="text-right">Тестов:</td>
-                <td><input name="tests" value="[tests]" type="text"></td>
-                <td class="text-right">Скидки:</td>
-                <td><select name="discount">[discount]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Диск:</td>
-                <td><input name="hdd" value="[hdd]" type="text"></td>
-                <td class="text-right">Карта:</td>
-                <td><input name="map" value="[map]" type="text"></td>
-                <td class="text-right">Выключение:</td>
-                <td><select name="autostop">[autostop]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Цена:</td>
-                <td><input name="price" value="[price]" type="text"></td>
-                <td class="text-right">Положение:</td>
-                <td><input name="sort" value="[sort]" type="text"></td>
-                <td class="text-right">Аренда:</td>
-                <td><select name="show">[show]</select></td>
-            </tr>
-            <tr>
-                <td class="text-right">Ядра:</td>
-                <td colspan="5"><input name="core_fix" value="[core_fix]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Сборки:</td>
-                <td colspan="5"><textarea rows="4" name="packs">[packs]</textarea></td>
-            </tr>
-            <tr>
-                <td class="text-right">Адреса:</td>
-                <td colspan="5"><textarea rows="3" name="ip">[ip]</textarea></td>
-            </tr>
-            <tr>
-                <td class="text-right">Плагины:</td>
-                <td colspan="5"><textarea rows="2" name="plugins_install">[plugins_install]</textarea></td>
-            </tr>
-            <tr>
-                <td class="text-right">Разделы:</td>
-                <td colspan="5">
-                    <label>
-                        Плагины
-                        <input type="checkbox" name="plugins" |plugins|checked|_plugins|>
-                    </label>
-                    <label>
-                        Консоль
-                        <input type="checkbox" name="console" |console|checked|_console|>
-                    </label>
-                    <label>
-                        FileTP
-                        <input type="checkbox" name="ftp" |ftp|checked|_ftp|>
-                    </label>
-                    <label>
-                        Копии
-                        <input type="checkbox" name="copy" |copy|checked|_copy|>
-                    </label>
-                    <label>
-                        Графики
-                        <input type="checkbox" name="stats" |stats|checked|_stats|>
-                    </label>
-                    <label>
-                        Бесплатные услуги
-                        <input type="checkbox" name="web" |web|checked|_web|>
-                    </label>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]tarifs.js"></script>

+ 0 - 90
acp/template/sections/units/add.html

@@ -1,90 +0,0 @@
-<form action="[acp]units/section/add/go" method="POST" id="unit">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td class="w15p"><input name="name" placeholder="Введите название" type="text"></td>
-                <td class="w5p text-right">Адрес:</td>
-                <td class="w15p"><input name="address" placeholder="Введите ip:port (ssh)" type="text"></td>
-                <td class="w5p text-right">Пароль:</td>
-                <td class="w15p"><input name="passwd" placeholder="Введите root пароль" type="text"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">SQL_Логин:</td>
-                <td class="w15p"><input name="sql_login" value="root" type="text"></td>
-                <td class="w5p text-right">SQL_Пароль:</td>
-                <td class="w15p"><input name="sql_passwd" placeholder="Введите пароль (root)" type="text"></td>
-                <td class="w5p text-right">SQL_FileTP:</td>
-                <td class="w15p"><input name="sql_ftp" placeholder="Введите логин базы ftp" type="text"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">SQL_Порт:</td>
-                <td class="w15p"><input name="sql_port" value="3306" type="text"></td>
-                <td class="w5p text-right">RAM:</td>
-                <td class="w15p"><input name="ram" placeholder="Введите число RAM в мб" type="text"></td>
-                <td class="w5p text-right">Аренда:</td>
-                <td class="w15p">
-                    <select name="show">
-                        <option value="1">Доступна</option>
-                        <option value="0">Недоступна</option>
-                    </select>
-                </td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Тестов:</td>
-                <td class="w15p"><input name="test" placeholder="Введите число тестов" type="text"></td>
-                <td class="w5p text-right">Положение:</td>
-                <td class="w15p"><input name="sort" placeholder="Введите место в списке" type="text"></td>
-                <td class="w5p text-right">Домен:</td>
-                <td class="w15p"><input name="domain" placeholder="Введите домен" type="text"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Игры:</td>
-                <td colspan="5">
-                    <label>
-                        CS 1.6
-                        <input type="checkbox" name="cs" checked>
-                    </label>
-                    <label>
-                        CS:S v34
-                        <input type="checkbox" name="cssold" checked>
-                    </label>
-                    <label>
-                        CS:S
-                        <input type="checkbox" name="css" checked>
-                    </label>
-                    <label>
-                        CS:GO
-                        <input type="checkbox" name="csgo" checked>
-                    </label>
-                    <label>
-                        SA-MP
-                        <input type="checkbox" name="samp" checked>
-                    </label>
-                    <label>
-                        CR-MP
-                        <input type="checkbox" name="crmp" checked>
-                    </label>
-                    <label>
-                        MTA
-                        <input type="checkbox" name="mta" checked>
-                    </label>
-                    <label>
-                        MC
-                        <input type="checkbox" name="mc" checked>
-                    </label>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<div class="space"></div>
-<br>
-<br>
-<!-- <div class="informer green">Здесь скоро будет какая ни будь информация.</div>
-<div class="space"></div> -->
-<script type="text/javascript" src="[js]units.js"></script>

+ 0 - 17
acp/template/sections/units/index.html

@@ -1,17 +0,0 @@
-<table>
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th class="w25p">Название</th>
-            <th class="w15p">Адрес</th>
-            <th class="w15p">Аренда</th>
-            <th class="w15p">Домен</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>
-
-<script type="text/javascript" src="[js]units.js"></script>

+ 0 - 25
acp/template/sections/units/loading.html

@@ -1,25 +0,0 @@
-<table>
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th class="w25p">Название</th>
-            <th class="w5p text-center">CPU</th>
-            <th class="w5p text-center">RAM</th>
-            <th class="w5p text-center">HDD</th>
-            <th class="w10p text-center">Apache</th>
-            <th class="w10p text-center">Nginx</th>
-            <th class="w10p text-center">MySQL</th>
-            <th class="w15p text-center">Uptime</th>
-            <th class="w10p text-center">SSH</th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>
-
-<script type="text/javascript" src="[js]units.js"></script>
-
-<script type="text/javascript">
-    $(document).ready(function(){[loads]});
-</script>

+ 0 - 8
acp/template/sections/units/menu.html

@@ -1,8 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]units/section/add" |s_add|class="active"|_s_add|><i class="fa fa-plus-square"></i> Добавить локацию</a></li>
-    <li><a href="[acp]units" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Список локаций <span>[units]</span></a></li>
-    <li><a href="[acp]units/section/stats" |s_stats|class="active"|_s_stats|><i class="fa fa-pie-chart"></i> Статистика локаций</a></li>
-    <li><a href="[acp]units/section/loading" |s_loading|class="active"|_s_loading|><i class="fa fa-area-chart"></i> Состояние локаций</a></li>
-</ul>

+ 0 - 20
acp/template/sections/units/stats.html

@@ -1,20 +0,0 @@
-<div class="informer">За все время всего: <b>[all_money]</b> [cur] / За [month] всего: <b>[all_money_month]</b> [cur]</div>
-
-<div class="space"></div>
-
-<table>
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th class="w25p">Название</th>
-            <th class="w10p">Аренда</th>
-            <th class="w15p">Всего серверов</th>
-            <th class="w15p">Просроченных</th>
-            <th class="w15p">За все время</th>
-            <th class="w15p">За [month]</th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>

+ 0 - 82
acp/template/sections/units/unit.html

@@ -1,82 +0,0 @@
-<form action="[acp]units/id/[id]/go" method="POST" id="unit">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td class="w15p"><input name="name" placeholder="Введите название" type="text" value="[name]"></td>
-                <td class="w5p text-right">Адрес:</td>
-                <td class="w15p"><input name="address" placeholder="Введите ip:port (ssh)" type="text" value="[address]"></td>
-                <td class="w5p text-right">Пароль:</td>
-                <td class="w15p"><input name="passwd" placeholder="Введите root пароль" type="text" value="[passwd]"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">SQL_Логин:</td>
-                <td class="w15p"><input name="sql_login" value="root" type="text" value="[sql_login]"></td>
-                <td class="w5p text-right">SQL_Пароль:</td>
-                <td class="w15p"><input name="sql_passwd" placeholder="Введите пароль (root)" type="text" value="[sql_passwd]"></td>
-                <td class="w5p text-right">SQL_FileTP:</td>
-                <td class="w15p"><input name="sql_ftp" placeholder="Введите логин базы ftp" type="text" value="[sql_ftp]"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">SQL_Порт:</td>
-                <td class="w15p"><input name="sql_port" value="3306" type="text" value="[name]"></td>
-                <td class="w5p text-right">RAM:</td>
-                <td class="w15p"><input name="ram" placeholder="Введите число RAM в мб" type="text" value="[ram]"></td>
-                <td class="w5p text-right">Аренда:</td>
-                <td class="w15p">
-                    <select name="show">[show]</select>
-                </td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Тестов:</td>
-                <td class="w15p"><input name="test" placeholder="Введите число тестов" type="text" value="[test]"></td>
-                <td class="w5p text-right">Положение:</td>
-                <td class="w15p"><input name="sort" placeholder="Введите место в списке" type="text" value="[sort]"></td>
-                <td class="w5p text-right">Домен:</td>
-                <td class="w15p"><input name="domain" placeholder="Введите домен" type="text" value="[domain]"></td>
-            </tr>
-            <tr>
-                <td class="w5p text-right">Игры:</td>
-                <td colspan="5">
-                    <label>
-                        CS 1.6
-                        <input type="checkbox" name="cs" |game_cs|checked|_game_cs|>
-                    </label>
-                    <label>
-                        CS:S v34
-                        <input type="checkbox" name="cssold" |game_cssold|checked|_game_cssold|>
-                    </label>
-                    <label>
-                        CS:S
-                        <input type="checkbox" name="css" |game_css|checked|_game_css|>
-                    </label>
-                    <label>
-                        CS:GO
-                        <input type="checkbox" name="csgo" |game_csgo|checked|_game_csgo|>
-                    </label>
-                    <label>
-                        SA-MP
-                        <input type="checkbox" name="samp" |game_samp|checked|_game_samp|>
-                    </label>
-                    <label>
-                        CR-MP
-                        <input type="checkbox" name="crmp" |game_crmp|checked|_game_crmp|>
-                    </label>
-                    <label>
-                        MTA
-                        <input type="checkbox" name="mta" |game_mta|checked|_game_mta|>
-                    </label>
-                    <label>
-                        MC
-                        <input type="checkbox" name="mc" |game_mc|checked|_game_mc|>
-                    </label>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]units.js"></script>

+ 0 - 38
acp/template/sections/users/index.html

@@ -1,38 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="users_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"># <span onclick="users_sort('id')"><i class="fa fa-sort-numeric-[sort_id]"></i></span></th>
-            <th class="w25p">Логин</th>
-            <th class="w25p">Почта</th>
-            <th class="w15p">Баланс <span onclick="users_sort('balance')"><i class="fa fa-sort-amount-[sort_balance]"></i></span></th>
-            <th class="w15p">Группа <span onclick="users_sort('group')"><i class="fa fa-sort-alpha-[sort_group]"></i></span></th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    var sort_id = '[sort_id]';
-    var sort_balance = '[sort_balance]';
-    var sort_group = '[sort_group]';
-
-    $('#search').keyup(function(){
-        users_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]users.js"></script>

+ 0 - 9
acp/template/sections/users/menu.html

@@ -1,9 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]users" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Cписок пользователей <span>[all]</span></a></li>
-    <li><a href="[acp]users/section/online" |s_online|class="active"|_s_online|><i class="fa fa-internet-explorer"></i> Онлайн пользователи <span>[online]</span></a></li>
-    <li><a href="[acp]users/section/offline" |s_offline|class="active"|_s_offline|><i class="fa fa-user-times"></i> Офлайн пользователи <span>[offline]</span></a></li>
-    <li><a href="[acp]users/section/signup" |s_signup|class="active"|_s_signup|><i class="fa fa-edit"></i> Запросы на регистрацию <span>[signup]</span></a></li>
-    <li><a href="[acp]users/section/stats" |s_stats|class="active"|_s_stats|><i class="fa fa-pie-chart"></i> Статистика по пользователям</a></li>
-</ul>

+ 0 - 17
acp/template/sections/users/offline.html

@@ -1,17 +0,0 @@
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th class="w25p">Логин</th>
-            <th class="w25p">Почта</th>
-            <th class="w15p">Группа</th>
-            <th class="w25p">Последний визит</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>
-
-<script src="[js]users.js" type="text/javascript"></script>

+ 0 - 18
acp/template/sections/users/online.html

@@ -1,18 +0,0 @@
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th class="w25p">Логин</th>
-            <th class="w15p">Группа</th>
-            <th class="w15p">Браузер</th>
-            <th class="w15p">Адрес</th>
-            <th class="w15p">Страна</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>
-
-<script src="[js]users.js" type="text/javascript"></script>

+ 0 - 16
acp/template/sections/users/signup.html

@@ -1,16 +0,0 @@
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th>Почта</th>
-            <th class="w25p">Ключ</th>
-            <th class="w25p">Время</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>
-
-<script src="[js]users.js" type="text/javascript"></script>

+ 0 - 31
acp/template/sections/users/stats.html

@@ -1,31 +0,0 @@
-<table>
-    <tbody>
-        <tr>
-            <td>Пользователей с положительным балансом:</td>
-            <td class="text-right">[users] шт.</td>
-        </tr>
-        <tr>
-            <td>Cумма балансов пользователей:</td>
-            <td class="text-right">[money] [cur]</td>
-        </tr>
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Пользователи с большим балансом</div>
-
-<table>
-    <thead>
-        <tr>
-            <th class="w5p"></th>
-            <th>Логин</th>
-            <th>Почта</th>
-            <th class="w15p">Баланс</th>
-            <th class="w5p">Серверов</th>
-        </tr>
-    </thead>
-    <tbody>
-        [list]
-    </tbody>
-</table>

+ 0 - 177
acp/template/sections/users/user.html

@@ -1,177 +0,0 @@
-<div class="informer">Пользователь id_[id] / Регистрация: [date] / Рефералов: [part] шт. <span class="right">Последняя активность: [time]</span></div>
-
-<div class="space"></div>
-
-<form action="[acp]users/id/[id]/go" method="POST" id="user">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Логин:</td>
-                <td class="w15p"><input name="login" value="[login]" type="text"></td>
-                <td class="w5p text-right">Имя:</td>
-                <td class="w15p"><input name="name" value="[name]" type="text"></td>
-                <td class="w5p text-right">Баланс:</td>
-                <td class="w15p">[balance] [cur]</td>
-            </tr>
-            <tr>
-                <td class="text-right">Пароль:</td>
-                <td><input name="passwd" placeholder="Введите новый пароль" type="text"></td>
-                <td class="text-right">Фамилия:</td>
-                <td><input name="lastname" value="[lastname]" type="text"></td>
-                <td class="text-right">Пополнить:</td>
-                <td><input name="replenish" placeholder="Введите сумму" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Почта:</td>
-                <td><input name="mail" value="[mail]" type="text"></td>
-                <td class="text-right">Отчество:</td>
-                <td><input name="patronymic" value="[patronymic]" type="text"></td>
-                <td class="text-right">Изменить:</td>
-                <td><input name="balance" value="[balance]" type="text"></td>
-            </tr>
-            <tr>
-                <td class="text-right">Контакты:</td>
-                <td><input name="contacts" value="[contacts]" type="text"></td>
-                <td class="text-right">Номер:</td>
-                <td><input name="phone" value="[phone]" type="text"></td>
-                <td class="text-right">Тел:</td>
-                <td><select name="confirm_phone">[confirm_phone]</select></td>
-            </tr>
-            <tr>
-                <td colspan="2" class="text-right">Персональные скидки на</td>
-                <td class="text-right">аренду:</td>
-                <td><input name="rental" value="[rental]" type="text"></td>
-                <td class="text-right">продление:</td>
-                <td><input name="extend" value="[extend]" type="text"></td>
-            </tr>
-
-            |!support|
-            <tr>
-                <td class="w5p text-right">Группа:</td>
-                <td><select name="group">[group]</select></td>
-                <td colspan="4"></td>
-            </tr>
-            |_!support|
-
-            |support|
-            <tr>
-                <td class="text-right">Группа:</td>
-                <td><select name="group"><option value="support">Тех. поддержка</option><option value="user">Пользователь</option><option value="admin">Администратор</option></select></td>
-                <td class="text-right">Уровень:</td>
-                <td><select name="level">[level]</select></td>
-                <td class="text-right">Подпись:</td>
-                <td><input name="support_info" placeholder="Техническая поддержка" value="[support_info]" type="text"></td>
-            </tr>
-            |_support|
-
-            <tr>
-                <td></td>
-                <td colspan="3"><select name="help">[help]</select></td>
-                <td class="text-right">Заработано:</td>
-                <td><input name="part_money" value="[part_money]" type="text"></td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Сохранить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-|support|
-<div class="space"></div>
-
-<div class="informer">Информация по уровням технической поддержки</div>
-
-<table class="inputs inputs-max p_info">
-    <tbody>
-        <tr>
-            <td>
-                <p><i class="fa fa-info-circle"></i> Уровень 0 - тех. поддержка <u>не имеет</u> доступа к игровым серверам.</p>
-                <p><i class="fa fa-info-circle"></i> Уровень 1 - тех. поддержка имеет доступа к игровому серверу <u>только</u> во время открытыго тикета по серверу.</p>
-                <p><i class="fa fa-info-circle"></i> Уровень 2 - тех. поддержка имеет постоянный доступ к игровым серверам.</p>
-            </td>
-        </tr>
-    </tbody>
-</table>
-|_support|
-
-<div class="space"></div>
-
-<div class="informer">Сервера пользователя </div>
-
-<table class="trh">
- <thead>
-        <tr>
-   <th class="w5p">#</th>
-   <th class="w20p">Адрес</th>
-   <th class="w20p">Тариф</th>
-   <th class="w15p">Статус</th>
-            <th class="w15p">Игра</th>
-   <th class="w20p">Аренда</th>
-  </tr>
- </thead>
-<tbody>
- [serv_user]
-</tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Финансовая статистика</div>
-
-<table>
-    <tbody>
-        <tr>
-            <td>Затрачено за [month]</td>
-            <td class="text-right">[money_month] [cur]</td>
-        </tr>
-        <tr>
-            <td>Всего затрачено средств</td>
-            <td class="text-right">[money_all] [cur]</td>
-        </tr>
-        <tr>
-            <td>Затрачено средств на продление</td>
-            <td class="text-right">[money_extend] [cur]</td>
-        </tr>
-        <tr>
-            <td>Затрачено средств на аренду</td>
-            <td class="text-right">[money_buy] [cur]</td>
-        </tr>
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Последние операции</div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th>Операция</th>
-            <th class="w15p">Дата</th>
-        </tr>
-    </thead>
-    <tbody>
-        [logs]
-    </tbody>
-</table>
-
-<div class="space"></div>
-
-<div class="informer">Последние авторизации</div>
-
-<table class="trh">
-    <thead>
-        <tr>
-            <th class="w50p">Браузер</th>
-            <th class="w15p">Адрес</th>
-            <th class="w15p">Страна</th>
-            <th class="w15p">Дата</th>
-        </tr>
-    </thead>
-    <tbody>
-        [auth]
-    </tbody>
-</table>
-
-<script type="text/javascript" src="[js]users.js"></script>

+ 0 - 34
acp/template/sections/web/index.html

@@ -1,34 +0,0 @@
-<div class="search">
-    <input id="search" placeholder="Введите критерии поиска">
-    <button onclick="web_search(true)"><i class="fa fa-search"></i> Поиск</button>
-</div>
-
-<div id="search_error"></div>
-
-<div class="space"></div>
-
-<table class="double-color">
-    <thead>
-        <tr>
-            <th class="w20p text-center">Номер / Услуга</th>
-            <th class="w15p text-center">Владелец / Сервер</th>
-            <th class="w20p text-center">Адрес / Расположение</th>
-            <th class="w15p text-center">Логин / Пароль</th>
-            <th class="w15p text-center">Дата создания</th>
-            <th class="w5p"></th>
-        </tr>
-    </thead>
-    <tbody id="search_result">
-        [list]
-    </tbody>
-</table>
-
-[pages]
-
-<script type="text/javascript">
-    $('#search').keyup(function(){
-        web_search(false);
-    });
-</script>
-
-<script type="text/javascript" src="[js]web.js"></script>

+ 0 - 11
acp/template/sections/web/menu.html

@@ -1,11 +0,0 @@
-<h5>Управление</h5>
-
-<ul>
-    <li><a href="[acp]web" |s_index|class="active"|_s_index|><i class="fa fa-list-ol"></i> Полный список услуг <span>[all]</span></a></li>
-    <li><a href="[acp]web/section/csbans" |s_csbans|class="active"|_s_csbans|><i class="fa fa-lock"></i> CS:Bans <span>[csbans]</span></a></li>
-    <li><a href="[acp]web/section/csstats" |s_csstats|class="active"|_s_csstats|><i class="fa fa-bar-chart-o"></i> CsStats <span>[csstats]</span></a></li>
-    <li><a href="[acp]web/section/astats" |s_astats|class="active"|_s_astats|><i class="fa fa-bar-chart-o"></i> AStats <span>[astats]</span></a></li>
-    <li><a href="[acp]web/section/sourcebans" |s_sourcebans|class="active"|_s_sourcebans|><i class="fa fa-lock"></i> SourceBans <span>[sourcebans]</span></a></li>
-    <li><a href="[acp]web/section/mysql" |s_mysql|class="active"|_s_mysql|><i class="fa fa-database"></i> MySQL <span>[mysql]</span></a></li>
-    <li><a href="[acp]web/section/hosting" |s_hosting|class="active"|_s_hosting|><i class="fa fa-globe"></i> Вирт. Хостинг <span>[hosting]</span></a></li>
-</ul>

+ 0 - 36
acp/template/sections/wiki/add.html

@@ -1,36 +0,0 @@
-<form action="[acp]wiki/section/add/go" method="POST" id="wiki">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Вопрос:</td>
-                <td>
-                    <input name="name" placeholder="Введите вопрос" type="text">
-                </td>
-                <td class="w5p text-right">Категория:</td>
-                <td class="w20p">
-                    <select name="cat">[cats]</select>
-                </td>
-                <td class="w5p text-right">Теги:</td>
-                <td class="w25p">
-                    <input name="tags" placeholder="Введите теги вопроса" type="text">
-                </td>
-            </tr>
-            <tr>
-                <td colspan="6">
-                    <div onclick="bbcode('[spoiler]', '[/spoiler]')" class="btn btn-red right">Спойлер</div>
-                    <div onclick="bbcode('[code]', '[/code]')" class="btn btn-red right">Подсветка</div>
-                    <div onclick="bbcode('[quote]', '[/quote]')" class="btn btn-red right">Цитата</div>
-                    <div onclick="bbcode('[url=', ']ссылка[/url]')" class="btn btn-red right">Ссылка</div>
-                </td>
-            </tr>
-            <tr>
-                <td colspan="6"><textarea id="text" name="text" rows="10" placeholder="Введите развернутый ответ на вопрос"></textarea></td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]wiki.js"></script>

+ 0 - 17
acp/template/sections/wiki/addcat.html

@@ -1,17 +0,0 @@
-<form action="[acp]wiki/section/addcat/go" method="POST" id="wiki">
-    <table class="inputs inputs-max">
-        <tbody>
-            <tr>
-                <td class="w5p text-right">Название:</td>
-                <td class="w25p"><input name="name" placeholder="Введите название" type="text"></td>
-                <td class="w5p text-right">Положение:</td>
-                <td class="w25p"><input name="sort" placeholder="Введите место в списке" type="text"></td>
-            </tr>
-            <tr>
-                <td colspan="6" class="text-center"><button class="btn btn-green" onclick="loading(1)">Добавить</button></td>
-            </tr>
-        </tbody>
-    </table>
-</form>
-
-<script type="text/javascript" src="[js]wiki.js"></script>

Деякі файли не було показано, через те що забагато файлів було змінено