You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
3.0 KiB
104 lines
3.0 KiB
4 years ago
|
<script language="Javascript" type="text/javascript">
|
||
|
var session = '{$sess}';
|
||
|
var new_title = '{#CONSOLE_NEW_TITLE#}';
|
||
|
var new_text = '{#CONSOLE_NEW_TEXT#}';
|
||
|
var select_option = '{#CONSOLE_SELECT_FRAGMENT#}';
|
||
|
var del_confirm = '{#CONSOLE_DELETE_CONFIRM#}';
|
||
|
var del_title = '{#CONSOLE_DELETE#}';
|
||
|
var result_dialog = '{#CONSOLE_PERFORMED#}';
|
||
|
</script>
|
||
|
|
||
|
<div class="title">
|
||
|
<h5>{#CONSOLE_MODULE_NAME#}</h5>
|
||
|
</div>
|
||
|
|
||
|
<div class="widget" style="margin-top: 0px;">
|
||
|
<div class="body">
|
||
|
{#CONSOLE_EDIT_TIP#}
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="breadCrumbHolder module">
|
||
|
<div class="breadCrumb module">
|
||
|
<ul>
|
||
|
<li class="firstB"><a href="index.php" title="{#MAIN_PAGE#}">{#MAIN_PAGE#}</a></li>
|
||
|
<li><a href="index.php?do=modules&cp={$sess}">{#MODULES_SUB_TITLE#}</a></li>
|
||
|
<li><strong class="code">{#CONSOLE_MODULE_NAME#}</strong></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<form id="code" action="index.php?do=modules&action=modedit&mod=snippets&moduleaction=execute&cp={$sess}" method="post" class="mainForm">
|
||
|
<input id="fragmentKey" type="hidden" name="fragment_key" value="">
|
||
|
<div class="widget first">
|
||
|
<div class="head">
|
||
|
<h5 class="iFrames">
|
||
|
{#CONSOLE_MODULE_NAME#}
|
||
|
</h5>
|
||
|
</div>
|
||
|
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
|
||
|
<col width="250"/>
|
||
|
<col />
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td colspan="4">
|
||
|
{#CONSOLE_SETTINGS#}
|
||
|
</td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>
|
||
|
{#CONSOLE_SAVED_FRAGMENTS#}
|
||
|
</td>
|
||
|
<td>
|
||
|
<select id="fargmentNames" name="names" data-search="true" data-search-limit="10">
|
||
|
<option value="">{#CONSOLE_SELECT_FRAGMENT#}</option>
|
||
|
{foreach from=$fragments item=fragment}
|
||
|
<option value="{$fragment.fragment_id}">{$fragment.fragment_name}</option>
|
||
|
{/foreach}
|
||
|
</select>
|
||
|
</td>
|
||
|
<td>
|
||
|
{#CONSOLE_REPORT_EXECUTION#}
|
||
|
</td>
|
||
|
<td>
|
||
|
<input id="profilingCheck" type="checkbox" name="profiling" value="1" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td>
|
||
|
{#CONSOLE_MODULE_NAME#}
|
||
|
</td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<textarea class="mousetrap" id="code_text" name="code_text" style="width:100%; height:400px"></textarea>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<div class="rowElem" id="saveBtn">
|
||
|
<div class="saveBtn">
|
||
|
<a href="javascript:void(0);" class="button basicBtn Execute">{#CONSOLE_BUTTON_ENTER#}</a>
|
||
|
<a href="javascript:void(0);" class="button greenBtn SaveFragment">{#CONSOLE_BUTTON_SAVE#}</a>
|
||
|
<a href="javascript:void(0);" class="button blackBtn Clear">{#CONSOLE_BUTTON_CLEAR#}</a>
|
||
|
<a href="javascript:void(0);" class="button redBtn Delete hidden">{#CONSOLE_DELETE_FRAGMENT#}</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
<script src="{$ABS_PATH}modules/snippets/js/snippets.js" language="Javascript" type="text/javascript"></script>
|
||
|
|
||
|
{include file="$codemirror_connect"}
|
||
|
{include file="$codemirror_editor" textarea_id='code_text' ctrls='ModuleSnippets.saveFragment();' height='300'}
|