core/skin/detsad20.ru/mod/edit_page.tpl

51 lines
2.9 KiB
Smarty
Executable File

<script src="/templates/js/{$mod_inc_short}.js"></script>
<!--script language="javascript" type="text/javascript" src="/func/frameworks/tiny_mce/tiny_mce.js"></script-->
<form action="/?mod=edit_page&id={$page_id}" method="post" ENCTYPE='multipart/form-data'>
<input type='text' name='zag' tabindex='1' value='{$zag}' placeholder="Введите заголовок страницы" style="width:100%;">
<textarea tabindex='2' name='text' id='redactor_content' style="width:100%; height:600px; font-family:verdana; font-size:12px; border:1px solid #c0c0c0 ">{$page}</textarea><br>
<script language="javascript" type="text/javascript" src="/api/soft/tinymce/4.3.12/tinymce.min.js"></script><script language="javascript" type="text/javascript" src="/api/soft/tinymce/4.3.12/load.php"></script>'
<center>
<select name="cat">
<option value="">Без категории</option>
{$list|default:''}
</select><br>
<br>
<hr>
<b>Подгрузить документы</b><br>
{if $doc1}<a href="/files/{$doc1}">{$doc1}</a> <a href="1" id_post="{$page_id}" class="del_attach">Удалить</a> <input type=file name=doc1 style="display: none;"><br><br>
{else}<input type=file name=doc1><br><br>{/if}
{if $doc2}<a href="/files/{$doc2}">{$doc2}</a> <a href="2" id_post="{$page_id}" class="del_attach">Удалить</a> <input type=file name=doc2 style="display: none;"><br><br>
{else}<input type=file name=doc2><br><br>{/if}
{if $doc3}<a href="/files/{$doc3}">{$doc3}</a> <a href="3" id_post="{$page_id}" class="del_attach">Удалить</a> <input type=file name=doc3 style="display: none;"><br><br>
{else}<input type=file name=doc3><br><br>{/if}
{if $doc4}<a href="/files/{$doc4}">{$doc4}</a> <a href="4" id_post="{$page_id}" class="del_attach">Удалить</a> <input type=file name=doc4 style="display: none;"><br><br>
{else}<input type=file name=doc4><br><br>{/if}
{if $doc5}<a href="/files/{$doc5}">{$doc5}</a> <a href="5" id_post="{$page_id}" class="del_attach">Удалить</a> <input type=file name=doc5 style="display: none;"><br><br>
{else}<input type=file name=doc5><br><br>{/if}
{if $doc6}<a href="/files/{$doc6}">{$doc6}</a> <a href="6" id_post="{$page_id}" class="del_attach">Удалить</a> <input type=file name=doc6 style="display: none;"><br><br>
{else}<input type=file name=doc6><br><br>{/if}
<hr>
<input type=text name=description placeholder="description" value="{$description}"><br><br>
<input type=text name=keywords placeholder="keywords" value="{$keywords}"><br><br>
<input type=file name=fon title="Фон" {if $fon}style="display:none;"{/if} id="input_file"><br>
{if $fon}<span id="del_fon" id_page={$id2} style="width: 100%;height:30px;">Удалить фон</span>
{/if}
<input type='submit' value='Сохранить' tabindex='6' name="save_ok">
</center>
</form>
<div id='div_del_fon' style="display: block; width: 100%; height: 200px; border: 1px solid red;"></div>
{if $dostup=='a'}
{include file=$mini_admin}
{$error|default:''}
{/if}