mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-17 00:08:17 +03:00
фикс панели кнопок в статических страницах + фикс выбора заголовка(теперь селект возвращается в исходное состояние)
This commit is contained in:
parent
58b1e6a293
commit
44d1dc0838
|
@ -116,7 +116,7 @@ class ActionPage extends Action {
|
|||
$_REQUEST['page_title']=$oPageEdit->getTitle();
|
||||
$_REQUEST['page_pid']=$oPageEdit->getPid();
|
||||
$_REQUEST['page_url']=$oPageEdit->getUrl();
|
||||
$_REQUEST['topic_text']=$oPageEdit->getText();
|
||||
$_REQUEST['page_text']=$oPageEdit->getText();
|
||||
$_REQUEST['page_seo_keywords']=$oPageEdit->getSeoKyewords();
|
||||
$_REQUEST['page_seo_description']=$oPageEdit->getSeoDescription();
|
||||
$_REQUEST['page_active']=$oPageEdit->getActive();
|
||||
|
@ -187,7 +187,7 @@ class ActionPage extends Action {
|
|||
}
|
||||
$oPageEdit->setSeoDescription(getRequest('page_seo_description'));
|
||||
$oPageEdit->setSeoKyewords(getRequest('page_seo_keywords'));
|
||||
$oPageEdit->setText(getRequest('topic_text'));
|
||||
$oPageEdit->setText(getRequest('page_text'));
|
||||
$oPageEdit->setTitle(getRequest('page_title'));
|
||||
$oPageEdit->setUrl(getRequest('page_url'));
|
||||
/**
|
||||
|
@ -229,7 +229,7 @@ class ActionPage extends Action {
|
|||
}
|
||||
$oPage->setSeoDescription(getRequest('page_seo_description'));
|
||||
$oPage->setSeoKyewords(getRequest('page_seo_keywords'));
|
||||
$oPage->setText(getRequest('topic_text'));
|
||||
$oPage->setText(getRequest('page_text'));
|
||||
$oPage->setTitle(getRequest('page_title'));
|
||||
$oPage->setUrl(getRequest('page_url'));
|
||||
/**
|
||||
|
@ -275,7 +275,7 @@ class ActionPage extends Action {
|
|||
/**
|
||||
* Проверяем есть ли содержание страницы
|
||||
*/
|
||||
if (!func_check(getRequest('topic_text'),'text',1,50000)) {
|
||||
if (!func_check(getRequest('page_text'),'text',1,50000)) {
|
||||
$this->Message_AddError('Текст страницы должен быть от 1 до 50000 символов','Ошибка');
|
||||
$bOk=false;
|
||||
}
|
||||
|
|
|
@ -1,41 +1,4 @@
|
|||
<div id="window_load_img">
|
||||
<form method="POST" action="" enctype="multipart/form-data" id="form_upload_img" >
|
||||
<table width="500px" border="0">
|
||||
<tr>
|
||||
<th align="center" colspan="2">Вставка изображения</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Файл:</td>
|
||||
<td width="100%"><input type="file" name="img_file" style="width: 100%;" value=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Ссылка:</td>
|
||||
<td><input type="text" name="img_url" value="http://" style="width: 100%;">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Выравнивание:</td>
|
||||
|
||||
<td>
|
||||
<select name="align">
|
||||
<option value="">нет</option>
|
||||
<option value="left">слева</option>
|
||||
<option value="right">справа</option>
|
||||
</select>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">Описание:</td>
|
||||
<td><input type="text" name="title" style="width: 100%;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="button" value="Загрузить" onclick="ajaxUploadImg(document.getElementById('form_upload_img'));">
|
||||
<input type="button" value="Отмена" onclick="closeWindow('window_load_img'); return false;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
{include file='window_load_img.tpl' sToLoad='page_text'}
|
||||
|
||||
<div class="backoffice">
|
||||
|
||||
|
@ -64,29 +27,26 @@
|
|||
<label for="topic_text">Текст:</label>
|
||||
|
||||
<div class="panel_topic_form" style="background: #eaecea; ">
|
||||
<select onchange="voidPutTag2('topic_text',this.value);" tabindex="-1">
|
||||
<select onchange="voidPutTag2('page_text',this.value); this.value='';" tabindex="-1">
|
||||
<option value="" class="title">Заголовок</option>
|
||||
<option value="h4">H4</option>
|
||||
<option value="h5">H5</option>
|
||||
<option value="h6">H6</option>
|
||||
</select>
|
||||
|
||||
<a href="#" onclick="voidPutB('topic_text'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/bold_ru.gif" width="20" height="20" title="жирный"></a>
|
||||
<a href="#" onclick="voidPutI('topic_text'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/italic_ru.gif" width="20" height="20" title="курсив"></a>
|
||||
<a href="#" onclick="voidPutU('topic_text'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/underline_ru.gif" width="20" height="20" title="подчеркнуть"></a>
|
||||
<a href="#" onclick="voidPutS('topic_text'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/strikethrough.gif" width="20" height="20" title="зачеркнутый"></a>
|
||||
<a href="#" onclick="voidPutTag2('page_text','b'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/bold_ru.gif" width="20" height="20" title="жирный"></a>
|
||||
<a href="#" onclick="voidPutTag2('page_text','i'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/italic_ru.gif" width="20" height="20" title="курсив"></a>
|
||||
<a href="#" onclick="voidPutTag2('page_text','u'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/underline_ru.gif" width="20" height="20" title="подчеркнуть"></a>
|
||||
<a href="#" onclick="voidPutTag2('page_text','s'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/strikethrough.gif" width="20" height="20" title="зачеркнутый"></a>
|
||||
|
||||
<a href="#" onclick="voidPutURL('topic_text'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/link.gif" width="20" height="20" title="вставить ссылку"></a>
|
||||
<a href="#" onclick="voidPutCode('topic_text'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/code.gif" width="30" height="20" title="код"></a>
|
||||
<a href="#" onclick="voidPutTag2('topic_text','video'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/video.gif" width="20" height="20" title="видео"></a>
|
||||
<a href="#" onclick="voidPutURL('page_text'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/link.gif" width="20" height="20" title="вставить ссылку"></a>
|
||||
<a href="#" onclick="voidPutTag2('page_text','code'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/code.gif" width="30" height="20" title="код"></a>
|
||||
<a href="#" onclick="voidPutTag2('page_text','video'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/video.gif" width="20" height="20" title="видео"></a>
|
||||
|
||||
<a href="#" onclick="showWindow('window_load_img'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/img.gif" width="20" height="20" title="изображение"></a>
|
||||
|
||||
|
||||
<a href="#" onclick="showWindow('window_load_img'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/img.gif" width="20" height="20" title="изображение"></a>
|
||||
|
||||
|
||||
<a href="#" onclick="voidPutTag('topic_text','<cut>'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/img/cut.gif" width="20" height="20" title="кат"></a>
|
||||
</div>
|
||||
<textarea style="width: 100%;" name="topic_text" id="topic_text" rows="20">{$_aRequest.topic_text}</textarea><br>
|
||||
<textarea style="width: 100%;" name="page_text" id="page_text" rows="20">{$_aRequest.page_text}</textarea><br>
|
||||
|
||||
|
||||
<span class="form_note">Разрешены ВСЕ html-теги, перевод строки ставится автоматически</span>
|
||||
|
|
|
@ -59,7 +59,7 @@ document.addEvent('domready', function() {
|
|||
<label for="topic_text">Текст:</label>
|
||||
|
||||
<div class="panel_topic_form" style="background: #eaecea; ">
|
||||
<select onchange="voidPutTag2('topic_text',this.value);" tabindex="-1">
|
||||
<select onchange="voidPutTag2('topic_text',this.value); this.value='';" tabindex="-1">
|
||||
<option value="" class="title">Заголовок</option>
|
||||
<option value="h4">H4</option>
|
||||
<option value="h5">H5</option>
|
||||
|
|
Loading…
Reference in a new issue