81 lines
3.7 KiB
HTML
81 lines
3.7 KiB
HTML
|
{include file=$header_admin h1="Редактор кода" title="Редактор шаблона"}
|
||
|
<!-- a href="" id="save_all">Сохранить все</a-->
|
||
|
<!--p>Автосохранение</p>
|
||
|
<input id="autosave" type="text" value="60">
|
||
|
-->
|
||
|
<div id="tabs">
|
||
|
<ul>
|
||
|
<li><a href="#HEADER">HEADER</a></li>
|
||
|
<li><a href="#FOOTER">FOOTER</a></li>
|
||
|
<li><a href="#CSS">CSS</a></li>
|
||
|
<li><a href="#JS">JS</a></li>
|
||
|
<li><a href="#menu">Меню</a></li>
|
||
|
</ul>
|
||
|
<div id="HEADER">
|
||
|
{*******************************}
|
||
|
<form method="post" id="form_code_header">
|
||
|
<input type="hidden" name="act" value="save_header">
|
||
|
<input type="submit" name='ok2' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
|
||
|
<textarea id="code_header" name="code" style="height: 600px;">{$code_header}</textarea>
|
||
|
<input type="submit" name='ok' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
|
||
|
</form>
|
||
|
{include file='api/templates/admin/inc/codemirror.html' mod='html' el='code_header'}
|
||
|
</div>
|
||
|
{*******************************}
|
||
|
|
||
|
<div id="FOOTER">
|
||
|
<form method="post" id="form_code_footer">
|
||
|
<input type="hidden" name="act" value="save_footer">
|
||
|
<input type="submit" name='ok2' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
|
||
|
<textarea id="code_footer" name="code" style="height: 600px;">{$code_footer}</textarea>
|
||
|
<input type="submit" name='ok' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
|
||
|
</form>
|
||
|
{include file='api/templates/admin/inc/codemirror.html' mod='html' el='code_footer'}
|
||
|
</div>
|
||
|
{*******************************}
|
||
|
|
||
|
<div id="CSS">
|
||
|
<form method="post" id="form_code_css">
|
||
|
<input type="hidden" name="act" value="save_css">
|
||
|
<input type="hidden" name="mod" value="{$smarty.get.id}">
|
||
|
<input type="submit" name='ok2' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
|
||
|
<textarea id="code_css" name="code" style="height: 600px;">{$code_css}</textarea>
|
||
|
<input type="submit" name='ok' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
|
||
|
</form>
|
||
|
{include file='api/templates/admin/inc/codemirror.html' mod='css' el='code_css'} </div>
|
||
|
{*******************************}
|
||
|
<div id="JS">
|
||
|
<form method="post" id="form_code_js">
|
||
|
<input type="hidden" name="act" value="save_js">
|
||
|
<input type="hidden" name="mod" value="{$smarty.get.id}">
|
||
|
<input type="submit" name='ok2' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
|
||
|
<textarea id="code_js" name="code" style="height: 600px;">{$code_js}</textarea>
|
||
|
<input type="submit" name='ok' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
|
||
|
</form>
|
||
|
{include file='api/templates/admin/inc/codemirror.html' mod='js' el='code_js'}
|
||
|
</div>
|
||
|
|
||
|
<div id="menu">
|
||
|
<form method="post" id="form_code_menu">
|
||
|
<input type="hidden" name="act" value="save_menu">
|
||
|
<input type="submit" name='ok2' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
|
||
|
<textarea id="code_menu" name="code" style="height: 600px;">{$code_menu}</textarea>
|
||
|
<input type="submit" name='ok' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
|
||
|
</form>
|
||
|
{include file='api/templates/admin/inc/codemirror.html' mod='html' el='code_menu'}
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<br><br>
|
||
|
<input id="load_page" type="text" value="/">
|
||
|
<br><br>
|
||
|
<iframe src="/" id="demo_page" style="width: 100%; height: 600px;"></iframe>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<link rel='stylesheet' href='/api/jquery/jquery-ui/dark-hive1.12.1/jquery-ui.css'><link rel='stylesheet' href='/api/jquery/jquery-ui/dark-hive1.12.1/jquery-ui.theme.min.css'>
|
||
|
{include file=$footer_admin}
|