fix для корректной работы модуля с версиями php начиная с 5.3.13
This commit is contained in:
parent
89a22adfda
commit
aa4ab798d7
@ -14,7 +14,7 @@ if (defined('ACP'))
|
||||
{
|
||||
$modul['ModuleName'] = 'Универсальный календарь событий';
|
||||
$modul['ModuleSysName'] = 'unicalendar';
|
||||
$modul['ModuleVersion'] = '1.1';
|
||||
$modul['ModuleVersion'] = '1.1.1';
|
||||
$modul['ModuleDescription'] = '<br>Модуль позволяет создавать различные календари событий. <br> Для вывода календаря используйте системный тег <strong>[mod_unicalendar:XXX]</strong>';
|
||||
$modul['ModuleAutor'] = 'Repellent';
|
||||
$modul['ModuleCopyright'] = '© AVE.cms Team 2017';
|
||||
|
@ -243,7 +243,7 @@
|
||||
type: 'POST',
|
||||
url: '{$ABS_PATH}modules/unicalendar/uca.res.php',
|
||||
async: true,
|
||||
data: uca_request,
|
||||
data: {ldelim}c:uca_request{rdelim},
|
||||
success: function(data) {ldelim}
|
||||
$("#uca_result").html(data);
|
||||
$('select').styler();
|
||||
|
@ -2,6 +2,7 @@
|
||||
<link rel="stylesheet" href="{$ABS_PATH}modules/unicalendar/css/eventCalendar_theme_responsive.css" type="text/css" media="screen" charset="utf-8" />
|
||||
<script src="{$ABS_PATH}modules/unicalendar/js/moment.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="{$ABS_PATH}modules/unicalendar/js/jquery.eventCalendar.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
{foreach from=$unicalendars item=unicalendar}
|
||||
<div id="eventCalendar{$unicalendar.id}"></div>
|
||||
<script>
|
||||
|
@ -9,30 +9,20 @@ if (! check_permission('adminpanel'))
|
||||
header('Location:/index.php');
|
||||
exit;
|
||||
}
|
||||
if (isset($_POST['1']))
|
||||
{
|
||||
global $AVE_DB;
|
||||
$sql = $AVE_DB->Query("
|
||||
SELECT Id, rubric_title
|
||||
FROM " . PREFIX . "_rubrics
|
||||
");
|
||||
echo "<option style='color: #ABABAB;' value='' >".$select_category."</option>";
|
||||
while($result = $sql->FetchRow()){
|
||||
echo "<option value=".$result->Id.">".$result->rubric_title."</option>";
|
||||
};
|
||||
}
|
||||
if (isset($_POST['2']))
|
||||
if (isset($_POST['c']))
|
||||
{
|
||||
global $AVE_DB;
|
||||
$sql = $AVE_DB->Query("
|
||||
SELECT Id, rubric_title
|
||||
FROM " . PREFIX . "_rubrics
|
||||
WHERE Id !=2
|
||||
");
|
||||
echo "<option style='color: #ABABAB;' value='' >".$select_category."</option>";
|
||||
while($result = $sql->FetchRow()){
|
||||
echo "<option value=".$result->Id.">".$result->rubric_title."</option>";
|
||||
};
|
||||
}
|
||||
|
||||
if (isset($_POST['a']))
|
||||
{
|
||||
global $AVE_DB;
|
||||
|
Loading…
x
Reference in New Issue
Block a user