virt2/api/mod/edit_php.html

36 lines
1.6 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{include file=$header_admin title="Редактор кода PHP - {$smarty.const.ID}" h1="Редактор кода PHP - {$smarty.const.ID}"}
Код модуля <b>{$smarty.const.ID} v. {$ver}</b>:<br>
<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
{$php}
?></textarea>
<input type="submit" name='ok' id='save_code' value='Сохранить' class="btn btn-success btn_save_code btn-sm">
</form>
{include file='api/templates/admin/inc/codemirror.html' mod='php' el='code'}
{*
<script language="Javascript" type="text/javascript" src="/api/soft/edit_area/edit_area_full.js"></script>
<form action="/edit_php/{$smarty.const.ID}" name="form1" method="post">
Релиз <input type=text value="{$relise}" name="relise" class="form-control">
<textarea name="code" id=example_1 class=result style="width: 100%;height: 500px;" autofocus>{$php}</textarea>
<br>
Код инсталлятора, апргейдера <b>{$smarty.const.ID}</b>:
<textarea name="install" id=example_2 class=result style="width: 100%;height: 500px;">{$install}</textarea>
<br>
Описание изменений <b>{$smarty.const.ID}</b>:
<textarea name="news" id=example_3 class=result style="width: 100%;height: 500px;">{$news}</textarea>
<br>
<input type="submit" name="ok" value="Сохранить" class="btn btn-success" />
<small>Все файлы будут скопированы в *.old</small>
</form>*}
{include file=$footer_admin}