virt2/api/mod/edit_act.html

21 lines
1.2 KiB
HTML
Raw Normal View History

{include file=$header_admin title="Редактор кода PHP (ACT) - {$smarty.const.ID}" h1="Редактор кода PHP (ACT) - {$smarty.const.ID}"}
{*
<!--script language="Javascript" type="text/javascript" src="/api/soft/edit_area/edit_area_full.js"></script-->
<form action="/edit_act/{$smarty.const.ID}" name="form1" method="post">
Код модуля <b>{$smarty.const.ID}</b>:
<textarea name="code" id=example_1 class=result style="width: 100%;height: 500px;">{$act}</textarea>
<br>
<input type="submit" name="ok" value="Сохранить" class="btn btn-success" />
<small>Все файлы будут скопированы в *.old</small>
</form>
*}
<form method="post" id="form_code">
<input type="submit" name='ok2' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
<input type='hidden' name='mod' value='{$smarty.const.ID}'>
<textarea id="code" name="code" style="height: 600px;"><?php
{$act}
?></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='php'}
{include file=$footer_admin}