Browse Source

fix для корректной работы модуля с версиями php начиная с 5.3.13

master
root 8 years ago
parent
commit
aa4ab798d7
  1. 2
      unicalendar/module.php
  2. 2
      unicalendar/templates/admin_unicalendar_list.tpl
  3. 1
      unicalendar/templates/unicalendar.tpl
  4. 16
      unicalendar/uca.res.php

2
unicalendar/module.php

@ -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'] = '&copy; AVE.cms Team 2017';

2
unicalendar/templates/admin_unicalendar_list.tpl

@ -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();

1
unicalendar/templates/unicalendar.tpl

@ -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>

16
unicalendar/uca.res.php

@ -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…
Cancel
Save