mirror of
https://github.com/avecms/AVE.cms.git
synced 2025-01-21 23:10:07 +00:00
Fixes
This commit is contained in:
parent
23df692ef7
commit
3314480b2a
@ -59,7 +59,7 @@
|
||||
{
|
||||
require(BASE_DIR . '/class/class.user.php');
|
||||
$AVE_User = new AVE_User;
|
||||
$AVE_Navigation->navigationEdit((int)$_REQUEST['navigation_id']);
|
||||
$AVE_Navigation->navigationEdit($_REQUEST['navigation_id']);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
if(check_permission_acp('request_edit'))
|
||||
{
|
||||
$AVE_Rubric->rubricTemplateShow(0, 1);
|
||||
$AVE_Request->requestEdit((int)$_REQUEST['Id']);
|
||||
$AVE_Request->requestEdit($_REQUEST['Id']);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -87,7 +87,7 @@
|
||||
<div class="rowElem" id="saveBtn">
|
||||
<div class="saveBtn">
|
||||
{if $smarty.request.id != ''}
|
||||
<input type="hidden" name="id" value="{$id}">
|
||||
<input type="hidden" name="id" value="{$sid}">
|
||||
<input name="submit" type="submit" class="basicBtn" value="{#BLOCK_SAVEDIT#}" />
|
||||
{else}
|
||||
<input name="submit" type="submit" class="basicBtn" value="{#BLOCK_SAVE#}" />
|
||||
|
@ -43,7 +43,7 @@
|
||||
<a class="basicNum topDir" href="index.php?do=navigation&cp={$sess}">{#NAVI_RETURN_TO_LIST#}</a>
|
||||
</div>
|
||||
<div class="num">
|
||||
<a class="greenNum" href="index.php?do=navigation&action=entries&navigation_id={$smarty.request.navigation_id}&cp={$sess}">{#NAVI_EDIT_ITEMS#}</a>
|
||||
<a class="greenNum" href="index.php?do=navigation&action=entries&navigation_id={$nid}&cp={$sess}">{#NAVI_EDIT_ITEMS#}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -13,7 +13,7 @@ function changeRub(select) {ldelim}
|
||||
{if $smarty.request.action=='new'}
|
||||
location.href='index.php?do=request&action=new&rubric_id=' + select.options[select.selectedIndex].value + '{if $smarty.request.request_title_new!=''}&request_title_new={$smarty.request.request_title_new|escape|stripslashes}{/if}';
|
||||
{else}
|
||||
location.href='index.php?do=request&action=edit&Id={$smarty.request.Id|escape}&rubric_id=' + select.options[select.selectedIndex].value;
|
||||
location.href='index.php?do=request&action=edit&Id={$rid}&rubric_id=' + select.options[select.selectedIndex].value;
|
||||
{/if}
|
||||
{rdelim}
|
||||
|
||||
@ -29,7 +29,7 @@ function changeRub(select) {ldelim}
|
||||
<div class="title">
|
||||
<h5>{#REQUEST_EDIT2#}</h5>
|
||||
<div class="num">
|
||||
<a class="basicNum" href="index.php?do=request&action=conditions&Id={$smarty.request.Id|escape}&rubric_id={$smarty.request.rubric_id|escape}&cp={$sess}">{#REQUEST_CONDITION_EDIT#}</a>
|
||||
<a class="basicNum" href="index.php?do=request&action=conditions&Id={$rid}&rubric_id={$smarty.request.rubric_id|escape}&cp={$sess}">{#REQUEST_CONDITION_EDIT#}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget" style="margin-top: 0px;">
|
||||
|
@ -228,7 +228,7 @@
|
||||
<div class="rowElem" id="saveBtn">
|
||||
<div class="saveBtn">
|
||||
{if $smarty.request.id != ''}
|
||||
<input type="hidden" name="id" value="{$id}">
|
||||
<input type="hidden" name="id" value="{$sid}">
|
||||
<input name="submit" type="submit" class="basicBtn" value="{#SYSBLOCK_SAVEDIT#}" />
|
||||
{else}
|
||||
<input name="submit" type="submit" class="basicBtn" value="{#SYSBLOCK_SAVE#}" />
|
||||
|
@ -70,7 +70,7 @@
|
||||
*
|
||||
* @param int $block_id идентификатор системного блока
|
||||
*/
|
||||
function blockSave($block_id = null)
|
||||
function blockSave ($block_id = null)
|
||||
{
|
||||
global $AVE_DB, $AVE_Template;
|
||||
|
||||
@ -156,7 +156,7 @@
|
||||
*
|
||||
* @param int $block_id идентификатор системного блока
|
||||
*/
|
||||
function blockEdit($block_id)
|
||||
function blockEdit ($block_id)
|
||||
{
|
||||
global $AVE_DB, $AVE_Template;
|
||||
|
||||
@ -167,9 +167,11 @@
|
||||
" . PREFIX . "_blocks
|
||||
WHERE
|
||||
id = '" . $block_id . "'
|
||||
OR
|
||||
block_alias = '" . $block_id . "'
|
||||
")->FetchAssocArray();
|
||||
|
||||
$AVE_Template->assign('sid', $block_id);
|
||||
$AVE_Template->assign('sid', $row['id']);
|
||||
|
||||
$oCKeditor = new CKeditor();
|
||||
$oCKeditor->returnOutput = true;
|
||||
|
8
lib/debug/debug.tpl
Normal file
8
lib/debug/debug.tpl
Normal file
@ -0,0 +1,8 @@
|
||||
{foreach from=$edit item=group key=title}
|
||||
<strong>{$title}</strong>
|
||||
<ul>
|
||||
{foreach from=$group item=item key=id}
|
||||
<li>ID: {$id} - <a href="{$item}" target="_blank">Редактировать</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/foreach}
|
Loading…
x
Reference in New Issue
Block a user